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: third_party/WebKit/Source/wtf/HashTable.h

Issue 2531973002: Simple BlinkGC heap compaction. (Closed)
Patch Set: Clear unused pages before decommitting Created 4 years 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
Index: third_party/WebKit/Source/wtf/HashTable.h
diff --git a/third_party/WebKit/Source/wtf/HashTable.h b/third_party/WebKit/Source/wtf/HashTable.h
index c3735e9de3dea61026237f229babb370be8a90c0..8bd040e424b3f8a2319a948673f35bfb36f31d03 100644
--- a/third_party/WebKit/Source/wtf/HashTable.h
+++ b/third_party/WebKit/Source/wtf/HashTable.h
@@ -2105,6 +2105,11 @@ void HashTable<Key,
Extractor, HashFunctions, Traits,
KeyTraits, Allocator>::process);
}
+ // If the backing store will be moved by sweep compaction, register the
+ // table reference pointing to the backing store object, so that the
+ // reference is updated upon object relocation. A no-op if not enabled
+ // by the visitor.
+ Allocator::registerBackingStoreReference(visitor, &m_table);
if (!IsTraceableInCollectionTrait<Traits>::value)
return;
if (Traits::weakHandlingFlag == WeakHandlingInCollections) {

Powered by Google App Engine
This is Rietveld 408576698