Move Universe::update_heap_info_at_gc to CollectedHeap

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: hotspot
    • gc
    • b16

      In the review for JDK-8248401 the suggestion came up to move Universe::update_heap_at_gc() and related members to CollectedHeap.

      void Universe::update_heap_info_at_gc() {
        _heap_capacity_at_last_gc = heap()->capacity();
        _heap_used_at_last_gc = heap()->used();
      }

      The method also accesses all heap related variables, so CollectedHeap may be a better place to store them.

            Assignee:
            Aditya Mandaleeka
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: