RFR: 8360702: runtime/Thread/AsyncExceptionTest.java timed out [v3]

Fredrik Bredberg fbredberg at openjdk.org
Wed Oct 22 13:03:13 UTC 2025


On Fri, 3 Oct 2025 15:02:47 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
>
> Patricio Chilano Mateo has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Remove extra space
>  - Remove finally block

Seems like a step in the right direction. Thank you for fixing.

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

Marked as reviewed by fbredberg (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27582#pullrequestreview-3365694117


More information about the hotspot-runtime-dev mailing list