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

Issue 260723003: [oilpan]: Make parking threads for GC timeout in the case parking exceeds 100 MS (Closed)

Created:
6 years, 7 months ago by wibling-chromium
Modified:
6 years, 7 months ago
CC:
blink-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Visibility:
Public.

Description

[oilpan]: Make parking threads for GC timeout in the case parking exceeds 100 MS. This is to avoid issues where a GC is hanging forever waiting for a thread to reach a safepoint. This should not happen, but in the case it does we would rather abandon the GC and attempt it again later. R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173646

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix currentTime for blink_heap_unittests + review feedback #

Patch Set 3 : #

Patch Set 4 : Add safepoint scopes around yield #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -51 lines) Patch
M Source/platform/heap/Heap.cpp View 1 2 3 chunks +20 lines, -8 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 10 chunks +84 lines, -10 lines 0 comments Download
M Source/platform/heap/RunAllTests.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 7 chunks +52 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wibling-chromium
6 years, 7 months ago (2014-04-30 13:03:20 UTC) #1
haraken
The approach looks reasonable, although I see a threading issue. Intuitively, 10 ms sounds too ...
6 years, 7 months ago (2014-05-01 04:03:56 UTC) #2
wibling-chromium
Thanks for the review. I agree 10 MS are probably too little. I will experiment ...
6 years, 7 months ago (2014-05-01 06:51:48 UTC) #3
zerny-chromium
I find your reply to Haraken's questions sound. LGTM with minor formatting change/revert. https://codereview.chromium.org/260723003/diff/1/Source/platform/heap/ThreadState.cpp File ...
6 years, 7 months ago (2014-05-01 07:05:38 UTC) #4
haraken
I think we need to be careful about the timeout value, since we cannot expect ...
6 years, 7 months ago (2014-05-01 07:33:50 UTC) #5
Erik Corry
I think if 10ms is not enough we need to consider adding more safe points. ...
6 years, 7 months ago (2014-05-01 08:11:30 UTC) #6
haraken
> I think if 10ms is not enough we need to consider adding more safe ...
6 years, 7 months ago (2014-05-01 08:21:11 UTC) #7
wibling-chromium
https://codereview.chromium.org/260723003/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/260723003/diff/1/Source/platform/heap/ThreadState.cpp#newcode144 Source/platform/heap/ThreadState.cpp:144: resumeOthers(true); On 2014/05/01 07:33:50, haraken wrote: > On 2014/05/01 ...
6 years, 7 months ago (2014-05-01 08:25:18 UTC) #8
haraken
LGTM. https://codereview.chromium.org/260723003/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/260723003/diff/1/Source/platform/heap/ThreadState.cpp#newcode144 Source/platform/heap/ThreadState.cpp:144: resumeOthers(true); On 2014/05/01 08:25:18, wibling-chromium wrote: > On ...
6 years, 7 months ago (2014-05-01 08:36:31 UTC) #9
Mads Ager (chromium)
LGTM This would have avoided the deadlock we caused because of a missing safepoint in ...
6 years, 7 months ago (2014-05-01 09:02:01 UTC) #10
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 7 months ago (2014-05-08 13:00:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/260723003/60001
6 years, 7 months ago (2014-05-08 13:01:46 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 13:23:09 UTC) #13
Message was sent while issue was closed.
Change committed as 173646

Powered by Google App Engine
This is Rietveld 408576698