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

CollectorPolicy::satisfy_failed_metadata_allocation can avoid some safepoints

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b35

        By inserting an allocation attempt at the beginning of the loop in CollectorPolicy::satisfy_failed_metadata_allocation, there are two safepoints we might be able to avoid:

        1. When a thread continues a loop after having been stalled due to a GC_locker initiated Full GC
        2. When the VM_CollectForMetadata VM operation's prologue fails because a full GC has already been run just prior to the CollectForMetadata VM operation.

              ehelin Erik Helin
              ehelin Erik Helin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: