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

[BACKOUT] 8297487: G1 Remark: no need to keep alive oop constants of nmethods on stack

    XMLWordPrintable

Details

    • gc
    • b05
    • Verified

    Description

      Several crashes have been observed after integration of JDK-8297487. We need to back it out.

      tools/javac/tree/JavacTreeScannerTest.java
      tools/javac/modules/JavaBaseTest.java
      tools/javac/launcher/SourceLauncherTest.java
      tools/javac/tree/SourceDocTreeScannerTest.java
      tools/javac/preview/classReaderTest/TooNewMajorVersionTest.java
      tools/javac/TryWithResources/InterruptedExceptionTest.java
      tools/javac/generics/inference/7086601/T7086601b.java

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (sharedRuntime.cpp:1457), pid=144752, tid=176160
      # guarantee(caller_cb != NULL && caller_cb->is_compiled()) failed: must be called from compiled method
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+5) (build 21-ea+5-LTS-244)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+5-LTS-244, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: C:\sb\prod\1673434684\testoutput\test-support\jtreg_open_test_langtools_tier1\scratch\4_1\hs_err_pid144752.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      Stack: [0x000000eb52900000,0x000000eb52a00000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x6b03ea] os::win32::platform_print_native_stack+0xca (os_windows_x86.cpp:236)
      V [jvm.dll+0x8388ca] VMError::report+0xc1a (vmError.cpp:813)
      V [jvm.dll+0x83a4c5] VMError::report_and_die+0x675 (vmError.cpp:1593)
      V [jvm.dll+0x83ab77] VMError::report_and_die+0x47 (vmError.cpp:1352)
      V [jvm.dll+0x2791da] report_vm_error+0x8a (debug.cpp:286)
      V [jvm.dll+0x719829] SharedRuntime::resolve_sub_helper+0xd9 (sharedRuntime.cpp:1457)
      V [jvm.dll+0x71931b] SharedRuntime::resolve_helper+0x3b (sharedRuntime.cpp:1337)
      V [jvm.dll+0x719d82] SharedRuntime::resolve_virtual_call_C+0x32 (sharedRuntime.cpp:1698)
      C 0x0000020a0f584486

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~RuntimeStub::resolve_virtual_call 0x0000020a0f584486
      C 0x0000020a10c46e14
      C 0x0000000320008131


      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdeb723031, pid=17456, tid=54652
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+5) (build 21-ea+5-LTS-244)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+5-LTS-244, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x253031] vframeStreamCommon::next+0x211
      #
      # Core dump will be written. Default location: C:\sb\prod\1673434720\testoutput\test-support\jtreg_open_test_langtools_tier1\scratch\5\hs_err_pid17456.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      Stack: [0x000000185e200000,0x000000185e300000], sp=0x000000185e2fd2b0, free space=1012k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x253031] vframeStreamCommon::next+0x211 (vframe.inline.hpp:103)
      V [jvm.dll+0x473df1] JVM_GetStackAccessControlContext+0x361 (jvm.cpp:1309)
      C 0x000001af8fafce81

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J 748 java.security.AccessController.getStackAccessControlContext()Ljava/security/AccessControlContext; java.base@21-ea (0 bytes) @ 0x000001af8fafcdee [0x000001af8fafcda0+0x000000000000004e]
      J 21075 c2 com.sun.tools.javac.file.JavacFileManager.getClassLoader(Ljavax/tools/JavaFileManager$Location;)Ljava/lang/ClassLoader; jdk.compiler@21-ea (105 bytes) @ 0x000001af90f85860 [0x000001af90f836c0+0x00000000000021a0]
      j com.sun.tools.javac.main.DelegatingJavaFileManager.getClassLoader(Ljavax/tools/JavaFileManager$Location;)Ljava/lang/ClassLoader;+6 jdk.compiler@21-ea
      J 16098 c1 com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorLoader()V jdk.compiler@21-ea (175 bytes) @ 0x000001af8a78e5ac [0x000001af8a78e0e0+0x00000000000004cc]
      J 20808 c1 com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(Lcom/sun/tools/javac/util/Context;)V jdk.compiler@21-ea (391 bytes) @ 0x000001af8882ffec [0x000001af88829360+0x0000000000006c8c]
      J 19317 c1 com.sun.tools.javac.processing.JavacProcessingEnvironment.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/processing/JavacProcessingEnvironment; jdk.compiler@21-ea (25 bytes) @ 0x000001af88bdf93c [0x000001af88bdf560+0x00000000000003dc]
      j com.sun.tools.javac.api.BasicJavacTask.initPlugins(Ljava/util/Set;)V+148 jdk.compiler@21-ea
      C 0x000001af90854a80
      C 0xdcb0680820079a0b


      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffef7f72936, pid=9728, tid=35532
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+5) (build 21-ea+5-LTS-244)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+5-LTS-244, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x132936] BarrierSetNMethod::supports_entry_barrier+0x6
      #
      # Core dump will be written. Default location: C:\sb\prod\1673434043\testoutput\test-support\jtreg_open_test_langtools_tier1\scratch\2\hs_err_pid9728.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      Stack: [0x0000005360800000,0x0000005360900000], sp=0x00000053608fe6b0, free space=1017k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x132936] BarrierSetNMethod::supports_entry_barrier+0x6 (barrierSetNMethod.cpp:48)
      V [jvm.dll+0x132b45] BarrierSetNMethod::guard_value+0x15 (barrierSetNMethod_x86.cpp:189)
      V [jvm.dll+0x132884] BarrierSetNMethod::nmethod_stub_entry_barrier+0x44 (barrierSetNMethod.cpp:170)
      C 0x000001b2716986c9


      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fa4c11ed83d, pid=3880793, tid=3911017
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+5) (build 21-ea+5-LTS-244)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+5-LTS-244, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x52b83d] frame::sender(RegisterMap*) const+0x1ed

      Stack: [0x00007fa4916e0000,0x00007fa4917e1000], sp=0x00007fa4917dc430, free space=1009k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x52b83d] frame::sender(RegisterMap*) const+0x1ed (frame_x86.inline.hpp:244)
      V [libjvm.so+0x8d284c] java_lang_Throwable::fill_in_stack_trace(Handle, methodHandle const&, JavaThread*)+0xb7c (javaClasses.cpp:2695)
      V [libjvm.so+0x8d2d6f] java_lang_Throwable::fill_in_stack_trace(Handle, methodHandle const&)+0x5f (javaClasses.cpp:2782)
      V [libjvm.so+0x99262b] JVM_FillInStackTrace+0xcb (jvm.cpp:505)
      C [libjava.so+0x146e2] Java_java_lang_Throwable_fillInStackTrace+0x12 (Throwable.c:49)
      J 5571 java.lang.Throwable.fillInStackTrace(I)Ljava/lang/Throwable; java.base@21-ea (0 bytes) @ 0x00007fa4ac384fd9 [0x00007fa4ac384f20+0x00000000000000b9]

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: