diff --git a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java index 35fe7a9ed37..7cb427cebbb 100644 --- a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java +++ b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java @@ -84,7 +84,7 @@ public static void main(String[] args) { } public static void main(String[] args) throws Throwable { - int ABRT = Platform.isWindows() ? 1 : 134; + int ABRT = 1; int[][] errorCodes = new int[][] { { ABRT, 0, ABRT, ABRT, ABRT }, { ABRT, ABRT, 0, ABRT, ABRT }, @@ -118,6 +118,7 @@ public static void main(String[] args) throws Throwable { ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder( "-Djava.library.path=" + System.getProperty("test.nativepath"), "--enable-native-access=ALL-UNNAMED", + "-XX:-CreateCoredumpOnCrash", "-Xcheck:jni", "TestCharArrayReleasing$Driver", args[0], args[1]);