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

Unified Diff: runtime/vm/snapshot.cc

Issue 1852393004: Fix background compilation issues when creating snapshots. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: more Created 4 years, 8 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/report.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 8d1fdcf2b5efd3082c30e3287b21dbd0aacaffbd..f7a880d59b5aa3a1ae213ea4ea01f4c7edc4f7d0 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -1936,6 +1936,8 @@ FullSnapshotWriter::FullSnapshotWriter(uint8_t** vm_isolate_snapshot_buffer,
FullSnapshotWriter::~FullSnapshotWriter() {
delete forward_list_;
+ // We may run Dart code afterwards, restore the symbol table.
+ isolate()->object_store()->set_symbol_table(symbol_table_);
symbol_table_ = Array::null();
scripts_ = Array::null();
}
« no previous file with comments | « runtime/vm/report.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698