Index: src/incremental-marking.h |
diff --git a/src/incremental-marking.h b/src/incremental-marking.h |
index b5d9f1b9b733a8b460159c37d13a3bd2ce2df8ab..392a66b26125b7de9df5fdbe30ff35fe7451d4bf 100644 |
--- a/src/incremental-marking.h |
+++ b/src/incremental-marking.h |
@@ -63,6 +63,8 @@ class IncrementalMarking { |
inline bool IsMarkingIncomplete() { return state() == MARKING; } |
+ inline bool IsComplete() { return state() == COMPLETE; } |
+ |
bool WorthActivating(); |
void Start(); |
@@ -97,10 +99,13 @@ class IncrementalMarking { |
// This is how much we increase the marking/allocating factor by. |
static const intptr_t kAllocationMarkingFactorSpeedup = 2; |
static const intptr_t kMaxAllocationMarkingFactor = 1000; |
+ // This is given to Step() function when it is called without any allocation. |
+ static const intptr_t kStepFakeAllocatedBytes = kAllocatedThreshold * 3; |
Erik Corry
2011/11/10 15:06:55
This is rather ugly. Instead of lying to the Step
ulan
2011/11/11 13:27:26
Removed this completely, because the size is now c
|
void OldSpaceStep(intptr_t allocated) { |
Step(allocated * kFastMarking / kInitialAllocationMarkingFactor); |
} |
+ |
void Step(intptr_t allocated); |
inline void RestartIfNotMarking() { |