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

Issue 2345013003: Remove ref_counted.cc (Closed)

Created:
4 years, 3 months ago by tzik
Modified:
4 years, 3 months ago
Reviewers:
dcheng
CC:
chromium-reviews, gavinp+memory_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ref_counted.cc This CL moves all RefCountedThreadSafeBase methods in //base/ref_counted.cc to the header as inline functions for smaller binary. RefCountedThreadSafe methods in ref_counted.cc are too small to have non-inlined function. Inlining them to the caller reduces the stripped binary size of Chromium on Linux by 84kB, since the binary size the function body are even smaller than the binary size of the function call itself. Committed: https://crrev.com/2c5c70912ccd80e712b18b4bf39f6da3d41e8847 Cr-Commit-Position: refs/heads/master@{#419973}

Patch Set 1 #

Patch Set 2 : -BASE_EXPORT #

Patch Set 3 : +NON_EXPORTED_BASE #

Patch Set 4 : revert _EXPORT part #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -59 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M base/memory/ref_counted.h View 1 2 3 1 chunk +35 lines, -5 lines 0 comments Download
D base/memory/ref_counted.cc View 1 chunk +0 lines, -53 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
tzik
PTAL
4 years, 3 months ago (2016-09-16 10:56:46 UTC) #5
dcheng
LGTM! Btw, do you have a process by which you're finding these? I wonder if ...
4 years, 3 months ago (2016-09-16 19:23:37 UTC) #8
tzik
On 2016/09/16 19:23:37, dcheng wrote: > LGTM! > > Btw, do you have a process ...
4 years, 3 months ago (2016-09-20 06:36:20 UTC) #9
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/2345013003/20001
4 years, 3 months ago (2016-09-20 06:36:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/260333)
4 years, 3 months ago (2016-09-20 08:14:23 UTC) #13
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/2345013003/60001
4 years, 3 months ago (2016-09-21 04:38:09 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-21 04:43:42 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2c5c70912ccd80e712b18b4bf39f6da3d41e8847 Cr-Commit-Position: refs/heads/master@{#419973}
4 years, 3 months ago (2016-09-21 04:45:46 UTC) #28
agrieve
On 2016/09/21 04:45:46, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
4 years, 3 months ago (2016-09-22 15:37:00 UTC) #29
agrieve
4 years, 2 months ago (2016-09-26 18:17:44 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2366323003/ by agrieve@chromium.org.

The reason for reverting is: Increased Android .so by 50kb rather than shrinking
it..

Powered by Google App Engine
This is Rietveld 408576698