RFR: 8327963: C2: fix construction of memory graph around Initialize node to prevent incorrect execution if allocation is removed [v8]

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Tue Oct 21 13:51:56 UTC 2025


On Tue, 21 Oct 2025 07:41:37 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:

> Is the current assertion in mainline (after JDK-8360031) still valid in the context of this changeset?

I did a bit of testing and updating the asserted invariant to `(outcnt() > 0 && outcnt() <= 2) || Opcode() == Op_Initialize` seems to work.

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

PR Comment: https://git.openjdk.org/jdk/pull/24570#issuecomment-3426782209


More information about the hotspot-compiler-dev mailing list