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

Issue 165275: Major changes to the Chrome allocator.... (Closed)

Created:
11 years, 4 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Major changes to the Chrome allocator. Changes include: * Fix tcmalloc to release memory. Implements the TCMalloc_SystemCommit() mechanism so that tcmalloc can implement SystemRelease() and later reuse that memory. * Enable dynamic switching of allocators based on an environment variable. Users can now switch between tcmalloc, jemalloc, the default windows heap, and the windows low-fragmentation heap. * Implements set_new_mode() across all allocators so that we can be sure that out-of-memory conditions are handled safely. BUG=18345 TEST=none; plan to get all unit tests running through these allocators. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23140

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 19

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11939 lines, -3 lines) Patch
A third_party/tcmalloc/README View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
A third_party/tcmalloc/allocator_shim.cc View 1 2 3 4 5 6 7 1 chunk +256 lines, -0 lines 0 comments Download
A third_party/tcmalloc/generic_allocators.cc View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download
A third_party/tcmalloc/jemalloc/jemalloc.h View 1 chunk +222 lines, -0 lines 0 comments Download
A third_party/tcmalloc/jemalloc/jemalloc.c View 1 2 3 4 5 6 7 1 chunk +7276 lines, -0 lines 0 comments Download
A third_party/tcmalloc/jemalloc/ql.h View 1 chunk +115 lines, -0 lines 0 comments Download
A third_party/tcmalloc/jemalloc/qr.h View 1 chunk +99 lines, -0 lines 0 comments Download
A third_party/tcmalloc/jemalloc/rb.h View 1 chunk +983 lines, -0 lines 0 comments Download
A third_party/tcmalloc/page_heap.cc View 1 2 3 6 7 1 chunk +495 lines, -0 lines 0 comments Download
A third_party/tcmalloc/port.cc View 1 2 3 6 7 1 chunk +301 lines, -0 lines 0 comments Download
A third_party/tcmalloc/system-alloc.h View 6 1 chunk +119 lines, -0 lines 0 comments Download
A third_party/tcmalloc/system-alloc.cc View 6 1 chunk +505 lines, -0 lines 0 comments Download
A third_party/tcmalloc/tcmalloc.cc View 1 2 3 6 7 1 chunk +1293 lines, -0 lines 0 comments Download
M third_party/tcmalloc/tcmalloc.gyp View 1 2 3 4 5 6 7 1 chunk +39 lines, -3 lines 0 comments Download
A third_party/tcmalloc/win_allocator.cc View 1 2 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mike Belshe
11 years, 4 months ago (2009-08-10 23:57:06 UTC) #1
jar (doing other things)
http://codereview.chromium.org/165275/diff/1100/1110 File third_party/tcmalloc/README (right): http://codereview.chromium.org/165275/diff/1100/1110#newcode7 Line 7: the default windows alloator alloator-->allocator http://codereview.chromium.org/165275/diff/1100/1110#newcode55 Line 55: ...
11 years, 4 months ago (2009-08-12 00:13:47 UTC) #2
jar (doing other things)
11 years, 4 months ago (2009-08-12 00:15:51 UTC) #3
I should have been clearer and noted LGTM with changes or responses to my
comments.

Thanks,

Jim

Powered by Google App Engine
This is Rietveld 408576698