Skip to content

Conversation

@mrserb
Copy link
Member

@mrserb mrserb commented Oct 31, 2025

Hi all,

This pull request contains a backport of commit 7743345f from the openjdk/jdk repository.

The commit being backported was authored by Magnus Ihse Bursie on 17 Oct 2022 and was reviewed by Erik Joelsson and Aleksey Shipilev.

The patch updates the code to handle certain warnings during compilation. It is part of the ongoing effort to migrate JDK 17 to the new toolchain, including Xcode 16, and will make further patches cleaner.

The patch is not clean because the next three are not in jdk17u:

The next two are are already in jdk17u so context a little bit different:

Testing:

  • github actions
  • gcc: 7.3.1, 9.3.1, 10.5.0, 11.4.0, 11.5.0, 13.2.1 and 13.3.0
  • xcode: 26, 26.0.1
  • VS 2022

Progress

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

Issue

  • JDK-8294314: Minimize disabled warnings in hotspot (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4143

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 31, 2025

👋 Welcome back serb! 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 Oct 31, 2025

@mrserb 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:

8294314: Minimize disabled warnings in hotspot

Reviewed-by: shade

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

  • e3c50e1: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)
  • 9bf2571: 8328299: Convert DnDFileGroupDescriptor.html applet test 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 7743345f6f73398f280fd18364b4cea10a6b0f2f 8294314: Minimize disabled warnings in hotspot Oct 31, 2025
@openjdk
Copy link

openjdk bot commented Oct 31, 2025

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

@openjdk openjdk bot added the backport Port of a pull request already in a different code base label Oct 31, 2025
@mrserb mrserb closed this Oct 31, 2025
@mrserb mrserb reopened this Oct 31, 2025
@mrserb mrserb marked this pull request as ready for review October 31, 2025 18:03
@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 31, 2025
@mlbridge
Copy link

mlbridge bot commented Oct 31, 2025

Webrevs

@mrserb
Copy link
Member Author

mrserb commented Oct 31, 2025

I’m not sure what to do with files that don’t exist in jdk17u yet. For example(test_signals.cpp), if some tests were updated upstream(JDK-8292054) but haven’t been backported, should we exclude them from the current list for now, or add them once they’re backported? (we might forget to do that later.)

@mrserb
Copy link
Member Author

mrserb commented Oct 31, 2025

found some issues on alpine on aarch64, working on that.

@mrserb
Copy link
Member Author

mrserb commented Oct 31, 2025

found some issues on alpine on aarch64, working on that.

Not a regression of this patch, the master branch cannot be built as well due to missing JDK-8301493. I’ll address that in a separate backport.

hotspot/cpu/aarch64/interpreterRT_aarch64.cpp:270:33: error: operands to '?:' have different types 'std::nullptr_t' and 'intptr_t' {aka 'long int'}
  270 |     intptr_t value = *addr == 0 ? NULL : (intptr_t)addr;

@mrserb
Copy link
Member Author

mrserb commented Oct 31, 2025

I’m not sure what to do with files that don’t exist in jdk17u yet. For example(test_signals.cpp), if some tests were updated upstream(JDK-8292054) but haven’t been backported, should we exclude them from the current list for now, or add them once they’re backported? (we might forget to do that later.)

I decided to drop it.

@mrserb
Copy link
Member Author

mrserb commented Nov 1, 2025

@shipilev please take a look

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

Looks fine to me, good job! I think we'll wait for another PR to land, upgrade to MacOS 15, and then see if this exclusion block is fine for all GHA platforms. How does that sound?

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@openjdk
Copy link

openjdk bot commented Nov 7, 2025

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

@mrserb
Copy link
Member Author

mrserb commented Nov 8, 2025

/approval request
The patch updates the code to handle certain warnings during compilation. It was part of the ongoing effort to migrate JDK 17 to the new toolchain, including Xcode 16, and will make further patches cleaner.

@openjdk
Copy link

openjdk bot commented Nov 8, 2025

@mrserb
8294314: The approval request has been created successfully.

@openjdk openjdk bot added approval Requires approval; will be removed when approval is received ready Pull request is ready to be integrated labels Nov 8, 2025
@openjdk openjdk bot removed the approval Requires approval; will be removed when approval is received label Nov 11, 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 ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants