Skip to content

Remove deprecated MXBean APIs & internal methods in Java 19 and 20 - #15127

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:rmdeprecated
May 27, 2022
Merged

Remove deprecated MXBean APIs & internal methods in Java 19 and 20#15127
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:rmdeprecated

Conversation

@pshipton

@pshipton pshipton commented May 26, 2022

Copy link
Copy Markdown
Member

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

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

@pshipton

Copy link
Copy Markdown
Member Author

jenkins compile win jdknext

@pshipton

Copy link
Copy Markdown
Member Author

jenkins test sanity,extended alinux64 jdk8

@pshipton

Copy link
Copy Markdown
Member Author

jenkins test sanity,extended amac jdknext

@pshipton

Copy link
Copy Markdown
Member Author

@pshipton

Copy link
Copy Markdown
Member Author

jenkins test sanity,extended amac jdknext

@pshipton

Copy link
Copy Markdown
Member Author

jenkins compile win jdknext

@pshipton

Copy link
Copy Markdown
Member Author

@pshipton

pshipton commented May 26, 2022

Copy link
Copy Markdown
Member Author

@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

pshipton commented May 27, 2022

Copy link
Copy Markdown
Member Author

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

@pshipton
pshipton requested a review from keithc-ca May 27, 2022 14:32
Comment thread runtime/jcl/uma/se6_vm-side_natives_exports.xml Outdated
@pshipton

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

Tweaked some other javadoc.

@keithc-ca

Copy link
Copy Markdown
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