RFR: 8339168: Optimize ClassFile Util slotSize

Chen Liang liach at openjdk.org
Fri Aug 30 04:42:20 UTC 2024


On Wed, 28 Aug 2024 13:12:35 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> A small optimization to improve the performance of jdk.internal.classfile.impl.Util#slotSize/isDoubleSlot

@cl4es Observed that `slotSize` will only get a `CD_void` at method return type; so we can make the non-return-type (so field type and method parameter type) usages of `slotSize` to `isDoubleSlot() ? 2 : 1`.

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

PR Comment: https://git.openjdk.org/jdk/pull/20747#issuecomment-2320023615


More information about the core-libs-dev mailing list