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

Occupancy value in logging and JFR event is inaccurate in G1IHOPControl

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 9, 10, 11, 12, 13, 14, 15, 16, 17
    • tbd
    • hotspot
    • gc
    • 9

    Description

      After JDK-8136677 and JDK-8143220, "occupancy" for G1 IHOP is now computed by this formula:

      region_size * (num_old_regions + num_humongous_regions) + new_humonogous_alloc_bytes

      However, in G1IHOPControl::print(), G1AdaptiveIHOPControl::print(), G1IHOPControl::send_trace_event() and G1AdaptiveIHOPControl::send_trace_event(), the occupancy value is G1CollectedHeap::heap()->used(), which includes used bytes in young regions and does not include wasted space in old regions.

      I'll sponsor my colleague Jonathan Joo to fix this.

      Attachments

        Issue Links

          Activity

            People

              manc Man Cao
              manc Man Cao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: