Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 9908f5c938bcc044adc6bae7f1600d9899a4c868..602a092d8e44e8f778369601b88badc46f34bb5a 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -626,6 +626,16 @@ void IncrementalMarking::FinishBlackAllocation() { |
} |
} |
+void IncrementalMarking::AbortBlackAllocation() { |
+ for (Page* page : *heap()->old_space()) { |
+ page->ReleaseBlackAreaEndMarkerMap(); |
+ } |
+ if (FLAG_trace_incremental_marking) { |
+ heap()->isolate()->PrintWithTimestamp( |
+ "[IncrementalMarking] Black allocation aborted\n"); |
+ } |
+} |
+ |
void IncrementalMarking::MarkRoots() { |
DCHECK(!finalize_marking_completed_); |
DCHECK(IsMarking()); |