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

Side by Side Diff: runtime/tests/vm/dart/spawn_infinite_loop_test.dart

Issue 1275353005: VM thread shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add shutdown flag Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'dart:isolate';
6
7 // This test ensures that the VM can kill the spawned isolate during VM
8 // shutdown even when the isolate is in an infinite loop and will not finish
9 // on its own.
10
11 void loop(msg) {
12 while (true) {}
Ivan Posva 2015/09/14 21:52:13 How do you ensure that the spawned isolate has act
zra 2015/09/14 22:59:00 There's no check for that here. This is mostly a s
13 throw "Unreachable";
14 }
15
16 void main() {
17 Isolate.spawn(loop, []);
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698