-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2 #5439
Conversation
…of MAX_PRIORITY-2 during refactoring
👋 Welcome back kabutz! A progress list of the required criteria for merging this PR into |
I've created JDK-8273541 to track this. |
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 looks good. @cl4es might want to confirm that change was not intentional.
Please change the PR title to "8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2" to get it automatically hooked by bots. |
Why would jcheck say "This PR contains no changes" @shipilev ? |
It looks like d621cdd has undone the changes. |
Thanks Alan! |
|
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 looks fine to me.
@kabutz 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 3 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 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 (@shipilev, @AlanBateman, @LanceAndersen) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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 should be ready to integrate so please enter /integrate in a new comment and then it can be sponsored.
Thank you
/integrate |
Completely unintentional, and perplexing since it's not a simple copy-paste error.. |
/sponsor |
Going to push as commit 4e6de5f.
Your commit was automatically rebased without conflicts. |
The thread priorities in Java are the wrong way round, (high is 10, low is 1) so I was not surprised by this mistake. |
Mailing list message from David Holmes on core-libs-dev: On 11/09/2021 5:24 am, kabutz wrote:
They are not "the wrong way around" they followed Solaris Global :) Cheers, |
…of MAX_PRIORITY-2 during refactoring
Appears in Java 17 for the first time.
During refactoring, the priority was changed from Thread.MAX_PRIORITY - 2 to instead state Thread.MIN_PRIORITY - 2, which results in a negative priority, and is thus set to Thread.NORM_PRIORITY. Thus the Cleaner by default now has threads with priority 5, instead of 8.
The change was done in git revision # 992b500 and label 8261036 by Claes Redestad
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5439/head:pull/5439
$ git checkout pull/5439
Update a local copy of the PR:
$ git checkout pull/5439
$ git pull https://git.openjdk.java.net/jdk pull/5439/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5439
View PR using the GUI difftool:
$ git pr show -t 5439
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5439.diff