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

Unified Diff: runtime/vm/isolate.h

Issue 1904153002: Add a stress testing flag --background-compilation-stop-alot; add an extra check if background comp… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: r 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/flag_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 3250082caff8c11e5d85df941c4cbf4451be8c01..8061619223c93a768beb5e2c5bb7be19b293a6be 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -381,6 +381,8 @@ class Isolate : public BaseIsolate {
return background_compiler_;
}
void set_background_compiler(BackgroundCompiler* value) {
+ // Do not overwrite a background compiler (memory leak).
+ ASSERT((value == NULL) || (background_compiler_ == NULL));
background_compiler_ = value;
}
« no previous file with comments | « runtime/vm/flag_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698