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

8299635: Hotspot update for deprecated sprintf in Xcode 14 #2663

Closed
wants to merge 3 commits into from

Conversation

gdams
Copy link
Member

@gdams gdams commented Jul 4, 2024

Changes to the patch:

The following files don't exist in jdk17u

  • test/hotspot/jtreg/runtime/Thread/libAsyncExceptionOnMonitorEnter.cpp (openjdk/jdk@4e20a03 JDK19+)
  • test/hotspot/jtreg/serviceability/jvmti/events/ThreadEnd/threadend01/libthreadend01.cpp (openjdk/jdk@9583e36 JDK19+)
  • test/hotspot/jtreg/serviceability/jvmti/events/ThreadStart/threadstart01/libthreadstart01.cpp (openjdk/jdk@9583e36 JDK19+)

The changes didn't apply to src/hotspot/share/opto/node.cpp as openjdk/jdk@33ed036 is JDK20+

The changes didn't apply to src/hotspot/share/utilities/globalDefinitions.hpp as openjdk/jdk@04f02ac is JDK19+


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

Issue

  • JDK-8299635: Hotspot update for deprecated sprintf in Xcode 14 (Enhancement - P4 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2663

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 4, 2024

👋 Welcome back gdams! A progress list of the required criteria for merging this PR into pr/2662 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 Jul 4, 2024

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

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

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

8299635: Hotspot update for deprecated sprintf in Xcode 14

Reviewed-by: sgehwolf, andrew

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 6 new commits pushed to the master branch:

  • 8d974ea: 8299378: sprintf is deprecated in Xcode 14
  • e191f94: 8299397: Remove metaprogramming/isFloatingPoint.hpp
  • a1ae58e: 8299399: Remove metaprogramming/isArray.hpp
  • e661861: 8299402: Remove metaprogramming/isVolatile.hpp
  • 8b9d876: 8299398: Remove metaprogramming/isConst.hpp
  • f87aa30: 8328238: Convert few closed manual applet tests to main

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title Backport e80b5ea448c715519d14e238321ceb5ec40b37f4 8299635: Hotspot update for deprecated sprintf in Xcode 14 Jul 4, 2024
@openjdk
Copy link

openjdk bot commented Jul 4, 2024

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

@openjdk openjdk bot added the backport label Jul 4, 2024
@openjdk-notifier openjdk-notifier bot changed the base branch from pr/2662 to master July 5, 2024 07:14
@openjdk-notifier
Copy link

The parent pull request that this pull request depends on has now been integrated and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork:

git checkout xcode_hotspot
git fetch https://git.openjdk.org/jdk17u-dev.git master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push

@@ -1,4 +1,5 @@
/*
s
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels like an accidental s added to the comment but it's the same in openjdk/jdk https://github.com/openjdk/jdk/blob/4ec1ae109710aa150e27acf5706475d335c4655c/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/functions/rawmonitor/rawmonitor.cpp#L1-L5 so needs fixing there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Created openjdk/jdk#20051

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch and thanks @jerboaa for fixing in trunk. I'll open a backport to 21u.

@gdams gdams marked this pull request as ready for review July 5, 2024 08:29
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 5, 2024
@mlbridge
Copy link

mlbridge bot commented Jul 5, 2024

Webrevs

Copy link
Contributor

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me. File differences were as you said. That was helpful info, thanks!

@openjdk
Copy link

openjdk bot commented Jul 5, 2024

⚠️ @gdams 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.

@gdams
Copy link
Member Author

gdams commented Jul 5, 2024

/approval request This change applies cleanly other than some missing files in JDK17u. All tests pass. This is also crucial to allow us to upgrade the GH actions workflow to move away from the deprecated macos-11 VMs.

@openjdk
Copy link

openjdk bot commented Jul 5, 2024

@gdams
8299635: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jul 5, 2024
Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport looks good. The omissions are actually a good example of how more instance of sprintf have been creeping in since JDK 17. The Mac build failures should now keep more from happening.

  • test/hotspot/jtreg/runtime/Thread/libAsyncExceptionOnMonitorEnter.cpp is from
    JDK-8283044 so wouldn't expect that to ever appear in 17
  • test/hotspot/jtreg/serviceability/jvmti/events/ThreadEnd/threadend01/libthreadend01.cpp and test/hotspot/jtreg/serviceability/jvmti/events/ThreadStart/threadstart01/libthreadstart01.cpp` are both from the Virtual Threads JEP (JDK-8284161) so definitely wouldn't expect a backport
  • The node.cpp changes are from a dumping enhancement (JDK-8283775) so again no backport exported
  • The globalDefinitions.hpp change is from a fairly controversial adjustment to block the use of the "raw" variants over the os:: versions, and definitely shouldn't be backported (JDK-8214976)

TL;DR: I agree with your omissions.

@gnu-andrew
Copy link
Member

/approve yes

@openjdk
Copy link

openjdk bot commented Jul 5, 2024

@gnu-andrew
8299635: The approval request has been approved.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Jul 5, 2024
@gdams
Copy link
Member Author

gdams commented Jul 5, 2024

/integrate

@openjdk
Copy link

openjdk bot commented Jul 5, 2024

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

  • 7144027: 8318039: GHA: Bump macOS and Xcode versions
  • 8d974ea: 8299378: sprintf is deprecated in Xcode 14
  • e191f94: 8299397: Remove metaprogramming/isFloatingPoint.hpp
  • a1ae58e: 8299399: Remove metaprogramming/isArray.hpp
  • e661861: 8299402: Remove metaprogramming/isVolatile.hpp
  • 8b9d876: 8299398: Remove metaprogramming/isConst.hpp
  • f87aa30: 8328238: Convert few closed manual applet tests to main

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jul 5, 2024

@gdams Pushed as commit faf55dd.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants