Integrated: 8360702: runtime/Thread/AsyncExceptionTest.java timed out
Patricio Chilano Mateo
pchilanomate at openjdk.org
Thu Dec 4 15:05:13 UTC 2025
On Tue, 30 Sep 2025 16:20:11 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
> Please review this small test fix. To make sure the worker thread receives the async exception at a safe place, we should avoid using synchronization objects where the worker thread might need to unpark the main thread. Otherwise, if the main thread is virtual, the async exception might be set while the worker is still executing FJP code. See JBS comments for more detail.
>
> I fixed test AsyncExceptionOnMonitorEnter.java too and removed it from test/hotspot/jtreg/ProblemList-Virtual.txt. The alternative was to problem list AsyncExceptionTest.java, but I think it’s better if we can just keep the tests for this mode too.
>
> Thanks,
> Patricio
This pull request has now been integrated.
Changeset: 6f03c780
Author: Patricio Chilano Mateo <pchilanomate at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6f03c7808de2b07b1e501d05b1bb7d5bfde5e393
Stats: 52 lines in 2 files changed: 20 ins; 19 del; 13 mod
8360702: runtime/Thread/AsyncExceptionTest.java timed out
Reviewed-by: dholmes, fbredberg
-------------
PR: https://git.openjdk.org/jdk/pull/27582
More information about the hotspot-runtime-dev
mailing list