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

Shenandoah: Capture thread state sync times in GC timings

XMLWordPrintable

    • gc
    • b13

      JDK-8321815 introduced code to sync up thread states at safepoint. This code runs with the time proportional to the number of threads, and can take tens/hundreds of microseconds.

      Unfortunately, that sync code runs right in `VMOperation::doit`, which is not captured in GC event time (done by `ShenandoahPausePhase` in `ShenandoahHeap::entry_*`). It is also not captured captured by "GC net time" in regular Shenandoah counters.

       It would be better to move these down in relevant `ShenandoahHeap::op_*` methods, and wrap them in GC phase counters to clearly capture the time we spend there.

            xpeng Xiaolong Peng
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: