Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: runtime/vm/object.cc

Issue 1944213002: Support for taking full snapshots from 'dart', not just 'dart_bootstrap'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 29c473933d8d086dfeba67be46614f7850eae603..60e35500e4ab80adfbce2746a66d2f1e9fb84e4a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10676,7 +10676,10 @@ void Library::AllocatePrivateKey() const {
OS::SNPrint(private_key, sizeof(private_key),
"%c%" Pd "%06" Pd "",
kPrivateKeySeparator, sequence_value, hash_value);
- StorePointer(&raw_ptr()->private_key_, String::New(private_key, Heap::kOld));
+ const String& key = String::Handle(zone, String::New(private_key,
+ Heap::kOld));
+ key.Hash(); // This string may end up in the VM isolate.
+ StorePointer(&raw_ptr()->private_key_, key.raw());
}
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698