-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8301819: Enable continuations code by default #12459
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 alanb! A progress list of the required criteria for merging this PR into |
@AlanBateman The following label will be automatically applied to this pull request:
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. |
/label remove hotspot-runtime |
@AlanBateman |
@AlanBateman |
Webrevs
|
@AlanBateman Do you have performance data for our regular benchmarks? |
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.
Alan showed me performance data with nothing alarming (at least from benchmarks we use).
I agree with these changes.
@AlanBateman 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
@AlanBateman - Thanks for documenting that Tier[1-6] testing was done on this change. |
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.
@AlanBateman I agree with enabling this and giving it time to bake. Vladimir has already checked there are no red flags on the performance front, so that is fine. If anything does arise we have, as you note, time to address it.
Copyright year needs updating in continuation.cpp.
Thanks.
@kuksenko did a lot of detailed analysis on the performance, this lead to JDK-8300002 to account for the interaction between inlining and the post-call nops. We can re-visit again in a few weeks or months if something comes up.
Yes, will do. |
bool Continuations::enabled() { | ||
return VMContinuations && Arguments::enable_preview(); |
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.
With this change, I think header file "runtime/arguments.hpp"
at line 29 can be excluded.
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.
With this change, I think header file
"runtime/arguments.hpp"
at line 29 can be excluded.
Indeed, that header file is no longer needs to be included - thanks!
static bool enabled(); // TODO: used while virtual threads are in Preview; remove when GA | ||
static bool enabled(); |
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.
Based on the comment, I was expecting this line to be removed.
I'll take it that there's still a way to disable Continuations even after virtual
threads come out of "Preview"?
Update: I see the VMContinuations
option is still present and experimental.
When will it become non-experimental or removed?
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.
And now I'm mulling why VMContinuations
doesn't a default value...
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.
Ohhh... that's right. It's not implemented on all platforms yet... got it...
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.
That's right. Additionally, the alternative implementation of virtual threads can be tested by running tests with -XX:-VMContinuations, and we have a few tests that do this.
/integrate |
Going to push as commit 74b167b.
Your commit was automatically rebased without conflicts. |
@AlanBateman Pushed as commit 74b167b. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The continuations code added in JDK 19 with JEP 425 is currently disabled by default and is only enabled when running with preview features enabled (
--enable-preview
). Disabled by default was the pragmatic choice at that time to reduce risk and possible performance regressions. We'd like to change this so the code is enabled by default on the platforms that have a port. Enabling this code by default helps to shake out any issues early in JDK 21 and sets things up to make virtual threads a permanent feature in the future. If something comes up in the next few weeks/months then it can be changed to be disabled by default again. This change has no impact on the builds that do not have a port.Testing: tier1-tier6
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12459/head:pull/12459
$ git checkout pull/12459
Update a local copy of the PR:
$ git checkout pull/12459
$ git pull https://git.openjdk.org/jdk pull/12459/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12459
View PR using the GUI difftool:
$ git pr show -t 12459
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12459.diff