jmx-dev RFR: 8368527: JMX: Add an MXBeans method to query GC CPU time [v2]
Jonas Norlinder
duke at openjdk.org
Mon Oct 20 17:50:05 UTC 2025
On Wed, 15 Oct 2025 10:14:21 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
>> Jonas Norlinder has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Move from j.l.management to com.sun.management etc.
>
> Or:
>
>
> * @implNote Time calculation is implementation-specific, and may include details
> * such as CPU time for driver threads, workers, VM Operations and string deduplication.
> * The return value can be -1 if called when measurement is not possible, such as during shutdown.
Thanks for the suggested API docs @kevinjwalls! I pushed a proposal to use j.l.management, with the proposed generic API docs.
I dropped "may" and "any" from the paragraph about `-1` return value from @kevinjwalls original suggestion:
* This method return {@code -1} if the platform does
* not support this operation or the information is not
* available.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27537#issuecomment-3423134361
More information about the jmx-dev
mailing list