RFR: 8366035: Simplify CPUTimeCounters::publish_gc_total_cpu_time [v2]

Albert Mingkun Yang ayang at openjdk.org
Mon Aug 25 09:14:53 UTC 2025


On Mon, 25 Aug 2025 08:45:47 GMT, Guanqiang Han <ghan at openjdk.org> wrote:

>> This change refactors CPUTimeCounters::publish_gc_total_cpu_time() to use Atomic::xchg instead of a CAS (cmpxchg) loop.
>> Please review it. Thanks
>
> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update cpuTimeCounters.cpp
>   
>   a small fix

Marked as reviewed by ayang (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/26921#pullrequestreview-3150560761


More information about the hotspot-runtime-dev mailing list