We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be33d68 commit 6a9a5efCopy full SHA for 6a9a5ef
test/hotspot/jtreg/gc/cslocker/TestCSLocker.java
@@ -48,10 +48,13 @@ public static void main(String args[]) throws Exception {
48
// start CS locker thread
49
CSLocker csLocker = new CSLocker();
50
csLocker.start();
51
+ // After the CSLocker thread has started, any operation such as an allocation,
52
+ // which could rely on the GC to make progress, will cause a deadlock that will
53
+ // make the test time out. That includes printing. Please don't use any such
54
+ // code until unlock() is called below.
55
56
// check timeout to success deadlocking
- while(System.currentTimeMillis() < startTime + timeout) {
- System.out.println("sleeping...");
57
+ while (System.currentTimeMillis() < startTime + timeout) {
58
sleep(1000);
59
}
60
0 commit comments