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

RISC-V: __builtin___clear_cache can fail silently.

    XMLWordPrintable

Details

    • b05
    • riscv

    Backports

      Description

        If __builtin___clear_cache fails (e.g. EPERM) it is unnoticed.
        That can cause the VM to crash on what seems like a perfectly fine instruction with SIGILL ILL_ILLOPC.
        If you don't know that this syscall is critical it's very hard to debug.

        In JDK 19 the VM emits the syscall itself, but never checks the return value. Same issue.

        Attachments

          Issue Links

            Activity

              People

                rehn Robbin Ehn
                rehn Robbin Ehn
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: