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

Unified Diff: runtime/vm/heap.h

Issue 3001423002: Initial idle GC logic. (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
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index c8aa3996665b595978f6657565576af82e426a6b..a82a9c7e562ada662aa90fbb11ad00cee1e973e1 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.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/scavenger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698