Skip to content

Conversation

@pshipton
Copy link
Member

@pshipton pshipton commented Nov 18, 2025

Remove unnecessary MXBean related classes, interfaces, enums, classes that aren't OpenJ9 specific, are implemented in the extensions and don't need to be implemented by OpenJ9.

Closes #22967

@pshipton pshipton requested a review from keithc-ca November 18, 2025 19:46
@pshipton pshipton changed the title Add MemoryMXBean.getTotalGcCpuTime() implementation, remove some unnecessary OpenJ9 classes Add jdk26 MemoryMXBean.getTotalGcCpuTime() implementation, remove some unnecessary OpenJ9 classes Nov 18, 2025
@pshipton pshipton force-pushed the gccpu branch 3 times, most recently from d7412f8 to 37720e6 Compare November 19, 2025 03:05
@keithc-ca
Copy link
Contributor

Jenkins test sanity plinux jdk8,jdk21,jdknext

@keithc-ca
Copy link
Contributor

TestMemoryMXBean needs to be updated to expect the new API:

        FAILED: testGetMBeanInfo
        java.lang.AssertionError: 
        	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
        	at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24)
        	at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:33)
        	at org.openj9.test.java.lang.management.TestMemoryMXBean.testGetMBeanInfo(TestMemoryMXBean.java:743)

These classes, interfaces, enums, classes that aren't OpenJ9 specific,
are implemented in the extensions and don't need to be implemented by
OpenJ9.

Signed-off-by: Peter Shipton <[email protected]>
@pshipton
Copy link
Member Author

Updated TestMemoryMXBean, and rebased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement MemoryMXBean.getTotalGcCpuTime() for Java 26+

2 participants