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

fatal error with `-XX:G1SATBBufferSize=716M ` when using G1GC

XMLWordPrintable

    • gc
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      > D:\jdk\jdk8u371\bin\java -version
      java version "1.8.0_371"
      Java(TM) SE Runtime Environment (build 1.8.0_371-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.371-b11, mixed mode)

      OS: Windows 10

      A DESCRIPTION OF THE PROBLEM :
      A fatal error occurs in the G1 collector, when the G1SATBBufferSize option's value is too large in JDK8. If it is a defect in JDK8, could you add a patch on JDK8 to filter this optoin?

      > D:\jdk\jdk8u371\bin\java -XX:G1SATBBufferSize=716M -Xms1024m -Xmx4096m -XX:+UseG1GC Case
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000071d72c3f, pid=22444, tid=0x0000000000005900
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_371) (build 1.8.0_371-b11)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.371-b11 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # V [jvm.dll+0x3b2c3f]

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. copy the source code `Case.java`
      public class Case {
          public static void main(String[] var0) {
              for (int i = 0; i < 500; ++i) {
                  byte[] bArray = new byte[1024*1024];
              }
          }
      }

      2. run the command

      > D:\jdk\jdk8u371\bin\java -XX:G1SATBBufferSize=716M -Xms1024m -Xmx4096m -XX:+UseG1GC Case
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000072622c3f, pid=19020, tid=0x000000000000769c
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_371) (build 1.8.0_371-b11)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.371-b11 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # V [jvm.dll+0x3b2c3f]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # D:\projects\Cases\target\classes\hs_err_pid19020.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #
      > D:\jdk\jdk8u371\bin\java -XX:G1SATBBufferSize=716M -Xms1024m -Xmx4096m -XX:+UseParallelGC Case
      <no output>

      > D:\jdk\jdk8u371\bin\java -XX:G1SATBBufferSize=716M -Xms1024m -Xmx4096m -XX:+UseConcMarkSweepGC Case
      <no output>

      ACTUAL -
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000072622c3f, pid=19020, tid=0x000000000000769c
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_371) (build 1.8.0_371-b11)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.371-b11 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # V [jvm.dll+0x3b2c3f]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # D:\projects\Cases\target\classes\hs_err_pid19020.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      ---------- BEGIN SOURCE ----------
      public class Case {
          public static void main(String[] var0) {
              for (int i = 0; i < 500; ++i) {
                  byte[] bArray = new byte[1024*1024];
              }
          }
      }

      ---------- END SOURCE ----------

            jianyesun Jianye Sun
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: