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

G1: Document why VM_G1CollectForAllocation::doit() may allocate without completing a GC

XMLWordPrintable

    • gc
    • b14

      Mutators only trigger VM_G1CollectForAllocation safepoint after failing to allocate. However, in the safepoint, without any intervening GC completed, VM_G1CollectForAllocation allocation attempts may succeed without completing a GC. This is because an active GCLocker may force expansion of the eden regions while the VM_G1CollectForAllocation is stalling waiting to execute.

      This is rare sequence of events, and should be highlighted with a comment. Additionally, if GCLocker is eventually removed, this allocation attempt should also be removed.

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

              Created:
              Updated:
              Resolved: