Skip to content

Commit 4e6de5f

Browse files
kabutzcl4es
authored andcommittedSep 10, 2021
8273541: Cleaner Thread creates with normal priority instead of MAX_PRIORITY - 2
Reviewed-by: shade, alanb, lancea
1 parent c1e39fa commit 4e6de5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/java.base/share/classes/jdk/internal/ref/CleanerImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static ThreadFactory factory() {
214214

215215
public Thread newThread(Runnable r) {
216216
return InnocuousThread.newThread("Cleaner-" + cleanerThreadNumber.getAndIncrement(),
217-
r, Thread.MIN_PRIORITY - 2);
217+
r, Thread.MAX_PRIORITY - 2);
218218
}
219219
}
220220

0 commit comments

Comments
 (0)