8303705: Field sleeper.started should be volatile JdbLockTestTarg.java

Reviewed-by: dholmes
This commit is contained in:
Leonid Mesnik
2023-03-14 21:52:34 +00:00
parent f5c8b68c1c
commit cd41c69d44

View File

@@ -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");