…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 ------------- Commit messages: - Merge branch 'openjdk:master' into thread_priority - Merge remote-tracking branch 'origin/thread_priority' into thread_priority - Merge branch 'openjdk:master' into thread_priority - Merge branch 'openjdk:master' into thread_priority - Merge branch 'openjdk:master' into thread_priority - Redo the change to MAX_PRIORITY - 2 - Removed stray "java" - Thread priority of Cleaner threads was set to MIN_PRIORITY-2 instead of MAX_PRIORITY-2 during refactoring Changes: https://git.openjdk.java.net/jdk/pull/5439/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5439&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8273541 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/5439.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5439/head:pull/5439 PR: https://git.openjdk.java.net/jdk/pull/5439