Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334843

RISC-V: Fix wraparound checking for r_array_index in lookup_secondary_supers_table_slow_path

XMLWordPrintable

    • b05
    • riscv
    • linux

      Branch condition for r_array_index wraparound checking in lookup_secondary_supers_table_slow_path is wrong.
      ```
          // Check for wraparound.
          Label skip;
          bge(r_array_length, r_array_index, skip);
          mv(r_array_index, zr);
          bind(skip);
      ```
      As discussed at https://github.com/openjdk/jdk/pull/19320/files#r1650548279 here. If length == index, then we must set index to 0. That is `blt(r_array_index,r_array_length,skip);`.

            gcao Gui Cao
            gcao Gui Cao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: