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

Issue 8587031: Avoid any possibility of an Alloc during TLS thread teardown (Closed)

Created:
9 years, 1 month ago by jar (doing other things)
Modified:
9 years, 1 month ago
CC:
chromium-reviews, brettw-cc_chromium.org, wtc
Visibility:
Public.

Description

Avoid any possibility of an Alloc during TLS thread teardown GIven that TCMalloc might get its thread teardown notifgication ahead of the profiler, we need to be careful to not do an alloc in the teardown handler. If we did, we might bring TCMalloc back to life on this thread... and it might not get a second teardown notification. r=rtenneti BUG=104696 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110706

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 9

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -23 lines) Patch
M base/tracked_objects.h View 1 2 3 4 5 2 chunks +26 lines, -3 lines 0 comments Download
M base/tracked_objects.cc View 1 2 3 4 5 5 chunks +60 lines, -20 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jar (doing other things)
9 years, 1 month ago (2011-11-17 22:01:45 UTC) #1
ramant (doing other things)
lgtm http://codereview.chromium.org/8587031/diff/4003/base/tracked_objects.cc File base/tracked_objects.cc (right): http://codereview.chromium.org/8587031/diff/4003/base/tracked_objects.cc#newcode205 base/tracked_objects.cc:205: unregistered_thread_data_pool_->pop(); nit: Should we consider adding a DCHECK ...
9 years, 1 month ago (2011-11-17 22:59:36 UTC) #2
jar (doing other things)
Responses to comments by rtenneti. http://codereview.chromium.org/8587031/diff/4003/base/tracked_objects.cc File base/tracked_objects.cc (right): http://codereview.chromium.org/8587031/diff/4003/base/tracked_objects.cc#newcode205 base/tracked_objects.cc:205: unregistered_thread_data_pool_->pop(); Line 205 would ...
9 years, 1 month ago (2011-11-18 01:06:42 UTC) #3
ramant (doing other things)
9 years, 1 month ago (2011-11-18 01:26:41 UTC) #4
sounds good to me. thanks.

Powered by Google App Engine
This is Rietveld 408576698