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

G1: Remove partial object-count report after gc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • gc
    • b23

      ```
      void G1ConcurrentMark::report_object_count(bool mark_completed) {
        // Depending on the completion of the marking liveness needs to be determined
        // using either the bitmap or after the cycle using the scrubbing information.
        if (mark_completed) {
          G1ObjectCountIsAliveClosure is_alive(_g1h);
          _gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
        } else {
          G1CMIsAliveClosure is_alive(_g1h);
          _gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
        }
      }
      ```

      `report_object_count_after_gc` is called even when mark isn't complete, but accurate liveness info require complete-marking.

      Remove the partial-result case.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: