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

G1: GClocker induced GCs can starve threads requiring memory leading to OOME

XMLWordPrintable

    • gc

      Threads may be starved from receiving memory by the GClocker. This typically leads to OOME in the affected threads. This works as follows:

      1. Thread A tries to allocate memory as normal, and tries to start a GC; the GCLocker is active and so the thread gets stalled waiting for the GC
      2. GCLocker induced GC executes and frees some memory
      3. Thread A does not get any of that memory, but other threads also waiting for memory.
      4. Goto 1 until the gclocker retry count has been reached

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

              Created:
              Updated:
              Resolved: