Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index f1d05c73b3ef2eda8c683e85cbad1bf6bb682154..93e18ad2874684aafadfc8d2c79abe649cc26f5e 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -453,7 +453,7 @@ class MemoryChunk { |
inline void set_skip_list(SkipList* skip_list) { skip_list_ = skip_list; } |
- inline SlotSet* old_to_new_slots() { return old_to_new_slots_; } |
+ inline SlotSet* old_to_new_slots() { return old_to_new_slots_.Value(); } |
inline SlotSet* old_to_old_slots() { return old_to_old_slots_; } |
inline TypedSlotSet* typed_old_to_new_slots() { |
return typed_old_to_new_slots_.Value(); |
@@ -653,7 +653,7 @@ class MemoryChunk { |
// A single slot set for small pages (of size kPageSize) or an array of slot |
// set for large pages. In the latter case the number of entries in the array |
// is ceil(size() / kPageSize). |
- SlotSet* old_to_new_slots_; |
+ base::AtomicValue<SlotSet*> old_to_new_slots_; |
SlotSet* old_to_old_slots_; |
base::AtomicValue<TypedSlotSet*> typed_old_to_new_slots_; |
TypedSlotSet* typed_old_to_old_slots_; |