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