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

OpenJDK java/util/concurrent/ArrayBlockingQueue/WhiteBox - failed to do a "full" gc #19047

Open
pshipton opened this issue Feb 29, 2024 · 6 comments

Comments

@pshipton
Copy link
Member

pshipton commented Feb 29, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk22_j9_sanity.openjdk_ppc64le_linux_Nightly_testList_2/18
jdk_util_1
java/util/concurrent/ArrayBlockingQueue/WhiteBox.java

22:37:17  test WhiteBox.incrementalSweepingOfUnreachableIterators(): failure
22:37:17  java.lang.AssertionError: failed to do a "full" gc
22:37:17  	at WhiteBox.forceFullGc(WhiteBox.java:226)
22:37:17  	at WhiteBox.incrementalSweepingOfUnreachableIterators(WhiteBox.java:555)
@pshipton
Copy link
Member Author

@dmitripivkine fyi

@dmitripivkine
Copy link
Contributor

Test source https://github.com/ibmruntimes/openj9-openjdk-jdk/blob/openj9/test/jdk/java/util/concurrent/ArrayBlockingQueue/WhiteBox.java

Weak Reference has not been cleared after three System GC() calls

@dmitripivkine
Copy link
Contributor

just BTW test compiles with warnings:

22:37:17  /home/jenkins/workspace/Test_openjdk22_j9_sanity.openjdk_ppc64le_linux_Nightly_testList_2/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/concurrent/ArrayBlockingQueue/WhiteBox.java:210: warning: [removal] finalize() in Object has been deprecated and marked for removal
22:37:17              new Object() { protected void finalize() { finalized.countDown(); }},
22:37:17                                            ^
22:37:17  /home/jenkins/workspace/Test_openjdk22_j9_sanity.openjdk_ppc64le_linux_Nightly_testList_2/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/util/concurrent/ArrayBlockingQueue/WhiteBox.java:218: warning: [removal] runFinalization() in System has been deprecated and marked for removal
22:37:17                      System.runFinalization(); // try to pick up stragglers
22:37:17                            ^

I am not sure when deprecated runFinalization() is going to be removed.

@pshipton
Copy link
Member Author

pshipton commented Mar 1, 2024

It's a OpenJDK test, any modification to remove warnings should happen at OpenJDK. It's deprecated in jdk22 but it won't be removed in jdk22 since this release is now finalized.

@pshipton
Copy link
Member Author

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.openjdk_x86-64_windows_Nightly_testList_2/218
jdk_util_0
java/util/concurrent/ArrayBlockingQueue/WhiteBox.java

20:13:21  test WhiteBox.incrementalSweepingOfUnreachableIterators(): failure
20:13:21  java.lang.AssertionError: failed to do a "full" gc
20:13:21  	at WhiteBox.forceFullGc(WhiteBox.java:226)
20:13:21  	at WhiteBox.incrementalSweepingOfUnreachableIterators(WhiteBox.java:555)
20:13:21  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

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

No branches or pull requests

2 participants