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

Serial: Remove the code related to GC overhead limit

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 21
    • 21
    • hotspot
    • gc
    • b26

      During the review of JDK-8194823, we find the serial GC doesn't implement the GC overheap limit during the GC operation. But it checks the GC overheap limit after the GC, which is unnecessary.

      In detail, the GC operation in Serial GC doesn't use `GCOverheadChecker::check_gc_overhead_limit` and other related methods to change the fields `_gc_overhead_limit_count` and `_gc_overhead_limit_exceeded`. But after the GC, the method `GenCollectedHeap::mem_allocate_work` checks if the `_gc_overhead_limit_exceeded` is true, which is never true.

      Seems a leftover after removing the CMS.

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: