[jdk11u-dev] RFR: 8266391: Replace use of reflection in jdk.internal.platform.Metrics
Severin Gehwolf
sgehwolf at openjdk.java.net
Fri Mar 25 17:34:16 UTC 2022
The cgroups metrics is a Linux-only feature. Instead of using reflection and returning `null` on CNFE platform specific classes can be used instead. This is a no-op from a functionality perspective and avoids reflection, which is a good thing.
-------------
Commit messages:
- Backport 3544a9d0e4a071ad9c82aa17ab113e0101b4020b
Changes: https://git.openjdk.java.net/jdk11u-dev/pull/950/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=950&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8266391
Stats: 103 lines in 4 files changed: 93 ins; 8 del; 2 mod
Patch: https://git.openjdk.java.net/jdk11u-dev/pull/950.diff
Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/950/head:pull/950
PR: https://git.openjdk.java.net/jdk11u-dev/pull/950
More information about the jdk-updates-dev
mailing list