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

RISC-V: Small improvement to array fill stub

XMLWordPrintable

    • tbd
    • master
    • riscv

      When working on JDK-8351140, I witnessed possible misaligned memory access in array fill stub.
      We fill by element for short arrays (< 8 bytes), which assumes a heapword alignment. But that is not guaranteed. This issue could be reproduced by running: `make test TEST="micro:vm.compiler.ArrayFill"`
      with `@Param("5") private int size;` on riscv platforms with slow misalgned memory accesses.

      [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp#L2141

            fyang Fei Yang
            wenanjian Anjian Wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: