Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index a6ba79ffd30daf4695c7a0ed0c9d35acc87397cd..950c03e5621fbbc7c1f621e80be6c1b189be4a4f 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -21337,7 +21337,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; |
} |
} |