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

G1: G1FullGCScope remove unnecessary member _explicit_gc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 21
    • None
    • hotspot
    • gc
    • b20

      G1FullGCScope member variable is used only for verification in assert(!GCCause::is_user_requested_gc(gc_cause()) || explicit_gc, "invariant"). However, the assert is unnecessary, or we can gc_cause() to determine whether the explicit_gc is true. Therefore, we can remove the _explicit_gc member and probably the assert.

            iwalulya Ivan Walulya
            iwalulya Ivan Walulya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: