RFR: 8274651: Possible race in FontDesignMetrics.KeyReference.dispose

Sergey Bylokhov serb at openjdk.java.net
Fri Oct 1 18:12:36 UTC 2021


On Wed, 29 Sep 2021 14:01:17 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> 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.

Marked as reviewed by serb (Reviewer).

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

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



More information about the client-libs-dev mailing list