| Index: runtime/vm/thread_registry.h
|
| diff --git a/runtime/vm/thread_registry.h b/runtime/vm/thread_registry.h
|
| index d4de8a3fa469bca7fffb194ccf1713f27baf2ee8..af160269fa33ad7d2207229bdaa13115df81573f 100644
|
| --- a/runtime/vm/thread_registry.h
|
| +++ b/runtime/vm/thread_registry.h
|
| @@ -63,6 +63,19 @@ class ThreadRegistry {
|
| return (FindEntry(thread) != NULL);
|
| }
|
|
|
| + void CheckNotScheduled(Isolate* isolate) {
|
| + MutexLocker ml(mutex_);
|
| + for (int i = 0; i < entries_.length(); ++i) {
|
| + const Entry& entry = entries_[i];
|
| + if (entry.scheduled) {
|
| + FATAL3("Isolate %p still scheduled on %p (whose isolate_ is %p)\n",
|
| + isolate,
|
| + entry.thread,
|
| + entry.thread->isolate());
|
| + }
|
| + }
|
| + }
|
| +
|
| void VisitObjectPointers(ObjectPointerVisitor* visitor) {
|
| MutexLocker ml(mutex_);
|
| for (int i = 0; i < entries_.length(); ++i) {
|
|
|