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

Issue 2959203002: Move base::WeakPtrFactory's ctor and dtor out-of-line (Closed)

Created:
3 years, 5 months ago by hans
Modified:
3 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews, danakj+watch_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move base::WeakPtrFactory's ctor and dtor out-of-line They already invoke the out-of-line ctor/dtor for WeakReferenceOwner, so inlining the bit that sets up ptr_ is not a performance improvement and costs binary size. Since WeakPtrFactory is a template, move the members into a non-template base-class with the ctor/dtor out-of-line. This is expected to reduce the binary size by ~4KB on Android and 24KB on x64 Linux. BUG=728324 Review-Url: https://codereview.chromium.org/2959203002 Cr-Commit-Position: refs/heads/master@{#483139} Committed: https://chromium.googlesource.com/chromium/src/+/d2a722f6bd23eaf0f791b19378c639dce6b3c2c0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M base/memory/weak_ptr.h View 2 chunks +16 lines, -7 lines 0 comments Download
M base/memory/weak_ptr.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
hans
Split out from https://codereview.chromium.org/2963623002/ Please take a look.
3 years, 5 months ago (2017-06-28 19:58:10 UTC) #6
Nico
lgtm
3 years, 5 months ago (2017-06-28 20:48:19 UTC) #7
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/2959203002/1
3 years, 5 months ago (2017-06-28 21:07:20 UTC) #10
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 21:13:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d2a722f6bd23eaf0f791b19378c6...

Powered by Google App Engine
This is Rietveld 408576698