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

Issue 2852893002: Made RefPtr constructor only accept PassRefPtr rvalues. (Closed)

Created:
3 years, 7 months ago by Bugs Nash
Modified:
3 years, 7 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Made RefPtr constructor only accept PassRefPtr rvalues. Changed RefPtr constructor PassRefPtr argument from const lvalue to rvalue so that PassRefPtr objects cannot be copied into RefPtr objects. PassRefPtr objects being copied into RefPtr objects represent places that would introduce ref churn in future patches when PassRefPtr objects will be replaced with RefPtr objects. All instances of PassRefPtr to RefPtr copies have been removed from the code base, and this change prevents new instances from being added. BUG=494719 Review-Url: https://codereview.chromium.org/2852893002 Cr-Commit-Position: refs/heads/master@{#471200} Committed: https://chromium.googlesource.com/chromium/src/+/7e967b1611c47d7a0ee53e2c921201cc1509d5da

Patch Set 1 #

Patch Set 2 : added move wrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/PODRedBlackTree.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/wtf/RefPtr.h View 2 chunks +2 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (17 generated)
Bugs Nash
3 years, 7 months ago (2017-05-01 00:24:46 UTC) #4
haraken
LGTM
3 years, 7 months ago (2017-05-01 00:26:59 UTC) #5
Bugs Nash
Looks like I need to make some changes in unit tests before this one can ...
3 years, 7 months ago (2017-05-01 00:49:12 UTC) #8
Yuta Kitamura
The change itself LGTM yay! This will be still LGTM if you just need to ...
3 years, 7 months ago (2017-05-01 04:51:51 UTC) #9
Bugs Nash
added branch dependency
3 years, 7 months ago (2017-05-08 02:55:51 UTC) #10
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/2852893002/20001
3 years, 7 months ago (2017-05-09 22:47:07 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/264345)
3 years, 7 months ago (2017-05-09 23:28:32 UTC) #19
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/2852893002/20001
3 years, 7 months ago (2017-05-10 05:13:37 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/422607)
3 years, 7 months ago (2017-05-10 05:34:35 UTC) #23
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/2852893002/20001
3 years, 7 months ago (2017-05-12 01:09:31 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 03:03:55 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7e967b1611c47d7a0ee53e2c9212...

Powered by Google App Engine
This is Rietveld 408576698