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

Side by Side Diff: runtime/vm/debugger_api_impl_test.cc

Issue 1275353005: VM thread shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge 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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_mirrors_api.h" 5 #include "include/dart_mirrors_api.h"
6 #include "include/dart_tools_api.h" 6 #include "include/dart_tools_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 ASSERT(isolate != NULL); 1398 ASSERT(isolate != NULL);
1399 Dart_EnterScope(); 1399 Dart_EnterScope();
1400 LoadScript(kScriptChars); 1400 LoadScript(kScriptChars);
1401 Dart_Handle retval = Invoke("main"); 1401 Dart_Handle retval = Invoke("main");
1402 EXPECT_VALID(retval); 1402 EXPECT_VALID(retval);
1403 EXPECT(test_isolate_id != ILLEGAL_ISOLATE_ID); 1403 EXPECT(test_isolate_id != ILLEGAL_ISOLATE_ID);
1404 EXPECT(Dart_GetIsolate(test_isolate_id) == isolate); 1404 EXPECT(Dart_GetIsolate(test_isolate_id) == isolate);
1405 EXPECT(Dart_GetIsolateId(isolate) == test_isolate_id); 1405 EXPECT(Dart_GetIsolateId(isolate) == test_isolate_id);
1406 Dart_ExitScope(); 1406 Dart_ExitScope();
1407 Dart_ShutdownIsolate(); 1407 Dart_ShutdownIsolate();
1408 Dart_SetIsolateEventHandler(NULL);
1408 EXPECT(verify_callback == 0x5); // Only created and shutdown events. 1409 EXPECT(verify_callback == 0x5); // Only created and shutdown events.
1409 } 1410 }
1410 1411
1411 1412
1412 static Monitor* sync = NULL; 1413 static Monitor* sync = NULL;
1413 static bool isolate_interrupted = false; 1414 static bool isolate_interrupted = false;
1414 static bool pause_event_handled = false; 1415 static bool pause_event_handled = false;
1415 static Dart_IsolateId interrupt_isolate_id = ILLEGAL_ISOLATE_ID; 1416 static Dart_IsolateId interrupt_isolate_id = ILLEGAL_ISOLATE_ID;
1416 static volatile bool continue_isolate_loop = true; 1417 static volatile bool continue_isolate_loop = true;
1417 1418
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," 2314 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13,"
2314 " null, 4, 13, 3, 14, 10," 2315 " null, 4, 13, 3, 14, 10,"
2315 " null, 5, 17, 5, 18, 9, 19, 12," 2316 " null, 5, 17, 5, 18, 9, 19, 12,"
2316 " null, 6, 21, 1," 2317 " null, 6, 21, 1,"
2317 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2318 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2318 " null, 9, 29, 1]", 2319 " null, 9, 29, 1]",
2319 tokens_cstr); 2320 tokens_cstr);
2320 } 2321 }
2321 2322
2322 } // namespace dart 2323 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698