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

Issue 1108663002: Do not invoke async method on a GC-unreachable object. (Closed)

Created:
5 years, 8 months ago by sof
Modified:
5 years, 8 months ago
Reviewers:
haraken
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Do not invoke async method on a GC-unreachable object. For AsyncMethodRunner<Target> where Target is a garbage collected type, we cannot have the async method runner safely call a method on an object instance if that object has been determined as being unreachable by the GC marking phase, but it _or_ any of the objects that it refers to hasn't been swept yet. This aligns the treatment of AsyncMethodRunner<> over garbage collected objects with that of Timer<>. R=haraken BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194437

Patch Set 1 #

Total comments: 2

Patch Set 2 : Clarify that added is-alive check will be redundant once object is on the heap #

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

Messages

Total messages: 10 (3 generated)
sof
Please take a look.
5 years, 8 months ago (2015-04-24 21:38:42 UTC) #2
haraken
LGTM https://codereview.chromium.org/1108663002/diff/1/Source/platform/AsyncMethodRunner.h File Source/platform/AsyncMethodRunner.h (right): https://codereview.chromium.org/1108663002/diff/1/Source/platform/AsyncMethodRunner.h#newcode125 Source/platform/AsyncMethodRunner.h:125: if (!TimerIsObjectAliveTrait<TargetClass>::isHeapObjectAlive(m_object)) Can we have a comment to ...
5 years, 8 months ago (2015-04-25 08:02:08 UTC) #3
sof
https://codereview.chromium.org/1108663002/diff/1/Source/platform/AsyncMethodRunner.h File Source/platform/AsyncMethodRunner.h (right): https://codereview.chromium.org/1108663002/diff/1/Source/platform/AsyncMethodRunner.h#newcode125 Source/platform/AsyncMethodRunner.h:125: if (!TimerIsObjectAliveTrait<TargetClass>::isHeapObjectAlive(m_object)) On 2015/04/25 08:02:07, haraken wrote: > > ...
5 years, 8 months ago (2015-04-25 09:10:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1108663002/20001
5 years, 8 months ago (2015-04-25 09:10:52 UTC) #7
sof
Somewhat related, so let me make this observation/comment here (for lack of a better place ...
5 years, 8 months ago (2015-04-25 10:20:31 UTC) #8
haraken
On 2015/04/25 10:20:31, sof wrote: > Somewhat related, so let me make this observation/comment here ...
5 years, 8 months ago (2015-04-25 13:21:55 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-25 16:35:45 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194437

Powered by Google App Engine
This is Rietveld 408576698