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

Issue 2686533003: Move postGC out of CrossThreadPersistentRegion::LockScope (Closed)

Created:
3 years, 10 months ago by keishi
Modified:
3 years, 10 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move postGC out of CrossThreadPersistentRegion::LockScope Some finalizers/prefinalizers acquire locks, causing a dead lock when CrossThreadPersistent tries to acquire the CrossThreadPersistentRegion lock. This CL moves the postGC step outside of the CrossThreadPersistentRegion::LockScope. This should be okay as the CrossThreadPersistentRegion::LockScope only exists to avoid add/deletetion of CrossThreadPersistentNodes during marking. BUG=684856, 685624, 685624 Review-Url: https://codereview.chromium.org/2686533003 Cr-Commit-Position: refs/heads/master@{#450251} Committed: https://chromium.googlesource.com/chromium/src/+/52b19c8f68c222c08944af937a01f3ff7e46705c

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Total comments: 2

Patch Set 8 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -89 lines) Patch
M third_party/WebKit/Source/platform/heap/Heap.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 6 2 chunks +91 lines, -86 lines 0 comments Download

Messages

Total messages: 47 (36 generated)
keishi
I tried removing the lock from the AudioNode prefinalizer, but I think the way it ...
3 years, 10 months ago (2017-02-09 04:34:21 UTC) #11
haraken
On 2017/02/09 04:34:21, keishi wrote: > I tried removing the lock from the AudioNode prefinalizer, ...
3 years, 10 months ago (2017-02-09 04:47:51 UTC) #12
sof
On 2017/02/09 04:47:51, haraken wrote: > On 2017/02/09 04:34:21, keishi wrote: > > I tried ...
3 years, 10 months ago (2017-02-09 06:46:01 UTC) #15
haraken
On 2017/02/09 06:46:01, sof wrote: > On 2017/02/09 04:47:51, haraken wrote: > > On 2017/02/09 ...
3 years, 10 months ago (2017-02-09 07:15:11 UTC) #16
sof
On 2017/02/09 07:15:11, haraken wrote: > On 2017/02/09 06:46:01, sof wrote: > > On 2017/02/09 ...
3 years, 10 months ago (2017-02-09 07:25:16 UTC) #17
haraken
On 2017/02/09 07:25:16, sof wrote: > On 2017/02/09 07:15:11, haraken wrote: > > On 2017/02/09 ...
3 years, 10 months ago (2017-02-09 07:35:28 UTC) #18
keishi
On 2017/02/09 04:47:51, haraken wrote: > On 2017/02/09 04:34:21, keishi wrote: > > I tried ...
3 years, 10 months ago (2017-02-13 12:24:36 UTC) #39
haraken
LGTM https://codereview.chromium.org/2686533003/diff/120001/third_party/WebKit/Source/platform/heap/ThreadState.h File third_party/WebKit/Source/platform/heap/ThreadState.h (right): https://codereview.chromium.org/2686533003/diff/120001/third_party/WebKit/Source/platform/heap/ThreadState.h#newcode230 third_party/WebKit/Source/platform/heap/ThreadState.h:230: // pre-finalization, eager sweeping and heap compaction. Update ...
3 years, 10 months ago (2017-02-13 16:56:24 UTC) #40
keishi
https://codereview.chromium.org/2686533003/diff/120001/third_party/WebKit/Source/platform/heap/ThreadState.h File third_party/WebKit/Source/platform/heap/ThreadState.h (right): https://codereview.chromium.org/2686533003/diff/120001/third_party/WebKit/Source/platform/heap/ThreadState.h#newcode230 third_party/WebKit/Source/platform/heap/ThreadState.h:230: // pre-finalization, eager sweeping and heap compaction. On 2017/02/13 ...
3 years, 10 months ago (2017-02-14 01:18:21 UTC) #41
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/2686533003/140001
3 years, 10 months ago (2017-02-14 01:26:59 UTC) #44
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 04:48:28 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/52b19c8f68c222c08944af937a01...

Powered by Google App Engine
This is Rietveld 408576698