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

Chen Liang liach at openjdk.org
Wed Sep 4 15:30:26 UTC 2024


On Wed, 4 Sep 2024 14:59:50 GMT, David M. Lloyd <duke at openjdk.org> wrote:

> I'll see if I can get the benchmarks in `test/micro/org/openjdk/bench/jdk/classfile` working. It looks like there may be one or more of them which would reach into this code.

Just checked; no benchmark is currently supplying a manual `StackMapTableAttribute` to class building, so new benchmark is required. Fyi this is only used by manual stack map building; internally we use a `StackMapGenerator.stackMapTableAttribute()` which is an ad-hoc attribute for writing only.

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

PR Comment: https://git.openjdk.org/jdk/pull/20841#issuecomment-2329375973


More information about the core-libs-dev mailing list