Chromium Code Reviews

Issue 2009093002: Fix for sync filesystem app crash. (Closed)

Created:
4 years, 7 months ago by achuithb
Modified:
4 years, 6 months ago
Reviewers:
haraken, jsbell, jianli
CC:
chromium-reviews, darin-cc_chromium.org, jam, kinuko+fileapi, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for sync filesystem app crash. Previously removing the SafePointScope had a risk of producing a dead lock if the following scenario happens: 1) The main thread starts a GC and tries to stop all other threads. 2) The worker thread is waiting on a signal without entering the SafePointScope. The main thread cannot stop the worker thread forever and thus cannot make progress. Dead lock. However, (to avoid this kind of dead lock) code has been added to timeout the GC if the GCing thread fails at stopping other threads within 100 ms. So not entering SafePointScope will just cause the timeout -- it won't cause a dead lock. This fixes a hard-to-reproduce timing bug that's been a big concern of one of our partners. BUG=592124, 608603 TEST=manual Committed: https://crrev.com/f466a07e32ce1c8083dc726c7391e68b2ff2e7b0 Cr-Commit-Position: refs/heads/master@{#399265}

Patch Set 1 #

Unified diffs Side-by-side diffs Stats (+1 line, -5 lines)
M content/child/fileapi/webfilesystem_impl.cc View 2 chunks +1 line, -5 lines 0 comments

Messages

Total messages: 22 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009093002/1
4 years, 7 months ago (2016-05-24 22:39:51 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-25 00:16:22 UTC) #4
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 00:16:36 UTC) #5
achuithb
PTAL Joshua
4 years, 6 months ago (2016-06-09 23:11:15 UTC) #7
haraken
Per our offline discussion, LGTM (though I'm not an owner). Please add the rationale to ...
4 years, 6 months ago (2016-06-09 23:46:19 UTC) #8
achuithb
On 2016/06/09 23:46:19, haraken wrote: > Per our offline discussion, LGTM (though I'm not an ...
4 years, 6 months ago (2016-06-10 00:10:19 UTC) #10
achuithb
Jian Li: Could I please get an owner lgtm?
4 years, 6 months ago (2016-06-10 00:11:02 UTC) #12
jianli
lgtm
4 years, 6 months ago (2016-06-10 00:12:13 UTC) #13
jsbell
lgtm
4 years, 6 months ago (2016-06-10 19:15:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009093002/1
4 years, 6 months ago (2016-06-10 19:27:45 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-10 20:56:30 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 20:56:45 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 20:59:17 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f466a07e32ce1c8083dc726c7391e68b2ff2e7b0
Cr-Commit-Position: refs/heads/master@{#399265}

Powered by Google App Engine