< prev index next >

src/hotspot/share/runtime/serviceThread.cpp

Print this page
rev 60025 : 8246476: remove AsyncDeflateIdleMonitors option and the safepoint based deflation mechanism

@@ -139,14 +139,13 @@
               (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);
+        // 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 >