On Thu, 8 Jun 2023 16:37:22 GMT, Adam Sotona <asot...@openjdk.org> wrote:
>> Classfile context object and multi-state options have been discussed at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html >> This patch implements the proposed changes in Classfile API and fixes all >> affected code across JDK sources and tests. >> >> Please review. >> >> Thanks, >> Adam > > Adam Sotona has updated the pull request incrementally with two additional > commits since the last revision: > > - proposed semi-synchronized caching, where the map is not locked during > delegate call > - used Factory.INSTANCE for system ClassHierarchyResolver cache I'll run our standard benchmarks to compare following scenarios: - static synchronized single instance cache (current master) - context-based non-synchronized caches `HM::computeIfAbsent` - context-based fully synchronized caches `CHM::computeIfAbsent` - context-based thread-safe lazy synchronized caches `CHM::get ... compute ... CHM::put` And let's see the performance impact. ------------- PR Comment: https://git.openjdk.org/jdk/pull/14180#issuecomment-1584050539