Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 113939: Tiny fix: initialize TickSample::frames_count with 0. (Closed)

Created:
11 years, 7 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Tiny fix: initialize TickSample::frames_count with 0. I suggest that the lack of initialization causes issue 358 to happen. In Profiler::Disengage an empty TickSample is inserted in order to wake up the Profiler thread. Issue reporter claims that crash happens in LogTickEvent function. My guess is that frames_couint receives a wild value. Committed: http://code.google.com/p/v8/source/detail?r=2068

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/platform.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Mikhail Naganov
11 years, 7 months ago (2009-05-28 07:33:58 UTC) #1
Søren Thygesen Gjesse
11 years, 7 months ago (2009-05-28 07:40:58 UTC) #2
LGTM

If the repro is only in release build then this could be the case, but I afaik
in debug builds most compilers will initialize members to zero.

Powered by Google App Engine
This is Rietveld 408576698