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

Unified Diff: runtime/tests/vm/dart/spawn_shutdown_test.dart

Issue 1275853008: Reverts VM thread cleanup (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tests/vm/dart/spawn_infinite_loop_test.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/spawn_shutdown_test.dart
diff --git a/runtime/tests/vm/dart/spawn_shutdown_test.dart b/runtime/tests/vm/dart/spawn_shutdown_test.dart
deleted file mode 100644
index 965cf18e98615e4d02aed46063048503dccd15af..0000000000000000000000000000000000000000
--- a/runtime/tests/vm/dart/spawn_shutdown_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'dart:async';
-import 'dart:isolate';
-
-// Spawn an isolate |foo| that will continue trying to spawn isolates even after
-// the timer in |main| completes. This test ensures that the VM can shutdown
-// correctly even while an isolate is attempting to spawn more isolates.
-
-isolate1(sendPort) {
- var receivePort = new ReceivePort();
- sendPort.send(receivePort.sendPort);
- receivePort.listen((msg) {});
-}
-
-void foo(int count) {
- for (int i = 0; i < count; i++) {
- var receivePort = new ReceivePort();
- Isolate.spawn(isolate1, receivePort.sendPort);
- receivePort.listen((sendPort) {
- Isolate.spawn(isolate1,sendPort);
- receivePort.close();
- });
- }
-}
-
-void main() {
- Isolate.spawn(foo, 100);
- new Timer(const Duration(seconds: 10), () {});
-}
« no previous file with comments | « runtime/tests/vm/dart/spawn_infinite_loop_test.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698