-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated MXBean APIs & internal methods in Java 19 and 20 #15127
Conversation
jenkins compile win jdknext |
jenkins test sanity,extended alinux64 jdk8 |
jenkins test sanity,extended amac jdknext |
jenkins test sanity,extended amac jdknext |
jenkins compile win jdknext |
Testing via grinders: |
Re-run 19 JLM_Tests_interface with the fixes: |
.../jdk.management/share/classes/com/ibm/lang/management/internal/ExtendedMemoryMXBeanImpl.java
Outdated
Show resolved
Hide resolved
Updated to address comments. |
Removed in 19: ExtendedMemoryMXBeanImpl.getTotalPhysicalMemory() OperatingSystemMXBean.getTotalPhysicalMemory(), getProcessCpuTimeByNS(), getProcessVirtualMemorySize() RuntimeMXBean.getProcessID() Removed in 20: ExtendedMemoryMXBeanImpl.getTotalPhysicalMemorySize(), getUsedPhysicalMemory() Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Tweaked some other javadoc. |
I'm satisfied that the recent changes don't invalidate the successful build at https://openj9-jenkins.osuosl.org/job/PullRequest-OpenJ9/2175/; I also did a local build to confirm the UMA changes are good. |
Otherwise the test code does not compile on jdk19 where the methods are removed. See eclipse-openj9/openj9#15127 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Otherwise the test code does not compile on jdk19 where the methods are removed. See eclipse-openj9/openj9#15127 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Otherwise the test code does not compile on jdk19 where the methods are removed. See eclipse-openj9/openj9#15127 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Removed in 19:
ExtendedMemoryMXBeanImpl.getTotalPhysicalMemory()
OperatingSystemMXBean.getTotalPhysicalMemory(), getProcessCpuTimeByNS(), getProcessVirtualMemorySize()
RuntimeMXBean.getProcessID()
Removed in 20:
ExtendedMemoryMXBeanImpl.getTotalPhysicalMemorySize(), getUsedPhysicalMemory()