Skip to content

Commit 87eef04

Browse files
committed
[GR-68433] Make Ids' objects array volatile to prevent store reordering issue.
1 parent f2a0e10 commit 87eef04

File tree

1 file changed

+1
-1
lines changed
  • espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api

1 file changed

+1
-1
lines changed

espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api/Ids.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class Ids<T> {
4747
* All entities stored while communicating with the debugger. The array will be expanded
4848
* whenever an ID for a new entity is requested.
4949
*/
50-
private WeakReference<T>[] objects;
50+
private volatile WeakReference<T>[] objects;
5151

5252
/**
5353
* A special object representing the null value. This object must be passed on by the

0 commit comments

Comments
 (0)