[testbug] RFR: 8195716: BootstrapLoggerTest : Executor still alive

Daniel Fuchs daniel.fuchs at oracle.com
Thu Jan 24 16:14:41 UTC 2019


Please find below another test fix for:

8195716: BootstrapLoggerTest : Executor still alive


This test has been seen failing intermittently with -Xcomp
and some other combination of options.
The reason for the failure has baffled me until I recently
noticed that the name of the executor's thread the test was
joining in the end, didn't match the name of the executor
thread that was still alive.
Presumably the test is taking longer to execute, which allows
the first executor thread timeout to expire, letting the executor
release its thread and then later create a new one on demand.

The fix is therefore simple (if a bit cumbersome): I changed
the test to join any executor thread that is still found
alive at the end, and then to wait for all of them to be GC'ed,
instead of waiting on the single thread found at the beginning.

I believe that should fix the issue.

best regards,

-- daniel

More information about the core-libs-dev mailing list