Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v14]

2023-05-09 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v13]

2023-05-09 Thread Adam Sotona
On Tue, 9 May 2023 11:59:08 GMT, Maurizio Cimadamore wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 16 additional >> com

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v13]

2023-05-09 Thread Maurizio Cimadamore
On Tue, 9 May 2023 11:11:36 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v13]

2023-05-09 Thread Maurizio Cimadamore
On Tue, 9 May 2023 11:11:36 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v13]

2023-05-09 Thread Maurizio Cimadamore
On Tue, 9 May 2023 11:11:36 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v13]

2023-05-09 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v12]

2023-05-05 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v11]

2023-05-05 Thread Adam Sotona
On Thu, 4 May 2023 16:19:04 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v11]

2023-05-05 Thread Adam Sotona
On Fri, 5 May 2023 02:50:45 GMT, Chen Liang wrote: > Since we want an option to toggle stackmap generation, will you add it to the > Classfile options as a temporary measure, before we keep track of these > options in a stateful object (with hierarchy resolver etc.) like brian > envisioned? I

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v11]

2023-05-04 Thread Chen Liang
On Thu, 4 May 2023 16:19:04 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v11]

2023-05-04 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v10]

2023-05-04 Thread Adam Sotona
On Thu, 4 May 2023 15:19:02 GMT, Chen Liang wrote: > Also, has brian reviewed the DiscontinuedInstruction API changes? https://mail.openjdk.org/pipermail/classfile-api-dev/2023-April/000292.html - PR Comment: https://git.openjdk.org/jdk/pull/13478#issuecomment-1535028314

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v10]

2023-05-04 Thread Chen Liang
On Tue, 2 May 2023 14:15:27 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file vers

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v10]

2023-05-02 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v9]

2023-04-25 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v8]

2023-04-25 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v3]

2023-04-25 Thread Adam Sotona
On Thu, 20 Apr 2023 08:24:40 GMT, Adam Sotona wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java >> line 86: >> >>> 84: } >>> 85: >>> 86: public void setMajorVersion(int majorVersion) { >> >> We should ensure the version is not changed once writing ha

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v7]

2023-04-20 Thread Adam Sotona
On Thu, 20 Apr 2023 17:21:49 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file ver

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v7]

2023-04-20 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v2]

2023-04-20 Thread Adam Sotona
On Wed, 19 Apr 2023 13:30:44 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> DiscontinuedInstruction implementation + test > > src/java.base/share/classes/jdk/internal/classfile/impl/DirectCodeBuilde

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v6]

2023-04-20 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v5]

2023-04-20 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v4]

2023-04-20 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v3]

2023-04-20 Thread Adam Sotona
On Wed, 19 Apr 2023 17:08:53 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed ClassPrinterImpl > > src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java > line 86: > >> 84

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v3]

2023-04-19 Thread Chen Liang
On Wed, 19 Apr 2023 13:44:47 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file ver

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v3]

2023-04-19 Thread ExE Boss
On Wed, 19 Apr 2023 13:44:47 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file ver

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v3]

2023-04-19 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v2]

2023-04-19 Thread Adam Sotona
On Wed, 19 Apr 2023 13:06:20 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file ver

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v2]

2023-04-19 Thread Chen Liang
On Wed, 19 Apr 2023 13:06:20 GMT, Adam Sotona wrote: >> Classfile API didn't handle transformations of class files version 50 and >> below correctly. >> >> Proposed fix have two parts: >> 1. Inflation of branch targets does not depend on StackMapTable attribute >> presence for class file ver

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails [v2]

2023-04-19 Thread Adam Sotona
> Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 50 and below. Alternative fallback > implementation is

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails

2023-04-18 Thread Adam Sotona
On Fri, 14 Apr 2023 14:02:46 GMT, Adam Sotona wrote: > Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 5

Re: RFR: 8305990: Stripping debug info of ASM 9.5 fails

2023-04-17 Thread Chen Liang
On Fri, 14 Apr 2023 14:02:46 GMT, Adam Sotona wrote: > Classfile API didn't handle transformations of class files version 50 and > below correctly. > > Proposed fix have two parts: > 1. Inflation of branch targets does not depend on StackMapTable attribute > presence for class file version 5

RFR: 8305990: Stripping debug info of ASM 9.5 fails

2023-04-14 Thread Adam Sotona
Classfile API didn't handle transformations of class files version 50 and below correctly. Proposed fix have two parts: 1. Inflation of branch targets does not depend on StackMapTable attribute presence for class file version 50 and below. Alternative fallback implementation is provided. 2.