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

Jim Laskey jlaskey at openjdk.org
Mon Jul 31 13:34:30 UTC 2023


> 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.

Jim Laskey has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 17 commits:

 - Merge branch 'master' into 8310913
 - Update implNote for intern
 - Merge branch 'master' into 8310913
 - Requested changes.
   
   Added intern with UnaryOperator<T> interning function to prepare key before adding to set.
 - Update test to check for gc.
 - Update ReferencedKeyTest.java
 - Simple versions of create
 - Add flag for reference queue type
 - Merge branch 'master' into 8310913
 - Update to use VirtualThread friendly stale queue.
 - ... and 7 more: https://git.openjdk.org/jdk/compare/408987e1...af95e5ae

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

Changes: https://git.openjdk.org/jdk/pull/14684/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14684&range=09
  Stats: 1520 lines in 13 files changed: 887 ins; 625 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/14684.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14684/head:pull/14684

PR: https://git.openjdk.org/jdk/pull/14684


More information about the core-libs-dev mailing list