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

Unified Diff: vm/gc_sweeper.cc

Issue 11265026: - Consolidate code into the old generation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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: vm/gc_sweeper.cc
===================================================================
--- vm/gc_sweeper.cc (revision 14048)
+++ vm/gc_sweeper.cc (working copy)
@@ -22,6 +22,7 @@
return 0;
}
+ bool is_executable = (page->type() == HeapPage::kExecutable);
uword current = page->object_start();
uword end = page->object_end();
@@ -51,6 +52,9 @@
free_end += next_obj->Size();
}
obj_size = free_end - current;
+ if (is_executable) {
+ memset(reinterpret_cast<void*>(current), 0xcc, obj_size);
+ }
freelist->Free(current, obj_size);
}
current += obj_size;

Powered by Google App Engine
This is Rietveld 408576698