RFR: JDK-8310913 Move ReferencedKeyMap to jdk.internal so it may be shared

Jim Laskey jlaskey at openjdk.org
Thu Jun 29 17:25:56 UTC 2023


On Thu, 29 Jun 2023 16:58:13 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> java.lang.runtime.ReferencedKeyMap was introduced to provide a concurrent caching scheme for Carrier objects. The technique used is generally useful for a variety of caching schemes and is being moved to be shared in other parts of the jdk. The MethodType interning case is one example.
>
> src/java.base/share/classes/jdk/internal/util/ReferencedKeyMap.java line 84:
> 
>> 82:  * Warning: This class is part of PreviewFeature.Feature.STRING_TEMPLATES.
>> 83:  *          Do not rely on its availability.
>> 84:  */
> 
> Now that this is shared by other components, do we still need this warning?

True that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14684#discussion_r1246927991


More information about the core-libs-dev mailing list