Skip to content

Commit 6136a61

Browse files
committed
made currentProfilingTransactionData volatile
1 parent ea31819 commit 6136a61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- [ANR] Removed AndroidTransactionProfiler lock ([#4817](https://github.com/getsentry/sentry-java/pull/4817))
8+
59
### Dependencies
610

711
- Bump Native SDK from v0.11.2 to v0.11.3 ([#4810](https://github.com/getsentry/sentry-java/pull/4810))
@@ -40,7 +44,6 @@
4044

4145
### Fixes
4246

43-
- [ANR] Removed AndroidTransactionProfiler lock ([#4817](https://github.com/getsentry/sentry-java/pull/4817))
4447
- Avoid StrictMode warnings ([#4724](https://github.com/getsentry/sentry-java/pull/4724))
4548
- Use logger from options for JVM profiler ([#4771](https://github.com/getsentry/sentry-java/pull/4771))
4649
- Session Replay: Avoid deadlock when pausing replay if no connection ([#4788](https://github.com/getsentry/sentry-java/pull/4788))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class AndroidTransactionProfiler implements ITransactionProfiler {
3939
private boolean isInitialized = false;
4040
private final @NotNull AtomicBoolean isRunning = new AtomicBoolean(false);
4141
private final @NotNull SentryFrameMetricsCollector frameMetricsCollector;
42-
private @Nullable ProfilingTransactionData currentProfilingTransactionData;
42+
private volatile @Nullable ProfilingTransactionData currentProfilingTransactionData;
4343

4444
/**
4545
* The underlying profiler instance. It is thread safe to call it after checking if it's not null,

0 commit comments

Comments
 (0)