File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/hotspot/jtreg/serviceability/HeapDump Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2727 * @requires vm.continuations
2828 * @modules jdk.management
2929 * @library /test/lib
30- * @run junit/othervm/native --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
30+ * @build jdk.test.whitebox.WhiteBox
31+ * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
32+ * @run junit/othervm/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
3133 */
3234
3335import java .lang .management .ManagementFactory ;
4547import jdk .test .lib .hprof .model .Snapshot ;
4648import jdk .test .lib .hprof .model .ThreadObject ;
4749import jdk .test .lib .hprof .parser .Reader ;
50+ import jdk .test .whitebox .WhiteBox ;
4851
4952public class UnmountedVThreadNativeMethodAtTop {
5053
54+ static WhiteBox wb = WhiteBox .getWhiteBox ();
55+
5156 boolean done ;
5257
5358 /**
@@ -56,7 +61,7 @@ public class UnmountedVThreadNativeMethodAtTop {
5661 */
5762 @ BeforeEach
5863 void doGC () {
59- System . gc ();
64+ wb . fullGC ();
6065 }
6166
6267 /**
You can’t perform that action at this time.
0 commit comments