RFR: 8341006: Optimize StackMapGenerator detect frames [v3]
ExE Boss
duke at openjdk.org
Thu Oct 3 20:12:42 UTC 2024
On Thu, 3 Oct 2024 13:15:10 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> 1. Construct Frames directly without BitSet
>> 2. Use Frame[] instead of ArrayList
>> 3. Use EMPTY_FRAME_ARRAY for initialization. No need to allocate objects when there is no frame.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> reduce codeSize
src/java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java line 852:
> 850: /**
> 851: * Performs detection of mandatory stack map frames in a single bytecode traversing pass
> 852: * @return detected frames
`@return` on `void` method:
Suggestion:
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21183#discussion_r1786788792
More information about the core-libs-dev
mailing list