RISC-V: Interpreter: Load array index as signed int

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • riscv
    • linux

      As described in jvms25[1], the index of bytecode aastore should be type of `int`. We should use the `lw` instruction (which loads a 32-bit index from the operand stack and performs sign extension) instead of the `ld` instruction.

      1. https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-6.html#jvms-6.5.aastore

            Assignee:
            Feilong Jiang
            Reporter:
            Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: