--- old/src/hotspot/share/runtime/synchronizer.hpp 2019-05-25 10:47:57.134888008 -0400 +++ new/src/hotspot/share/runtime/synchronizer.hpp 2019-05-25 10:47:56.418887971 -0400 @@ -162,9 +162,13 @@ static bool deflate_monitor_using_JT(ObjectMonitor* mid, ObjectMonitor** freeHeadp, ObjectMonitor** freeTailp); - static bool is_cleanup_needed(); - static bool is_cleanup_requested() { return _is_cleanup_requested; } - static void set_is_cleanup_requested(bool new_value) { _is_cleanup_requested = new_value; } + static bool is_async_deflation_needed(); + static bool is_safepoint_deflation_needed(); + static bool is_async_deflation_requested() { return _is_async_deflation_requested; } + static bool is_special_deflation_requested() { return _is_special_deflation_requested; } + static void set_is_async_deflation_requested(bool new_value) { _is_async_deflation_requested = new_value; } + static void set_is_special_deflation_requested(bool new_value) { _is_special_deflation_requested = new_value; } + static jlong time_since_last_async_deflation_ms(); static void oops_do(OopClosure* f); // Process oops in thread local used monitors static void thread_local_used_oops_do(Thread* thread, OopClosure* f); @@ -189,7 +193,6 @@ static int log_monitor_list_counts(outputStream * out); static int verify_objmon_isinpool(ObjectMonitor *addr) PRODUCT_RETURN0; - static bool gOmShouldDeflateIdleMonitors() { return _gOmShouldDeflateIdleMonitors; } static void do_safepoint_work(DeflateMonitorCounters* _counters); private: @@ -205,8 +208,9 @@ static ObjectMonitor * volatile gOmInUseList; // count of entries in gOmInUseList static int gOmInUseCount; - static bool _gOmShouldDeflateIdleMonitors; - static volatile bool _is_cleanup_requested; + static volatile bool _is_async_deflation_requested; + static volatile bool _is_special_deflation_requested; + static jlong _last_async_deflation_time_ns; // Process oops in all global used monitors (i.e. moribund thread's monitors) static void global_used_oops_do(OopClosure* f);