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

CMS: assert(!full || (gc_count_before >= full_gc_count_before), "Invariant")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • gc
    • mustang
    • generic
    • generic

      The assertion, as currently constructed is too strong
      in the presence of CMS, even without +ExplicitGCInvokesConcurrent.

      Need a code-audit to make sure that the intended invariant was
      not used anywhere for correctness before relaxing the assertion.
      Or will need to modify the code to respect the intended invariant.

      Tjis bug also covers the assertion violations observed in the
      recent nightly tests with +ExplicitGCInvokesConcurrent:

        assert(_gc_count_before < gch->total_collections(), "Consistency");

      AND

        assert(!full || (gc_count_before >= full_gc_count_before), "Invariant");

            ysr Y. Ramakrishna
            ysr Y. Ramakrishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: