RFR: 8359110: Log accumulated GC and process CPU time upon VM exit [v17]
Albert Mingkun Yang
ayang at openjdk.org
Thu Jul 3 10:07:44 UTC 2025
On Thu, 3 Jul 2025 08:48:21 GMT, Jonas Norlinder <duke at openjdk.org> wrote:
>> src/hotspot/share/runtime/cpuTimeCounters.hpp line 56:
>>
>>> 54:
>>> 55: class CPUTimeCounters: public CHeapObj<mtServiceability> {
>>> 56: friend class CPUTimeScope;
>>
>> I wonder if we avoid this. The public APIs should be enough.
>
> get_instance() is private. It was not clear to me if we would want to change get_instance() to public
Why do you need `get_instance`? Can you use the public static API?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25779#discussion_r2182389263
More information about the hotspot-gc-dev
mailing list