RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v3]
Adam Sotona
asotona at openjdk.org
Mon Jul 29 07:39:32 UTC 2024
On Mon, 29 Jul 2024 02:22:11 GMT, Chen Liang <liach at openjdk.org> wrote:
>> As discussed in offline meeting, the max stack and locals information are part of the code attribute and not meaningful for buffered code elements. Computation would be costly and these see no real usage during transformations. Thus, the proposed solution is to move these APIs to be CodeAttribute specific, as this is already how all these APIs' users are using.
>>
>> Also removed useless `Writable` on buffered models, and fixed `BufferedMethodBuilder::code` implementation.
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix typo, and add tests
Looks good to me.
-------------
Marked as reviewed by asotona (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20338#pullrequestreview-2204161711
More information about the core-libs-dev
mailing list