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) { |