CollectorPolicy::satisfy_failed_metadata_allocation can avoid some safepoints

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: