G1: Implement UseGCOverheadLimit

XMLWordPrintable

    • gc
    • b22

      As G1 does not instantiate the AdaptiveSizePolicy class, these JVM flags are no-ops for G1:
      UseGCOverheadLimit
      GCTimeLimit
      GCHeapFreeLimit

      UseGCOverheadLimit and tuning these flags is an effective way to prevent GC thrashing by throwing OOME early. Production users using other garbage collectors have already relied on UseGCOverheadLimit. It is desirable to make UseGCOverheadLimit also work in G1.

            Assignee:
            Thomas Schatzl
            Reporter:
            Man Cao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: