--- make/hotspot/lib/JvmOverrideFiles.gmk.orig 2024-06-04 18:47:50 +++ make/hotspot/lib/JvmOverrideFiles.gmk 2024-09-22 23:45:41 @@ -89,6 +89,11 @@ # for the clang bug was still needed. BUILD_LIBJVM_loopTransform.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE) + # See JDK-8340341 + ifeq ($(firstword $(subst ., ,$(CXX_VERSION_NUMBER))), 16) + BUILD_LIBJVM_stackMapTable.cpp_CXXFLAGS := -O1 + endif + # The following files are compiled at various optimization # levels due to optimization issues encountered at the # default level. The Clang compiler issues a compile