We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890133b commit f4fc788Copy full SHA for f4fc788
1 file changed
dd-trace-core/src/main/java/datadog/trace/common/writer/ddagent/GenerationalUtf8Cache.java
@@ -2,6 +2,8 @@
2
3
import datadog.communication.serialization.EncodingCache;
4
import datadog.trace.common.writer.ddagent.SimpleUtf8Cache.CacheEntry;
5
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
6
+
7
import java.nio.charset.StandardCharsets;
8
9
/**
@@ -63,6 +65,9 @@
63
65
* calling ValueUtf8Cache#reclibrate will adjust promotion thresholds to
64
66
* provide better cache utilization.
67
*/
68
+@SuppressFBWarnings(
69
+ value="IS2_INCONSISTENT_SYNC",
70
+ justification="stat updates are deliberately racy - sync is only used to prevent simultaneous bulk updates")
71
public final class GenerationalUtf8Cache implements EncodingCache {
72
static final int MAX_EDEN_CAPACITY = 512;
73
static final int MAX_TENURED_CAPACITY = 1024;
0 commit comments