Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index dc14345151203445c42b2fa244a4283e8ace1599..2c6422e7d0e5d68d8799ed3ba5034b6b3bc99174 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -21356,7 +21356,9 @@ RawOneByteString* OneByteString::New(intptr_t len, Heap::Space space) { |
NoSafepointScope no_safepoint; |
RawOneByteString* result = reinterpret_cast<RawOneByteString*>(raw); |
result->StoreSmi(&(result->ptr()->length_), Smi::New(len)); |
+#if !defined(HASH_IN_OBJECT_HEADER) |
result->StoreSmi(&(result->ptr()->hash_), Smi::New(0)); |
+#endif |
return result; |
} |
} |