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

Issue 8550005: Put TCMalloc cleanup near the end of destructor list (Closed)

Created:
9 years, 1 month ago by jar (doing other things)
Modified:
9 years ago
CC:
chromium-reviews, wtc, willchan no longer on Chromium
Visibility:
Public.

Description

Put TCMalloc cleanup near the end of destructor list Try to make sure that the destructor at thread termination for TCMalloc is called later than most any other destructors. If other destructors are called later, and if they use malloc, then TCMalloc will start a new instance, and never cleanup :-( r=rvargas BUG=103209 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110987

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M third_party/tcmalloc/chromium/src/windows/port.cc View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 4 (0 generated)
jar (doing other things)
9 years, 1 month ago (2011-11-19 15:30:44 UTC) #1
rvargas (doing something else)
lgtm
9 years, 1 month ago (2011-11-21 19:21:40 UTC) #2
wtc
http://codereview.chromium.org/8550005/diff/1/third_party/tcmalloc/chromium/src/windows/port.cc File third_party/tcmalloc/chromium/src/windows/port.cc (right): http://codereview.chromium.org/8550005/diff/1/third_party/tcmalloc/chromium/src/windows/port.cc#newcode158 third_party/tcmalloc/chromium/src/windows/port.cc:158: #pragma data_seg(".CRT$XLY") Just curious: why didn't you use CRT$XLZ?
9 years ago (2011-12-01 00:04:01 UTC) #3
rvargas (doing something else)
9 years ago (2011-12-01 01:22:34 UTC) #4
On 2011/12/01 00:04:01, wtc wrote:
>
http://codereview.chromium.org/8550005/diff/1/third_party/tcmalloc/chromium/s...
> File third_party/tcmalloc/chromium/src/windows/port.cc (right):
> 
>
http://codereview.chromium.org/8550005/diff/1/third_party/tcmalloc/chromium/s...
> third_party/tcmalloc/chromium/src/windows/port.cc:158: #pragma
> data_seg(".CRT$XLY")
> 
> Just curious: why didn't you use CRT$XLZ?

The CRT sets Z to NULL to guarantee a null terminated list of callbacks.

Powered by Google App Engine
This is Rietveld 408576698