RFR: 8341272: Factory to create wide iinc instruction with small arguments

Trevor Bond duke at openjdk.org
Fri Dec 12 19:14:50 UTC 2025


On Tue, 9 Dec 2025 23:58:31 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Add a new factory method to `IncrementInstruction` that allows the explicit creation of a wide iinc instruction, even with a `slot` and `constant` that could fit into a normal iinc instruction. Previously, only one factory for iinc instructions existed, which inferred the type of instruction needed given the size of `slot` and `constant`. Add additional test cases for the new factory as well. All tier 1 tests and classfile tests have passed with these changes.
>
> Since this is an API addition, this will require a CSR. Once we have settled with the javadocs, I can create a CSR (which requires a JBS account)

Hi @liach, would you be able to create a CSR request, or is there anything you need from me here? Thank you

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

PR Comment: https://git.openjdk.org/jdk/pull/28729#issuecomment-3647799215


More information about the core-libs-dev mailing list