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

Issue 1647443002: Delay destructing ChildDiscardableSharedMemoryManager (Closed)

Created:
4 years, 11 months ago by haraken
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delay destructing ChildDiscardableSharedMemoryManager The current shutdown sequence is as follows: 1) ChildThreadImpl::Shutdown 2) ChildDiscardableSharedMemoryManager gets destructed 3) Message loop is closed 4) blink::shutdown This is problematic because blink::shutdown triggers an Oilpan's GC, which destructs some Resources in Blink, which calls ChildDiscardableSharedMemoryManager::Unlock. However, the ChildDiscardableSharedMemoryManager is already destructed, so it crashes. Thus this CL moves 2) to after 4). BUG=581593 Committed: https://crrev.com/534ab85fcdb3210d6ac8250a146a3aa68c1079cf Cr-Commit-Position: refs/heads/master@{#372283}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M content/child/child_thread_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
haraken
jochen@: PTAL Enabling Oilpan exposed the crash, but I guess the potential bug had already ...
4 years, 11 months ago (2016-01-27 15:23:37 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years, 11 months ago (2016-01-27 15:27:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647443002/20001
4 years, 11 months ago (2016-01-27 15:28:35 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/107625)
4 years, 11 months ago (2016-01-27 15:43:35 UTC) #7
haraken
OK, now all tests pass. reveman@: PTAL. You moved ChildDiscardableSharedMemoryManager's destruction to a time when ...
4 years, 10 months ago (2016-01-28 08:40:02 UTC) #10
reveman
On 2016/01/28 at 08:40:02, haraken wrote: > OK, now all tests pass. > > reveman@: ...
4 years, 10 months ago (2016-01-28 23:50:58 UTC) #11
haraken
On 2016/01/28 23:50:58, reveman wrote: > On 2016/01/28 at 08:40:02, haraken wrote: > > OK, ...
4 years, 10 months ago (2016-01-28 23:56:00 UTC) #12
reveman
On 2016/01/28 at 23:56:00, haraken wrote: > On 2016/01/28 23:50:58, reveman wrote: > > On ...
4 years, 10 months ago (2016-01-29 01:56:57 UTC) #13
haraken
On 2016/01/29 01:56:57, reveman wrote: > On 2016/01/28 at 23:56:00, haraken wrote: > > On ...
4 years, 10 months ago (2016-01-29 02:22:53 UTC) #14
reveman
lgtm
4 years, 10 months ago (2016-01-29 03:43:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647443002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647443002/160001
4 years, 10 months ago (2016-01-29 03:44:43 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-01-29 03:53:04 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 03:54:06 UTC) #22
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/534ab85fcdb3210d6ac8250a146a3aa68c1079cf
Cr-Commit-Position: refs/heads/master@{#372283}

Powered by Google App Engine
This is Rietveld 408576698