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

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

Created:
4 years, 8 months ago by pasko
Modified:
4 years, 8 months ago
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

Revert of Enable allocator shim for Android (https://codereview.chromium.org/1875043003/) (patchset #2 id:20001 of https://codereview.chromium.org/1875173002/ ) Reason for revert: Causes re-entrancy issues in builds instrumented with -finstrument-functions. See: crbug.com/602744 Original issue's 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} TBR=thakis@chromium.org,primiano@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=550886, 598075, 602744 Committed: https://crrev.com/a383051b5f2e7d6576368aab7bc393d577350810 Cr-Commit-Position: refs/heads/master@{#387364}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 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 chunk +1 line, -5 lines 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: 9 (3 generated)
pasko
Created Revert of Enable allocator shim for Android (https://codereview.chromium.org/1875043003/)
4 years, 8 months ago (2016-04-14 17:10:28 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1884223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1884223002/1
4 years, 8 months ago (2016-04-14 17:10:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1884223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1884223002/1
4 years, 8 months ago (2016-04-14 17:31:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1884223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1884223002/1
4 years, 8 months ago (2016-04-14 18:01:40 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-14 18:10:32 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 18:13:01 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a383051b5f2e7d6576368aab7bc393d577350810
Cr-Commit-Position: refs/heads/master@{#387364}

Powered by Google App Engine
This is Rietveld 408576698