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

Issue 1177153005: Enables clean VM shutdown. (Closed)

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

Description

Enables clean VM shutdown. . Disables isolate spawning during Dart_Cleanup. . Adds a static call Isolate::KillAllIsolates, which sends the OOB Kill message to all isolates when called from Dart_Cleanup. . Modifies thread pool shutdown to block until all threads have exited. . Fixes tests. BUG= R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/174d552574f871d9f717e7014f0a685a1017dc52

Patch Set 1 #

Patch Set 2 : Make enums public #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Kill isolates from API call #

Patch Set 6 #

Patch Set 7 : Kill isolates from the service isolate #

Total comments: 16

Patch Set 8 : Cleanup after Isolate creation failure #

Patch Set 9 : Address comments #

Patch Set 10 : Remove shutdown timeout #

Patch Set 11 : Dart_Initialize and Dart_Cleanup return strings #

Patch Set 12 : Disable isolate creation during shutdown #

Patch Set 13 : Fix test #

Patch Set 14 : Disable isolate creation through failed list add #

Patch Set 15 : Back out ThreadPool AllStatic-ness #

Patch Set 16 : Restore some ThreadPool tests, cleanup #

Patch Set 17 : Use CObject message to kill isolates #

Patch Set 18 : Service isolate fixes #

Patch Set 19 : Remove debug print #

Total comments: 18

Patch Set 20 : Address comments #

Patch Set 21 : Fix error propagation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+608 lines, -235 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +61 lines, -47 lines 0 comments Download
M runtime/bin/dbg_message.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -9 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +33 lines, -12 lines 0 comments Download
M runtime/bin/process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -2 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/vmservice/vmservice_io.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +6 lines, -5 lines 0 comments Download
A runtime/tests/vm/dart/spawn_infinite_loop_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +18 lines, -0 lines 0 comments Download
A runtime/tests/vm/dart/spawn_shutdown_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +32 lines, -0 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/cpuinfo_test.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +12 lines, -14 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +10 lines, -8 lines 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +11 lines, -2 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 13 chunks +148 lines, -49 lines 0 comments Download
M runtime/vm/message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/service_isolate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/service_isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -3 lines 0 comments Download
M runtime/vm/thread_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +19 lines, -8 lines 0 comments Download
M runtime/vm/thread_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +115 lines, -32 lines 0 comments Download
M runtime/vm/thread_pool_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +49 lines, -29 lines 0 comments Download
M runtime/vm/verified_memory_test.cc View 1 2 3 4 6 chunks +13 lines, -0 lines 0 comments Download
M tests/isolate/nested_spawn2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/nested_spawn_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
zra
I'll work on any changes that are needed the week of the 29th when I ...
5 years, 6 months ago (2015-06-20 04:57:36 UTC) #2
zra
+turnidge for thread pool changes.
5 years, 6 months ago (2015-06-20 04:58:20 UTC) #4
turnidge
https://codereview.chromium.org/1177153005/diff/120001/runtime/bin/dbg_message.cc File runtime/bin/dbg_message.cc (right): https://codereview.chromium.org/1177153005/diff/120001/runtime/bin/dbg_message.cc#newcode1406 runtime/bin/dbg_message.cc:1406: DebuggerConnectionHandler::WaitForConnection(); What led to the changes in this file? ...
5 years, 5 months ago (2015-06-30 22:15:47 UTC) #5
zra
https://codereview.chromium.org/1177153005/diff/120001/runtime/bin/dbg_message.cc File runtime/bin/dbg_message.cc (right): https://codereview.chromium.org/1177153005/diff/120001/runtime/bin/dbg_message.cc#newcode1406 runtime/bin/dbg_message.cc:1406: DebuggerConnectionHandler::WaitForConnection(); On 2015/06/30 22:15:46, turnidge wrote: > What led ...
5 years, 5 months ago (2015-07-20 22:23:39 UTC) #6
zra
ping
5 years, 5 months ago (2015-07-22 14:38:40 UTC) #7
turnidge
On 2015/07/22 14:38:40, zra wrote: > ping Hi Zach, I will get to this review ...
5 years, 4 months ago (2015-07-28 18:01:46 UTC) #8
zra
I have made the changes we discussed on Thursday. PTAL.
5 years, 4 months ago (2015-08-01 03:13:09 UTC) #9
zra
ping
5 years, 4 months ago (2015-08-04 14:49:41 UTC) #10
turnidge
lgtm w/ comments https://codereview.chromium.org/1177153005/diff/360001/runtime/bin/vmservice/vmservice_io.dart File runtime/bin/vmservice/vmservice_io.dart (right): https://codereview.chromium.org/1177153005/diff/360001/runtime/bin/vmservice/vmservice_io.dart#newcode94 runtime/bin/vmservice/vmservice_io.dart:94: // Enable this code, and remove ...
5 years, 4 months ago (2015-08-04 21:39:02 UTC) #11
zra
Thanks! https://codereview.chromium.org/1177153005/diff/360001/runtime/bin/vmservice/vmservice_io.dart File runtime/bin/vmservice/vmservice_io.dart (right): https://codereview.chromium.org/1177153005/diff/360001/runtime/bin/vmservice/vmservice_io.dart#newcode94 runtime/bin/vmservice/vmservice_io.dart:94: // Enable this code, and remove the call ...
5 years, 4 months ago (2015-08-05 06:23:07 UTC) #12
zra
5 years, 4 months ago (2015-08-05 06:29:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #20 (id:380001) manually as
174d552574f871d9f717e7014f0a685a1017dc52 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698