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

Unified Diff: runtime/vm/heap.h

Issue 3001423002: Initial idle GC logic. (Closed)
Patch Set: divide-by-zero 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/vm/dart_api_impl_test.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index ad95cdab4498d1299df931b61f7321a99943a67a..759f3c37dfea3dc76cecaa285014917410d1aec7 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -47,6 +47,7 @@ class Heap {
kPromotion,
kOldSpace,
kFull,
+ kIdle,
kGCAtAlloc,
kGCTestCase,
};
@@ -104,6 +105,8 @@ class Heap {
RawObject* FindNewObject(FindObjectVisitor* visitor) const;
RawObject* FindObject(FindObjectVisitor* visitor) const;
+ void NotifyIdle(int64_t deadline);
+
void CollectGarbage(Space space);
void CollectGarbage(Space space, GCReason reason);
void CollectAllGarbage();
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698