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

Unified Diff: runtime/vm/gc_sweeper.cc

Issue 2622053002: Refactor snapshots pieces to include a section for loading instructions into the heap of a regular … (Closed)
Patch Set: Restore --print-snapshot-sizes Created 3 years, 11 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_sweeper.cc
diff --git a/runtime/vm/gc_sweeper.cc b/runtime/vm/gc_sweeper.cc
index f779b49646d417306074d3a0e671537731b4ac14..609afb9aa9e9a0f4dcfef893afdbda553b8fe297 100644
--- a/runtime/vm/gc_sweeper.cc
+++ b/runtime/vm/gc_sweeper.cc
@@ -16,6 +16,11 @@
namespace dart {
bool GCSweeper::SweepPage(HeapPage* page, FreeList* freelist, bool locked) {
+ if (page->embedder_allocated()) {
+ // Don't clear mark bits.
+ return true;
+ }
siva 2017/01/20 22:53:54 I am wondering if it would make it more clear if w
+
// Keep track whether this page is still in use.
bool in_use = false;

Powered by Google App Engine
This is Rietveld 408576698