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

Move Universe::update_heap_info_at_gc to CollectedHeap

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b16

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: