< prev index next > test/hotspot/jtreg/serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java
Print this page
public static void main(String args[]) {
log("\n### main: started\n");
check(lockCheck, null, 0, 0, 0);
test(false); // test platform threads
! test(true); // test virtual threads
check(lockCheck, null, 0, 0, 0);
if (getRes() > 0) {
throw new RuntimeException("Failed status returned from the agent");
}
public static void main(String args[]) {
log("\n### main: started\n");
check(lockCheck, null, 0, 0, 0);
test(false); // test platform threads
!
+ //test(true); // test virtual threads
check(lockCheck, null, 0, 0, 0);
if (getRes() > 0) {
throw new RuntimeException("Failed status returned from the agent");
}
< prev index next >