Skip to content

Commit cfadb1a

Browse files
committed
marked AndroidContinuousProfiler.shouldSample flag as volatile
1 parent 3548358 commit cfadb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class AndroidContinuousProfiler
5959
private @NotNull SentryId chunkId = SentryId.EMPTY_ID;
6060
private final @NotNull AtomicBoolean isClosed = new AtomicBoolean(false);
6161
private @NotNull SentryDate startProfileChunkTimestamp = new SentryNanotimeDate();
62-
private boolean shouldSample = true;
62+
private volatile boolean shouldSample = true;
6363
private boolean shouldStop = false;
6464
private boolean isSampled = false;
6565
private int rootSpanCounter = 0;

0 commit comments

Comments
 (0)