< prev index next >
test/hotspot/jtreg/gc/g1/TestPeriodicCollectionJNI.java
Print this page
rev 53920 : imported patch 8218880-g1-crashes-periodic-gc-gclocker
rev 53922 : [mq]: 8218880-kbarrett-review
@@ -60,16 +60,16 @@
public static void main(String[] args) throws InterruptedException {
long timeout = 2000;
long startTime = System.currentTimeMillis();
- // start CS locker thread
+ // Start thread doing JNI call
BlockInNative blocker = new BlockInNative();
blocker.start();
try {
- // check timeout to success deadlocking
+ // Wait for periodic GC timeout to trigger
while (System.currentTimeMillis() < startTime + timeout) {
System.out.println("Sleeping to let periodic GC trigger...");
Thread.sleep(200);
}
} finally {
@@ -84,6 +84,5 @@
TestPeriodicCollectionJNI.block();
}
native void unlock();
}
-
< prev index next >