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

Unified Diff: runtime/vm/isolate.cc

Issue 2118923002: Add --hot-reload-test-mode flag to embedder and wire it up to test.py (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/code_generator.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index bd26039f1e8b524f271d2dc1c6a53b41cff88847..9dfb0522a20aea1ace535873464bd7d839a92b74 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -55,6 +55,7 @@ DECLARE_FLAG(bool, timing);
DECLARE_FLAG(bool, trace_service);
DECLARE_FLAG(bool, trace_reload);
DECLARE_FLAG(bool, warn_on_pause_with_no_debugger);
+DECLARE_FLAG(bool, check_reloaded);
NOT_IN_PRODUCT(
static void CheckedModeHandler(bool value) {
@@ -1693,6 +1694,15 @@ void Isolate::Shutdown() {
}
}
+ if (FLAG_check_reloaded &&
+ !ServiceIsolate::IsServiceIsolateDescendant(this)) {
+ if (!HasAttemptedReload()) {
+ OS::PrintErr("Isolate did not reload before exiting and "
rmacnak 2016/07/01 20:53:22 FATAL("...")
Cutch 2016/07/01 21:26:40 Done.
+ "--check-reloaded is enabled.\n");
+ UNREACHABLE();
+ }
+ }
+
// Then, proceed with low-level teardown.
LowLevelShutdown();
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698