Index: runtime/vm/clustered_snapshot.cc |
diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc |
index 7b5714f85762d729f96ccfef076268c6ce9fa38d..c609441e305876da7cd0a83761803bc53e03d89e 100644 |
--- a/runtime/vm/clustered_snapshot.cc |
+++ b/runtime/vm/clustered_snapshot.cc |
@@ -40,12 +40,15 @@ void Deserializer::InitializeHeader(RawObject* raw, |
bool is_vm_isolate, |
bool is_canonical) { |
ASSERT(Utils::IsAligned(size, kObjectAlignment)); |
- uword tags = 0; |
+ uint32_t tags = 0; |
tags = RawObject::ClassIdTag::update(class_id, tags); |
tags = RawObject::SizeTag::update(size, tags); |
tags = RawObject::VMHeapObjectTag::update(is_vm_isolate, tags); |
tags = RawObject::CanonicalObjectTag::update(is_canonical, tags); |
raw->ptr()->tags_ = tags; |
+#if defined(HASH_IN_OBJECT_HEADER) |
+ raw->ptr()->hash_ = 0; |
+#endif |
} |