mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8303705: Field sleeper.started should be volatile JdbLockTestTarg.java
Reviewed-by: dholmes
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user