dart-sdk/runtime
Todd Turnidge 0d501ad53d VM restart + shutdown fixes
This change add the ability to restart the vm through the service
protocol.  All isolates are killed, and then the main isolate is
restarted cooperatively by the embedder.

This change also fixes the message handler to prevent it from
accidentally ignoring vm shutdown messages.

Previously, we would stop handling messages whenever we hit an error
(such as a compile error or an unhandled exception).  This would leave
shutdown requests sitting the oob queue, neglected.

We now process *all* oob requests, up to the first shutdown request.
When we hit a shutdown request, we clear the oob queue and process no
more messages.

To make all of this work, we had to change the return value of
HandleMessage from bool to a new enum type, allowing the message
handler to distinguish *normal* error cases from the more rarified
shutdown and restart cases.

R=johnmccutchan@google.com, zra@google.com

Review URL: https://codereview.chromium.org/1371193005 .
2015-10-06 11:27:26 -07:00
..
bin VM restart + shutdown fixes 2015-10-06 11:27:26 -07:00
include VM restart + shutdown fixes 2015-10-06 11:27:26 -07:00
lib Preparation for moving reusable handles to thread and more cleanups: isolate -> thread based handle allocation. 2015-10-06 10:17:12 -07:00
observatory VM restart + shutdown fixes 2015-10-06 11:27:26 -07:00
platform Don't use %p when generating disassembly in vm service. 2015-08-11 11:22:55 -07:00
tests/vm Disable compiler stats tests on Windows 2015-09-16 15:47:30 -07:00
third_party/double-conversion error can shift more than 32 bits. 2015-07-13 08:50:37 -07:00
tools Add link to BMU benchmark gallery generator tool. 2015-10-02 17:18:39 -07:00
vm VM restart + shutdown fixes 2015-10-06 11:27:26 -07:00
.gitignore
BUILD.gn Add public_config to :libdart in runtime/BUILD.gn 2015-09-25 12:41:03 -07:00
codereview.settings Remove trailing slash in codereview.settings to fix review url double slash 2015-10-01 07:27:13 -07:00
CPPLINT.cfg - Use the simulator to do atomic operations that could also 2014-10-27 19:21:33 +00:00
dart-runtime.gyp Remove dart_debugger_api.h 2015-06-17 14:56:55 -07:00
PRESUBMIT.py - Add more data collection to the scavenger. 2013-10-16 23:15:11 +00:00