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

Issue 1549913002: tcmalloc: Use C++11 atomics where appropriate. (Closed)

Created:
4 years, 12 months ago by Nico
Modified:
3 years, 8 months ago
Reviewers:
JF
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME), vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

tcmalloc: Use C++11 atomics where appropriate. Reland now that we have a newer sysroot. Ports these CLs to tcmalloc: https://codereview.chromium.org/636783002/ https://codereview.chromium.org/1466833002/ (except mac) No intended behavior change, but it should remove the static initializer in atomicops_internals_x86_gcc.h on Linux. It's also less code. BUG=94925, 559247, 572525 Committed: https://crrev.com/e13537fe418eff11d3cab9077f6a647d7c74f103 Cr-Original-Commit-Position: refs/heads/master@{#366904} Review-Url: https://codereview.chromium.org/1549913002 Cr-Commit-Position: refs/heads/master@{#464440} Committed: https://chromium.googlesource.com/chromium/src/+/2f6d8f01d9087e8bebab5b7d2d25b28d657dbbb7

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : 32bit #

Patch Set 6 : whoops #

Patch Set 7 : . #

Patch Set 8 : actually #

Total comments: 5

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -1599 lines) Patch
M base/allocator/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/tcmalloc/README.chromium View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/base/atomicops.h View 1 2 chunks +1 line, -21 lines 0 comments Download
D third_party/tcmalloc/chromium/src/base/atomicops-internals-arm-generic.h View 1 chunk +0 lines, -235 lines 0 comments Download
D third_party/tcmalloc/chromium/src/base/atomicops-internals-arm-v6plus.h View 1 chunk +0 lines, -369 lines 0 comments Download
D third_party/tcmalloc/chromium/src/base/atomicops-internals-linuxppc.h View 1 chunk +0 lines, -416 lines 0 comments Download
D third_party/tcmalloc/chromium/src/base/atomicops-internals-x86.h View 1 chunk +0 lines, -428 lines 0 comments Download
D third_party/tcmalloc/chromium/src/base/atomicops-internals-x86.cc View 1 chunk +0 lines, -125 lines 0 comments Download
A third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h View 1 2 3 4 5 6 7 8 1 chunk +219 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
Nico
wdyt?
4 years, 12 months ago (2015-12-25 23:35:40 UTC) #3
JF
Looks good overall, though the comment confuses me a bit. https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h File third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h#newcode39 ...
4 years, 12 months ago (2015-12-26 00:27:24 UTC) #4
Nico
https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h File third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h#newcode39 third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h:39: #define BASE_HAS_ATOMIC64 1 // Use only in tests and ...
4 years, 12 months ago (2015-12-26 04:13:03 UTC) #5
JF
https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h File third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h#newcode39 third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h:39: #define BASE_HAS_ATOMIC64 1 // Use only in tests and ...
4 years, 12 months ago (2015-12-26 15:56:15 UTC) #6
Nico
https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h File third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h#newcode39 third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h:39: #define BASE_HAS_ATOMIC64 1 // Use only in tests and ...
4 years, 11 months ago (2015-12-26 16:35:05 UTC) #7
JF
lgtm https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h File third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/1549913002/diff/140001/third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h#newcode39 third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h:39: #define BASE_HAS_ATOMIC64 1 // Use only in tests ...
4 years, 11 months ago (2015-12-26 16:58:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1549913002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1549913002/140001
4 years, 11 months ago (2015-12-26 17:13:53 UTC) #10
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2015-12-26 18:19:20 UTC) #12
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e13537fe418eff11d3cab9077f6a647d7c74f103 Cr-Commit-Position: refs/heads/master@{#366904}
4 years, 11 months ago (2015-12-26 18:20:11 UTC) #14
Nico
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1557433002/ by thakis@chromium.org. ...
4 years, 11 months ago (2015-12-29 14:26:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1549913002/160001
3 years, 8 months ago (2017-04-13 15:34:11 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/2f6d8f01d9087e8bebab5b7d2d25b28d657dbbb7
3 years, 8 months ago (2017-04-13 16:45:25 UTC) #23
Nico
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2818713003/ by thakis@chromium.org. ...
3 years, 8 months ago (2017-04-13 16:59:36 UTC) #24
findit-for-me
3 years, 8 months ago (2017-04-13 17:02:44 UTC) #25
Message was sent while issue was closed.
Findit(https://goo.gl/kROfz5) confirmed this CL at revision 464440 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698