RFR: 8373508: C2: sinking CreateEx out of loop breaks the graph

Dean Long dlong at openjdk.org
Sat Dec 20 01:42:53 UTC 2025


On Fri, 19 Dec 2025 13:21:16 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> `CreateEx` doesn't do anything. So it seems to me the risk of breaking something by accident in some uncommon case is not worth the risk and I would go with a conservative fix.

Actually, it does a little something.  It makes sure the exception object is associated with a specific register, RAX for x64, but I see your point about being conservative with the fix.  We wouldn't want any instructions scheduled between it and the exception handler that could kill RAX.

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

PR Comment: https://git.openjdk.org/jdk/pull/28842#issuecomment-3677194373


More information about the hotspot-compiler-dev mailing list