mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-19 04:13:07 +00:00
8303705: Field sleeper.started should be volatile JdbLockTestTarg.java
Reviewed-by: dholmes
This commit is contained in:
parent
f5c8b68c1c
commit
cd41c69d44
@ -56,7 +56,7 @@ class JdbLockTestTarg {
|
||||
}
|
||||
|
||||
class Sleeper implements Runnable {
|
||||
public static int started = 0;
|
||||
public static volatile int started = 0;
|
||||
public void run() {
|
||||
started = 1;
|
||||
System.out.println(" sleeper starts sleeping");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user