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

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

Issue 1439483003: - Add an OSThread structure which is the generic TLS structure for all C++ (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-comments Created 5 years, 1 month 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
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 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 Dart_ExitScope(); 1503 Dart_ExitScope();
1504 Dart_ShutdownIsolate(); 1504 Dart_ShutdownIsolate();
1505 } 1505 }
1506 1506
1507 1507
1508 TEST_CASE(Debug_InterruptIsolate) { 1508 TEST_CASE(Debug_InterruptIsolate) {
1509 Dart_SetIsolateEventHandler(&TestInterruptIsolate); 1509 Dart_SetIsolateEventHandler(&TestInterruptIsolate);
1510 sync = new Monitor(); 1510 sync = new Monitor();
1511 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID); 1511 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID);
1512 Dart_SetPausedEventHandler(InterruptIsolateHandler); 1512 Dart_SetPausedEventHandler(InterruptIsolateHandler);
1513 int result = OSThread::Start(InterruptIsolateRun, 0); 1513 int result = OSThread::Start("DebugInterruptIsolate", InterruptIsolateRun, 0);
1514 EXPECT_EQ(0, result); 1514 EXPECT_EQ(0, result);
1515 1515
1516 // Wait for the test isolate to be created. 1516 // Wait for the test isolate to be created.
1517 { 1517 {
1518 MonitorLocker ml(sync); 1518 MonitorLocker ml(sync);
1519 while (interrupt_isolate_id == ILLEGAL_ISOLATE_ID) { 1519 while (interrupt_isolate_id == ILLEGAL_ISOLATE_ID) {
1520 ml.Wait(); 1520 ml.Wait();
1521 } 1521 }
1522 } 1522 }
1523 EXPECT(interrupt_isolate_id != ILLEGAL_ISOLATE_ID); 1523 EXPECT(interrupt_isolate_id != ILLEGAL_ISOLATE_ID);
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," 2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13,"
2317 " null, 4, 13, 3, 14, 10," 2317 " null, 4, 13, 3, 14, 10,"
2318 " null, 5, 17, 5, 18, 9, 19, 12," 2318 " null, 5, 17, 5, 18, 9, 19, 12,"
2319 " null, 6, 21, 1," 2319 " null, 6, 21, 1,"
2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2321 " null, 9, 29, 1]", 2321 " null, 9, 29, 1]",
2322 tokens_cstr); 2322 tokens_cstr);
2323 } 2323 }
2324 2324
2325 } // namespace dart 2325 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/os_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698