On Thu, 18 Jun 2026 21:46:38 GMT, Serguei Spitsyn <[email protected]> wrote:
> The test does not handle exceptions, e.g. `InterruptedException`, in the > `Producer` and `Consumer` threads. This can cause deadlocks. This timeout > issue is hard to reproduce. This update is to add catch any `Throwable` and > log all information needed to understand the root cause. > Also, removed unneeded fragment with the call: > `System.loadLibrary(agentLib);`. > > Testing: > - Executed the test locally: > `serviceability/jvmti/vthread/VThreadTest/VThreadTest.java` > - TBD: Submit: mach5 tiers 1-3 to be completely safe > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 08435e48 Author: Serguei Spitsyn <[email protected]> URL: https://git.openjdk.org/jdk/commit/08435e4861a348fade00673a91e61b83bacccbbf Stats: 22 lines in 1 file changed: 10 ins; 10 del; 2 mod 8379144: serviceability/jvmti/vthread/VThreadTest/VThreadTest.java timed out with --enable-preview Reviewed-by: lmesnik ------------- PR: https://git.openjdk.org/jdk/pull/31581
