Integrated: 8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2

kabutz github.com+332398+kabutz at openjdk.java.net
Fri Sep 10 14:16:50 UTC 2021


On Thu, 9 Sep 2021 10:14:48 GMT, kabutz <github.com+332398+kabutz at openjdk.org> wrote:

> …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 # 992b50087d2ec8878dfcbbd1820a00b6b6bdf644 and label 8261036 by Claes Redestad

This pull request has now been integrated.

Changeset: 4e6de5f9
Author:    kabutz <heinz at javaspecialists.eu>
Committer: Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4e6de5f9defc031158e027bcbbaf6232b8c03d60
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2

Reviewed-by: shade, alanb, lancea

-------------

PR: https://git.openjdk.java.net/jdk/pull/5439


More information about the core-libs-dev mailing list