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

Issue 250883002: Fix |RunMicrotasks()| leaking reference to the last context being run on. (Closed)

Created:
6 years, 8 months ago by kouhei (in TOK)
Modified:
6 years, 7 months ago
Reviewers:
rossberg, rafaelw
CC:
v8-dev, yhirano, jochen (gone - plz use gerrit)
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Fix |RunMicrotasks()| leaking reference to the last context being run on. RunMicrotasks() executes pending tasks and swaps the old array with a new array. However, the new array contains the reference to the current context as its creation context. This prevents the context from gc-ed until RunMicrotasks() is executed in the different context. BUG=crbug.com/367016 LOG=y R=rafaelw@chromium.org, rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21111

Patch Set 1 #

Patch Set 2 : fix base url #

Patch Set 3 : undefined #

Patch Set 4 : remove GetMicrotaskQueue #

Total comments: 4

Patch Set 5 : remove external_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -21 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M src/contexts.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/execution.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/object-observe.js View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/promise.js View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/v8natives.js View 1 2 3 4 3 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kouhei (in TOK)
Would you take a look?
6 years, 8 months ago (2014-04-25 07:42:02 UTC) #1
Yang
On 2014/04/25 07:42:02, kouhei wrote: > Would you take a look? drive by: using delete ...
6 years, 8 months ago (2014-04-25 07:47:42 UTC) #2
rossberg
On 2014/04/25 07:47:42, Yang wrote: > On 2014/04/25 07:42:02, kouhei wrote: > > Would you ...
6 years, 8 months ago (2014-04-25 07:50:14 UTC) #3
kouhei (in TOK)
PTAL. On 2014/04/25 07:50:14, rossberg wrote: > On 2014/04/25 07:47:42, Yang wrote: > > On ...
6 years, 8 months ago (2014-04-25 08:02:53 UTC) #4
rossberg
LGTM, but perhaps let Rafael have a look, too, before committing.
6 years, 8 months ago (2014-04-25 09:15:25 UTC) #5
rafaelw
Will you please refactor this so that clients call EnqueueMicrotask(fn) rather than GetMicrotaskQueue(). This patch ...
6 years, 8 months ago (2014-04-25 19:58:19 UTC) #6
kouhei (in TOK)
On 2014/04/25 19:58:19, rafaelw wrote: > Will you please refactor this so that clients call ...
6 years, 8 months ago (2014-04-28 03:47:07 UTC) #7
rafaelw
lgtm w/ nits https://codereview.chromium.org/250883002/diff/60001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/250883002/diff/60001/src/bootstrapper.cc#newcode1556 src/bootstrapper.cc:1556: enqueue_external_microtask); Can you please update enqueue_external_microtask ...
6 years, 8 months ago (2014-04-28 05:09:33 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/250883002/diff/60001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/250883002/diff/60001/src/bootstrapper.cc#newcode1556 src/bootstrapper.cc:1556: enqueue_external_microtask); On 2014/04/28 05:09:34, rafaelw wrote: > Can you ...
6 years, 8 months ago (2014-04-28 05:22:29 UTC) #9
kouhei (in TOK)
haraken: Would you land this patch for me? I'm not a v8 committer.
6 years, 7 months ago (2014-04-30 01:05:17 UTC) #10
haraken
On 2014/04/30 01:05:17, kouhei wrote: > haraken: Would you land this patch for me? I'm ...
6 years, 7 months ago (2014-04-30 01:11:20 UTC) #11
haraken
On 2014/04/30 01:11:20, haraken wrote: > On 2014/04/30 01:05:17, kouhei wrote: > > haraken: Would ...
6 years, 7 months ago (2014-04-30 01:15:16 UTC) #12
kouhei (in TOK)
haraken: Would you try again?
6 years, 7 months ago (2014-05-01 00:43:31 UTC) #13
kouhei (in TOK)
On 2014/05/01 00:43:31, kouhei wrote: > haraken: Would you try again? ping
6 years, 7 months ago (2014-05-02 01:18:24 UTC) #14
haraken
6 years, 7 months ago (2014-05-02 08:01:00 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 manually as r21111 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698