-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
8324539: Do not use LFS64 symbols in JDK libs #17538
Conversation
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
I'm keeping this as draft until I've figured out how what tests are needed to confirm that this fix is unproblematic. |
(I'll try look at this during this week.) |
Webrevs
|
I have searched the code base to the extend of my ability, looking for all Also note that this will only make a change on 32-bit platforms -- all 64-bit platforms already use the 64-bit version of the file functions/structs. This significantly lowers the risk of this patch, since 32-bit support is not as critical as 64-bit support. There is one change that merit highlighting: In |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that it means much coming from me, but the build changes look ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build changes look good.
@magicus 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:
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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
I put it into our build/test patch list to see how it behaves on our environments (especially AIX). |
AIX fastdebug build fails with the patch, build error is
|
@MBaesken You gotta be kidding me... They just put in a But why do only slowdebug fail? Weird. |
Thanks for the AIX related effort ; I put it again into our internal build/test queue. |
With the latest commit the build again fails on AIX with this error /jdk/src/java.base/unix/native/libnio/ch/UnixFileDispatcherImpl.c:381:27: error: incompatible pointer types passing 'struct statvfs64 *' to parameter of type 'struct statvfs *' [-Werror,-Wincompatible-pointer-types] |
Yeah, I missed Now, then maybe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AIX build is fixed now after latest commit, thanks for handling the AIX special cases.
My apologies the additional defines |
Well, well... The code at least looks cleaner without these AIX defines, so I really hope that this is the end of the AIX saga, at the |
And also |
Latest commit looks still good on AIX. |
@JoKern65 So what about |
Same as |
And the smaller file system ID is not a problem, I guess? Do you want me to remove the redefines? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on AIX but the changes look okay overall. I assume you'll bump the copyright header date on all the updated files before integrating.
/integrate |
Going to push as commit e5cb78c. |
Thank you again for this! |
@magicus I have to reach out to IBM asking if the different size of the 'filesystem ID' field in statvfs makes an important difference. If not, I will remove the defines in an AIX-only patch. |
Similar to JDK-8318696, we should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK native libraries.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17538/head:pull/17538
$ git checkout pull/17538
Update a local copy of the PR:
$ git checkout pull/17538
$ git pull https://git.openjdk.org/jdk.git pull/17538/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17538
View PR using the GUI difftool:
$ git pr show -t 17538
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17538.diff
Webrev
Link to Webrev Comment