Skip to content

Conversation

@sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Aug 25, 2025

Hi all,

This pull request contains a backport of commit 58e75815 from the openjdk/jdk repository. I add --enable-preview paramerer to @compile and @run junit since unnamed is preview feature in jdk21u. All other parts are backport cleanly.

The test is changed to use Thread::join so it waits for the 100 threads to terminate, avoid the fragile sleep.

Change has been verified locally on linux-x64. Test-fix only, no risk.

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-8365893 needs maintainer approval

Issue

  • JDK-8365893: test/jdk/java/lang/Thread/virtual/JfrEvents.java failing intermittently (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/2122/head:pull/2122
$ git checkout pull/2122

Update a local copy of the PR:
$ git checkout pull/2122
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/2122/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2122

View PR using the GUI difftool:
$ git pr show -t 2122

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/2122.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 25, 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 25, 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 58e7581527208dfd6dd694793e4790dcad8fc3ef 8365893: test/jdk/java/lang/Thread/virtual/JfrEvents.java failing intermittently Aug 25, 2025
@openjdk
Copy link

openjdk bot commented Aug 25, 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 25, 2025
@openjdk
Copy link

openjdk bot commented Aug 25, 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 25, 2025
@mlbridge
Copy link

mlbridge bot commented Aug 25, 2025

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 22, 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 21, 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 18, 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 16, 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 13, 2026

@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

Can not backport to jdk21u-dev directly.

/home/runner/work/jdk21u-dev/jdk21u-dev/test/jdk/java/lang/Thread/virtual/JfrEvents.java:78: error: unnamed variables are a preview feature and are disabled by default.
                        .mapToObj(_ -> Thread.startVirtualThread(() -> { }))
                                  ^
  (use --enable-preview to enable unnamed variables)

@openjdk openjdk bot removed the clean Identical backport; no merge resolution required label Jan 14, 2026
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