Skip to content

Commit 890133b

Browse files
committed
Fixing oversight of missing synchronized on long version of recalibrate
1 parent 4abe3ff commit 890133b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dd-trace-core/src/main/java/datadog/trace/common/writer/ddagent/GenerationalUtf8Cache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public synchronized void recalibrate() {
156156
*
157157
* <p>While still racy this method is synchronized to avoid simultaneous recalibrations
158158
*/
159-
public void recalibrate(long accessTimeMs) {
159+
public synchronized void recalibrate(long accessTimeMs) {
160160
this.accessTimeMs = accessTimeMs;
161161

162162
recalibrate(this.edenEntries);

0 commit comments

Comments
 (0)