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

Leonid Mesnik lmesnik at openjdk.org
Tue Oct 31 20:02:16 UTC 2023


> 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.

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

Changes:
  - all: https://git.openjdk.org/jtreg/pull/172/files
  - new: https://git.openjdk.org/jtreg/pull/172/files/32a5286c..f3111825

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jtreg&pr=172&range=01
 - incr: https://webrevs.openjdk.org/?repo=jtreg&pr=172&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jtreg/pull/172.diff
  Fetch: git fetch https://git.openjdk.org/jtreg.git pull/172/head:pull/172

PR: https://git.openjdk.org/jtreg/pull/172


More information about the jtreg-dev mailing list