< prev index next >

src/hotspot/share/runtime/threadHeapSampler.cpp

Print this page

        

*** 137,147 **** size_t overflow_bytes = total_allocated_bytes - _bytes_until_sample; pick_next_sample(overflow_bytes); } int ThreadHeapSampler::get_sampling_interval() { ! return OrderAccess::load_acquire(&_sampling_interval); } void ThreadHeapSampler::set_sampling_interval(int sampling_interval) { ! OrderAccess::release_store(&_sampling_interval, sampling_interval); } --- 137,147 ---- size_t overflow_bytes = total_allocated_bytes - _bytes_until_sample; pick_next_sample(overflow_bytes); } int ThreadHeapSampler::get_sampling_interval() { ! return Atomic::load_acquire(&_sampling_interval); } void ThreadHeapSampler::set_sampling_interval(int sampling_interval) { ! Atomic::release_store(&_sampling_interval, sampling_interval); }
< prev index next >