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

Simplify CPUTimeCounters::publish_gc_total_cpu_time

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • None
    • master

      CPUTimeCounters::publish_gc_total_cpu_time wants to get the latest value of _gc_total_cpu_time_diff and atomically reset it to zero. It uses a cmpxchg loop to accomplish this. It would be much simpler to just use Atomic::xchg.

            ghan Guanqiang Han
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: