From 455cfae1e137ff3055b3cc858e8954f60bdf3147 Mon Sep 17 00:00:00 2001 From: "Daniel D. Daugherty" Date: Wed, 20 Sep 2023 15:27:27 +0000 Subject: [PATCH] 8315880: change LockingMode default from LM_LEGACY to LM_LIGHTWEIGHT Reviewed-by: dholmes, rkennke, stefank --- src/hotspot/share/runtime/globals.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 4c2d19469ff..e7aef6841cd 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1986,11 +1986,11 @@ const int ObjectAlignmentInBytes = 8; "Mark all threads after a safepoint, and clear on a modify " \ "fence. Add cleanliness checks.") \ \ - product(int, LockingMode, LM_LEGACY, \ + product(int, LockingMode, LM_LIGHTWEIGHT, \ "Select locking mode: " \ "0: monitors only (LM_MONITOR), " \ - "1: monitors & legacy stack-locking (LM_LEGACY, default), " \ - "2: monitors & new lightweight locking (LM_LIGHTWEIGHT)") \ + "1: monitors & legacy stack-locking (LM_LEGACY), " \ + "2: monitors & new lightweight locking (LM_LIGHTWEIGHT, default)") \ range(0, 2) \ \ product(uint, TrimNativeHeapInterval, 0, EXPERIMENTAL, \