git: openjdk/jdk: 8251397: NPE on ClassValue.ClassValueMap.cacheArray
Severin Gehwolf
sgehwolf at openjdk.java.net
Thu Sep 17 13:42:56 UTC 2020
Changeset: 81e2cf82
Author: Galder Zamarreño <galder at redhat.com>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
Date: 2020-09-17 13:42:15 +0000
URL: https://git.openjdk.java.net/jdk/commit/81e2cf82
8251397: NPE on ClassValue.ClassValueMap.cacheArray
Add release fence to ClassValueMap constructor.
* Release fence guarantees that cacheArray field will published
with a non-null value.
* Without this fix, CacheValueMap.cacheArray can sometimes be
seen as null.
Reviewed-by: shade, psandoz
! src/java.base/share/classes/java/lang/ClassValue.java
More information about the jdk-changes
mailing list