RFR: 8304928: Optimize ClassDesc.resolveConstantDesc [v2]

Chen Liang liach at openjdk.org
Fri Mar 31 02:48:15 UTC 2023


On Fri, 31 Mar 2023 02:27:05 GMT, Chen Liang <liach at openjdk.org> wrote:

>> This patch optimizes ClassDesc.resolveConstantDesc for array classes. Otherwise, the performance of reference class resolution remain unchanged.
>> 
>> A benchmark comparing resolution for reference arrays, primitive arrays, and class or interfaces is included in this patch, and the result comparison on my machine is available at https://jmh.morethan.io/?gists=21c462f4879f6166b3308a41c092d51e,1aeae6ff40a129f89dbfedcb874cfd37
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update per review, will post new benchmark results

If you don't mind, please also check out #12986, which avoids casting the result to `Class` after calling `ClassDesc::resolveConstantDesc`.

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

PR Comment: https://git.openjdk.org/jdk/pull/13252#issuecomment-1491215447


More information about the core-libs-dev mailing list