From 7540fa2147ff8fc9c652ef13548f72f27e2809a8 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Tue, 19 Nov 2024 10:16:22 +0000 Subject: [PATCH] 8343884: [s390x] Disallow OptoScheduling Reviewed-by: lucy --- src/hotspot/cpu/s390/vm_version_s390.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hotspot/cpu/s390/vm_version_s390.cpp b/src/hotspot/cpu/s390/vm_version_s390.cpp index 8ab5affd309..ee3f97f26ef 100644 --- a/src/hotspot/cpu/s390/vm_version_s390.cpp +++ b/src/hotspot/cpu/s390/vm_version_s390.cpp @@ -320,6 +320,12 @@ void VM_Version::initialize() { if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) { FLAG_SET_DEFAULT(UseUnalignedAccesses, true); } + + // The OptoScheduling information is not maintained in s390.ad. + if (OptoScheduling) { + warning("OptoScheduling is not supported on this CPU."); + FLAG_SET_DEFAULT(OptoScheduling, false); + } }