Skip to content

Commit

Permalink
makeObjectCount is used for error reporting without sync
Browse files Browse the repository at this point in the history
volatile is enough then.
Found by coverity.
  • Loading branch information
rmaucher committed Sep 29, 2023
1 parent 6780ac8 commit 9b2ecc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private static void wait(final Object obj, final Duration duration) throws Inter
*/
private final AtomicLong createCount = new AtomicLong();

private long makeObjectCount;
private volatile long makeObjectCount;

private final Object makeObjectCountLock = new Object();

Expand Down

0 comments on commit 9b2ecc7

Please sign in to comment.