Skip to content

8378177: AllowExtshm flag cleanup on AIX#30103

Closed
april-ivy wants to merge 2 commits intoopenjdk:masterfrom
april-ivy:JDK-8378177
Closed

8378177: AllowExtshm flag cleanup on AIX#30103
april-ivy wants to merge 2 commits intoopenjdk:masterfrom
april-ivy:JDK-8378177

Conversation

@april-ivy
Copy link
Copy Markdown
Contributor

@april-ivy april-ivy commented Mar 6, 2026

As discussed in #29671 & https://bugs.openjdk.org/browse/JDK-8378177, the AllowExtshm diagnostic flag, _extshm variable, and extshm() function are removed. The flag never worked because it was not parsed early enough so the VM exits before the flag is available. EXTSHM is not something we want to support.


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

Issue

  • JDK-8378177: AllowExtshm flag cleanup on AIX (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30103/head:pull/30103
$ git checkout pull/30103

Update a local copy of the PR:
$ git checkout pull/30103
$ git pull https://git.openjdk.org/jdk.git pull/30103/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30103

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30103.diff

Using Webrev

Link to Webrev Comment

@april-ivy
Copy link
Copy Markdown
Contributor Author

@TheRealMDoerr

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Mar 6, 2026

👋 Welcome back aprilpet! 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
Copy Markdown

openjdk bot commented Mar 6, 2026

@april-ivy 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:

8378177: AllowExtshm flag cleanup on AIX

Reviewed-by: mdoerr, stuefe

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 34 new commits pushed to 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.

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 /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label Mar 6, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 6, 2026

@aprilpet The following label will be automatically applied to this pull request:

  • hotspot-runtime

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 6, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Mar 6, 2026

Webrevs

Copy link
Copy Markdown
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

Thanks for working on it!

// to be a fatal error by default. On certain AIX systems, leaving EXTSHM=ON means
// that the VM is not able to allocate 64k pages for the heap.
// We do not want to run with reduced performance.
vm_exit_during_initialization("EXTSHM is ON. Please remove EXTSHM from your environment.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should keep vm_exit_during_initialization if "EXTSHM" is set, but remove the AllowExtshm check, and the log_warning above.

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 6, 2026

@aprilpet Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

Comment thread src/hotspot/os/aix/os_aix.cpp Outdated
p = ::getenv("EXTSHM");
if (p != nullptr) {
vm_exit_during_initialization("EXTSHM is ON. Please remove EXTSHM from your environment.");
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was this added by mistake?

Looks wrong:

EXTSHM=OFF jdk/bin/java -version
Error occurred during initialization of VM
EXTSHM is ON. Please remove EXTSHM from your environment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mistake on my end, should be fixed now

Copy link
Copy Markdown
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 6, 2026
@april-ivy
Copy link
Copy Markdown
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 6, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 6, 2026

@aprilpet
Your change (at version af5d328) is now ready to be sponsored by a Committer.

@tstuefe
Copy link
Copy Markdown
Member

tstuefe commented Mar 7, 2026

I don't think the exit-when-EXTSHM-is-set should be removed without understanding first what the effects were for the 64kpages-with-SystemV-shm. I remember it being incompatible with some of the shmxxx() calls. The same ratio as given in the original comments we wrote 20 years ago.

I am fine with the removal of the flag, though.

@TheRealMDoerr
Copy link
Copy Markdown
Contributor

I don't think the exit-when-EXTSHM-is-set should be removed without understanding first what the effects were for the 64kpages-with-SystemV-shm. I remember it being incompatible with some of the shmxxx() calls. The same ratio as given in the original comments we wrote 20 years ago.

vm_exit_during_initialization("EXTSHM is ON. Please remove EXTSHM from your environment."); is still in place in the version which I have approved.

I am fine with the removal of the flag, though.

Thanks for taking a look!

@tstuefe
Copy link
Copy Markdown
Member

tstuefe commented Mar 9, 2026

I don't think the exit-when-EXTSHM-is-set should be removed without understanding first what the effects were for the 64kpages-with-SystemV-shm. I remember it being incompatible with some of the shmxxx() calls. The same ratio as given in the original comments we wrote 20 years ago.

vm_exit_during_initialization("EXTSHM is ON. Please remove EXTSHM from your environment."); is still in place in the version which I have approved.

I am fine with the removal of the flag, though.

Thanks for taking a look!

Ah, I missed that part. Okay then.

@tstuefe
Copy link
Copy Markdown
Member

tstuefe commented Mar 9, 2026

/sponsor

@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 9, 2026

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 9, 2026
@openjdk openjdk bot closed this Mar 9, 2026
@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 9, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Mar 9, 2026

@tstuefe @april-ivy Pushed as commit e69fb77.

💡 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

hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants