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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 2998513002: [vm] Add a stub Dart_NotifyIdle() for the embedder to suggest a good time to do GC. (Closed)
Patch Set: Created 3 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/include/dart_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 4bc1125f23058b732b486cee122f850f03dd89db..52e892cfd7248294d682af1d90ea9d9387cbc2c8 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1453,6 +1453,12 @@ DART_EXPORT Dart_Handle Dart_GetStickyError() {
return Dart_Null();
}
+DART_EXPORT void Dart_NotifyIdle(int64_t deadline) {
+ Thread* T = Thread::Current();
+ CHECK_ISOLATE(T->isolate());
+ API_TIMELINE_BEGIN_END;
+}
+
DART_EXPORT void Dart_ExitIsolate() {
Thread* T = Thread::Current();
CHECK_ISOLATE(T->isolate());
« no previous file with comments | « runtime/include/dart_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698