RFR: 8339492: StackMapDecoder::writeFrames makes lots of allocations [v2]

Chen Liang liach at openjdk.org
Tue Sep 3 18:08:19 UTC 2024


On Tue, 3 Sep 2024 17:33:37 GMT, David M. Lloyd <duke at openjdk.org> wrote:

>> Please review this change, which reduces the number of allocations in `StackMapDecoder::writeFrames` by using a sorted array instead of a `TreeMap<Integer, ...>` to sort and uniquify entries before writing. It also adds a validation missed by the original implementation.
>> 
>> Tested using `StackMapsTest`.
>
> David M. Lloyd has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Review feedback: reject duplicate stack map entries

Marked as reviewed by liach (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/20841#pullrequestreview-2278125119


More information about the core-libs-dev mailing list