10 Sep
2021
10 Sep
'21
6:25 a.m.
On Thu, 9 Sep 2021 10:14:48 GMT, kabutz <github.com+332398+kabutz@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
It looks like [d621cdd](https://github.com/openjdk/jdk/commit/d621cdd957b78e53ea63b6b9bb2fce08560a86...) has undone the changes.
Thanks Alan! ------------- PR: https://git.openjdk.java.net/jdk/pull/5439