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

Issue 2207333002: Support CrossThreadWeakPersistent PostTask on per thread heap enabled thread (Closed)

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

Description

Support CrossThreadWeakPersistent PostTask on per thread heap enabled thread Implements Unwrap(CrossThreadWeakPersistent) that returns a CrossThreadPersistent so the object doesn't get collected during callback invocation. BUG=591606 Committed: https://crrev.com/56b559a7548bb3928df3ac0d57a57b84dc170826 Cr-Commit-Position: refs/heads/master@{#418516}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 3

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/heap/Persistent.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
keishi
PTAL tzik@: You were worried about Unwrap being called after shutdown and creating a new ...
4 years, 4 months ago (2016-08-18 05:27:33 UTC) #3
haraken
> Implements Unwrap(CrossThreadWeakPersistent) that returns a CrossThreadPersistent so the object doesn't get collected during callback ...
4 years, 4 months ago (2016-08-18 08:43:27 UTC) #4
tzik
On 2016/08/18 08:43:27, haraken wrote: > > Implements Unwrap(CrossThreadWeakPersistent) that returns a > CrossThreadPersistent so ...
4 years, 4 months ago (2016-08-18 13:02:35 UTC) #5
haraken
https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode78 third_party/WebKit/Source/platform/heap/Persistent.h:78: CrossThreadPersistentRegion::LockScope persistentLock(ProcessHeap::crossThreadPersistentRegion()); I wonder why you need to add ...
4 years, 4 months ago (2016-08-18 13:15:31 UTC) #6
keishi
https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode78 third_party/WebKit/Source/platform/heap/Persistent.h:78: CrossThreadPersistentRegion::LockScope persistentLock(ProcessHeap::crossThreadPersistentRegion()); On 2016/08/18 13:15:31, haraken wrote: > > ...
4 years, 4 months ago (2016-08-22 09:48:55 UTC) #7
haraken
https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2207333002/diff/40001/third_party/WebKit/Source/platform/heap/Persistent.h#newcode78 third_party/WebKit/Source/platform/heap/Persistent.h:78: CrossThreadPersistentRegion::LockScope persistentLock(ProcessHeap::crossThreadPersistentRegion()); On 2016/08/22 09:48:55, keishi wrote: > On ...
4 years, 4 months ago (2016-08-22 13:59:59 UTC) #8
keishi
For example MessagePort::messageAvailable() does: getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&MessagePort::dispatchMessages, wrapCrossThreadWeakPersistent(this))); To ensure |this| is not destroyed while the ...
4 years, 3 months ago (2016-09-14 07:32:08 UTC) #10
haraken
LGTM
4 years, 3 months ago (2016-09-14 07:38:45 UTC) #11
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/2207333002/60001
4 years, 3 months ago (2016-09-14 07:41:06 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-14 09:16:08 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 09:17:53 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/56b559a7548bb3928df3ac0d57a57b84dc170826
Cr-Commit-Position: refs/heads/master@{#418516}

Powered by Google App Engine
This is Rietveld 408576698