jmx-dev RFR: JDK-8324637: [aix] Implement support for reporting swap space in jdk.management
Kevin Walls
kevinw at openjdk.org
Thu Jan 25 14:14:34 UTC 2024
On Thu, 25 Jan 2024 12:30:15 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> The get_total_or_available_swap_space_size coding misses AIX support, we only return 0. This should be enhanced.
> The perfstat API can be used, see https://www.ibm.com/docs/pt/aix/7.2?topic=interfaces-perfstat-memory-total-interface .
I can't try this and don't use AIX, but it looks good.
It follows the same pattern as the other AIX cases in the file.
Although the others (e.g. line 200) don't throw_internal_error if the call returns -1, they just return -1. You might want to do that for consistency of behaviour.
-------------
Marked as reviewed by kevinw (Committer).
PR Review: https://git.openjdk.org/jdk/pull/17569#pullrequestreview-1843836792
More information about the jmx-dev
mailing list