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

8261404: Class.getReflectionFactory() is not thread-safe #2554

Closed
wants to merge 1 commit into from

Conversation

Delawen
Copy link
Contributor

@Delawen Delawen commented Feb 26, 2024

This is a backport of https://bugs.openjdk.org/browse/JDK-8261404
8261404: Class.getReflectionFactory() is not thread-safe

Original commit openjdk/jdk@905b763


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8261404 needs maintainer approval

Issue

  • JDK-8261404: Class.getReflectionFactory() is not thread-safe (Bug - P4 - Approved)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2554

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

Using diff file

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

Webrev

Link to Webrev Comment

@Delawen Delawen changed the title Backport 905b7639424a0fa80f81f734f6fdae1b5018a14a Backport 905b7639424a0fa80f81f734f6fdae1b5018a14a Feb 26, 2024
@bridgekeeper
Copy link

bridgekeeper bot commented Feb 26, 2024

👋 Welcome back Delawen! 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 openjdk bot changed the title Backport 905b7639424a0fa80f81f734f6fdae1b5018a14a 8261404: Class.getReflectionFactory() is not thread-safe Feb 26, 2024
@openjdk
Copy link

openjdk bot commented Feb 26, 2024

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

@openjdk
Copy link

openjdk bot commented Feb 26, 2024

⚠️ @Delawen 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 Feb 26, 2024
@mlbridge
Copy link

mlbridge bot commented Feb 26, 2024

Webrevs

@Delawen
Copy link
Contributor Author

Delawen commented Feb 26, 2024

/approval JDK-8261404 request Fix Request
The private method java.lang.Class.getReflectionFactory() appears to not be thread-safe. This commit fixes that.
This fix is a backport. I am applying the same fix that was done for versions 17 and 19.

@openjdk
Copy link

openjdk bot commented Feb 26, 2024

@Delawen
JDK-8261404: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Feb 26, 2024
@Delawen
Copy link
Contributor Author

Delawen commented Feb 27, 2024

@RealCLanger @GoeLin I already backported this to 17 and now I am backporting to 11. This is a clean small backport. Can any of you review it?

@GoeLin
Copy link
Member

GoeLin commented Feb 27, 2024

Hi @Delawen, it is a clean backport. If so, not review is needed.
It would be good though if you reported in the fix request comment how you tested your backport. (This one is simple, though). Thanks.

@openjdk
Copy link

openjdk bot commented Feb 27, 2024

@Delawen This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8261404: Class.getReflectionFactory() is not thread-safe

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 31 new commits pushed to the master branch:

  • 7b7fbdf: 8267938: (sctp) SCTP channel factory methods should check platform support
  • f3069d1: 8325972: Add -x to bash for building with LOG=debug
  • b425dff: 8320303: Allow PassFailJFrame to accept single window creator
  • bc14b9f: 8326638: Crash in PhaseIdealLoop::remix_address_expressions due to unexpected Region instead of Loop
  • 4ef8db8: 8318580: "javax/swing/MultiMonitor/MultimonVImage.java failing with Error. Can't find library: /open/test/jdk/java/awt/regtesthelpers" after JDK-8316053
  • 6c0a88d: 8271142: package help is not displayed for missing X11/extensions/Xrandr.h
  • 2a78f2f: Merge
  • 5c5687d: 8322750: Test "api/java_awt/interactive/SystemTrayTests.html" failed because A blue ball icon is added outside of the system tray
  • a4a5c7f: 8276125: RunThese24H.java SIGSEGV in JfrThreadGroup::thread_group_id
  • f6e6eef: 8326938: [11u] JDK-8214908 broke two CTW tests
  • ... and 21 more: https://git.openjdk.org/jdk11u-dev/compare/e075097dc849eb3b66648d2392205aecac9aeeaa...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Feb 27, 2024
@Delawen
Copy link
Contributor Author

Delawen commented Mar 11, 2024

/integrate

@Delawen
Copy link
Contributor Author

Delawen commented Mar 11, 2024

I thought I already did it, sorry for the delay.

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 11, 2024
@openjdk
Copy link

openjdk bot commented Mar 11, 2024

@Delawen
Your change (at version 3ff1b5a) is now ready to be sponsored by a Committer.

@jerboaa
Copy link
Contributor

jerboaa commented Mar 11, 2024

/sponsor

@openjdk
Copy link

openjdk bot commented Mar 11, 2024

Going to push as commit a26445d.
Since your change was applied there have been 31 commits pushed to the master branch:

  • 7b7fbdf: 8267938: (sctp) SCTP channel factory methods should check platform support
  • f3069d1: 8325972: Add -x to bash for building with LOG=debug
  • b425dff: 8320303: Allow PassFailJFrame to accept single window creator
  • bc14b9f: 8326638: Crash in PhaseIdealLoop::remix_address_expressions due to unexpected Region instead of Loop
  • 4ef8db8: 8318580: "javax/swing/MultiMonitor/MultimonVImage.java failing with Error. Can't find library: /open/test/jdk/java/awt/regtesthelpers" after JDK-8316053
  • 6c0a88d: 8271142: package help is not displayed for missing X11/extensions/Xrandr.h
  • 2a78f2f: Merge
  • 5c5687d: 8322750: Test "api/java_awt/interactive/SystemTrayTests.html" failed because A blue ball icon is added outside of the system tray
  • a4a5c7f: 8276125: RunThese24H.java SIGSEGV in JfrThreadGroup::thread_group_id
  • f6e6eef: 8326938: [11u] JDK-8214908 broke two CTW tests
  • ... and 21 more: https://git.openjdk.org/jdk11u-dev/compare/e075097dc849eb3b66648d2392205aecac9aeeaa...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 11, 2024
@openjdk openjdk bot closed this Mar 11, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Mar 11, 2024
@openjdk
Copy link

openjdk bot commented Mar 11, 2024

@jerboaa @Delawen Pushed as commit a26445d.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@Delawen Delawen deleted the backport-JDK-8261404 branch March 11, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport clean integrated Pull request has been integrated
3 participants