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

Issue 1215673002: Add a stub __cxa_demangle to disable LLVM's demangler. (Closed)

Created:
5 years, 6 months ago by simonb (inactive)
Modified:
5 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a stub __cxa_demangle to disable LLVM's demangler. LLVM's demangler is fairly large and included by default in linked binaries. Chromium's demangling happens on host systems when needed, so demangling code is not required on the target. Supplying our own stub function stops the linker pulling in the LLVM demangler from libc++, and reduces the size of libchrome.so accordingly. Results from a Release build: Before: $ size --format=SysV out/Release/chrome_apk/libs/armeabi-v7a/libchrome.so section size addr ... .text 26210064 2237952 ... Total 35736055 After: $ size --format=SysV out/Release/chrome_apk/libs/armeabi-v7a/libchrome.so section size addr ... .text 26007820 2237888 ... Total 35523543 BUG=485154 Committed: https://crrev.com/0e736a812b7aa3f3e1643929e4d0893122b70989 Cr-Commit-Position: refs/heads/master@{#336765}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M base/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A base/android/cxa_demangle_stub.cc View 1 chunk +19 lines, -0 lines 3 comments Download
M base/base.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
simonb (inactive)
5 years, 6 months ago (2015-06-26 11:42:15 UTC) #2
Andrew Hayden (chromium.org)
LGTM! Thanks.
5 years, 6 months ago (2015-06-26 12:00:54 UTC) #3
rmcilroy
https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc File base/android/cxa_demangle_stub.cc (right): https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc#newcode15 base/android/cxa_demangle_stub.cc:15: static const int kMemoryAllocFailure = -1; // LLVM's memory_alloc_failure. ...
5 years, 6 months ago (2015-06-26 12:43:49 UTC) #4
simonb (inactive)
https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc File base/android/cxa_demangle_stub.cc (right): https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc#newcode15 base/android/cxa_demangle_stub.cc:15: static const int kMemoryAllocFailure = -1; // LLVM's memory_alloc_failure. ...
5 years, 6 months ago (2015-06-26 15:00:09 UTC) #5
Nico
lgtm!
5 years, 6 months ago (2015-06-26 17:13:13 UTC) #6
rmcilroy
lgtm. https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc File base/android/cxa_demangle_stub.cc (right): https://codereview.chromium.org/1215673002/diff/1/base/android/cxa_demangle_stub.cc#newcode15 base/android/cxa_demangle_stub.cc:15: static const int kMemoryAllocFailure = -1; // LLVM's ...
5 years, 5 months ago (2015-06-29 09:24:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1215673002/1
5 years, 5 months ago (2015-06-30 10:26:09 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 5 months ago (2015-06-30 11:34:40 UTC) #10
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 11:35:34 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0e736a812b7aa3f3e1643929e4d0893122b70989
Cr-Commit-Position: refs/heads/master@{#336765}

Powered by Google App Engine
This is Rietveld 408576698