We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f25d16 commit 122f235Copy full SHA for 122f235
1 file changed
dd-java-agent/agent-iast/src/main/java/com/datadog/iast/overhead/OverheadContext.java
@@ -105,10 +105,8 @@ public void resetMaps() {
105
AtomicIntegerArray globalCountMap =
106
globalMap.computeIfAbsent(
107
endpoint, value -> new AtomicIntegerArray(numberOfVulnerabilities));
108
- int globalCounter = globalCountMap.get(i);
109
- if (counter > globalCounter) {
110
- globalCountMap.set(i, counter);
111
- }
+
+ globalCountMap.accumulateAndGet(i, counter, Math::max);
112
}
113
114
});
0 commit comments