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

RISC-V: Avoid passing t0 as temp register to MacroAssembler::lightweight_lock/unlock

    XMLWordPrintable

Details

    • b25
    • riscv
    • linux

    Backports

      Description

        This is inspired by https://bugs.openjdk.org/browse/JDK-8316880.
        MacroAssembler::lightweight_lock/unlock is non-trivial on linux-riscv64 platform. Passing t0(aka x5) as temporary register to these two assember functions can also be error prone. As a reserved scratch register, t0 is implicitly clobberred by various assembler functions. This fixes the issue by finding and passing a different register, which is similar with https://bugs.openjdk.org/browse/JDK-8316880.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: