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

Unified Diff: src/heap/heap.cc

Issue 1823783003: [heap] RecordWrites iterates black object to ensure marking progress. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | src/heap/incremental-marking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index e9b67efbbc230724a16751e8baaeadd877c845fc..5275c31bad71e74c0ceda012047cc7fc8255b748 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1108,7 +1108,7 @@ void Heap::MoveElements(FixedArray* array, int dst_index, int src_index,
dst_objects[i]);
}
}
- incremental_marking()->RecordWrites(array);
+ incremental_marking()->IterateBlackObject(array);
}
@@ -4708,10 +4708,9 @@ void Heap::IteratePromotedObject(HeapObject* target, int size,
// regular visiting and IteratePromotedObjectPointers.
if (!was_marked_black) {
if (incremental_marking()->black_allocation()) {
- Map* map = target->map();
- IncrementalMarking::MarkObject(this, map);
+ IncrementalMarking::MarkObject(this, target->map());
+ incremental_marking()->IterateBlackObject(target);
}
- incremental_marking()->IterateBlackObject(target);
}
}
« no previous file with comments | « no previous file | src/heap/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698