-
Notifications
You must be signed in to change notification settings - Fork 250
8298783: java/lang/ref/FinalizerHistogramTest.java failed with "RuntimeException: MyObject is not found in test output" #3074
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
|
Webrevs
|
@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
/approval request Clean backport to make test more robustness which fix the test fails intermittent. Change has been verifiled locally on linux-x64. Test-fix only, risk is low. |
@sendaoYan |
@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
I think we should backport JDK-8305186 first. |
The patch different to mainline: diff --git a/test/jdk/java/lang/ref/FinalizerHistogramTest.java b/test/jdk/java/lang/ref/FinalizerHistogramTest.java
index 192c229c7b5..4dcea55b1f4 100644
--- a/test/jdk/java/lang/ref/FinalizerHistogramTest.java
+++ b/test/jdk/java/lang/ref/FinalizerHistogramTest.java
@@ -21,7 +21,7 @@
* questions.
*/
-import jdk.test.whitebox.WhiteBox;
+import sun.hotspot.WhiteBox;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantLock;
@@ -34,8 +34,8 @@ import java.lang.reflect.Field;
* @summary Unit test for FinalizerHistogram
* @modules java.base/java.lang.ref:open
* @library /test/lib
- * @build jdk.test.whitebox.WhiteBox
- * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
+ * @build sun.hotspot.WhiteBox
+ * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions |
/approval cancel |
@sendaoYan |
Hi all,
This pull request contains a backport of commit fe29cad5 from the openjdk/jdk repository.
The commit being backported was authored by Brent Christian on 6 May 2025 and was reviewed by Kim Barrett and Jaikiran Pai.
This PR is intend to fix the test bug which cause test intermittent fails. Backport not clean because the path of
sun.hotspot.WhiteBox
different to main-line, the path should adopt to jdk11u-dev when backport from main-line to jdk11u-dev, Other parts is cleanly.I have verified this backport plus with #3105.
Thanks!
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3074/head:pull/3074
$ git checkout pull/3074
Update a local copy of the PR:
$ git checkout pull/3074
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3074/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3074
View PR using the GUI difftool:
$ git pr show -t 3074
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3074.diff
Using Webrev
Link to Webrev Comment