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

[lworld] UnsafeTest.java fails with -XX:ForceNonTearable=*

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • repo-valhalla
    • hotspot

      Running test/hotspot/jtreg/runtime/valhalla/inlinetypes/UnsafeTest.java fails with "-XX:ForceNonTearable=* -Xint"

      class runtime.valhalla.inlinetypes.UnsafeTest$Value3 header size 16
      o: class java.lang.Object offset 24
      v: flattened class runtime.valhalla.inlinetypes.UnsafeTest$Value2 offset 16
        class runtime.valhalla.inlinetypes.UnsafeTest$Value2 header size 16
        i: int offset 20
        v: class runtime.valhalla.inlinetypes.UnsafeTest$Value1 offset 16
      [0.161s][error][gc,verify] ----------
      [0.161s][error][gc,verify] Field 0x000000062e4a2730 of obj 0x000000062e4a2720 in region 123:(E)[0x000000062e400000,0x000000062e4f9c38,0x000000062e800000]
      [0.161s][error][gc,verify] runtime.valhalla.inlinetypes.UnsafeTest$Value3
      [0.161s][error][gc,verify] {0x000000062e4a2720} - klass: 'runtime/valhalla/inlinetypes/UnsafeTest$Value3' - flags:
      [0.161s][error][gc,verify]
      [0.161s][error][gc,verify] - ---- fields (total size 4 words):
      [0.161s][error][gc,verify] - final value 'v' 'Lruntime/valhalla/inlinetypes/UnsafeTest$Value2;' @16 Flat inline type field 'runtime/valhalla/inlinetypes/UnsafeTest$Value2':
      [0.161s][error][gc,verify] - final value 'i' 'I' @20 100 (0x00000064)
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/valhalla/open/src/hotspot/share/oops/compressedOops.inline.hpp:58), pid=2197019, tid=2197023
      # assert(Universe::is_in_heap(result)) failed: object not in heap 0x0000000000000320
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-lworld5ea-LTS-2025-05-22-1214417.tobias...)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-lworld5ea-LTS-2025-05-22-1214417.tobias..., interpreted mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x6961f9] AccessInternal::PostRuntimeDispatch<G1BarrierSet::AccessBarrier<286822ul, G1BarrierSet>, (AccessInternal::BarrierType)3, 286822ul>::oop_access_barrier(oop, long)+0x1d9

            jbhateja Jatin Bhateja
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: