RFR: 8255934: JConsole 14 and greater fails to connect to older JVM
Serguei Spitsyn
sspitsyn at openjdk.java.net
Fri Nov 20 23:30:10 UTC 2020
On Mon, 16 Nov 2020 23:00:05 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> OperatingSystemMXBean was changed in jdk14 (see JDK-8226575):
> New methods getTotalMemorySize and getFreeMemorySize were added, old getTotalPhysicalMemorySize and getFreePhysicalMemorySize were deprecated.
>
> The fix adds fallbacks for the values (i.e. if new methods fail, jconsole calls old methods)
Hi Alex,
It looks good to me.
Thanks,
Serguei
-------------
Marked as reviewed by sspitsyn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/1243
More information about the serviceability-dev
mailing list