diff --git a/src/hotspot/cpu/aarch64/globals_aarch64.hpp b/src/hotspot/cpu/aarch64/globals_aarch64.hpp index ba29646a828..e9a902e63dd 100644 --- a/src/hotspot/cpu/aarch64/globals_aarch64.hpp +++ b/src/hotspot/cpu/aarch64/globals_aarch64.hpp @@ -129,6 +129,8 @@ define_pd_global(intx, InlineSmallCode, 1000); "Always merge DMB instructions in code emission") \ product(bool, NeoverseN1ICacheErratumMitigation, false, DIAGNOSTIC, \ "Enable workaround for Neoverse N1 erratum 1542419") \ + product(bool, UseSingleICacheInvalidation, false, DIAGNOSTIC, \ + "Defer multiple ICache invalidation to single invalidation") \ // end of ARCH_FLAGS diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index dd2e8a1d49b..b5c19d8aa36 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1975,8 +1975,6 @@ const int ObjectAlignmentInBytes = 8; develop(uint, BinarySearchThreshold, 16, \ "Minimal number of elements in a sorted collection to prefer" \ "binary search over simple linear search." ) \ - product(bool, UseSingleICacheInvalidation, false, DIAGNOSTIC, \ - "Defer multiple ICache invalidation to single invalidation") \ \ // end of RUNTIME_FLAGS diff --git a/test/hotspot/jtreg/gc/TestDeferredICacheInvalidation.java b/test/hotspot/jtreg/gc/TestDeferredICacheInvalidation.java index fc294904c2f..dc7e500ec9d 100644 --- a/test/hotspot/jtreg/gc/TestDeferredICacheInvalidation.java +++ b/test/hotspot/jtreg/gc/TestDeferredICacheInvalidation.java @@ -31,6 +31,8 @@ package gc; * @library /test/lib * @requires vm.debug * @requires vm.gc.Parallel + * @requires os.arch == "aarch64" + * @requires os.family == "linux" * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseParallelGC -XX:-UseCodeCacheFlushing gc.TestDeferredICacheInvalidation youngGC C1 @@ -46,6 +48,8 @@ package gc; * @library /test/lib * @requires vm.debug * @requires vm.gc.G1 + * @requires os.arch == "aarch64" + * @requires os.family == "linux" * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseG1GC -XX:-UseCodeCacheFlushing gc.TestDeferredICacheInvalidation youngGC C1 @@ -61,6 +65,8 @@ package gc; * @library /test/lib * @requires vm.debug * @requires vm.gc.Shenandoah + * @requires os.arch == "aarch64" + * @requires os.family == "linux" * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseShenandoahGC -XX:-UseCodeCacheFlushing gc.TestDeferredICacheInvalidation fullGC C1 @@ -74,6 +80,8 @@ package gc; * @library /test/lib * @requires vm.debug * @requires vm.gc.Shenandoah + * @requires os.arch == "aarch64" + * @requires os.family == "linux" * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseShenandoahGC -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=generational -XX:-UseCodeCacheFlushing gc.TestDeferredICacheInvalidation youngGC C1 @@ -89,6 +97,8 @@ package gc; * @library /test/lib * @requires vm.debug * @requires vm.gc.Z + * @requires os.arch == "aarch64" + * @requires os.family == "linux" * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseZGC -XX:-UseCodeCacheFlushing gc.TestDeferredICacheInvalidation youngGC C1