Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
* @requires vm.continuations
* @modules jdk.management
* @library /test/lib
* @run junit/othervm/native --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @run junit/othervm/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
*/

import java.lang.management.ManagementFactory;
Expand All @@ -45,9 +47,12 @@
import jdk.test.lib.hprof.model.Snapshot;
import jdk.test.lib.hprof.model.ThreadObject;
import jdk.test.lib.hprof.parser.Reader;
import jdk.test.whitebox.WhiteBox;

public class UnmountedVThreadNativeMethodAtTop {

static WhiteBox wb = WhiteBox.getWhiteBox();

boolean done;

/**
Expand All @@ -56,7 +61,7 @@ public class UnmountedVThreadNativeMethodAtTop {
*/
@BeforeEach
void doGC() {
System.gc();
wb.fullGC();
}

/**
Expand Down