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

Issue 399081: Enable TCMalloc on Linux by default. (Closed)

Created:
11 years, 1 month ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, sgk
Visibility:
Public.

Description

Enable TCMalloc on Linux by default. This change also reworks the tcmalloc dependency to be added only to chrome and test_shell, instead of base. This is necessary since otherwise tcmalloc will be double initialized (by both the main executable and dlopen'd shared objects like the npapitestplugin.so). Add valgrind suppressions. This are invalid reads on static initialization in the VDSOSupport module. I haven't investigated it yet, but I suspect they're benign. BUG=http://crbug.com/28149, http://crbug.com/28385 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33010

Patch Set 1 #

Patch Set 2 : Move tcmalloc dependency from process_util_linux.cc to chrome_exe_main_gtk.cc. #

Patch Set 3 : Fork files for tcmalloc in linux to respect tc_new_mode. #

Patch Set 4 : Remove unnecessary newline. #

Total comments: 14

Patch Set 5 : Oops, remove unintended change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1509 lines, -32 lines) Patch
M base/base.gyp View 1 2 chunks +9 lines, -19 lines 0 comments Download
M base/leak_annotations.h View 1 chunk +1 line, -1 line 0 comments Download
M base/process_util_linux.cc View 3 chunks +2 lines, -10 lines 0 comments Download
M base/process_util_unittest.cc View 2 2 chunks +14 lines, -1 line 0 comments Download
M build/common.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_exe_main_gtk.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/tcmalloc/tcmalloc.gyp View 3 chunks +7 lines, -0 lines 0 comments Download
A third_party/tcmalloc/tcmalloc_linux.cc View 3 1 chunk +1415 lines, -0 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 1 chunk +26 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
willchan no longer on Chromium
In my experiments, I saw memory for the 12 tab test go up 20% or ...
11 years, 1 month ago (2009-11-18 21:00:01 UTC) #1
jar (doing other things)
LGTM+ Please file a bug to optimize de-commit strategy of TCMalloc on linux as you ...
11 years, 1 month ago (2009-11-20 19:45:36 UTC) #2
willchan no longer on Chromium
Bug filed. Just waiting for the trybots to verify the latest round of changes. On ...
11 years, 1 month ago (2009-11-20 20:34:49 UTC) #3
willchan no longer on Chromium
There are two changes since you last looked. (1) I moved the tcmalloc dependency out ...
11 years ago (2009-11-23 20:47:44 UTC) #4
willchan no longer on Chromium
There are two changes since you last looked. (1) I moved the tcmalloc dependency out ...
11 years ago (2009-11-23 20:47:51 UTC) #5
jar (doing other things)
http://codereview.chromium.org/399081/diff/8001/8008 File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/399081/diff/8001/8008#newcode1556 chrome/browser/renderer_host/resource_dispatcher_host.cc:1556: // (request->status().status() == URLRequestStatus::CANCELED) || Can you justify this ...
11 years ago (2009-11-23 22:28:41 UTC) #6
willchan no longer on Chromium
Sorry for adding an unnecessary file. Thanks for catching that. With regard to the tcmalloc_linux.cc ...
11 years ago (2009-11-23 22:57:50 UTC) #7
willchan no longer on Chromium
ping
11 years ago (2009-11-24 21:14:06 UTC) #8
jar (doing other things)
11 years ago (2009-11-25 00:09:27 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698