Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v3]

2023-03-16 Thread Jaikiran Pai
On Thu, 16 Mar 2023 21:25:44 GMT, Viktor Klang wrote: >> Addresses the situation where exceptional completion of `orTimeout`:ed >> CompletableFutures wouldn't cancel the timeout task which could lead to >> memory leaks if done frequently enough with long enough timeout durations. >> >> Fix dis

Reverse operation of ClassDesc::of

2023-03-16 Thread -
While using ClassDesc, I find that it is somewhat hard to convert it to a binary or internal name as calling substring makes the code much more complex, especially when we know that the given ClassDesc is a class or interface. Thus, I propose an API serving as the inverse of ClassDesc::of(String),

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader [v2]

2023-03-16 Thread Jaikiran Pai
On Thu, 16 Mar 2023 21:30:04 GMT, Naoto Sato wrote: >> This is a blocker for >> [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to >> weed out non-class files for calling `ClassReader` by checking the file >> extension. Regression tests are not provided as it is not poss

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

2023-03-16 Thread Jaikiran Pai
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 ClassHierarchyInfo. In thi

Re: RFR: 8303697: ProcessTools doesn't print last line of process output [v5]

2023-03-16 Thread Leonid Mesnik
> The StreamPumper is fixed to process the last line even it is not finishes > with '\n' or '\r'. The test included. Testing with tier1-3 also to verify > that tests are not broken. Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision: t

Re: RFR: 8303697: ProcessTools doesn't print last line of process output [v4]

2023-03-16 Thread David Holmes
On Fri, 17 Mar 2023 00:02:12 GMT, Leonid Mesnik wrote: >> The StreamPumper is fixed to process the last line even it is not finishes >> with '\n' or '\r'. The test included. Testing with tier1-3 also to verify >> that tests are not broken. > > Leonid Mesnik has updated the pull request incremen

Re: RFR: 8304303: implement VirtualThread class notifyJvmti methods as C2 intrinsics [v3]

2023-03-16 Thread Serguei Spitsyn
> This is needed for performance improvements in support of virtual threads. > The update includes the following: > > 1. Refactored the `VirtualThread` native methods: > `notifyJvmtiMountBegin` and `notifyJvmtiMountEnd` => > `notifyJvmtiMount` > `notifyJvmtiUnmountBegin` and `not

Re: RFR: 8304139: Add and method constants to ConstantDescs [v3]

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 20:43:30 GMT, Mandy Chung wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove main related constants, update specification for initialization >> constants > > src/java.base/share/classes/java/

Re: RFR: 8304139: Add , , and main method constants to ClassDescs [v3]

2023-03-16 Thread Chen Liang
> Add String constants INIT_NAME, CLASS_INIT_NAME, MTD_void for the names and > method type of instance and class initializers; add String constant MAIN_NAME > and MTD_void_StringArray for the name and method type of main method. > > Update occurrences of and in core libraries API specificatio

Re: RFR: 8304139: Add , , and main method constants to ClassDescs [v2]

2023-03-16 Thread Chen Liang
> Add String constants INIT_NAME, CLASS_INIT_NAME, MTD_void for the names and > method type of instance and class initializers; add String constant MAIN_NAME > and MTD_void_StringArray for the name and method type of main method. > > Update occurrences of and in core libraries API specificatio

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v21]

2023-03-16 Thread Jorn Vernee
On Thu, 16 Mar 2023 14:42:10 GMT, Martin Doerr wrote: >> Implementation of "Foreign Function & Memory API" for linux on Power (Little >> Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". >> >> This PR does not include code for VaList support because it's supposed to >>

Re: RFR: 8303697: ProcessTools doesn't print last line of process output [v3]

2023-03-16 Thread Leonid Mesnik
On Thu, 16 Mar 2023 06:19:14 GMT, Thomas Stuefe wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> comments added > > That also affects OutputAnalyzer, right? Does this affect parsing or is this > only printing? >

Re: RFR: 8303697: ProcessTools doesn't print last line of process output [v4]

2023-03-16 Thread Leonid Mesnik
> The StreamPumper is fixed to process the last line even it is not finishes > with '\n' or '\r'. The test included. Testing with tier1-3 also to verify > that tests are not broken. Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision: f

RFR: 8298995: tools/jpackage/share/AddLauncherTest.java#id1 failed "AddLauncherTest.test; checks=53"

2023-03-16 Thread Alexander Matveev
This is similar to many other issues we had with `hdiutil` failures. Fixed in similar way by repeating `hdiutil` command. Cannot confirm that it will resolve this issue, but similar issues got resolved by repeating command. Also, switched writing output from `hdiutil` to file. It is known issue

Re: RFR: 8304320: java.base does not export jdk.internal.org.objectweb.asm to module jdk.jshell

2023-03-16 Thread Jorn Vernee
On Thu, 16 Mar 2023 08:14:25 GMT, Varada M wrote: > jdk/test/jdk/tools/jimage/VerifyJimage.java is failing because the module > java.base is not exporting jdk.internal.org.objectweb.asm to module > jdk.jshell. > > Reported Issue : [JDK-8304320](https://bugs.openjdk.org/browse/JDK-8304320) I

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader [v2]

2023-03-16 Thread Lance Andersen
On Thu, 16 Mar 2023 21:30:04 GMT, Naoto Sato wrote: >> This is a blocker for >> [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to >> weed out non-class files for calling `ClassReader` by checking the file >> extension. Regression tests are not provided as it is not poss

Re: RFR: 8294137: Review running times of java.math tests [v2]

2023-03-16 Thread Joe Darcy
On Thu, 2 Mar 2023 22:35:52 GMT, Brian Burkhalter wrote: >> Break up `BigIntegerTest` and `SymmetricRangeTests` into subsets which are >> run quasi-randomly as a function of second within the minute at the time the >> test is running. `LargeValueExceptions` does not appear amenable to this >>

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

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 15:20:27 GMT, Chen Liang wrote: >> Possible extensions of `ClassHierarchyResolver` factories, or maybe even >> extensions of the default resolver are on the table and I just planned to >> open this discussion. >> >> Here is specific case where original code passes `ClassLoa

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

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 10:47:01 GMT, Adam Sotona wrote: >> 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 t

Re: RFR: JDK-8304063: tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH [v2]

2023-03-16 Thread Alexander Matveev
On Thu, 16 Mar 2023 09:08:08 GMT, Matthias Baesken wrote: >> The test fails on Alpine Linux 3.17, when checking the environment variable >> LD_LIBRARY_PATH; looks like the actual env variable is much longer than the >> test expects. It turned out that at least on Linux (probably also on other

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader [v2]

2023-03-16 Thread Naoto Sato
> This is a blocker for > [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to > weed out non-class files for calling `ClassReader` by checking the file > extension. Regression tests are not provided as it is not possible to detect > the fix from the artifact jimage, but ma

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v3]

2023-03-16 Thread Viktor Klang
On Thu, 16 Mar 2023 20:51:29 GMT, Pavel Rappo wrote: >> Viktor Klang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Making the test for orTimeout+completeExceptionally only based on >> iterations and not duration. > > test/jdk/java/uti

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v3]

2023-03-16 Thread Viktor Klang
> Addresses the situation where exceptional completion of `orTimeout`:ed > CompletableFutures wouldn't cancel the timeout task which could lead to > memory leaks if done frequently enough with long enough timeout durations. > > Fix discussed with @DougLea Viktor Klang has updated the pull reque

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v3]

2023-03-16 Thread Pavel Rappo
On Thu, 16 Mar 2023 21:21:51 GMT, Viktor Klang wrote: >> Addresses the situation where exceptional completion of `orTimeout`:ed >> CompletableFutures wouldn't cancel the timeout task which could lead to >> memory leaks if done frequently enough with long enough timeout durations. >> >> Fix dis

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v2]

2023-03-16 Thread Viktor Klang
On Thu, 16 Mar 2023 20:51:29 GMT, Pavel Rappo wrote: >> Viktor Klang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update >> test/jdk/java/util/concurrent/CompletableFuture/CompletableFutureOrTimeoutExceptionallyTest.java >> >> C

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader

2023-03-16 Thread Lance Andersen
On Thu, 16 Mar 2023 20:43:38 GMT, Naoto Sato wrote: > This is a blocker for > [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to > weed out non-class files for calling `ClassReader` by checking the file > extension. Regression tests are not provided as it is not possible

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader

2023-03-16 Thread Naoto Sato
On Thu, 16 Mar 2023 20:54:49 GMT, Mandy Chung wrote: > > confirmed it would effectively weed out `LineBreakIteratorData_th`, > > `WordBreakIteratorData_th`, and `thai_dict` files by running > > IncludeLocalesPluginTest.java. > > I think you meant these files are filtered out but they remain in

Re: RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 20:43:38 GMT, Naoto Sato wrote: > This is a blocker for > [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to > weed out non-class files for calling `ClassReader` by checking the file > extension. Regression tests are not provided as it is not possible

Integrated: 8304360: Test to ensure ConstantDescs fields work

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 16:58:53 GMT, Chen Liang wrote: > https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 > > Add a test to validate that all constants in ConstantDescs can be resolved > with a minimally-trusted lookup, and select constants represent the objects > they claim to b

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v2]

2023-03-16 Thread Pavel Rappo
On Thu, 16 Mar 2023 20:51:37 GMT, Viktor Klang wrote: >> Addresses the situation where exceptional completion of `orTimeout`:ed >> CompletableFutures wouldn't cancel the timeout task which could lead to >> memory leaks if done frequently enough with long enough timeout durations. >> >> Fix dis

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally [v2]

2023-03-16 Thread Viktor Klang
> Addresses the situation where exceptional completion of `orTimeout`:ed > CompletableFutures wouldn't cancel the timeout task which could lead to > memory leaks if done frequently enough with long enough timeout durations. > > Fix discussed with @DougLea Viktor Klang has updated the pull reque

Re: RFR: 8304139: Add , , and main method constants to ClassDescs

2023-03-16 Thread Mandy Chung
On Tue, 14 Mar 2023 14:30:32 GMT, Chen Liang wrote: > Add String constants INIT_NAME, CLASS_INIT_NAME, MTD_void for the names and > method type of instance and class initializers; add String constant MAIN_NAME > and MTD_void_StringArray for the name and method type of main method. > > Update o

RFR: 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader

2023-03-16 Thread Naoto Sato
This is a blocker for [JDK-8294972](https://bugs.openjdk.org/browse/JDK-8294972). The fix is to weed out non-class files for calling `ClassReader` by checking the file extension. Regression tests are not provided as it is not possible to detect the fix from the artifact jimage, but manually con

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

2023-03-16 Thread Naoto Sato
On Thu, 16 Mar 2023 18:40:16 GMT, Mandy Chung wrote: >> There is no common binary format for "localedata", the file in question is >> the custom format specific for `BreakIterator`, ancient code from Taligent. >> IIUC, only description of the format is in the source: >> https://github.com/open

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally

2023-03-16 Thread Andrey Turbanov
On Thu, 16 Mar 2023 13:37:10 GMT, Viktor Klang wrote: > Addresses the situation where exceptional completion of `orTimeout`:ed > CompletableFutures wouldn't cancel the timeout task which could lead to > memory leaks if done frequently enough with long enough timeout durations. > > Fix discusse

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 18:40:12 GMT, Chen Liang wrote: >> https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 >> >> Add a test to validate that all constants in ConstantDescs can be resolved >> with a minimally-trusted lookup, and select constants represent the objects >> they claim

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread ExE Boss
On Thu, 16 Mar 2023 18:40:12 GMT, Chen Liang wrote: >> https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 >> >> Add a test to validate that all constants in ConstantDescs can be resolved >> with a minimally-trusted lookup, and select constants represent the objects >> they claim

Re: RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally

2023-03-16 Thread Alan Bateman
On Thu, 16 Mar 2023 13:37:10 GMT, Viktor Klang wrote: > Addresses the situation where exceptional completion of `orTimeout`:ed > CompletableFutures wouldn't cancel the timeout task which could lead to > memory leaks if done frequently enough with long enough timeout durations. > > Fix discusse

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread Jorn Vernee
On Thu, 16 Mar 2023 18:40:12 GMT, Chen Liang wrote: >> https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 >> >> Add a test to validate that all constants in ConstantDescs can be resolved >> with a minimally-trusted lookup, and select constants represent the objects >> they claim

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 18:40:12 GMT, Chen Liang wrote: >> https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 >> >> Add a test to validate that all constants in ConstantDescs can be resolved >> with a minimally-trusted lookup, and select constants represent the objects >> they claim

Re: RFR: 8297605: DelayQueue javadoc is confusing

2023-03-16 Thread Alan Bateman
On Thu, 2 Mar 2023 20:00:56 GMT, Martin Buchholz wrote: > Inviting @DougLea and @viktorklang-ora to review. > > As usual, I couldn't resist more fiddling. > - Added missing tests for take, remove(), remove(Object). > - Improved DelayQueueTest's testing infrastructure > - added more test assert

Re: RFR: 8304180: Constant Descriptors for MethodHandles::classData and classDataAt

2023-03-16 Thread Mandy Chung
On Wed, 15 Mar 2023 02:18:37 GMT, Chen Liang wrote: > Add Constant Descriptors for DirectMethodHandleDesc of > MethodHandles::classData and classDataAt in ConstantDescs. This facilitates > easier access of class data via condy in Classfile API-generated bytecode. > Most other constant bootstra

Re: RFR: 8225641: Calendar.roll(int field) does not work correctly for WEEK_OF_YEAR

2023-03-16 Thread Justin Lu
On Wed, 15 Mar 2023 19:53:07 GMT, Naoto Sato wrote: >> This PR fixes the bug which occurred when `Calendar.roll(WEEK_OF_YEAR)` >> rolled into a minimal first week with an invalid `WEEK_OF_YEAR` and >> `DAY_OF_WEEK` combo. >> >> For example, Rolling _Monday, 30 December 2019_ by 1 week produced

Re: RFR: 8225641: Calendar.roll(int field) does not work correctly for WEEK_OF_YEAR

2023-03-16 Thread Justin Lu
On Wed, 15 Mar 2023 19:50:46 GMT, Naoto Sato wrote: >> This PR fixes the bug which occurred when `Calendar.roll(WEEK_OF_YEAR)` >> rolled into a minimal first week with an invalid `WEEK_OF_YEAR` and >> `DAY_OF_WEEK` combo. >> >> For example, Rolling _Monday, 30 December 2019_ by 1 week produced

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

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 17:00:59 GMT, Naoto Sato wrote: >> @naotoj as these localedata resource files are not `.class`, the plugin >> should not use ASM (or Classfile API) to parse it but ASM ClassReader just >> happens to work. Is the format documented anywhere? >> >> @asotona I agree that thi

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 18:12:23 GMT, Jorn Vernee wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Switch to DataProvider > > test/jdk/java/lang/constant/ConstantDescsTest.java line 65: > >> 63: */ >> 64: @Test

Re: RFR: 8304360: Test to ensure ConstantDescs fields work [v2]

2023-03-16 Thread Chen Liang
> https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 > > Add a test to validate that all constants in ConstantDescs can be resolved > with a minimally-trusted lookup, and select constants represent the objects > they claim to be. Chen Liang has updated the pull request incrementa

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v3]

2023-03-16 Thread Justin Lu
On Thu, 16 Mar 2023 18:31:23 GMT, Justin Lu wrote: >> This PR converts Unicode sequences to UTF-8 native in .properties file. >> (Excluding the Unicode space and tab sequence). The conversion was done >> using native2ascii. >> >> In addition, the build logic is adjusted to support reading in t

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v3]

2023-03-16 Thread Justin Lu
> This PR converts Unicode sequences to UTF-8 native in .properties file. > (Excluding the Unicode space and tab sequence). The conversion was done using > native2ascii. > > In addition, the build logic is adjusted to support reading in the > .properties files as UTF-8 during the conversion fro

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2023-03-16 Thread Justin Lu
On Wed, 15 Mar 2023 16:18:44 GMT, Archie L. Cobbs wrote: >> Justin Lu has updated the pull request incrementally with four additional >> commits since the last revision: >> >> - Bug6204853 should not be converted >> - Copyright year for CompileProperties >> - Redo translation for CS.properti

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2023-03-16 Thread Justin Lu
On Thu, 16 Mar 2023 18:19:29 GMT, Justin Lu wrote: >> This PR converts Unicode sequences to UTF-8 native in .properties file. >> (Excluding the Unicode space and tab sequence). The conversion was done >> using native2ascii. >> >> In addition, the build logic is adjusted to support reading in t

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2023-03-16 Thread Justin Lu
On Wed, 15 Mar 2023 20:19:51 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with four additional >> commits since the last revision: >> >> - Bug6204853 should not be converted >> - Copyright year for CompileProperties >> - Redo translation for CS.properties >>

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2023-03-16 Thread Justin Lu
> This PR converts Unicode sequences to UTF-8 native in .properties file. > (Excluding the Unicode space and tab sequence). The conversion was done using > native2ascii. > > In addition, the build logic is adjusted to support reading in the > .properties files as UTF-8 during the conversion fro

Re: RFR: 8304360: Test to ensure ConstantDescs fields work

2023-03-16 Thread Jorn Vernee
On Thu, 16 Mar 2023 16:58:53 GMT, Chen Liang wrote: > https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 > > Add a test to validate that all constants in ConstantDescs can be resolved > with a minimally-trusted lookup, and select constants represent the objects > they claim to b

RFR: 8304360: Test to ensure ConstantDescs fields work

2023-03-16 Thread Chen Liang
https://github.com/openjdk/jdk/pull/13033#issuecomment-1470857327 Add a test to validate that all constants in ConstantDescs can be resolved with a minimally-trusted lookup, and select constants represent the objects they claim to be. - Commit messages: - Whitespace - constantdes

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

2023-03-16 Thread Naoto Sato
On Thu, 16 Mar 2023 16:18:46 GMT, Mandy Chung wrote: >> The file `LineBreakIteratorData_th` is not a class file, thus the exception >> is appropriate. This plugin test is trying to verify the integrity of the >> generated jimage, not only the required class files for the specified >> locale, b

Re: RFR: 8304320: java.base does not export jdk.internal.org.objectweb.asm to module jdk.jshell

2023-03-16 Thread Varada M
On Thu, 16 Mar 2023 08:43:46 GMT, Alan Bateman wrote: > jshell was migrated to new the class file API in JDK-8294974 so it shouldn't > have any references to ASM anymore. Would it be possible to check if you have > a mismatch between your build and the test? Hi @AlanBateman. The changes from J

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

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 16:06:15 GMT, Naoto Sato wrote: >> This plugin does not fit to the Classfile API use cases portfolio at all. >> Here it is only needed to get interfaces list out of the constant pool and >> then the Utf8 CP entries are in-place modified. That is out of the Classfile >> API

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

2023-03-16 Thread Naoto Sato
On Thu, 16 Mar 2023 07:51:25 GMT, Adam Sotona wrote: >> src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/IncludeLocalesPlugin.java >> line 160: >> >>> 158: >>> resource.type().equals(ResourcePoolEntry.Type.CLASS_OR_RESOURCE)) { >>> 159: byte[

Re: RFR: 8304314: StackWalkTest.java fails after CODETOOLS-7903373

2023-03-16 Thread Mandy Chung
On Thu, 16 Mar 2023 13:26:35 GMT, Leonid Mesnik wrote: > The test depends on the jtreg stack and should be updated. > The fix is backported from loom repo where jtreg with CODETOOLS-7903373 is > used. > Tested with current promoted jtreg (without CODETOOLS-7903373) by running > test. Marked as

Re: RFR: 8304225: Remove javax/script/Test7.java from ProblemList

2023-03-16 Thread Jaikiran Pai
On Wed, 15 Mar 2023 06:16:17 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes > `javax/script/Test7.java` from the ProblemList? > > As noted in https://bugs.openjdk.org/browse/JDK-8304225, this test no longer > fails and passes just like the other tests in `jav

Integrated: 8304225: Remove javax/script/Test7.java from ProblemList

2023-03-16 Thread Jaikiran Pai
On Wed, 15 Mar 2023 06:16:17 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes > `javax/script/Test7.java` from the ProblemList? > > As noted in https://bugs.openjdk.org/browse/JDK-8304225, this test no longer > fails and passes just like the other tests in `jav

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

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 14:50:14 GMT, Alan Bateman wrote: >> test/jdk/java/util/ServiceLoader/BadProvidersTest.java line 216: >> >>> 214: clb.withSuperclass(CD_Object); >>> 215: clb.withFlags(AccessFlag.PUBLIC, AccessFlag.SUPER); >>> 216: var provider$1Desc = Clas

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

2023-03-16 Thread Chen Liang
> 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 > 2. One ASM library-specific test, `LambdaAsm` is removed. Oth

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

2023-03-16 Thread Chen Liang
> 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 > 2. One ASM library-specific test, `LambdaAsm` is removed. Oth

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

2023-03-16 Thread Chen Liang
On Thu, 16 Mar 2023 13:21:38 GMT, Adam Sotona wrote: >> src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java line 426: >> >>> 424: */ >>> 425: localCache.computeIfAbsent(classDesc, cd -> { >>> 426: try { >> >> This probably can b

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

2023-03-16 Thread Chen Liang
> 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 > 2. One ASM library-specific test, `LambdaAsm` is removed. Oth

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

2023-03-16 Thread Alan Bateman
On Tue, 14 Mar 2023 07:53:25 GMT, Alan Bateman wrote: > This is class descriptor for ProviderFactory$1, not "Provider" so maybe > rename this to providerFactory1 or something a bit clearer. The updated version looks good. I assume you'll do a pass over the updated tests to bump their copyright

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v20]

2023-03-16 Thread Martin Doerr
On Thu, 16 Mar 2023 14:17:12 GMT, Martin Doerr wrote: >> Implementation of "Foreign Function & Memory API" for linux on Power (Little >> Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". >> >> This PR does not include code for VaList support because it's supposed to >>

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v21]

2023-03-16 Thread Martin Doerr
> Implementation of "Foreign Function & Memory API" for linux on Power (Little > Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". > > This PR does not include code for VaList support because it's supposed to get > removed by [JDK-8299736](https://bugs.openjdk.org/browse

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 >> 2.

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v20]

2023-03-16 Thread Martin Doerr
> Implementation of "Foreign Function & Memory API" for linux on Power (Little > Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". > > This PR does not include code for VaList support because it's supposed to get > removed by [JDK-8299736](https://bugs.openjdk.org/browse

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: > https://github.com/openjdk/jdk/blob/1e9942aa112edca33f964db127df6

Re: jtreg test test/jdk/java/lang/StackWalker/StackWalkTest.java fails after jtreg commit 7903373

2023-03-16 Thread Kosta Stojiljkovic
Thanks Leonid! Kosta --- Original Message --- On Thursday, March 16th, 2023 at 2:29 PM, Leonid Mesnik wrote: > Hi > > I’ve sent fix out for review: https://github.com/openjdk/jdk/pull/13058 > > Leonid > > From: Tobias Hartmann > Date: Thursday, March 16, 2023 at 12:20 AM > To: Kos

Re: RFR: 8304314: StackWalkTest.java fails after CODETOOLS-7903373

2023-03-16 Thread Alan Bateman
On Thu, 16 Mar 2023 13:26:35 GMT, Leonid Mesnik wrote: > The test depends on the jtreg stack and should be updated. > The fix is backported from loom repo where jtreg with CODETOOLS-7903373 is > used. > Tested with current promoted jtreg (without CODETOOLS-7903373) by running > test. Marked as

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 revision: improved met

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 >> 2.

RFR: JDK-8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally

2023-03-16 Thread Viktor Klang
Addresses the situation where exceptional completion of `orTimeout`:ed CompletableFutures wouldn't cancel the timeout task which could lead to memory leaks if done frequently enough with long enough timeout durations. Fix discussed with @DougLea - Commit messages: - Adding a regre

RFR: 8304314: StackWalkTest.java fails after CODETOOLS-7903373

2023-03-16 Thread Leonid Mesnik
The test depends on the jtreg stack and should be updated. The fix is backported from loom repo where jtreg with CODETOOLS-7903373 is used. Tested with current promoted jtreg (without CODETOOLS-7903373) by running test. - Commit messages: - 8304314: StackWalkTest.java fails after COD

Re: jtreg test test/jdk/java/lang/StackWalker/StackWalkTest.java fails after jtreg commit 7903373

2023-03-16 Thread Leonid Mesnik
Hi I’ve sent fix out for review: https://github.com/openjdk/jdk/pull/13058 Leonid From: Tobias Hartmann Date: Thursday, March 16, 2023 at 12:20 AM To: Kosta Stojiljkovic , core-libs-dev@openjdk.org Cc: Leonid Mesnik Subject: Re: jtreg test test/jdk/java/lang/StackWalker/StackWalkTest.java fa

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 branch 'master' into JDK-8294961-pro

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v19]

2023-03-16 Thread Martin Doerr
> Implementation of "Foreign Function & Memory API" for linux on Power (Little > Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". > > This PR does not include code for VaList support because it's supposed to get > removed by [JDK-8299736](https://bugs.openjdk.org/browse

Re: RFR: JDK-8304063: tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH [v2]

2023-03-16 Thread Alexey Semenyuk
On Thu, 16 Mar 2023 09:03:36 GMT, Matthias Baesken wrote: >> test/jdk/tools/jpackage/share/AppLauncherEnvTest.java line 93: >> >>> 91: } else { >>> 92: TKit.assertEquals(expectedEnvVarValue, actualEnvVarValue, >>> msg); >>> 93: } >> >> I'd keep the check as a single

Re: RFR: JDK-8304063: tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH [v2]

2023-03-16 Thread Alexey Semenyuk
On Thu, 16 Mar 2023 09:08:08 GMT, Matthias Baesken wrote: >> The test fails on Alpine Linux 3.17, when checking the environment variable >> LD_LIBRARY_PATH; looks like the actual env variable is much longer than the >> test expects. It turned out that at least on Linux (probably also on other

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v18]

2023-03-16 Thread Martin Doerr
> Implementation of "Foreign Function & Memory API" for linux on Power (Little > Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". > > This PR does not include code for VaList support because it's supposed to get > removed by [JDK-8299736](https://bugs.openjdk.org/browse

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 last revision: Apply sugges

Integrated: 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField

2023-03-16 Thread Chen Liang
On Tue, 14 Mar 2023 17:12:50 GMT, Chen Liang wrote: > Such an API allows creating TypeKind from both Class and ClassDesc than > having to call descriptorString() explicitly at every use site. > > See > https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000240.html > for context.

Re: RFR: JDK-8295859 Update Manual Test Groups

2023-03-16 Thread Mahendra Chhipa
On Thu, 2 Mar 2023 21:34:28 GMT, Bill Huang wrote: > The purpose of this task is to add the difference between -manual jdk_core > and jdk_core_manual to the jdk_core_manual test goal. Furthermore, in order > to streamline the manual test execution process, a new test group called > jdk_core_ma

Re: RFR: 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview) [v17]

2023-03-16 Thread Jorn Vernee
On Wed, 15 Mar 2023 18:53:08 GMT, Martin Doerr wrote: >> Implementation of "Foreign Function & Memory API" for linux on Power (Little >> Endian) according to "Power Architecture 64-Bit ELF V2 ABI Specification". >> >> This PR does not include code for VaList support because it's supposed to >>

Integrated: 8303684: Lift upcall sharing mechanism to AbstractLinker (mainline)

2023-03-16 Thread Jorn Vernee
On Mon, 6 Mar 2023 18:40:47 GMT, Jorn Vernee wrote: > Port of: https://github.com/openjdk/panama-foreign/pull/791 which lifts the > sharing mechanism for upcall stubs to AbstractLinker. This pull request has now been integrated. Changeset: d4eb3953 Author:Jorn Vernee URL: https://g

Re: RFR: 8303684: Lift upcall sharing mechanism to AbstractLinker (mainline) [v3]

2023-03-16 Thread Jorn Vernee
> Port of: https://github.com/openjdk/panama-foreign/pull/791 which lifts the > sharing mechanism for upcall stubs to AbstractLinker. Jorn Vernee has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: - Merge branch 'master'

Re: RFR: 8304283: Modernize the switch statements in jdk.internal.foreign [v4]

2023-03-16 Thread Per Minborg
> This PR proposes changing old-type switch statements to newer forms of switch. Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Pretty case statements - Changes: - all: https://git.openjdk.org/jdk/pull/13047/files -

Integrated: 8304283: Modernize the switch statements in jdk.internal.foreign

2023-03-16 Thread Per Minborg
On Wed, 15 Mar 2023 18:10:29 GMT, Per Minborg wrote: > This PR proposes changing old-type switch statements to newer forms of switch. This pull request has now been integrated. Changeset: dfc7214a Author:Per Minborg URL: https://git.openjdk.org/jdk/commit/dfc7214a3ed28f679d7404954d5

Re: RFR: 8304283: Modernize the switch statements in jdk.internal.foreign [v3]

2023-03-16 Thread Per Minborg
> This PR proposes changing old-type switch statements to newer forms of switch. Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Update after comments - Changes: - all: https://git.openjdk.org/jdk/pull/13047/files - n

Re: RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v45]

2023-03-16 Thread Jim Laskey
> Enhance the Java programming language with string templates, which are > similar to string literals but contain embedded expressions. A string > template is interpreted at run time by replacing each expression with the > result of evaluating that expression, possibly after further validation a

Re: RFR: 8304283: Modernize the switch statements in jdk.internal.foreign [v2]

2023-03-16 Thread Per Minborg
On Wed, 15 Mar 2023 18:34:50 GMT, Maurizio Cimadamore wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reintroduce missing comment > > src/java.base/share/classes/jdk/internal/foreign/abi/riscv64/linux/TypeClass.jav

Re: RFR: 8304283: Modernize the switch statements in jdk.internal.foreign [v2]

2023-03-16 Thread Per Minborg
On Thu, 16 Mar 2023 09:40:30 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/jdk/internal/foreign/abi/CallingSequenceBuilder.java >> line 219: >> >>> 217: case Binding.Cast unused-> true; >>> 218: }; >>> 219: } >> >> I'd go a bit further here and visuall

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 in SystemModulesPlugin

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 custom ResourceHelper in Inc

Re: RFR: 8304283: Modernize the switch statements in jdk.internal.foreign [v2]

2023-03-16 Thread Maurizio Cimadamore
On Wed, 15 Mar 2023 19:38:53 GMT, Jorn Vernee wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reintroduce missing comment > > src/java.base/share/classes/jdk/internal/foreign/abi/CallingSequenceBuilder.java > line

  1   2   >