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

Do precise BOT updates in G1 evacuation phase

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • hotspot
    • gc
    • b23

      In G1 young collections the BOT is updated for objects copied to old generation regions. The BOT updates are very crude and only done for each new PLAB and for direct allocations (large allocation outside the PLABs).

      The BOT is then updated to be more precies during concurrent refinement and when scanning the heap in later GCs. This leads to both more time spent doing concurrent refinement as well as prolonged "scan heap" phases in the following GCs.

      If we instead update the BOT to be complete while doing the copy we can reduce the time in the following phases quite significantly. This comes with a slight regression in object copy times, but from my measurements the overall gain is positive.

            sjohanss Stefan Johansson
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: