On Wed, 29 Sep 2021 14:01:17 GMT, Andrey Turbanov 
<[email protected]> wrote:

> Possible race condition could happen if another thread put value into 
> 'metricsCache' by the same key.
> We can use `ConcurrentHashMap.remove(key, value)` method to avoid it.

Looks fine.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5753

Reply via email to