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

AArch64: Shenandoah: jni_fast_GetLongField is broken

    XMLWordPrintable

Details

    • gc
    • b22
    • aarch64

    Description

      When running Intellij IDEA, I get:

      # SIGSEGV (0xb) at pc=0x0000ffffa0828c20, pid=16152, tid=16261
      #
      # JRE version: OpenJDK Runtime Environment (14.0) (build 14-internal+0-adhoc.aph.jdk-scratchregs)
      # Java VM: OpenJDK 64-Bit Server VM (14-internal+0-adhoc.aph.jdk-scratchregs, mixed mode, sharing, tiered, compressed oops, shenandoah gc, linux-aarch64)
      # Problematic frame:
      # v ~BufferBlob::jni_fast_GetLongField

      This is caused by a bug in ShenandoahBarrierSetAssembler::try_resolve_jobject_in_native, which assumes that rthread contains a pointer to the current thread. It doesn't, so we get a crash. Intel x86 code for the same thing is correct.

      Attachments

        Issue Links

          Activity

            People

              aph Andrew Haley
              aph Andrew Haley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: