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

Issue 177353002: Add use_allocator instead of linux_use_tcmalloc to switch the allocator. (Closed)

Description

Add use_allocator instead of linux_use_tcmalloc to switch the allocator. This change is to add a new build option 'use_allocator' which will replace 'linux_use_tcmalloc' in the future. It doesn't change the behavior immediately. The migration plan is as follows: 1) (this change) ... Add 'use_allocator' and set its default to "see_use_tcmalloc". ... Change allocator conditions to check use_allocator firstly. ... Use linux_use_tcmalloc if use_allocator=="see_use_tcmalloc". ... NO IMPACT without specifying use_allocator explicitly. 2) Change Blink to accept use_allocator. http://crrev.com/177053003/ 3) Change gyp to accept use_allocator. http://crrev.com/178643004/ 4) PSA the transition period to chromium-dev@. 5) (after the PSA-ed transition period) ... Make 'use_allocator' to "tcmalloc" or "none" (it depends) by default. ... Remove all linux_use_tcmalloc. ... Assert in gyp_chromium to check if linux_use_tcmalloc is not specified. At the point of this change (1), linux_use_tcmalloc is still used by default because 'use_allocator%': "see_use_tcmalloc". As written in http://crbug.com/345554, linux_use_tcmalloc would be confusing to have more options about allocators. We plan to: A) enable gperftools' heap-profiler with non-tcmalloc allocator, B) add a new memory allocator instead of tcmalloc. BUG=345554, 339604, 341349 R=agl@chromium.org, brettw@chromium.org, dgarrett@chromium.org, jam@chromium.org, jamesr@chromium.org, joi@chromium.org, miket@chromium.org, nick@chromium.org, rsleevi@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, shess@chromium.org, sievers@chromium.org, sky@chromium.org, vitalybuka@chromium.org, willchan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255129

Patch Set 1 #

Patch Set 2 : Ready for review #

Patch Set 3 : #

Patch Set 4 : rebased #

Patch Set 5 : rebased again #

Patch Set 6 : changed to use_allocator and no linux_use_tcmalloc==2 #

Patch Set 7 : #

Patch Set 8 : ready with use_allocator #

Total comments: 2

Patch Set 9 : rebased #

Patch Set 10 : rebased #

Total comments: 2

Patch Set 11 : rebased #

Patch Set 12 : rebased #

Patch Set 13 : rebased #

