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

Issue 2147833002: Make loader lock new-allocated to avoid shutdown crash. (Closed)

Created:
4 years, 5 months ago by Florian Schneider
Modified:
4 years, 5 months ago
Reviewers:
zra, siva
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make loader lock new-allocated to avoid shutdown crash. Process::Exit does not do the normal shutdown procedure - this CL avoids a crash in the static destructor of the loader info lock by making it new-allocated. Also remove --shutdown flag since the clean shutdown procedure is on by default since a while now. BUG=#26846 R=asiva@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/63e3f4dc8b53cf2707412e473462988e2b8269b0

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -145 lines) Patch
M runtime/bin/loader.h View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/bin/loader.cc View 4 chunks +10 lines, -5 lines 3 comments Download
M runtime/bin/main.cc View 8 chunks +6 lines, -44 lines 0 comments Download
M runtime/vm/dart.cc View 2 chunks +73 lines, -90 lines 0 comments Download
M runtime/vm/service_isolate.cc View 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Florian Schneider
@zra: Do you remember why Process_Exit does not do the clean shutdown procedure?
4 years, 5 months ago (2016-07-12 23:56:09 UTC) #2
siva
LGTM but please wait for Zach's comment about whether he is ok with removing the ...
4 years, 5 months ago (2016-07-13 00:03:42 UTC) #3
zra
On 2016/07/12 23:56:09, Florian Schneider wrote: > @zra: Do you remember why Process_Exit does not ...
4 years, 5 months ago (2016-07-13 14:47:54 UTC) #4
zra
flag removal lgtm https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc File runtime/bin/loader.cc (right): https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc#newcode612 runtime/bin/loader.cc:612: loader_infos_lock_ = new Mutex(); Can this ...
4 years, 5 months ago (2016-07-13 14:51:38 UTC) #5
Florian Schneider
https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc File runtime/bin/loader.cc (right): https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc#newcode612 runtime/bin/loader.cc:612: loader_infos_lock_ = new Mutex(); On 2016/07/13 14:51:38, zra wrote: ...
4 years, 5 months ago (2016-07-13 16:13:58 UTC) #6
zra
https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc File runtime/bin/loader.cc (right): https://codereview.chromium.org/2147833002/diff/1/runtime/bin/loader.cc#newcode612 runtime/bin/loader.cc:612: loader_infos_lock_ = new Mutex(); On 2016/07/13 16:13:58, Florian Schneider ...
4 years, 5 months ago (2016-07-13 16:16:06 UTC) #7
Florian Schneider
4 years, 5 months ago (2016-07-13 16:41:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
63e3f4dc8b53cf2707412e473462988e2b8269b0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698