src/share/vm/memory/defNewGeneration.cpp

changeset 782
60fb9c4db4e6
parent 777
37f87013dfd8
child 791
1ee8caae33af
equal deleted inserted replaced
781:bb254e57d2f4 782:60fb9c4db4e6
225 // We explicitly do such mangling here. 225 // We explicitly do such mangling here.
226 if (ZapUnusedHeapArea) { 226 if (ZapUnusedHeapArea) {
227 eden()->mangle_unused_area(); 227 eden()->mangle_unused_area();
228 } 228 }
229 } 229 }
230 from()->set_bounds(fromMR); from()->clear(); 230 from()->initialize(fromMR, true /* clear */);
231 to()->set_bounds(toMR); to()->clear(); 231 to()->initialize( toMR, true /* clear */);
232 // Make sure we compact eden, then from. 232 // Make sure we compact eden, then from.
233 // The to-space is normally empty before a compaction so need 233 // The to-space is normally empty before a compaction so need
234 // not be considered. The exception is during promotion 234 // not be considered. The exception is during promotion
235 // failure handling when to-space can contain live objects. 235 // failure handling when to-space can contain live objects.
236 eden()->set_next_compaction_space(from()); 236 eden()->set_next_compaction_space(from());

mercurial