-
Notifications
You must be signed in to change notification settings - Fork 148
8334371: [AIX] Beginning with AIX 7.3 TL1 mmap() supports 64K memory pages #1362
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
Conversation
|
👋 Welcome back jkern! A progress list of the required criteria for merging this PR into |
|
@JoKern65 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 22 new commits pushed to the
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. Possible candidates are the reviewers of this PR (@TheRealMDoerr, @tstuefe) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
TheRealMDoerr
left a comment
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.
This change differs significantly from the original change. Please explain all differences.
TheRealMDoerr
left a comment
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.
LGTM.
| #include "runtime/globals_extension.hpp" | ||
| #include "runtime/java.hpp" | ||
| #include "runtime/os.hpp" | ||
| #include "runtime/os.inline.hpp" |
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.
Note that including os.hpp is no longer needed when you include os.inline.hpp.
|
|
tstuefe
left a comment
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.
Patch looks good. Thanks for doing this.
After 20 years we can finally start reducing the crud around 64k page handling. If 64K page handling is ubiquitous, you will be able to throw out the System V shm allocation path, and all that vmem_xxx stuff we wrote 20 years ago.
|
/approval JDK-8334371 request backport to support new OS Release AIX 7.3. All needed changes compared to head described in description of this PR. |
|
/integrate |
|
/sponsor |
|
Going to push as commit 29a5de0.
Your commit was automatically rebased without conflicts. |
|
@TheRealMDoerr @JoKern65 Pushed as commit 29a5de0. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Beginning with AIX 7.3 TL1 mmap() supports 64K memory pages. As an enhancement, during the initialization of the VM the availability of this new feature is examined. If the 64K pages are supported the VM will use mmap() with 64K pages instead of shmget()/shmat() with 64K pages due to the bad 256M alignment of shmget()/shmat().
In this downport to jdk21 we want to support the new AIX 7.3 TL1 feature, but with some differences explained here:
static void query_multipage_support()insrc/hotspot/os/aix/os_aix.cppThe structure of the function was changed identically in head and jdk21. Because jdk21 beforehand used trcVerbose(...) and head beforehand used log_warning(pagesize)(...) this seems to be a difference, but I just kept the tracing functions as the were before.
src/hotspot/share/memory/virtualspace.cppAdding the use of
os::Aix::supports_64K_mmap_pages()introduces the dependency to the headersrc/hotspot/os/aix/os_aix.hpp. In head this header was included with#include "runtime/os.inline.hpp"beforehand by dependant code added after jdk21. Therefore I have to include#include "runtime/os.inline.hpp"explicitely in virtualspace.cpp.#include "runtime/os.hpp"can be dropped instead.src/hotspot/share/runtime/os.cppFunction
char* os::attempt_reserve_memory_between()does not exist in jdk21, so I do not have to port the adoptions of head there.TEST_VM(os, aix_reserve_at_non_shmlba_aligned_address)moved fromtest/hotspot/gtest/runtime/test_os.cpptotest/hotspot/gtest/runtime/test_os_aix.cppThis test function does not exist in jdk21, so there is nothing to move.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1362/head:pull/1362$ git checkout pull/1362Update a local copy of the PR:
$ git checkout pull/1362$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1362/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1362View PR using the GUI difftool:
$ git pr show -t 1362Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1362.diff
Using Webrev
Link to Webrev Comment