< prev index next >

src/hotspot/cpu/x86/globals_x86.hpp

Print this page
rev 57232 : v2.00 -> v2.08 (CR8/v2.08/11-for-jdk14) patches combined into one; merge with jdk-14+25 snapshot; merge with jdk-14+26 snapshot.

@@ -89,13 +89,24 @@
 
 define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
 
 #if defined(_LP64) || defined(_WINDOWS)
 define_pd_global(bool, ThreadLocalHandshakes, true);
+// ObjectMonitor ref_count is implemented in LP64 C2 fast_lock()
+// and fast_unlock() so we don't need the handshake by default.
+#ifdef _LP64
+define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, false);
+#else
+define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, true);
+#endif
 #else
 // get_thread() is slow on linux 32 bit, therefore off by default
 define_pd_global(bool, ThreadLocalHandshakes, false);
+// ObjectMonitor ref_count not implemented in C2 fast_lock() or
+// fast_unlock() so use a handshake for safety.
+// Will use a safepoint instead of a handshake on this platform.
+define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, true);
 #endif
 
 #define ARCH_FLAGS(develop, \
                    product, \
                    diagnostic, \
< prev index next >