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

Issue 1875173002: Reland of Enable allocator shim for Android (https://codereview.chromium.org/1875043003/) (Closed)

Created:
4 years, 8 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 8 months ago
Reviewers:
Nico
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME), DmitrySkiba, ssid, kraynov, DaleCurtis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Enable allocator shim for Android (crrev.com/1875043003) Reason for reland: The original CL was reverted by crrev.com/1881523003 because it broke clang builds. This CL contains the fix for clang (see diff between patch-set 1 and 2). The culprit of the fix is that LLVM libc++ uses _NOEXCEPT instead of glibc's __THROW. The absence of it was causing errors like the following: ../../base/allocator/allocator_shim_override_cpp_symbols.h:20:25: error: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Werror,-Wimplicit-exception-spec-mismatch] SHIM_ALWAYS_EXPORT void operator delete(void* p) __THROW Original issue's description: > Enable allocator shim for Android > > This is a follow-up to crrev.com/1719433002, which introduced the > shim for Android, and enables it by default by setting > use_experimental_allocator_shim=true for Android. > > Build/Perf sheriffs heads up > ---------------------------- > If you see any build error or crash related with __wrap_malloc, > __wrap_free, __real_malloc, __real_free, etc this CL is to blame. > > Performance considerations > ------------------------ > Binary size diff (GN, arm, static, official build): 24k > > I did a mixture of local and trybots run to estimate the perf impact > of this change. Didn't get any conclusive data, everything I tried > seems in the same ballpark, below noise levels. More in details: > > cc_perftests.PrepareTiles on a Nexus 4. > Rationale of the choice: in a previous CL (crbug.com/593344), this > benchmark revealed the presence of two mfences in the malloc path. > Results: https://goo.gl/8VC3Jp in the same ballpark. > > page-cycler on Nexus 9 via trybots: > Results: http://goo.gl/J3i50a seems to suggest that this CL improves > both warm and cold times in most cases. I doubt it, more likely it's > noise. > > All the other perf trybots failed. The perf waterfall seems to be in a > bad state in these days. > > BUG=550886, 598075 > TEST=base_unittests --gtest_filter=AllocatorShimTest.* > TBR=thakis@chromium.org > > Committed: https://crrev.com/ebb95496c73dc0d5ce83968ac619921f154305f7 > Cr-Commit-Position: refs/heads/master@{#386386} BUG=550886, 598075 CC=dalecurtis@chromium.org Committed: https://crrev.com/88bf797383cd290d9bd23db0045c5fb23e010beb Cr-Commit-Position: refs/heads/master@{#386444}

Patch Set 1 : Original CL #

Patch Set 2 : Fix for LLVM libc++ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M base/allocator/README.md View 1 chunk +1 line, -1 line 0 comments Download
M base/allocator/allocator_shim_internals.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M build/common.gypi View 1 chunk +1 line, -1 line 0 comments Download
M build/config/allocator.gni View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
Primiano Tucci (use gerrit)
Nico, PTAL again? Well this was quick. Attempt number #2 (I manually reprod and fixed ...
4 years, 8 months ago (2016-04-11 18:29:51 UTC) #3
Nico
lgtm
4 years, 8 months ago (2016-04-11 18:33:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1875173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1875173002/20001
4 years, 8 months ago (2016-04-11 18:39:58 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-11 19:49:30 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/88bf797383cd290d9bd23db0045c5fb23e010beb Cr-Commit-Position: refs/heads/master@{#386444}
4 years, 8 months ago (2016-04-11 19:51:20 UTC) #11
Primiano Tucci (use gerrit)
Took a look to the perf dashboard and, at least for the major benchmarks I ...
4 years, 8 months ago (2016-04-12 18:41:46 UTC) #13
pasko
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1884223002/ by pasko@chromium.org. ...
4 years, 8 months ago (2016-04-14 17:10:28 UTC) #14
Primiano Tucci (use gerrit)
4 years, 8 months ago (2016-04-14 20:15:08 UTC) #15
Message was sent while issue was closed.
> I'll probably regret this early message, but the odds are this might stick
+1 to primiano from the past :)

Powered by Google App Engine
This is Rietveld 408576698