Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index cf81ac6c6b78111cf482e6fa6c7a1dbf101e0a0e..0ca54d8f33c2282146cd312db1cc2547aa36f4cf 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -2518,7 +2518,7 @@ void String::ReadFromImpl(SnapshotReader* reader, |
for (intptr_t i = 0; i < len; i++) { |
ptr[i] = reader->Read<CharacterType>(); |
} |
- *str_obj ^= (*new_symbol)(ptr, len); |
+ *str_obj ^= (*new_symbol)(reader->thread(), ptr, len); |
} else { |
// Set up the string object. |
*str_obj = StringType::New(len, HEAP_SPACE(kind)); |