Skip to content

Commit 2a53f5a

Browse files
author
David Holmes
committed
8361754: New test runtime/jni/checked/TestCharArrayReleasing.java can cause disk full errors
Reviewed-by: jpai, darcy
1 parent f67e435 commit 2a53f5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static void main(String[] args) {
8484
}
8585

8686
public static void main(String[] args) throws Throwable {
87-
int ABRT = Platform.isWindows() ? 1 : 134;
87+
int ABRT = 1;
8888
int[][] errorCodes = new int[][] {
8989
{ ABRT, 0, ABRT, ABRT, ABRT },
9090
{ ABRT, ABRT, 0, ABRT, ABRT },
@@ -118,6 +118,7 @@ public static void main(String[] args) throws Throwable {
118118
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
119119
"-Djava.library.path=" + System.getProperty("test.nativepath"),
120120
"--enable-native-access=ALL-UNNAMED",
121+
"-XX:-CreateCoredumpOnCrash",
121122
"-Xcheck:jni",
122123
"TestCharArrayReleasing$Driver",
123124
args[0], args[1]);

0 commit comments

Comments
 (0)