Integrated: 8274651: Possible race in FontDesignMetrics.KeyReference.dispose
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Tue Oct 5 00:58:09 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.
This pull request has now been integrated.
Changeset: e43f540c
Author: Andrey Turbanov <turbanoff at gmail.com>
Committer: Sergey Bylokhov <serb at openjdk.org>
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
More information about the client-libs-dev
mailing list