On Sun, 21 Jun 2026 04:04:26 GMT, SendaoYan <[email protected]> wrote:
> After catching Throwable in the PRODUCER and CONSUMER runnables, can we fail > the test explicitly rather than only logging the exception. If a worker > thread exits early after an error, the other thread can still block on the > SynchronousQueue, causing join() to hang until the jtreg timeout. Logging > alone does makes future failures easier to diagnose. A fail-fast approach > (e.g. record the failure in a volatile field and throw from test1() after > join(), or rethrow as RuntimeException) would turn this hang into a clear, > immediate test failure. Good suggestion, thanks! Fixed now. ------------- PR Comment: https://git.openjdk.org/jdk/pull/31581#issuecomment-4775042131
