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

Issue 7375006: Startup race fixes to tracked objects (Closed)

Created:
9 years, 5 months ago by joth
Modified:
9 years, 5 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Misc fixes to tracked objects PendingTask::post_births could sometimes be left unitialized No way for user to know if Tracked::GetBirthPlace will hit tracked_births_ NULL pointer exception. nit: MissingBirthplace has inconsistent capitalization BUG=None TEST=base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92663

Patch Set 1 #

Patch Set 2 : consistent ifdefs #

Total comments: 4

Patch Set 3 : ajwong comments #

Total comments: 2

Patch Set 4 : awong comments 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M base/message_loop.cc View 1 chunk +1 line, -3 lines 0 comments Download
M base/tracked.h View 1 chunk +1 line, -1 line 0 comments Download
M base/tracked.cc View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
joth
I've been using tracked objects in a private project to profile application startup, and came ...
9 years, 5 months ago (2011-07-14 20:12:16 UTC) #1
awong
LGTM Good catch! jar@ and darin@ might want to also give this a sanity check.
9 years, 5 months ago (2011-07-14 20:22:20 UTC) #2
darin (slow to review)
http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc File base/tracked.cc (right): http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc#newcode133 base/tracked.cc:133: static Location kNone("UnknownFunctionName", "UnknownFile", -1, NULL); are you certain ...
9 years, 5 months ago (2011-07-14 20:37:33 UTC) #3
awong
http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc File base/tracked.cc (right): http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc#newcode89 base/tracked.cc:89: #if defined(TRACK_ALL_TASK_OBJECTS) This condition got inverted... http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc#newcode133 base/tracked.cc:133: static ...
9 years, 5 months ago (2011-07-14 20:40:39 UTC) #4
darin (slow to review)
On Thu, Jul 14, 2011 at 1:40 PM, <ajwong@chromium.org> wrote: > > http://codereview.chromium.**org/7375006/diff/2001/base/**tracked.cc<http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc> > File ...
9 years, 5 months ago (2011-07-14 20:49:04 UTC) #5
darin (slow to review)
> since kNone is just readonly data, it probably doesn't matter. actually, because it is ...
9 years, 5 months ago (2011-07-14 20:50:27 UTC) #6
darin (slow to review)
LGTM
9 years, 5 months ago (2011-07-14 20:50:32 UTC) #7
joth
On 14 July 2011 21:37, <darin@chromium.org> wrote: > > http://codereview.chromium.**org/7375006/diff/2001/base/**tracked.cc<http://codereview.chromium.org/7375006/diff/2001/base/tracked.cc> > File base/tracked.cc (right): > ...
9 years, 5 months ago (2011-07-14 20:53:51 UTC) #8
joth
Mails crossed in the air... sounds like this is probably OK as is then (with ...
9 years, 5 months ago (2011-07-14 20:56:41 UTC) #9
awong
LGTM (still) :) http://codereview.chromium.org/7375006/diff/7001/base/tracked.cc File base/tracked.cc (right): http://codereview.chromium.org/7375006/diff/7001/base/tracked.cc#newcode145 base/tracked.cc:145: #endif // defined(TRACK_ALL_TASK_OBJECTS) !
9 years, 5 months ago (2011-07-14 21:02:04 UTC) #10
joth
Thanks! Will commit now... http://codereview.chromium.org/7375006/diff/7001/base/tracked.cc File base/tracked.cc (right): http://codereview.chromium.org/7375006/diff/7001/base/tracked.cc#newcode145 base/tracked.cc:145: #endif // defined(TRACK_ALL_TASK_OBJECTS) On 2011/07/14 ...
9 years, 5 months ago (2011-07-15 07:57:24 UTC) #11
jar (doing other things)
9 years, 5 months ago (2011-07-18 17:01:48 UTC) #12
(vacation) belated LGTM

Powered by Google App Engine
This is Rietveld 408576698