< prev index next >
src/hotspot/share/runtime/serviceThread.cpp
Print this page
rev 60098 : 8246476: remove AsyncDeflateIdleMonitors option and the safepoint based deflation mechanism
Reviewed-by: dholmes, pchilanomate, coleenp
*** 140,153 ****
(protection_domain_table_work = SystemDictionary::pd_cache_table()->has_work()) |
(oopstorage_work = OopStorage::has_cleanup_work_and_reset()) |
(deflate_idle_monitors = ObjectSynchronizer::is_async_deflation_needed())
) == 0) {
// Wait until notified that there is some work to do.
! // If AsyncDeflateIdleMonitors, then we wait for
! // GuaranteedSafepointInterval so that is_async_deflation_needed()
! // is checked at the same interval.
! ml.wait(AsyncDeflateIdleMonitors ? GuaranteedSafepointInterval : 0);
}
if (has_jvmti_events) {
// Get the event under the Service_lock
jvmti_event = _jvmti_service_queue.dequeue();
--- 140,152 ----
(protection_domain_table_work = SystemDictionary::pd_cache_table()->has_work()) |
(oopstorage_work = OopStorage::has_cleanup_work_and_reset()) |
(deflate_idle_monitors = ObjectSynchronizer::is_async_deflation_needed())
) == 0) {
// Wait until notified that there is some work to do.
! // We wait for GuaranteedSafepointInterval so that
! // is_async_deflation_needed() is checked at the same interval.
! ml.wait(GuaranteedSafepointInterval);
}
if (has_jvmti_events) {
// Get the event under the Service_lock
jvmti_event = _jvmti_service_queue.dequeue();
< prev index next >