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.
- links to
-
Commit(master) openjdk/jdk/2ae3ea2a
-
Review(master) openjdk/jdk/26921