RFR: 8267532: Try/catch block not optimized as expected [v3]

Jorn Vernee jvernee at openjdk.org
Mon Nov 6 14:39:54 UTC 2023


On Mon, 6 Nov 2023 08:50:13 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> `-XX:+StressPrunedExceptionHandlers` and probably also `-XX:-ProfileExceptionHandlers` should be added to our testing, at least to [JDK-8295559](https://bugs.openjdk.org/browse/JDK-8295559) (internal).

I've added to more runs of `TestExHandlerTrap` with these flags turned on as a basic smoke test. I agree it would be useful to do broader stress testing as well.

Do note that a handful of compiler tests fail with `-XX:+StressPrunedExceptionHandlers` since they test for a very particular sequence of compilation and deoptimization, and the stress option introduces more deoptimizations.

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

PR Comment: https://git.openjdk.org/jdk/pull/16416#issuecomment-1794971361


More information about the hotspot-dev mailing list