Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index d076d643dbd1eb77a82f77389901855b498b88b1..a3903a61ec50e0f5fe9fe804b7467073066240c9 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -1423,6 +1423,8 @@ DART_EXPORT void Dart_NotifyIdle(int64_t deadline) { |
Thread* T = Thread::Current(); |
CHECK_ISOLATE(T->isolate()); |
API_TIMELINE_BEGIN_END; |
+ TransitionNativeToVM transition(T); |
+ T->isolate()->heap()->NotifyIdle(deadline); |
} |
DART_EXPORT void Dart_ExitIsolate() { |