RFR: 8339492: StackMapDecoder::writeFrames makes lots of allocations [v2]
duke
duke at openjdk.org
Tue Sep 3 19:51:22 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
@dmlloyd
Your change (at version 04436b35d25386b5d7bf849ebd0983942d71e9c6) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20841#issuecomment-2327308823
More information about the core-libs-dev
mailing list