You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/java/concurrent/TPEHelper.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,9 @@ public static AgentScope getAndClearThreadLocalScope(Runnable task) {
101
101
returnnull;
102
102
}
103
103
AgentScopescope = threadLocalScope.get();
104
+
// Intentionally use `.set(null)` instead of `.remove()` for performance reasons.
105
+
// For details see: https://github.com/DataDog/dd-trace-java/pull/9856#discussion_r2527729963
0 commit comments