File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 28
28
#############################################################################
29
29
30
30
java/util/concurrent/locks/Lock/OOMEInAQS.java 8309218 generic-all
31
+
32
+ sun/tools/jhsdb/JShellHeapDumpTest.java 8276539 generic-all
33
+ sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8276539 generic-all
Original file line number Diff line number Diff line change @@ -734,6 +734,7 @@ sun/tools/jstat/jstatLineCounts3.sh 8268211 linux-aa
734
734
sun/tools/jstat/jstatLineCounts4.sh 8268211 linux-aarch64
735
735
736
736
sun/tools/jhsdb/JStackStressTest.java 8276210 linux-aarch64
737
+ sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8313798 generic-aarch64
737
738
738
739
############################################################################
739
740
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -150,7 +150,14 @@ public static void launchJshell() throws IOException {
150
150
System .out .println ("Starting Jshell" );
151
151
long startTime = System .currentTimeMillis ();
152
152
try {
153
- ProcessBuilder pb = new ProcessBuilder (JDKToolFinder .getTestJDKTool ("jshell" ));
153
+ JDKToolLauncher launcher = JDKToolLauncher .createUsingTestJDK ("jshell" );
154
+ if (doSleep ) {
155
+ launcher .addVMArgs (Utils .getTestJavaOpts ());
156
+ } else {
157
+ // Don't allow use of SerialGC. See JDK-8313655.
158
+ launcher .addVMArgs (Utils .getFilteredTestJavaOpts ("-XX:\\ +UseSerialGC" ));
159
+ }
160
+ ProcessBuilder pb = new ProcessBuilder (launcher .getCommand ());
154
161
jShellProcess = ProcessTools .startProcess ("JShell" , pb ,
155
162
s -> { // warm-up predicate
156
163
return s .contains ("Welcome to JShell" );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -93,7 +93,9 @@ public static void launchJshell() throws IOException {
93
93
System .out .println ("Starting Jshell" );
94
94
long startTime = System .currentTimeMillis ();
95
95
try {
96
- ProcessBuilder pb = new ProcessBuilder (JDKToolFinder .getTestJDKTool ("jshell" ));
96
+ JDKToolLauncher launcher = JDKToolLauncher .createUsingTestJDK ("jshell" );
97
+ launcher .addVMArgs (Utils .getTestJavaOpts ());
98
+ ProcessBuilder pb = new ProcessBuilder (launcher .getCommand ());
97
99
jShellProcess = ProcessTools .startProcess ("JShell" , pb );
98
100
} catch (Exception ex ) {
99
101
throw new RuntimeException ("Test ERROR " + ex , ex );
You can’t perform that action at this time.
0 commit comments