Withdrawn: 8369449: Spec: introduce new JVMTI function GetTotalGCCpuTime

Serguei Spitsyn sspitsyn at openjdk.org
Tue Oct 21 19:08:49 UTC 2025


On Fri, 17 Oct 2025 21:02:08 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> With [JDK-8359110](https://bugs.openjdk.org/browse/JDK-8359110) a framework to measure GC CPU time was introduced.
> It will be exposed in JMX as `MemoryMXBean.getTotalGcCpuTime()`. There is also interest to get the same performance data from JVMTI.
> The following API's are being added with this enhancement:
> 
> Introduce:
>  - new capability: `can_get_gc_cpu_time`
>  - new JVMTI functions:
>     - `jvmtiError GetGCCpuTimerInfo(jvmtiEnv* env, jvmtiTimerInfo* info_ptr)`
>     - `jvmtiError GetTotalGCCpuTime(jvmtiEnv* env, jlong* nanos_ptr)`
> 
> **CSR**: [8370159](https://bugs.openjdk.org/browse/JDK-8370159): Spec: introduce new JVMTI function GetTotalGCCpuTime
> 
> Testing:
>  - TBD: Mach5 tiers 1-6

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk/pull/27879


More information about the serviceability-dev mailing list