Skip to content

Commit 23f70cb

Browse files
committedMar 9, 2022
priority should be volatile
1 parent 7298aa6 commit 23f70cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/java.base/share/classes/java/lang/Thread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private static class FieldHolder {
177177
final ThreadGroup group;
178178
final Runnable task;
179179
final long stackSize;
180-
int priority;
180+
volatile int priority;
181181
boolean daemon;
182182
volatile int threadStatus;
183183
boolean stillborn;

0 commit comments

Comments
 (0)
Please sign in to comment.