Integrated: 8356648: runtime/Thread/AsyncExceptionTest.java fails with +StressCompiledExceptionHandlers
Dean Long
dlong at openjdk.org
Thu May 29 21:44:58 UTC 2025
On Thu, 22 May 2025 00:13:21 GMT, Dean Long <dlong at openjdk.org> wrote:
> The test fails (or times out) because Runtime1::counter_overflow offers a safepoint, allowing async exceptions, but there is no exception handler for the out-of-line slow path call to Runtime1::counter_overflow. Rather than add an exception handler, the simple fix is to replace JRT_BLOCK with JRT_BLOCK_NO_ASYNC so that counter_overflow doesn't need to deal with async exceptions. The GC poll point for backwards branches is sufficient to allow async exceptions.
> I also improved the test so that it fails more quickly rather than waiting forever and eventually timing out, and added a C1-specific run using -XX:+StressCompiledExceptionHandlers.
This pull request has now been integrated.
Changeset: 648c337b
Author: Dean Long <dlong at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/648c337bea5ec65908cab02eaf232243ccf2d4bf
Stats: 37 lines in 2 files changed: 10 ins; 11 del; 16 mod
8356648: runtime/Thread/AsyncExceptionTest.java fails with +StressCompiledExceptionHandlers
Reviewed-by: thartmann, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/25375
More information about the hotspot-dev
mailing list