This patch optimizes ClassDesc.resolveConstantDesc for array classes. Otherwise, the performance of reference class resolution remain unchanged. https://jmh.morethan.io/?gist=111095eecf7a735fe8c96e4b952b58c1 It also includes a benchmark for MethodTypeDesc resolution, which currently does not yet depend on class desc resolution but can be later optimized if it does switch.
------------- Commit messages: - 8304928: Optimize ClassDesc.resolveConstantDesc Changes: https://git.openjdk.org/jdk/pull/13252/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13252&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8304928 Stats: 269 lines in 4 files changed: 255 ins; 2 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/13252.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13252/head:pull/13252 PR: https://git.openjdk.org/jdk/pull/13252