On Tue, 27 May 2025 22:25:13 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> > Do you mean show that calling loop() doesn't prevent exit ? I can just add > > a call to loop() at the end of the test. If it doesn't terminate the test > > will fail with a timeout. > > jtreg terminates all threads and the test vm after the main method completes, > so I believe the updated test would pass even before this change (when a > non-daemon thread was used). That's difficult to do in this test. In fact it is a problem to do in any jtreg test. It needs another process. So I've added a new test that monitors a child VM that jtreg will not terminate in this way. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24991#issuecomment-2917474894