src/hotspot/share/runtime/arguments.cpp
changeset 49027 8dc742d9bbab
parent 49010 9010e596f391
child 49037 dc68aeea4840
--- a/src/hotspot/share/runtime/arguments.cpp	Tue Feb 20 07:46:40 2018 -0500
+++ b/src/hotspot/share/runtime/arguments.cpp	Tue Feb 20 16:10:21 2018 +0100
@@ -1826,6 +1826,13 @@
   }
 #endif
 
+#if defined(IA32)
+  // Only server compiler can optimize safepoints well enough.
+  if (!is_server_compilation_mode_vm()) {
+    FLAG_SET_ERGO_IF_DEFAULT(bool, ThreadLocalHandshakes, false);
+  }
+#endif
+
   set_conservative_max_heap_alignment();
 
 #ifndef ZERO