Re: RFR: 8338661: StackMapTable is invalid if frames appear in dead code [v3]

2024-08-20 Thread Chen Liang
On Tue, 20 Aug 2024 15:08:23 GMT, Adam Sotona wrote: >> ClassFile API allows to build a class with dead code and provide custom >> `StackMapTable` attribute with user-specified frames covering the dead code. >> `StackCounter` is responsible for calculation of `maxStack` and `maxLocals` >> in ce

Re: RFR: 8338661: StackMapTable is invalid if frames appear in dead code [v3]

2024-08-20 Thread Adam Sotona
> ClassFile API allows to build a class with dead code and provide custom > `StackMapTable` attribute with user-specified frames covering the dead code. > `StackCounter` is responsible for calculation of `maxStack` and `maxLocals` > in certain situations and it did not include the user-provided

Re: RFR: 8338661: StackMapTable is invalid if frames appear in dead code [v2]

2024-08-20 Thread Adam Sotona
> ClassFile API allows to build a class with dead code and provide custom > `StackMapTable` attribute with user-specified frames covering the dead code. > `StackCounter` is responsible for calculation of `maxStack` and `maxLocals` > in certain situations and it did not include the user-provided

Re: RFR: 8338661: StackMapTable is invalid if frames appear in dead code

2024-08-20 Thread Chen Liang
On Tue, 20 Aug 2024 13:54:08 GMT, Adam Sotona wrote: > ClassFile API allows to build a class with dead code and provide custom > `StackMapTable` attribute with user-specified frames covering the dead code. > `StackCounter` is responsible for calculation of `maxStack` and `maxLocals` > in certai

RFR: 8338661: StackMapTable is invalid if frames appear in dead code

2024-08-20 Thread Adam Sotona
ClassFile API allows to build a class with dead code and provide custom `StackMapTable` attribute with user-specified frames covering the dead code. `StackCounter` is responsible for calculation of `maxStack` and `maxLocals` in certain situations and it did not include the user-provided `StackMap