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

Unified Diff: runtime/vm/gc_marker.cc

Issue 2326483005: Shrink AOT snapshot size and memory usage. (Closed)
Patch Set: . Created 4 years, 3 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/gc_marker.cc
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc
index 7ea64d6168fec374d69eb9f804f024c701f2a563..667901b35e95e6d4f2f865845b2ddd679160b35f 100644
--- a/runtime/vm/gc_marker.cc
+++ b/runtime/vm/gc_marker.cc
@@ -58,6 +58,9 @@ class SkippedCodeFunctions : public ZoneAllocated {
}
}
+#if defined(DART_PRECOMPILED_RUNTIME)
+ UNREACHABLE();
+#else
code = func->ptr()->unoptimized_code_;
if (!code->IsMarked()) {
// If the code wasn't strongly visited through other references
@@ -68,6 +71,7 @@ class SkippedCodeFunctions : public ZoneAllocated {
unoptimized_code_count++;
}
}
+#endif
}
if (FLAG_log_code_drop) {
THR_Print(" total detached current: %" Pd "\n", current_code_count);

Powered by Google App Engine
This is Rietveld 408576698