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

Issue 1467493002: We mustn't finalize sweeping when V8 started collecting garbage. (Closed)

Created:
5 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
5 years, 1 month ago
Reviewers:
haraken, sof
CC:
Mads Ager (chromium), blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, kouhei+heap_chromium.org, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

We mustn't finalize sweeping when V8 started collecting garbage. The finalizers might call into V8 which is not safe to do. There's actually a script forbidden scope on the stack in the prologue, but it's created right after the call to finialize sweeping, so it didn't catch this before. BUG=none R=sigbjornf@opera.com,haraken@chromium.org Committed: https://crrev.com/93276fb7983b7794cc533581462f7c39e623dea5 Cr-Commit-Position: refs/heads/master@{#360834}

Patch Set 1 #

Total comments: 2

Patch Set 2 : updates #

Total comments: 2

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp View 1 2 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (1 generated)
jochen (gone - plz use gerrit)
5 years, 1 month ago (2015-11-20 14:35:42 UTC) #1
sof
https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp File third_party/WebKit/Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp#newcode635 third_party/WebKit/Source/platform/heap/ThreadState.cpp:635: // The fact that the PageNavigation GC is scheduled ...
5 years, 1 month ago (2015-11-20 14:39:37 UTC) #2
haraken
LGTM But we cannot simply remove the completeSweep because the completeSweep is important to collect ...
5 years, 1 month ago (2015-11-20 14:41:53 UTC) #3
haraken
On 2015/11/20 14:39:37, sof wrote: > https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp > File third_party/WebKit/Source/platform/heap/ThreadState.cpp (right): > > https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp#newcode635 > ...
5 years, 1 month ago (2015-11-20 14:43:03 UTC) #4
jochen (gone - plz use gerrit)
On 2015/11/20 at 14:41:53, haraken wrote: > LGTM > > But we cannot simply remove ...
5 years, 1 month ago (2015-11-20 14:44:20 UTC) #5
jochen (gone - plz use gerrit)
On 2015/11/20 at 14:43:03, haraken wrote: > On 2015/11/20 14:39:37, sof wrote: > > https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp ...
5 years, 1 month ago (2015-11-20 14:46:05 UTC) #6
sof
On 2015/11/20 14:43:03, haraken wrote: > On 2015/11/20 14:39:37, sof wrote: > > > https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp ...
5 years, 1 month ago (2015-11-20 14:46:12 UTC) #7
jochen (gone - plz use gerrit)
(new patchset uploaded) https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp File third_party/WebKit/Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1467493002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp#newcode635 third_party/WebKit/Source/platform/heap/ThreadState.cpp:635: // The fact that the PageNavigation ...
5 years, 1 month ago (2015-11-20 14:46:18 UTC) #8
haraken
On 2015/11/20 14:46:05, jochen wrote: > On 2015/11/20 at 14:43:03, haraken wrote: > > On ...
5 years, 1 month ago (2015-11-20 14:51:56 UTC) #9
jochen (gone - plz use gerrit)
On 2015/11/20 at 14:51:56, haraken wrote: > On 2015/11/20 14:46:05, jochen wrote: > > On ...
5 years, 1 month ago (2015-11-20 14:59:51 UTC) #10
haraken
LGTM https://codereview.chromium.org/1467493002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (left): https://codereview.chromium.org/1467493002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp#oldcode279 third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:279: Would you move this to after ScriptForbiddenScope::enter() and ...
5 years, 1 month ago (2015-11-20 15:11:35 UTC) #11
jochen (gone - plz use gerrit)
ptal
5 years, 1 month ago (2015-11-20 15:18:10 UTC) #12
haraken
On 2015/11/20 15:18:10, jochen wrote: > ptal thanks, LGTM
5 years, 1 month ago (2015-11-20 15:21:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467493002/40001
5 years, 1 month ago (2015-11-20 15:22:07 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-20 16:33:03 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/93276fb7983b7794cc533581462f7c39e623dea5 Cr-Commit-Position: refs/heads/master@{#360834}
5 years, 1 month ago (2015-11-20 16:34:17 UTC) #17
sof
5 years, 1 month ago (2015-11-20 19:34:39 UTC) #18
Message was sent while issue was closed.
Oilpan bots liked this one very much, thanks! :)

Powered by Google App Engine
This is Rietveld 408576698