Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8303705: Field sleeper.started should be volatile JdbLockTestTarg.java
Reviewed-by: dholmes
  • Loading branch information
lmesnik committed Mar 14, 2023
1 parent f5c8b68 commit cd41c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/com/sun/jdi/JdbLockTest.java
Expand Up @@ -56,7 +56,7 @@ public static void main(String args[]) {
}

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

1 comment on commit cd41c69

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.