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

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
« no previous file with comments | « vm/gc_marker.cc ('k') | vm/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
cshapiro 2012/10/26 04:58:07 Can we put this behind an compile time flag, like
Ivan Posva 2012/10/26 05:00:45 I left this specifically in for now while this is
+ }
freelist->Free(current, obj_size);
}
current += obj_size;
« no previous file with comments | « vm/gc_marker.cc ('k') | vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698