8277659: [TESTBUG] Microbenchmark ThreadOnSpinWaitProducerConsumer.java hangs

Reviewed-by: njian, ngasson
This commit is contained in:
Stuart Monteith 2021-11-26 09:02:58 +00:00 committed by Nick Gasson
parent 7e54d065a1
commit 3383c0dcc0

View File

@ -193,6 +193,7 @@ public class ThreadOnSpinWaitProducerConsumer {
}
}
threadConsumer.interrupt();
threadConsumer.join();
if (producedDataCount != maxNum) {
throw new RuntimeException("Produced: " + producedDataCount + ". Expected: " + maxNum);