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

Shenandoah: fix error in computation of average allocation rate

XMLWordPrintable

    • gc

      When a new GC cycle starts, the bytes_allocated_since_last_gc() is reset to zero. The first allocation rate sample after completion of GC typically sees a decrease in the value of bytes_allocated_since_last_gc(),which causes it to ignore all allocations that occur during concurrent GC.

      Fix the implementation of ShenandoahAllocationRate::sample() so that these allocations are not ignored from computation of average allocation rate.

            kdnilsen Kelvin Nilsen
            kdnilsen Kelvin Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: