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. This pull request has now been integrated. Changeset: e43f540c Author: Andrey Turbanov <[email protected]> Committer: Sergey Bylokhov <[email protected]> URL: https://git.openjdk.java.net/jdk/commit/e43f540cde58ee973b97a943f14d3c60e064b801 Stats: 9 lines in 1 file changed: 0 ins; 6 del; 3 mod 8274651: Possible race in FontDesignMetrics.KeyReference.dispose Reviewed-by: prr, serb ------------- PR: https://git.openjdk.java.net/jdk/pull/5753
