< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp
Print this page
rev 60527 : Distinguish between young-gen and old-gen heap memory regions
*** 56,72 ****
_index(index),
_bottom(start),
_end(start + RegionSizeWords),
_new_top(NULL),
_empty_time(os::elapsedTime()),
- _state(committed ? _empty_committed : _empty_uncommitted),
_top(start),
_tlab_allocs(0),
_gclab_allocs(0),
_live_data(0),
_critical_pins(0),
! _update_watermark(start) {
assert(Universe::on_page_boundary(_bottom) && Universe::on_page_boundary(_end),
"invalid space boundaries");
if (ZapUnusedHeapArea && committed) {
SpaceMangler::mangle_region(MemRegion(_bottom, _end));
--- 56,73 ----
_index(index),
_bottom(start),
_end(start + RegionSizeWords),
_new_top(NULL),
_empty_time(os::elapsedTime()),
_top(start),
_tlab_allocs(0),
_gclab_allocs(0),
_live_data(0),
_critical_pins(0),
! _update_watermark(start),
! _state(committed ? _empty_committed : _empty_uncommitted),
! _gen(_youngest_gen) {
assert(Universe::on_page_boundary(_bottom) && Universe::on_page_boundary(_end),
"invalid space boundaries");
if (ZapUnusedHeapArea && committed) {
SpaceMangler::mangle_region(MemRegion(_bottom, _end));
< prev index next >