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

assert(rp->num_q() == no_of_gc_workers) failed: sanity

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b115

      Description

      G1 asserts with

      G1: assert(rp->num_q() == no_of_gc_workers) failed: sanity

      running the following program

      public class GCTest {
        private static byte[] garbage;
        public static void main(String [] args) {
          System.out.println("Creating garbage");
          // create 128MB of garbage. This should result in at least one GC
          for (int i = 0; i < 1024; i++) {
            garbage = new byte[128 * 1024];
          }
          System.out.println("Done");
        }
      }

      with

      -Xmx10m -XX:+UseG1GC -XX:+UseDynamicNumberOfGCThreads -XX:+ParallelRefProcEnabled

      Seems to be a re-appearance of JDK-8055250.

      Reported by G. Lindenmaier in the following mail to hotspot-gc-dev:

      http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2016-February/016481.html

      The suggestion there is to add this case to gc/ergonomics/TestDynamicNumberOfGCThreads.java

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jmasa Jon Masamitsu (Inactive)
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: