Integrated: 8304502: Classfile API class hierarchy makes assumptions when class is not resolved

2023-03-22 Thread Adam Sotona
On Mon, 20 Mar 2023 11:15:52 GMT, Adam Sotona wrote: > Classfile API class hierarchy makes assumptions when class is not resolved > and that may lead to silent generation of invalid stack maps. Only > debug-level log information of case is actually provided. > > Propos

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v14]

2023-03-21 Thread Adam Sotona
On Tue, 21 Mar 2023 11:31:54 GMT, Alan Bateman wrote: >> It seems to be redundant as the following code does not expect it on stack >> and loads it again as needed. > > Yes, I think so. If `java -XX:+UnlockDiagnosticVMOptions > -XX:+BytecodeVerificationLocal -version` doesn't fail and you've

Re: RFR: 8304502: Classfile API class hierarchy makes assumptions when class is not resolved [v2]

2023-03-21 Thread Adam Sotona
On Tue, 21 Mar 2023 09:45:56 GMT, Jaikiran Pai wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update >> src/java.base/share/classes/jdk/internal/classfile/impl/ClassHierarchyIm

Re: RFR: 8304502: Classfile API class hierarchy makes assumptions when class is not resolved [v3]

2023-03-21 Thread Adam Sotona
is not resolved > instead. > > Thanks for review. > > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: avoid repeated ClassHierarchyInfo of CD_Object instantiation in StaticClassHierarchyResolver

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v16]

2023-03-21 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: removed obso

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v14]

2023-03-21 Thread Adam Sotona
On Mon, 20 Mar 2023 19:53:29 GMT, Alan Bateman wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed SystemModulesClassGenerator.moduleInfos comment > > src/jdk.jlink/share/classes/jd

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v15]

2023-03-21 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 223 comm

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v14]

2023-03-20 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: fixed SystemModulesClass

Re: RFR: 8304425: ClassHierarchyResolver from Reflection

2023-03-20 Thread Adam Sotona
On Mon, 20 Mar 2023 11:07:23 GMT, Adam Sotona wrote: >> Add API to explore Class Hierarchy with a `ClassLoader` or a `Lookup` with >> proper privileges, with tests. >> >> This addition is useful in case classes at runtime are not loaded from the >> syst

Re: RFR: 8304502: Classfile API class hierarchy makes assumptions when class is not resolved [v2]

2023-03-20 Thread Adam Sotona
is not resolved > instead. > > Thanks for review. > > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base/share/classes/jdk/internal/classfile/impl/ClassHierarchyImpl.java Co-

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v12]

2023-03-20 Thread Adam Sotona
On Fri, 17 Mar 2023 17:30:41 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 220 commits: >> >> - Merge branch 'master' into JDK-8294972-jlink-plugins &

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v13]

2023-03-20 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: added default to thro

RFR: 8304502: Classfile API class hierarchy makes assumptions when class is not resolved

2023-03-20 Thread Adam Sotona
Classfile API class hierarchy makes assumptions when class is not resolved and that may lead to silent generation of invalid stack maps. Only debug-level log information of case is actually provided. Proposed patch throws IllegalArgumentException when the class is not resolved instead. Thanks

Re: RFR: 8304425: ClassHierarchyResolver from Reflection

2023-03-20 Thread Adam Sotona
On Fri, 17 Mar 2023 18:18:48 GMT, Chen Liang wrote: > Add API to explore Class Hierarchy with a `ClassLoader` or a `Lookup` with > proper privileges, with tests. > > This addition is useful in case classes at runtime are not loaded from the > system class loader, such as Proxy. This is also

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v12]

2023-03-17 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 220 comm

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v8]

2023-03-17 Thread Adam Sotona
On Fri, 17 Mar 2023 16:06:53 GMT, Naoto Sato wrote: >> I've reverted `IncludeLocalesPlugin` to previous version, plus minor fixes >> and together with #13067 the `IncludeLocalesPluginTest` is passing. >> Thank you. > > The fix to `IncludeLocalesPlugin` has been integrated. @asotona would you >

Integrated: 8304164: jdk/classfile/CorpusTest.java still fails after JDK-8303910

2023-03-17 Thread Adam Sotona
On Wed, 15 Mar 2023 08:44:34 GMT, Adam Sotona wrote: > Massive parallel execution of parametrised CorpusTest junit tests revealed > race condition in > `ClassHierarchyImpl.CachedClassHierarchyResolver::getClassInfo`. > > The race condition may skip calculation of the Cla

Re: RFR: 8304164: jdk/classfile/CorpusTest.java still fails after JDK-8303910

2023-03-17 Thread Adam Sotona
On Fri, 17 Mar 2023 05:49:45 GMT, Jaikiran Pai wrote: >> Massive parallel execution of parametrised CorpusTest junit tests revealed >> race condition in >> `ClassHierarchyImpl.CachedClassHierarchyResolver::getClassInfo`. >> >> The race condition may skip calculation of the ClassHierarchyInfo.

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v8]

2023-03-17 Thread Adam Sotona
On Thu, 16 Mar 2023 20:45:24 GMT, Naoto Sato wrote: >> I further clarified with Naoto and I now understand the problem.The >> plugin intends to transform `.class` that implements `LocaleDataMetaInfo` in >> `jdk.localedata` module. It's a bug in the plugin `--include-locales=*` >> which

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v10]

2023-03-17 Thread Adam Sotona
On Thu, 16 Mar 2023 21:49:28 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> remaining cleanup in SystemModulesPlugin > > src/jdk.jlink/share/classes/jd

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v11]

2023-03-17 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with three additional commits since the last revision: - SystemModulesPlugin:

Re: RFR: 8294977: Convert test/jdk/java tests from ASM library to Classfile API [v2]

2023-03-16 Thread Adam Sotona
On Wed, 15 Mar 2023 04:09:04 GMT, Chen Liang wrote: >> Summaries: >> 1. A few recommendations about updating the constant API is made at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000233.html >> and I may update this patch shall the API changes be integrated before >>

Re: RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v3]

2023-03-16 Thread Adam Sotona
On Thu, 9 Mar 2023 14:41:47 GMT, Chen Liang wrote: >> Isn't the "unrelated process such as generating lambda forms" critical for >> the `ProxyGenerator` functionality? > > More accurately, I mean the overhead generated by this: >

Re: RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v8]

2023-03-16 Thread Adam Sotona
> java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes > and this patch converts it to use Classfile API. > > Please review. > > Thank you, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last

Re: RFR: 8294977: Convert test/jdk/java tests from ASM library to Classfile API [v2]

2023-03-16 Thread Adam Sotona
On Wed, 15 Mar 2023 04:09:04 GMT, Chen Liang wrote: >> Summaries: >> 1. A few recommendations about updating the constant API is made at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000233.html >> and I may update this patch shall the API changes be integrated before >>

Re: RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v6]

2023-03-16 Thread Adam Sotona
On Sat, 11 Mar 2023 13:45:23 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 196 commits: >> >> - Merge branch 'master' into JDK-8294961-proxy >> - Merge br

Re: RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v7]

2023-03-16 Thread Adam Sotona
> java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes > and this patch converts it to use Classfile API. > > Please review. > > Thank you, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the la

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v10]

2023-03-16 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: remaining cleanup i

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v9]

2023-03-16 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: implementation of

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v8]

2023-03-16 Thread Adam Sotona
On Wed, 15 Mar 2023 22:31:01 GMT, Mandy Chung wrote: > What was the issue with the previous revision? The only conversion bug I found during the code reformat/revision was missing `className.replace('/', '.')` and after that the test pass.

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v8]

2023-03-16 Thread Adam Sotona
On Thu, 16 Mar 2023 02:43:39 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed SystemModulesPlugin > > src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plu

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v6]

2023-03-15 Thread Adam Sotona
On Tue, 14 Mar 2023 16:34:59 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - long lines wrapped >> - StripJavaDebugAttributesPlugin transformation fixed >>

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v8]

2023-03-15 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: fixe

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v4]

2023-03-15 Thread Adam Sotona
On Tue, 14 Mar 2023 18:00:51 GMT, Mandy Chung wrote: >> Right, I'll fix it, thanks. > > Looks like `LineNumberTable` is not stripped even with > `Option.processLineNumbers(false)`. Yes, I forgot to transform code elements, where `Classfile.Option.processLineNumbers(false)` option is applied.

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v7]

2023-03-15 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: fixed StripJavaDebugA

RFR: 8304164: jdk/classfile/CorpusTest.java still fails after JDK-8303910

2023-03-15 Thread Adam Sotona
Massive parallel execution of parametrised CorpusTest junit tests revealed race condition in `ClassHierarchyImpl.CachedClassHierarchyResolver::getClassInfo`. The race condition may skip calculation of the ClassHierarchyInfo. In this specific case it caused SegmentScope not being identified as

Integrated: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class

2023-03-15 Thread Adam Sotona
On Fri, 25 Nov 2022 14:38:55 GMT, Adam Sotona wrote: > 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam This pull request has now been i

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v6]

2023-03-14 Thread Adam Sotona
> 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit si

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v4]

2023-03-14 Thread Adam Sotona
On Fri, 10 Mar 2023 22:14:00 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 208 commits: >> >> - Merge branch 'master' into JDK-8294972-jlink-plugins >>

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v4]

2023-03-14 Thread Adam Sotona
On Mon, 13 Mar 2023 14:51:08 GMT, Alan Bateman wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 208 commits: >> >> - Merge branch 'master' into JDK-8294972-jlink-plugins >>

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v6]

2023-03-14 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with three additional commits since the last revision:

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v5]

2023-03-14 Thread Adam Sotona
> 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with five additional commits si

Integrated: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests

2023-03-14 Thread Adam Sotona
On Mon, 13 Mar 2023 18:54:11 GMT, Adam Sotona wrote: > jdk/classfile/CorpusTest.java rarely fails in 1 of 6754 parametrised parallel > junit tests > > The root cause seems to be thread-unsafe lazy initialisation of > `TypeKind.newarraycodeToTypeTag` in `TypeKind::fromNewArray

Re: RFR: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests [v2]

2023-03-13 Thread Adam Sotona
lized helper array with switch expression. > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: throwing IllegalArgumentException instead of IllegalStateException - Changes:

Re: RFR: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests [v2]

2023-03-13 Thread Adam Sotona
On Mon, 13 Mar 2023 19:04:45 GMT, liach wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> throwing IllegalArgumentException instead of IllegalStateException > > src/java.base/share/

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v4]

2023-03-13 Thread Adam Sotona
On Mon, 13 Mar 2023 19:18:26 GMT, Mandy Chung wrote: >>> I see, I'll move the "packages magic" back from Classfile API to the >>> `ModuleInfoWriter` and correct the API accordingly. >> >> I would need to check the history in the jake repo but I think it dates from >> a prototype version of

Re: RFR: 8304031: Classfile API cannot encode Primitive Class as Condy

2023-03-13 Thread Adam Sotona
On Mon, 13 Mar 2023 08:13:44 GMT, liach wrote: > Without this patch, the Classfile API tries to encode PrimitiveClassDesc as > CONSTANT_Class_info and error in `toInternalName`. Looks good, thanks for catching and fixing it. - Marked as reviewed by asotona (Committer). PR:

RFR: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests

2023-03-13 Thread Adam Sotona
jdk/classfile/CorpusTest.java rarely fails in 1 of 6754 parametrised parallel junit tests The root cause seems to be thread-unsafe lazy initialisation of `TypeKind.newarraycodeToTypeTag` in `TypeKind::fromNewArrayCode`. Provided patch replaces that lazy-initialized helper array with switch

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v4]

2023-03-13 Thread Adam Sotona
On Mon, 13 Mar 2023 14:18:55 GMT, Alan Bateman wrote: >> Or another approach for the specific use cases might be to use >> `Classfile::buildModule` with empty list of packages and then provide custom >> `ModulePackagesAttribute` to the handler directly. > >> `Classfile::buildModule` is a

Re: RFR: 8294972: Convert jdk.jlink internal plugins to use the Classfile API [v5]

2023-03-13 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 209 comm

Integrated: 8294974: Convert jdk.jshell/jdk.jshell.execution.LocalExecutionControl to use the Classfile API to instrument classes

2023-03-13 Thread Adam Sotona
On Tue, 29 Nov 2022 12:27:15 GMT, Adam Sotona wrote: > 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to > instrument classes > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam This pull request has now been i

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v4]

2023-03-13 Thread Adam Sotona
On Mon, 13 Mar 2023 13:43:22 GMT, Adam Sotona wrote: >> Maybe the variants of Classfile.buildModule need to be looked at again. For >> the usage here, buildModule(ModuleAttribute, Consumer) >> would be more useful as it would allow all of the additional attributes

Re: RFR: 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class [v4]

2023-03-13 Thread Adam Sotona
On Sat, 11 Mar 2023 17:00:18 GMT, Alan Bateman wrote: >> `buildModules` is expected to be called with additional packages but instead >> it's called with all packages including all exported and open packages. >> >> >> /** >> * Build a module descriptor into a byte array. >> *

Re: RFR: 8294974: Convert jdk.jshell/jdk.jshell.execution.LocalExecutionControl to use the Classfile API to instrument classes [v5]

2023-03-13 Thread Adam Sotona
> 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to > instrument classes > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase.

Integrated: 8294966: Convert jdk.jartool/sun.tools.jar.FingerPrint to use the ClassFile API to parse JAR entries

2023-03-13 Thread Adam Sotona
On Thu, 15 Dec 2022 14:56:03 GMT, Adam Sotona wrote: > 8294966: Convert jdk.jartool/sun.tools.jar.FingerPrint to use the ClassFile > API to parse JAR entries > > Please review. > Thanks, > Adam This pull request has now been integrated. Changeset: 25e7ac22 Author:

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v3]

2023-03-10 Thread Adam Sotona
On Fri, 10 Mar 2023 14:28:09 GMT, liach wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 198 commits: >> >> - ModuleInfoWriter fixes >> - ModuleInfoExtender comment fix >&g

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v4]

2023-03-10 Thread Adam Sotona
> 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit si

Re: RFR: 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes [v2]

2023-03-10 Thread Adam Sotona
On Fri, 10 Mar 2023 12:58:25 GMT, Jan Lahoda wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 193 commits: >> >> - Merge branch 'master' into JDK-8294974-jshell >> - Merge br

Re: RFR: 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes [v4]

2023-03-10 Thread Adam Sotona
> 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to > instrument classes > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit si

Re: RFR: 8294972: jdk.jlink internal plugins are heavily using ASM [v4]

2023-03-10 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 208 comm

Re: RFR: 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes [v3]

2023-03-10 Thread Adam Sotona
> 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to > instrument classes > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase.

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries [v4]

2023-03-10 Thread Adam Sotona
> 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar > entries > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull

Integrated: 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes

2023-03-10 Thread Adam Sotona
On Thu, 9 Mar 2023 11:33:13 GMT, Adam Sotona wrote: > jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes > > This patch converts ASM calls to Classfile API. > > Please review. > > Thanks, > Adam This pull request has now been integrated. Changeset:

Re: RFR: 8294959: java.base java.lang.Module uses ASM to load module-info.class

2023-03-10 Thread Adam Sotona
On Fri, 10 Mar 2023 09:16:03 GMT, Eirik Bjorsnos wrote: > This PR seems to have broken `make docs` It has been fixed by https://github.com/openjdk/jdk/pull/12957 - PR: https://git.openjdk.org/jdk/pull/11367

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries [v3]

2023-03-10 Thread Adam Sotona
On Thu, 9 Mar 2023 18:19:17 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> FingerPrint.maybeNestedClass set final > > src/jdk.jartool/share/classes/sun/tools

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries [v3]

2023-03-10 Thread Adam Sotona
> 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar > entries > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit si

Re: RFR: 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes [v2]

2023-03-10 Thread Adam Sotona
> 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to > instrument classes > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase.

Re: RFR: 8294961: java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes [v6]

2023-03-10 Thread Adam Sotona
> java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes > and this patch converts it to use Classfile API. > > Please review. > > Thank you, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v3]

2023-03-10 Thread Adam Sotona
On Thu, 9 Mar 2023 22:05:55 GMT, Uwe Schindler wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 198 commits: >> >> - ModuleInfoWriter fixes >> - ModuleInfoExtender comment

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v3]

2023-03-10 Thread Adam Sotona
> 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase.

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v3]

2023-03-10 Thread Adam Sotona
On Thu, 9 Mar 2023 18:36:05 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 198 commits: >> >> - ModuleInfoWriter fixes >> - ModuleInfoExtender comment

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v3]

2023-03-10 Thread Adam Sotona
On Thu, 9 Mar 2023 19:41:28 GMT, liach wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 198 commits: >> >> - ModuleInfoWriter fixes >> - ModuleInfoExtender comment fix >&g

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries [v2]

2023-03-09 Thread Adam Sotona
> 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar > entries > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries [v2]

2023-03-09 Thread Adam Sotona
On Thu, 9 Mar 2023 18:16:49 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 197 commits: >> >> - Merge branch 'master' into JDK-8294966-jartool >> - Merge br

Re: RFR: 8294972: jdk.jlink internal plugins are heavily using ASM [v3]

2023-03-09 Thread Adam Sotona
On Thu, 9 Mar 2023 22:38:32 GMT, Mandy Chung wrote: >> Adam Sotona has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 207 commits: >> >> - Merge branch 'master' into JDK-8294972-jlink-plugins >>

Re: RFR: 8294972: jdk.jlink internal plugins are heavily using ASM [v3]

2023-03-09 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 207 comm

Re: RFR: 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes [v2]

2023-03-09 Thread Adam Sotona
> jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes > > This patch converts ASM calls to Classfile API. > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull

Re: RFR: 8294972: jdk.jlink internal plugins are heavily using ASM [v2]

2023-03-09 Thread Adam Sotona
> jdk.jlink internal plugins are heavily using ASM > > This patch converts ASM calls to Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: Update src/jdk.jlink/sh

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class [v2]

2023-03-09 Thread Adam Sotona
> 8294962: java.base jdk.internal.module package uses ASM to modify and write > module-info.class. > This patch converts it to use Classfile API. > > Please review. > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit si

Re: RFR: 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes

2023-03-09 Thread Adam Sotona
The message from this sender included one or more files which could not be scanned for virus detection; do not open these files unless you are certain of the sender's intent. -- On Thu, 9 Mar 2023 11:33:13 GMT, Adam Sotona wrote

Integrated: 8294959: java.base java.lang.Module uses ASM to load module-info.class

2023-03-09 Thread Adam Sotona
On Fri, 25 Nov 2022 14:35:22 GMT, Adam Sotona wrote: > java.base java.lang.Module uses ASM to load module-info.class and this patch > converts it to use Classfile API. This pull request has now been integrated. Changeset: 595645c7 Author: Adam Sotona URL: https://git.openj

RFR: 8294972: jdk.jlink internal plugins are heavily using ASM

2023-03-09 Thread Adam Sotona
jdk.jlink internal plugins are heavily using ASM This patch converts ASM calls to Classfile API. Please review. Thanks, Adam - Commit messages: - Merge branch 'master' into JDK-8294972-jlink-plugins - renamed variables in SystemModulesPlugin - 8294972: jdk.jlink internal plugins

RFR: 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes

2023-03-09 Thread Adam Sotona
The message from this sender included one or more files which could not be scanned for virus detection; do not open these files unless you are certain of the sender's intent. -- jdk.jlink jdk.tools.jimage.JImageTask is using ASM

Re: RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries

2023-03-09 Thread Adam Sotona
On Tue, 7 Mar 2023 20:47:31 GMT, Mandy Chung wrote: >> 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar >> entries >> This patch converts it to use Classfile API. >> >> Please review. >> Thanks, >> Adam > > src/jdk.jartool/share/classes/sun/tools/jar/FingerPrint.java

RFR: 8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries

2023-03-09 Thread Adam Sotona
8294966: jdk.jartool sun.tools.jar.FingerPrint uses ASM to parse class jar entries This patch converts it to use Classfile API. Please review. Thanks, Adam - Commit messages: - Merge branch 'master' into JDK-8294966-jartool - FingerPrint fixes - Update

RFR: 8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes

2023-03-09 Thread Adam Sotona
8294974: jdk.jshell jdk.jshell.execution.LocalExecutionControl uses ASM to instrument classes This patch converts it to use Classfile API. Please review. Thanks, Adam - Commit messages: - Merge branch 'master' into JDK-8294974-jshell - Merge branch 'JDK-8294982' into JDK-8294974

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class

2023-03-09 Thread Adam Sotona
On Wed, 1 Mar 2023 01:19:24 GMT, Mandy Chung wrote: >> 8294962: java.base jdk.internal.module package uses ASM to modify and write >> module-info.class. >> This patch converts it to use Classfile API. >> >> Please review. >> Thanks, >> Adam > >

Re: RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class

2023-03-09 Thread Adam Sotona
On Fri, 25 Nov 2022 14:43:32 GMT, Alan Bateman wrote: >> 8294962: java.base jdk.internal.module package uses ASM to modify and write >> module-info.class. >> This patch converts it to use Classfile API. >> >> Please review. >> Thanks, >> Adam > >

RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class

2023-03-09 Thread Adam Sotona
8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class. This patch converts it to use Classfile API. Please review. Thanks, Adam - Commit messages: - Merge branch 'master' into JDK-8294962-internal-module - fixed

Re: RFR: 8294961: java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes [v3]

2023-03-09 Thread Adam Sotona
On Sun, 19 Feb 2023 05:23:20 GMT, liach 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 six additional

RFR: 8294959: java.base java.lang.Module uses ASM to load module-info.class

2023-03-09 Thread Adam Sotona
java.base java.lang.Module uses ASM to load module-info.class and this patch converts it to use Classfile API. - Commit messages: - Merge branch 'master' into JDK-8294959-module - Merge branch 'JDK-8294982' into JDK-8294959 - removed obsolete javadoc from implementation classes

Re: RFR: 8294961: java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes [v5]

2023-03-09 Thread Adam Sotona
se review. > > Thank you, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 195 commits: - Merge branch 'master' into JDK-8294961-proxy - Merge branch 'JDK-8294982' into JDK-8294961 - removed obsolete javad

Integrated: 8294982: Implementation of Classfile API

2023-03-09 Thread Adam Sotona
On Fri, 4 Nov 2022 12:38:04 GMT, Adam Sotona wrote: > This is root pull request with Classfile API implementation, tests and > benchmarks initial drop into JDK. > > Following pull requests consolidating JDK class files parsing, generating, > and transforming ([JDK

Re: RFR: 8294961: java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy classes [v4]

2023-03-08 Thread Adam Sotona
se review. > > Thank you, > Adam 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 seven additional commits since the last revision:

Re: RFR: 8294982: Implementation of Classfile API [v49]

2023-03-08 Thread Adam Sotona
On Tue, 7 Mar 2023 15:48:58 GMT, Maurizio Cimadamore wrote: >> This is common practise across the whole implementation. Do you suggest to >> remove all similar javadoc from all implementation classes? > > Well, if the javadoc simply states the name of the class it doesn't seem very > useful.

Re: RFR: 8294982: Implementation of Classfile API [v58]

2023-03-08 Thread Adam Sotona
internal/classfile/package-summary.html) > is also available. > > Please take you time to review this non-trivial JDK addition. > > Thank you, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: removed obsolete

Re: RFR: 8294982: Implementation of Classfile API [v57]

2023-03-08 Thread Adam Sotona
internal/classfile/package-summary.html) > is also available. > > Please take you time to review this non-trivial JDK addition. > > Thank you, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: minor fix i

Re: RFR: 8294982: Implementation of Classfile API [v43]

2023-03-08 Thread Adam Sotona
On Tue, 7 Mar 2023 16:06:17 GMT, Paul Sandoz wrote: >> `Long:numberOfLeadingZeros` implementation uses more method calls, >> conditional statements and binary operations. I would prefer to stick with >> the current implementation for its speed and simplicity. > > `numberOfLeadingZeros` is an

Re: RFR: 8294982: Implementation of Classfile API [v56]

2023-03-08 Thread Adam Sotona
internal/classfile/package-summary.html) > is also available. > > Please take you time to review this non-trivial JDK addition. > > Thank you, > Adam Adam Sotona has updated the pull request incrementally with two additional commits since the last revision: - Ent

Re: RFR: 8294982: Implementation of Classfile API [v55]

2023-03-07 Thread Adam Sotona
internal/classfile/package-summary.html) > is also available. > > Please take you time to review this non-trivial JDK addition. > > Thank you, > Adam Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 183 c

<    3   4   5   6   7   8   9   10   11   >