Skip to content
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

Merged
merged 1 commit into from
May 27, 2022

Conversation

pshipton
Copy link
Member

@pshipton pshipton commented May 26, 2022

Removed in 19:
ExtendedMemoryMXBeanImpl.getTotalPhysicalMemory()
OperatingSystemMXBean.getTotalPhysicalMemory(), getProcessCpuTimeByNS(), getProcessVirtualMemorySize()
RuntimeMXBean.getProcessID()

Removed in 20:
ExtendedMemoryMXBeanImpl.getTotalPhysicalMemorySize(), getUsedPhysicalMemory()

@pshipton
Copy link
Member Author

jenkins compile win jdknext

@pshipton
Copy link
Member Author

jenkins test sanity,extended alinux64 jdk8

@pshipton
Copy link
Member Author

jenkins test sanity,extended amac jdknext

@pshipton
Copy link
Member Author

@pshipton
Copy link
Member Author

jenkins test sanity,extended amac jdknext

@pshipton
Copy link
Member Author

jenkins compile win jdknext

@pshipton
Copy link
Member Author

@pshipton
Copy link
Member Author

pshipton commented May 26, 2022

@pshipton pshipton changed the title Remove deprecated MXBean APIs in Java 19 and 20 Remove deprecated MXBean APIs & internal methods in Java 19 and 20 May 27, 2022
@pshipton
Copy link
Member Author

pshipton commented May 27, 2022

Re-run 19 JLM_Tests_interface with the fixes:
https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/828 - passed

@pshipton
Copy link
Member Author

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>
@pshipton
Copy link
Member Author

Tweaked some other javadoc.

@keithc-ca
Copy link
Contributor

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.

@keithc-ca keithc-ca merged commit 1392faa into eclipse-openj9:master May 27, 2022
pshipton added a commit to pshipton/openj9-systemtest that referenced this pull request May 30, 2022
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>
pshipton added a commit to pshipton/openj9-systemtest that referenced this pull request May 30, 2022
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>
pshipton added a commit to pshipton/openj9-systemtest that referenced this pull request May 30, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants