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

JDK-8328272: [AIX] Use flag kind "diagnostic" for platform specific flags #18337

Closed
wants to merge 2 commits into from

Conversation

JoKern65
Copy link
Contributor

@JoKern65 JoKern65 commented Mar 16, 2024

Current platform implementation (globals_aix.hpp) uses regular product flags for almost everything.
Most platform specific flags were never intended for official support. They are only there to diagnose issues and find workarounds.
So flag kind "diagnostic" fits better for them.


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
  • Change requires CSR request JDK-8328304 to be approved

Issues

  • JDK-8328272: [AIX] Use flag kind "diagnostic" for platform specific flags (Enhancement - P4)
  • JDK-8328304: [AIX] Use flag kind "diagnostic" for platform specific flags (CSR)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 18337

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 16, 2024

👋 Welcome back jkern! 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 Mar 16, 2024

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

8328272: [AIX] Use flag kind "diagnostic" for platform specific flags

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

  • 940d196: 8328604: remove on_aix() function
  • d44aaa3: 8326643: JDK server does not send a dummy change_cipher_spec record after HelloRetryRequest message
  • 9bc741d: 8328339: Static import prevents source launcher from finding class with main method
  • 256d48b: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main
  • 177b8a2: 8327840: Automate javax/swing/border/Test4129681.java
  • da00921: 8320404: Double whitespace in SubTypeCheckNode::dump_spec output
  • 4d36c4a: 8328285: GetOwnedMonitorInfo functions should use JvmtiHandshake
  • 0efd9dc: 8328398: Convert java/awt/im/4490692/bug4490692.html applet test to main
  • 46809b3: 8324736: Invalid end positions for EMPTY_STATEMENT
  • f7f291c: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program
  • ... and 85 more: https://git.openjdk.org/jdk/compare/07194195cefc568048fa639b6f8534ce3718c8d2...master

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 rfr Pull request is ready for review label Mar 16, 2024
@openjdk
Copy link

openjdk bot commented Mar 16, 2024

@JoKern65 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 hotspot-runtime hotspot-runtime-dev@openjdk.org csr Pull request needs approved CSR before integration labels Mar 16, 2024
@mlbridge
Copy link

mlbridge bot commented Mar 16, 2024

Webrevs

Copy link
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.

@tstuefe
Copy link
Member

tstuefe commented Mar 18, 2024

Please be aware that this can cause problems with customers who update the JVM to this patch and have one of these settings set in production. Their JVMs may not come up after this change.

To use diagnostic flags, you need to specify "-XX:UnlockDiagnosticVMOptions" to unlock them, otherwise the JVM will not come up. Which is the reason such changes usually need CSRs.

Up to you if you risk it, ultimately. But I think MaxExpectedDataSegmentSize is needed and pretty commonly used. I would leave that one a product flag.

@TheRealMDoerr
Copy link
Contributor

TheRealMDoerr commented Mar 18, 2024

I think this is acceptable for a new Java release. We just shouldn't backport it. Do you really think anybody sets one of these flags in production?
Are you aware of any MaxExpectedDataSegmentSize user other than in SAP JVM 8?
I leave it up to you guys to decide if you prefer keeping that one a regular product flag.

@JoKern65
Copy link
Contributor Author

@tstuefe I'm fine with keeping MaxExpectedDataSegmentSize
The one I'm most interested to get rid of is Use64KPages. And I think you too, because then we can eliminate the 4K Pages support.
What about making the remaining 4 flags diagnostic in jdk23 and removing at least Use64KPages in jdk24?

@tstuefe
Copy link
Member

tstuefe commented Mar 18, 2024

I think this is acceptable for a new Java release. We just shouldn't backport it. Do you really think anybody sets one of these flags in production? Are you aware of any MaxExpectedDataSegmentSize user other than in SAP JVM 8? I leave it up to you guys to decide if you prefer keeping that one a regular product flag.

MaxExpectedDataSegmentSize is needed because of the implicit problem with AIX that libc only allocates in sbrk. So, like on Solaris, this will always be an issue where we need a flag in case the breathing room for the libc is not large enough. Either that, or we need to completely avoid allocating at arbitrary wish addresses, which makes coops friendly heap and class space less coops friendly.

@tstuefe I'm fine with keeping MaxExpectedDataSegmentSize The one I'm most interested to get rid of is Use64KPages. And I think you too, because then we can eliminate the 4K Pages support. What about making the remaining 4 flags diagnostic in jdk23 and removing at least Use64KPages in jdk24?

Sounds good to me.

Copy link
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 the explanation! Makes sense.

Copy link
Member

@tstuefe tstuefe left a comment

Choose a reason for hiding this comment

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

+1

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Mar 21, 2024
@JoKern65
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 22, 2024
@openjdk
Copy link

openjdk bot commented Mar 22, 2024

@JoKern65
Your change (at version 5cf1259) is now ready to be sponsored by a Committer.

@TheRealMDoerr
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented Mar 22, 2024

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

  • e669d14: 8328671: Mark allocate_new_tlab and unsafe_max_tlab_alloc of CollectedHeap as pure virtual
  • 940d196: 8328604: remove on_aix() function
  • d44aaa3: 8326643: JDK server does not send a dummy change_cipher_spec record after HelloRetryRequest message
  • 9bc741d: 8328339: Static import prevents source launcher from finding class with main method
  • 256d48b: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main
  • 177b8a2: 8327840: Automate javax/swing/border/Test4129681.java
  • da00921: 8320404: Double whitespace in SubTypeCheckNode::dump_spec output
  • 4d36c4a: 8328285: GetOwnedMonitorInfo functions should use JvmtiHandshake
  • 0efd9dc: 8328398: Convert java/awt/im/4490692/bug4490692.html applet test to main
  • 46809b3: 8324736: Invalid end positions for EMPTY_STATEMENT
  • ... and 86 more: https://git.openjdk.org/jdk/compare/07194195cefc568048fa639b6f8534ce3718c8d2...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Mar 22, 2024

@TheRealMDoerr @JoKern65 Pushed as commit b334a8e.

💡 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