Simplify CPUTimeCounters::publish_gc_total_cpu_time

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • b13

      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.

            Assignee:
            Guanqiang Han
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: