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

Reviewed-by: dholmes
(cherry picked from commit cd41c69d44)
This commit is contained in:
Leonid Mesnik
2023-03-14 21:52:34 +00:00
committed by Vitaly Provodin
parent fdff88860a
commit a1e51a1ff4

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