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

Issue 1962513002: Upon clearing, release PersistentNode of cross-thread-persistent also. (Closed)

Created:
4 years, 7 months ago by sof
Modified:
4 years, 7 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upon clearing, release PersistentNode of cross-thread-persistent also. Persistent<>s will only allocate an associated PersistentNode when the heap reference is non-null. And, dually, free the PersistentNode when the reference is cleared out and set to null. Extend that freeing of a PersistentNode upon clearing to also apply to CrossThreadPersistent<>s, making the behavior and lifetimes of PersistentNodes consistent across both variants of persistent references. R=haraken BUG=483380 NOTRY=true Committed: https://crrev.com/f8abd7cb1432b8df3e44e038079d1a2aedf993d9 Cr-Commit-Position: refs/heads/master@{#392287}

Patch Set 1 #

Patch Set 2 : tweak #

Patch Set 3 : extend unit test #

Patch Set 4 : compile fix #

Patch Set 5 : tidy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -11 lines) Patch
M third_party/WebKit/Source/platform/heap/Handle.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 1 2 3 4 2 chunks +24 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/PersistentNode.h View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
sof
please take a look. Been thinking about CrossThreadPersistent<>s off&on lately, and the clearing done of ...
4 years, 7 months ago (2016-05-08 15:05:46 UTC) #2
haraken
LGTM
4 years, 7 months ago (2016-05-09 01:03:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962513002/80001
4 years, 7 months ago (2016-05-09 05:09:39 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/224065)
4 years, 7 months ago (2016-05-09 06:09:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962513002/80001
4 years, 7 months ago (2016-05-09 06:20:23 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-09 06:23:29 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/f8abd7cb1432b8df3e44e038079d1a2aedf993d9 Cr-Commit-Position: refs/heads/master@{#392287}
4 years, 7 months ago (2016-05-09 06:24:28 UTC) #17
sof
4 years, 7 months ago (2016-05-10 08:30:42 UTC) #18
Message was sent while issue was closed.
fyi, spending some time chasing down a flaky crasher which shows up most likely
because of this CL,


https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux__db...

I don't understand how the CTP could end up in that state, but if I still don't
before too long, will revert and investigate locally.

Powered by Google App Engine
This is Rietveld 408576698