< prev index next >
src/hotspot/share/runtime/threadHeapSampler.cpp
Print this page
rev 52058 : 8211950: Deprecate the check if a JVMTI collector is present assertion
Summary:
Reviewed-by:
*** 169,190 ****
}
void ThreadHeapSampler::set_sampling_interval(int sampling_interval) {
OrderAccess::release_store(&_sampling_interval, sampling_interval);
}
-
- // Methods used in assertion mode to check if a collector is present or not at
- // the moment of TLAB sampling, ie a slow allocation path.
- bool ThreadHeapSampler::sampling_collector_present() const {
- return _collectors_present > 0;
- }
-
- bool ThreadHeapSampler::remove_sampling_collector() {
- assert(_collectors_present > 0, "Problem with collector counter.");
- _collectors_present--;
- return true;
- }
-
- bool ThreadHeapSampler::add_sampling_collector() {
- _collectors_present++;
- return true;
- }
--- 169,173 ----
< prev index next >