RFR: 7903526: jtreg should handle all exceptions [v2]

Leonid Mesnik lmesnik at openjdk.org
Thu Jan 4 02:59:47 UTC 2024


On Tue, 31 Oct 2023 20:02:16 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> Currently, jtreg executes a test in MainThreadGroup and checks uncaught exceptions for this group. So it handles all exceptions if the test doesn't create new thread groups.
>> However, the virtual threads don't belong to MainThreadGroup and jtreg silently ignores all exceptions thrown by virtual threads.
>> 
>> The testing shows that we have already some problems in jdk/jdk and probably in UR releases. There are 13 test failures in tier1 and several tens in the execution of tests that use secutiry-manager and run with a virtual thread.
>> 
>> It wonder if it makes sense to have this check conditional using some java property and start fixing tests after jtreg is release and smoothly switch execution to the new version.
>
> Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added sync ofr globalUncaughtThrowable.

any ideas about moving forward with this PR?

-------------

PR Comment: https://git.openjdk.org/jtreg/pull/172#issuecomment-1876242425


More information about the jtreg-dev mailing list