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

CMSScavengeBeforeRemark broken after JDK-8134953

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b89

        Running with -XX:+CMSScavengeBeforeRemark will do an extra call to GenCollectedHeap::do_collection() inside CMSCollector::checkpointRootsFinal().

        Inside CMSCollector::checkpointRootsFinal() we already have a valid GC id set up, but the call to GenCollectedHeap::do_collection() will create a new one using a GCIdMark, which means that when it returns the GC id is set to undefined.

        It is correct that GenCollectedHeap::do_collection() creates a new GC id since we are doing one extra GC there. But it should not reset the GC id to undefined when it is done.

              brutisso Bengt Rutisson (Inactive)
              brutisso Bengt Rutisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: