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

G1: GCLocker GC with +GCLockerInvokesConcurrent spins while cycle in progress

XMLWordPrintable

    • gc
    • b24

      When using G1, a GCLocker GC (GCCause::_gc_locker) with the product flag GCLockerInvokesConcurrent turned on (fortunately not the default) will spin in try_collect while there is a concurrent marking cycle already in progress. This will block the JNI critical section exiter, as well as any other threads that are in GCLocker::stall_until_clear().

      This is very similar behavior to an old CMS bug (JDK-6919638), though even worse in this case because it's a spin-wait rather than blocking on a monitor.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: