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

Replace G1ConcurrentMarkThread::vtime_accum() with same value for sun.threads.cpu_time.gc_conc_mark

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 22
    • hotspot
    • gc

      JDK-8315149 added an hsperf counter `sun.threads.cpu_time.gc_conc_mark`. As mentioned in https://github.com/openjdk/jdk/pull/15082, the existing G1ConcurrentMarkThread::vtime_accum() and G1ConcurrentMarkThread::vtime_mark_accum() are only used in logging, and serve a similar purpose as the sun.threads.cpu_time.gc_conc_mark counter. Moreover, os::elapsedVTime() could be either CPU time or wall time, depending on the platform, which could be confusing to users.

      It would be cleaner to replace the use cases of G1ConcurrentMarkThread::vtime_accum() and G1ConcurrentMarkThread::vtime_mark_accum() with the same underlying value as sun.threads.cpu_time.gc_conc_mark.

            Unassigned Unassigned
            manc Man Cao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: