Skip to content

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Aug 22, 2025

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

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8298783 needs maintainer approval

Issue

  • JDK-8298783: java/lang/ref/FinalizerHistogramTest.java failed with "RuntimeException: MyObject is not found in test output" (Bug - P4)

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

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 22, 2025

👋 Welcome back syan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Aug 22, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport fe29cad5e0b10cd088fc39967599f5a8dcaa445c 8298783: java/lang/ref/FinalizerHistogramTest.java failed with "RuntimeException: MyObject is not found in test output" Aug 22, 2025
@openjdk
Copy link

openjdk bot commented Aug 22, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Aug 22, 2025
@openjdk
Copy link

openjdk bot commented Aug 22, 2025

⚠️ @sendaoYan This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Aug 22, 2025
@mlbridge
Copy link

mlbridge bot commented Aug 22, 2025

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 19, 2025

@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 /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

/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.

@openjdk
Copy link

openjdk bot commented Sep 19, 2025

@sendaoYan
8298783: The approval request has been created successfully.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Sep 19, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 17, 2025

@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 /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

I think we should backport JDK-8305186 first.

@sendaoYan
Copy link
Member Author

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

@sendaoYan
Copy link
Member Author

/approval cancel

@openjdk openjdk bot removed the clean Identical backport; no merge resolution required label Oct 20, 2025
@openjdk
Copy link

openjdk bot commented Oct 20, 2025

@sendaoYan
8298783: The approval request has been cancelled successfully.

@openjdk openjdk bot removed the approval Requires approval; will be removed when approval is received label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant