< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp

Print this page

        

*** 303,313 **** report_illegal_transition("commit bypass"); } } void ShenandoahHeapRegion::clear_live_data() { ! OrderAccess::release_store_fence<size_t>(&_live_data, 0); } void ShenandoahHeapRegion::reset_alloc_metadata() { _tlab_allocs = 0; _gclab_allocs = 0; --- 303,313 ---- report_illegal_transition("commit bypass"); } } void ShenandoahHeapRegion::clear_live_data() { ! Atomic::release_store_fence<size_t>(&_live_data, 0); } void ShenandoahHeapRegion::reset_alloc_metadata() { _tlab_allocs = 0; _gclab_allocs = 0;
*** 349,359 **** assert(Thread::current()->is_VM_thread(), "by VM thread"); _live_data = (s >> LogHeapWordSize); } size_t ShenandoahHeapRegion::get_live_data_words() const { ! return OrderAccess::load_acquire(&_live_data); } size_t ShenandoahHeapRegion::get_live_data_bytes() const { return get_live_data_words() * HeapWordSize; } --- 349,359 ---- assert(Thread::current()->is_VM_thread(), "by VM thread"); _live_data = (s >> LogHeapWordSize); } size_t ShenandoahHeapRegion::get_live_data_words() const { ! return Atomic::load_acquire(&_live_data); } size_t ShenandoahHeapRegion::get_live_data_bytes() const { return get_live_data_words() * HeapWordSize; }
< prev index next >