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

Unified Diff: src/objects.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 | « src/heap/mark-compact-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 7e3a325a6df6c337b5a8b0fc604f8204ff09ce5e..2ae1d04e134928bc8c31880f7464c4033f445b6a 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -3200,7 +3200,7 @@ void Map::ReplaceDescriptors(DescriptorArray* new_descriptors,
}
DescriptorArray* to_replace = instance_descriptors();
- GetHeap()->incremental_marking()->RecordWrites(to_replace);
+ GetHeap()->incremental_marking()->IterateBlackObject(to_replace);
Map* current = this;
while (current->instance_descriptors() == to_replace) {
Object* next = current->GetBackPointer();
@@ -4574,7 +4574,7 @@ void Map::EnsureDescriptorSlack(Handle<Map> map, int slack) {
}
// Replace descriptors by new_descriptors in all maps that share it.
- map->GetHeap()->incremental_marking()->RecordWrites(*descriptors);
+ map->GetHeap()->incremental_marking()->IterateBlackObject(*descriptors);
Map* current = *map;
while (current->instance_descriptors() == *descriptors) {
« no previous file with comments | « src/heap/mark-compact-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698