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

G1CollectedHeap::print_on prints incorrect capacity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • hotspot
    • gc
    • b33

        st->print(" [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT ")",
                  p2i(_hrm.reserved().start()),
                  p2i(_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords),
                  p2i(_hrm.reserved().end()));
      The second value should be the amount of committed regions but it adds the heap region size instead of multiplying by the heap region size.

            ehelin Erik Helin
            mgerdin Mikael Gerdin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: