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

Unified Diff: runtime/vm/pages.cc

Issue 1965823002: Initial isolate reload support (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
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 9c0352fe274a161ecbc4babb9878833e327df766..e5d1e65f0839aae645ed145b6557025dc43b69c5 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -844,7 +844,9 @@ void PageSpace::MarkSweep(bool invoke_api_callbacks) {
SpaceUsage usage_before = GetCurrentUsage();
// Mark all reachable old-gen objects.
- bool collect_code = FLAG_collect_code && ShouldCollectCode();
+ bool collect_code = FLAG_collect_code &&
+ ShouldCollectCode() &&
+ !isolate->HasAttemptedReload();
GCMarker marker(heap_);
marker.MarkObjects(isolate, this, invoke_api_callbacks, collect_code);
usage_.used_in_words = marker.marked_words();
« runtime/vm/object.cc ('K') | « runtime/vm/object_test.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698