Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index a57a46d85edd6c351bc66be96d192271b6be3578..6c5330f05e5530986205fbb61cb8c89ddb1bbe72 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -12,6 +12,7 @@ |
#include "src/assert-scope.h" |
#include "src/counters.h" |
#include "src/globals.h" |
+#include "src/heap/cleanup-gc.h" |
#include "src/heap/gc-idle-time-handler.h" |
#include "src/heap/gc-tracer.h" |
#include "src/heap/incremental-marking.h" |
@@ -1613,6 +1614,10 @@ class Heap { |
// An ArrayBuffer moved from new space to old space. |
void PromoteArrayBuffer(Object* buffer); |
+ bool HasLowAllocationRate(); |
+ bool HasHighFragmentation(); |
+ bool HasHighFragmentation(intptr_t used, intptr_t committed); |
+ |
protected: |
// Methods made available to tests. |
@@ -1773,10 +1778,6 @@ class Heap { |
// generation and on every allocation in large object space. |
intptr_t old_generation_allocation_limit_; |
- // The allocation limit when there is >16.66ms idle time in the idle time |
- // handler. |
- intptr_t idle_old_generation_allocation_limit_; |
- |
// Indicates that an allocation has failed in the old generation since the |
// last GC. |
bool old_gen_exhausted_; |
@@ -2251,7 +2252,6 @@ class Heap { |
bool HasLowYoungGenerationAllocationRate(); |
bool HasLowOldGenerationAllocationRate(); |
- bool HasLowAllocationRate(); |
void ReduceNewSpaceSize(); |
@@ -2318,6 +2318,8 @@ class Heap { |
GCIdleTimeHandler gc_idle_time_handler_; |
+ CleanupGC cleanup_gc_; |
+ |
// These two counters are monotomically increasing and never reset. |
size_t full_codegen_bytes_generated_; |
size_t crankshaft_codegen_bytes_generated_; |