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

Issue 286953011: tcmalloc: Let DEFINE_string define char arrays. (Closed)

Created:
6 years, 7 months ago by Nico
Modified:
6 years, 7 months ago
CC:
chromium-reviews, dmikurube+memory_chromium.org
Visibility:
Public.

Description

tcmalloc: Let DEFINE_string define const char*s. DEFINE_string is used in 3 files in tcmalloc, but we only compile one of these. In this one file, the string is converted to char every time it's used, and since the string is used after global destructors have run it needs to be copied to a second string in a static initializer. Instead of all that silliness, just let DEFINE_string define a const char* (like it does in v8 or webrtc). BUG=94925 R=willchan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271307

Patch Set 1 #

Patch Set 2 : * #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M third_party/tcmalloc/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/base/commandlineflags.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/tcmalloc/chromium/src/symbolize.cc View 3 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
6 years, 7 months ago (2014-05-18 06:49:31 UTC) #1
willchan no longer on Chromium
lgtm
6 years, 7 months ago (2014-05-18 15:42:37 UTC) #2
Nico
Committed patchset #2 manually as r271307 (presubmit successful).
6 years, 7 months ago (2014-05-18 19:03:10 UTC) #3
Evan Martin
Possible to take upstream?
6 years, 7 months ago (2014-05-19 20:55:08 UTC) #4
Nico
On 2014/05/19 20:55:08, Evan Martin wrote: > Possible to take upstream? Probably, the other two ...
6 years, 7 months ago (2014-05-19 20:58:44 UTC) #5
willchan no longer on Chromium
These patches aren't appropriate for upstreaming due to the reliance on the PROFILING macro definition ...
6 years, 7 months ago (2014-05-19 21:07:31 UTC) #6
Nico
On Mon, May 19, 2014 at 2:07 PM, William Chan (陈智昌) <willchan@chromium.org>wrote: > These patches ...
6 years, 7 months ago (2014-05-19 21:08:19 UTC) #7
willchan no longer on Chromium
6 years, 7 months ago (2014-05-19 21:09:59 UTC) #8
My bad, I'm getting senile :)


On Mon, May 19, 2014 at 2:08 PM, Nico Weber <thakis@chromium.org> wrote:

> On Mon, May 19, 2014 at 2:07 PM, William Chan (陈智昌) <willchan@chromium.org
> > wrote:
>
>> These patches aren't appropriate for upstreaming due to the reliance on
>> the PROFILING macro definition set by the gyp flag, which upstream has no
>> concept of. Indeed, the typical usage is to always bake in profiling.
>>
>
> This patch doesn't rely on PROFILING (the others did).
>
>
>> TCMalloc was open sourced and development continued internally. In
>> Chromium, we forked the open source one and put a half hearted effort to
>> upstream patches. I've been notifying the google-perftools maintainer of
>> the ones which I consider acceptable for upstreaming. I haven't enforced
>> checking in upstream first because we're so far behind upstream now. It'd
>> be 1-3 engineer-days to catch up. We should probably do this at some point
>> but we never get around to it.
>>
>>
>> On Mon, May 19, 2014 at 1:58 PM, <thakis@chromium.org> wrote:
>>
>>> On 2014/05/19 20:55:08, Evan Martin wrote:
>>>
>>>> Possible to take upstream?
>>>>
>>>
>>> Probably, the other two files that call this are easy to change too.
>>> (But they
>>> would have to be changed for upstreaming.)
>>>
>>> I'm pretty confused about the tcmalloc upstreaming relationship though:
>>> From
>>> what I can tell, tcmalloc was open-sourced at some point, and then
>>> developed
>>> independently internally and externally, and chromium seems to track
>>> neither of
>>> these upstreams :-/
>>>
>>> https://codereview.chromium.org/286953011/
>>>
>>
>>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698