8277659: [TESTBUG] Microbenchmark ThreadOnSpinWaitProducerConsumer.java hangs
Reviewed-by: njian, ngasson
This commit is contained in:
parent
7e54d065a1
commit
3383c0dcc0
@ -193,6 +193,7 @@ public class ThreadOnSpinWaitProducerConsumer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
threadConsumer.interrupt();
|
threadConsumer.interrupt();
|
||||||
|
threadConsumer.join();
|
||||||
|
|
||||||
if (producedDataCount != maxNum) {
|
if (producedDataCount != maxNum) {
|
||||||
throw new RuntimeException("Produced: " + producedDataCount + ". Expected: " + maxNum);
|
throw new RuntimeException("Produced: " + producedDataCount + ". Expected: " + maxNum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user