Patch Set 14 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -59 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M base/security_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 7 chunks +23 lines, -3 lines 0 comments Download
M build/gyp_chromium View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cloud_print/cloud_print.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/content_shell.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M courgette/courgette.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M gpu/gles2_conform_support/gles2_conform_support.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc.gyp View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M remoting/remoting_host_linux.gypi View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M sql/sql.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M sync/sync_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M tools/cygprofile/cygprofile.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/secondary/ipc/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M ui/app_list/app_list.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/keyboard/keyboard.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/message_center.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/snapshot/snapshot.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/ui_unittests.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M url/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M url/url.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M webkit/renderer/compositor_bindings/compositor_bindings_tests.gyp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 51 (0 generated)
Dai Mikurube (NOT FULLTIME)
Hi willchan@ and thakis@, To enable a new allocator and a new allocator build option ...
6 years, 10 months ago (2014-02-24 09:01:01 UTC) #1
Dai Mikurube (NOT FULLTIME)
(+primiano and scarybeasts)
6 years, 10 months ago (2014-02-25 03:45:47 UTC) #2
Dai Mikurube (NOT FULLTIME)
Ah, it may not work. I'll check it later...
6 years, 10 months ago (2014-02-25 09:08:57 UTC) #3
Dai Mikurube (NOT FULLTIME)
Oops, it was a mistake in my local build script. No problems in this patch. ...
6 years, 10 months ago (2014-02-25 09:16:59 UTC) #4
Dai Mikurube (NOT FULLTIME)
Adding many OWNERS of many gyp files... Could you please take an OWNER look on ...
6 years, 9 months ago (2014-02-28 23:49:57 UTC) #5
miket_OOO
On 2014/02/28 23:49:57, Dai Mikurube wrote: > Adding many OWNERS of many gyp files... Could ...
6 years, 9 months ago (2014-03-01 00:02:01 UTC) #6
dgarrett-goog
courgette.gyp LGTM
6 years, 9 months ago (2014-03-01 00:08:53 UTC) #7
willchan no longer on Chromium
Plan SGTM and net/ && base/ LGTM
6 years, 9 months ago (2014-03-01 00:10:37 UTC) #8
Dai Mikurube (NOT FULLTIME)
dgarrett: Thanks, but sorry that we'd need your @chromium.org comment as an owner.
6 years, 9 months ago (2014-03-01 00:12:42 UTC) #9
jamesr
lgtm
6 years, 9 months ago (2014-03-01 00:12:46 UTC) #10
brettw
lgtm
6 years, 9 months ago (2014-03-01 00:35:00 UTC) #11
darin (slow to review)
https://codereview.chromium.org/177353002/diff/160001/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/177353002/diff/160001/ash/ash.gyp#newcode1029 ash/ash.gyp:1029: # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 maybe this GYP block ...
6 years, 9 months ago (2014-03-01 00:38:55 UTC) #12
dgarrett
On 2014/03/01 00:08:53, dgarrett-goog wrote: > courgette.gyp LGTM My mistake: courgette.gyp LGTM
6 years, 9 months ago (2014-03-01 00:46:34 UTC) #13
Sergey Ulanov
lgtm
6 years, 9 months ago (2014-03-01 00:47:23 UTC) #14
Dai Mikurube (NOT FULLTIME)
Thanks, Darin. https://codereview.chromium.org/177353002/diff/160001/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/177353002/diff/160001/ash/ash.gyp#newcode1029 ash/ash.gyp:1029: # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 On 2014/03/01 ...
6 years, 9 months ago (2014-03-01 01:01:18 UTC) #15
scherkus (not reviewing)
media lgtm
6 years, 9 months ago (2014-03-01 01:04:47 UTC) #16
no sievers
gpu lgtm
6 years, 9 months ago (2014-03-01 01:20:31 UTC) #17
Ryan Sleevi
net/ LGTM
6 years, 9 months ago (2014-03-01 01:47:33 UTC) #18
darin (slow to review)
On 2014/03/01 01:01:18, Dai Mikurube wrote: > Thanks, Darin. > > https://codereview.chromium.org/177353002/diff/160001/ash/ash.gyp > File ash/ash.gyp ...
6 years, 9 months ago (2014-03-01 05:05:11 UTC) #19
Jói
//components LGTM
6 years, 9 months ago (2014-03-03 12:54:30 UTC) #20
agl
lgtm
6 years, 9 months ago (2014-03-03 13:50:10 UTC) #21
jam
content lgtm
6 years, 9 months ago (2014-03-03 16:14:43 UTC) #22
Dai Mikurube (NOT FULLTIME)
Adding some more OWNERS, vitalybuka@ for cloud_print and printing, shess@ for sql and atwilson@ for ...
6 years, 9 months ago (2014-03-03 22:50:08 UTC) #23
Scott Hess - ex-Googler
lgtm for sql/sql.gyp
6 years, 9 months ago (2014-03-03 22:52:18 UTC) #24
Vitaly Buka (NO REVIEWS)
lgtm
6 years, 9 months ago (2014-03-03 22:54:58 UTC) #25
Dai Mikurube (NOT FULLTIME)
Thanks, everyone! :) Adding nick@ for sync/. (atwilson@ may be ooo or on a trip.) ...
6 years, 9 months ago (2014-03-04 00:10:22 UTC) #26
ncarter (slow)
lgtm
6 years, 9 months ago (2014-03-04 20:12:38 UTC) #27
Dai Mikurube (NOT FULLTIME)
Thanks everyone! It's now all lgtm'ed. I'll be committing...
6 years, 9 months ago (2014-03-04 20:17:10 UTC) #28
Dai Mikurube (NOT FULLTIME)
The CQ bit was checked by dmikurube@chromium.org
6 years, 9 months ago (2014-03-04 20:17:26 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/177353002/200001
6 years, 9 months ago (2014-03-04 20:20:21 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 20:42:10 UTC) #31
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=53396
6 years, 9 months ago (2014-03-04 20:42:11 UTC) #32
Dai Mikurube (NOT FULLTIME)
Hmm, the Butler reported different reviewers to be reviewed... ben@, sky@, could you rubber-stamp on ...
6 years, 9 months ago (2014-03-04 20:44:37 UTC) #33
sky
+mark https://codereview.chromium.org/177353002/diff/200001/ui/keyboard/keyboard.gyp File ui/keyboard/keyboard.gyp (right): https://codereview.chromium.org/177353002/diff/200001/ui/keyboard/keyboard.gyp#newcode104 ui/keyboard/keyboard.gyp:104: ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and ...
6 years, 9 months ago (2014-03-04 22:19:06 UTC) #34
jamesr
Not in gyp. If we had a better build system yes, but we don't.
6 years, 9 months ago (2014-03-04 22:20:17 UTC) #35
sky
*SIGH* LGTM then
6 years, 9 months ago (2014-03-04 22:25:20 UTC) #36
Mark Mentovai
Thanks, James, that was totally constructive and worth the time of all 29 of us. ...
6 years, 9 months ago (2014-03-04 22:26:36 UTC) #37
Dai Mikurube (NOT FULLTIME)
Thanks, sky@ and jamesr@. https://codereview.chromium.org/177353002/diff/200001/ui/keyboard/keyboard.gyp File ui/keyboard/keyboard.gyp (right): https://codereview.chromium.org/177353002/diff/200001/ui/keyboard/keyboard.gyp#newcode104 ui/keyboard/keyboard.gyp:104: ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") ...
6 years, 9 months ago (2014-03-04 22:27:52 UTC) #38
jamesr
On 2014/03/04 22:26:36, Mark Mentovai wrote: > Thanks, James, that was totally constructive and worth ...
6 years, 9 months ago (2014-03-04 22:30:49 UTC) #39
Dai Mikurube (NOT FULLTIME)
I think so, too. I tried a similar way locally to be more simple, but ...
6 years, 9 months ago (2014-03-04 22:49:25 UTC) #40
Dai Mikurube (NOT FULLTIME)
The CQ bit was checked by dmikurube@chromium.org
6 years, 9 months ago (2014-03-04 22:49:37 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/177353002/200001
6 years, 9 months ago (2014-03-04 22:50:07 UTC) #42
Mark Mentovai
No, you can’t simplify this to the point that you can automatically inject this dependency ...
6 years, 9 months ago (2014-03-04 23:00:52 UTC) #43
jamesr
On Tue, Mar 4, 2014 at 3:00 PM, Mark Mentovai <mark@chromium.org> wrote: > No, you ...
6 years, 9 months ago (2014-03-04 23:33:45 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/177353002/200001
6 years, 9 months ago (2014-03-05 01:09:22 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 06:30:13 UTC) #46
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=155734
6 years, 9 months ago (2014-03-05 06:30:14 UTC) #47
Mark Mentovai
James Robinson wrote: > We're getting off topic now, so feel free to skip the ...
6 years, 9 months ago (2014-03-05 14:35:12 UTC) #48
Dai Mikurube (NOT FULLTIME)
Committed patchset #14 manually as r255129 (presubmit successful).
6 years, 9 months ago (2014-03-05 20:07:37 UTC) #49
Dai Mikurube (NOT FULLTIME)
+mseaborn
6 years, 8 months ago (2014-04-24 08:12:55 UTC) #50
Dai Mikurube (NOT FULLTIME)
6 years, 8 months ago (2014-04-24 08:14:18 UTC) #51
Message was sent while issue was closed.
oops, sorry, I wrongly commented on an old patchset...

Powered by Google App Engine
This is Rietveld 408576698