Index: runtime/vm/heap.h |
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h |
index 1e6051b8bfbb0f73e81a87f833345406ad898581..37769b98cce0efccbec0e516f51b1737f6657472 100644 |
--- a/runtime/vm/heap.h |
+++ b/runtime/vm/heap.h |
@@ -32,6 +32,11 @@ class Heap { |
kExecutable |
}; |
+ enum ApiCallbacks { |
+ kIgnoreApiCallbacks, |
+ kInvokeApiCallbacks |
+ }; |
+ |
// Default allocation sizes in MB for the old gen and code heaps. |
static const intptr_t kHeapSizeInMB = 512; |
static const intptr_t kCodeHeapSizeInMB = 8; |
@@ -80,6 +85,7 @@ class Heap { |
void IterateCodePointers(ObjectPointerVisitor* visitor); |
void CollectGarbage(Space space); |
+ void CollectGarbage(Space space, ApiCallbacks api_callbacks); |
void CollectAllGarbage(); |
// Accessors for inlined allocation in generated code. |