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

Issue 2802593002: Allow null other.m_parent in TraceWrapperMember::operator= if other is nullptr. (Closed)

Created:
3 years, 8 months ago by kouhei (in TOK)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow null other.m_parent in TraceWrapperMember::operator= if other is nullptr. This CL fixes the DCHECK condition in TraceWrapperMember::operator= to allow assignment of null TraceWrapperMember. This CL allows TraceWrapperMember to be used in HeapHash{Set,Map}, as HashTable::rehash operations involve assignment of empty==null TraceWrapperMembers. BUG=594639, 707123 Review-Url: https://codereview.chromium.org/2802593002 Cr-Commit-Position: refs/heads/master@{#462044} Committed: https://chromium.googlesource.com/chromium/src/+/e0828110c362763556738df32990abbc38370ebc

Patch Set 1 #

Patch Set 2 : m_parent swap test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -5 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/TraceWrapperMember.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/TraceWrapperMemberTest.cpp View 1 3 chunks +49 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (13 generated)
kouhei (in TOK)
mlippautz, haraken: PTAL tzik, yutak: for C++/WTF expertise
3 years, 8 months ago (2017-04-05 07:25:56 UTC) #3
Michael Lippautz
Can you elaborate on this change a bit? From a GC perspective this is incorrect ...
3 years, 8 months ago (2017-04-05 07:52:19 UTC) #8
Michael Lippautz
On 2017/04/05 07:52:19, Michael Lippautz wrote: > Can you elaborate on this change a bit? ...
3 years, 8 months ago (2017-04-05 07:58:49 UTC) #9
kouhei (in TOK)
On 2017/04/05 07:58:49, Michael Lippautz wrote: > On 2017/04/05 07:52:19, Michael Lippautz wrote: > > ...
3 years, 8 months ago (2017-04-05 08:01:50 UTC) #10
Michael Lippautz
On 2017/04/05 08:01:50, kouhei wrote: > On 2017/04/05 07:58:49, Michael Lippautz wrote: > > On ...
3 years, 8 months ago (2017-04-05 08:29:05 UTC) #11
kouhei (in TOK)
On 2017/04/05 08:29:05, Michael Lippautz wrote: > On 2017/04/05 08:01:50, kouhei wrote: > > On ...
3 years, 8 months ago (2017-04-05 09:52:24 UTC) #12
Yuta Kitamura
WTF-ism in the tests LGTM.
3 years, 8 months ago (2017-04-05 10:01:19 UTC) #13
haraken
LGTM
3 years, 8 months ago (2017-04-05 11:37:51 UTC) #18
Michael Lippautz
Thanks for adding the tests, lgtm
3 years, 8 months ago (2017-04-05 11:41:03 UTC) #19
kouhei (in TOK)
Thanks!
3 years, 8 months ago (2017-04-05 12:04:51 UTC) #21
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/2802593002/20001
3 years, 8 months ago (2017-04-05 12:04:56 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 12:54:29 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e0828110c362763556738df32990...

Powered by Google App Engine
This is Rietveld 408576698