[lworld] Enabling CDS crash with UseAltSubstitutabilityMethod

XMLWordPrintable

      ../build/fastdebug/images/jdk/bin/java --enable-preview -XX:+UseAltSubstitutabilityMethod -Xint Test.java
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/.../open/src/hotspot/share/oops/instanceKlass.hpp:650), pid=3545186, tid=3545189
      # assert(_acmp_maps_offset != 0) failed: Not initialized
      #

      Stack: [0x00007f0e25700000,0x00007f0e25800000], sp=0x00007f0e257fcf20, free space=1011k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1d437a1] Unsafe_GetFieldMap0+0x4f1 (instanceKlass.hpp:650)
      j jdk.internal.misc.Unsafe.getFieldMap0(Ljava/lang/Class;)[I+0 java.base@27-jep401ea2
      j jdk.internal.misc.Unsafe.getFieldMap(Ljava/lang/Class;)[I+14 java.base@27-jep401ea2
      j java.lang.runtime.ValueObjectMethods.isSubstitutableAlt(Ljava/lang/Object;Ljava/lang/Object;)Z+49 java.base@27-jep401ea2
      v ~StubRoutines::Stub Generator call_stub_stub 0x00007f0e142015fd
      V [libjvm.so+0x11ad5df] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x4ff
      V [libjvm.so+0x118ba29] InterpreterRuntime::is_substitutable(JavaThread*, oopDesc*, oopDesc*)+0x3c9
      j java.time.LocalDateTime.with(Ljava/time/LocalDate;Ljava/time/LocalTime;)Ljava/time/LocalDateTime;+5 java.base@27-jep401ea2

            Assignee:
            Matias Saavedra Silva
            Reporter:
            Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: