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

Unified Diff: runtime/bin/main.cc

Issue 2475523002: Reload native extensions when starting from a snapshot. (Closed)
Patch Set: Use temp directory for snapshot Created 4 years, 1 month 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
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 773fdda2eaa464b86dde15a0fff06adf98807e74..778985dfd1f6bc0e18b0759bdace277e494f850c 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -819,6 +819,10 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
Builtin::SetNativeResolver(Builtin::kBuiltinLibrary);
Builtin::SetNativeResolver(Builtin::kIOLibrary);
}
+ if (run_app_snapshot) {
+ Dart_Handle result = Loader::ReloadNativeExtensions();
+ CHECK_RESULT(result);
+ }
// Set up the library tag handler for this isolate.
Dart_Handle result = Dart_SetLibraryTagHandler(Loader::LibraryTagHandler);

Powered by Google App Engine
This is Rietveld 408576698