Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9fcfe02 authored by Shai Barack's avatar Shai Barack
Browse files

Field used in concurrency test should be volatile

This field is written from one thread and read from another.

Bug: 402537016
Flag: EXEMPT test-only
Change-Id: Icc3084a674c2d881c382d21367a53c237a0b3f83
parent 30f444bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
@RunWith(AndroidJUnit4.class)
public class RateLimitingCacheTest {
public class RateLimitingCacheTest {


    private int mCounter = 0;
    private volatile int mCounter = 0;


    @Before
    @Before
    public void before() {
    public void before() {