From e61d58eb18d3e57c0f54f2408f5aede3d322ff28 Mon Sep 17 00:00:00 2001 From: Ramkumar Sunderbabu Date: Tue, 3 Feb 2026 16:17:32 +0530 Subject: [PATCH] fixed whitespace issue --- ...insicsWithUseSHADisabledOnUnsupportedCPU.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/hotspot/jtreg/compiler/arguments/TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java b/test/hotspot/jtreg/compiler/arguments/TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java index 78cf3be3061..1629b7bb5d2 100644 --- a/test/hotspot/jtreg/compiler/arguments/TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java +++ b/test/hotspot/jtreg/compiler/arguments/TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU.java @@ -46,19 +46,19 @@ import jdk.test.lib.process.ExitCode; public class TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU { private static final String OPTION_NAME = "UseSHA3Intrinsics"; private static final String MASTER_OPTION = "UseSHA"; - private static final String WARNING_MESSAGE = + private static final String WARNING_MESSAGE = "Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU\\."; private static final String UNLOCK_DIAGNOSTIC = "-XX:+UnlockDiagnosticVMOptions"; public static void main(String[] args) throws Throwable { - + // Verify that UseSHA3Intrinsics remains false when UseSHA is enabled // but CPU doesn't support the instructions testRemainsDisabledWithUseSHAEnabled(); - + // Verify that explicitly disabling UseSHA3Intrinsics works without warnings testExplicitDisableWithoutWarning(); - + // Verify behavior with both -XX:-UseSHA and +XX:+UseSHA3Intrinsics testWithUseSHADisabled(); } @@ -72,7 +72,7 @@ public class TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU { UNLOCK_DIAGNOSTIC, CommandLineOptionTest.prepareBooleanFlag(MASTER_OPTION, true) ); - + // Trying to enable both should still produce a warning CommandLineOptionTest.verifySameJVMStartup( new String[] { WARNING_MESSAGE }, @@ -97,7 +97,7 @@ public class TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU { UNLOCK_DIAGNOSTIC, CommandLineOptionTest.prepareBooleanFlag(OPTION_NAME, false) ); - + // Verify the flag value is false CommandLineOptionTest.verifyOptionValueForSameVM( OPTION_NAME, @@ -123,7 +123,7 @@ public class TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU { CommandLineOptionTest.prepareBooleanFlag(MASTER_OPTION, false), CommandLineOptionTest.prepareBooleanFlag(OPTION_NAME, true) ); - + // Verify the flag is forced to false CommandLineOptionTest.verifyOptionValueForSameVM( OPTION_NAME, @@ -134,7 +134,7 @@ public class TestUseSHA3IntrinsicsWithUseSHADisabledOnUnsupportedCPU { CommandLineOptionTest.prepareBooleanFlag(MASTER_OPTION, false), CommandLineOptionTest.prepareBooleanFlag(OPTION_NAME, true) ); - + // Test that with both flags disabled, no warning appears CommandLineOptionTest.verifySameJVMStartup( null,