Integrated: 8282060: RemoteRuntimeImageTest is not actually testing on JDK 8

2022-05-05 Thread Athijegannathan Sundararajan
On Thu, 5 May 2022 09:00:47 GMT, Athijegannathan Sundararajan wrote: > This test requires jdk8 to be available while running jdk tests. But > JDK8_HOME is defined to be BOOT_JDK and so version check fails in the test. > The test vacuously passes just printing a message. There ar

RFR: 8282060: RemoteRuntimeImageTest is not actually testing on JDK 8

2022-05-05 Thread Athijegannathan Sundararajan
This test requires jdk8 to be available while running jdk tests. But JDK8_HOME is defined to be BOOT_JDK and so version check fails in the test. The test vacuously passes just printing a message. There are already tests that exercise jrt-fs.jar on the same JDK being tested and so basic

Re: RFR: 8285485: Fix typos in corelibs

2022-04-27 Thread Athijegannathan Sundararajan
On Fri, 22 Apr 2022 15:08:51 GMT, Magnus Ihse Bursie wrote: > I ran `codespell` on modules owned by core-libs, and accepted those changes > where it indeed discovered real typos. > > I will update copyright years using a script before pushing (otherwise like > every second change would be a

Re: RFR: 8283060: RawNativeLibraries should allow multiple clients to load/unload the same library

2022-03-29 Thread Athijegannathan Sundararajan
On Tue, 29 Mar 2022 20:05:50 GMT, Mandy Chung wrote: > A small improvement to `RawNativeLibraries`. `RawNativeLibraries::load` > returns the same `NativeLibrary` instance of a given path if it's called > multiple times. This means that multiple clients have to coordinate that the > last one

Re: RFR: JDK-8283416: Update java.lang.invoke.MethodHandle to use sealed classes

2022-03-21 Thread Athijegannathan Sundararajan
On Mon, 21 Mar 2022 18:17:06 GMT, Mandy Chung wrote: > > $ javac com/acme/*.java > > is fine. Am I missing something? > > If you make P.Q private, it will fail the compilation. > Yes, I got that part. I did make a comment earlier ("Two of those subclasses are nested "private" in another

Re: RFR: JDK-8283416: Update java.lang.invoke.MethodHandle to use sealed classes

2022-03-21 Thread Athijegannathan Sundararajan
On Sun, 20 Mar 2022 21:31:15 GMT, Joe Darcy wrote: > Small refactoring to use sealed classes in the MethodHandle implementation > hierarchy. > > DelegatingMethodHandle is non-sealed rather than sealed since it has two > subclasses, one defined as a nested class and only a separate type in the

Re: RFR: JDK-8283416: Update java.lang.invoke.MethodHandle to use sealed classes

2022-03-21 Thread Athijegannathan Sundararajan
On Sun, 20 Mar 2022 21:31:15 GMT, Joe Darcy wrote: > Small refactoring to use sealed classes in the MethodHandle implementation > hierarchy. > > DelegatingMethodHandle is non-sealed rather than sealed since it has two > subclasses, one defined as a nested class and only a separate type in the

Re: RFR: JDK-8283416: Update java.lang.invoke.MethodHandle to use sealed classes

2022-03-20 Thread Athijegannathan Sundararajan
On Sun, 20 Mar 2022 21:31:15 GMT, Joe Darcy wrote: > Small refactoring to use sealed classes in the MethodHandle implementation > hierarchy. > > DelegatingMethodHandle is non-sealed rather than sealed since it has two > subclasses, one defined as a nested class and only a separate type in the

Re: RFR: 8282572: EnumSet should be a sealed class

2022-03-11 Thread Athijegannathan Sundararajan
On Tue, 8 Mar 2022 10:50:35 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to implement the > enhancement requested in https://bugs.openjdk.java.net/browse/JDK-8282572? > > The (public) `EnumSet` class has 2 package private (JDK) internal sub-classes > -

Re: RFR: 8282572: EnumSet should be a sealed class

2022-03-08 Thread Athijegannathan Sundararajan
On Tue, 8 Mar 2022 10:50:35 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to implement the > enhancement requested in https://bugs.openjdk.java.net/browse/JDK-8282572? > > The (public) `EnumSet` class has 2 package private (JDK) internal sub-classes > -

Re: RFR: 8268250: Class.arrayType() for a 255-d array throws undocumented IllegalArgumentException [v4]

2022-02-16 Thread Athijegannathan Sundararajan
On Thu, 17 Feb 2022 05:11:40 GMT, Joe Darcy wrote: >> Make explicit illegal argument cases of Class.arrayType. >> >> Please also review the corresponding CSR: >> https://bugs.openjdk.java.net/browse/JDK-8268300 > > Joe Darcy has updated the pull request incrementally with one additional >

Re: RFR: 8268250: Class.arrayType() for a 255-d array throws undocumented IllegalArgumentException [v3]

2022-02-16 Thread Athijegannathan Sundararajan
On Thu, 17 Feb 2022 02:56:53 GMT, Joe Darcy wrote: >> Make explicit illegal argument cases of Class.arrayType. >> >> Please also review the corresponding CSR: >> https://bugs.openjdk.java.net/browse/JDK-8268300 > > Joe Darcy has updated the pull request with a new target base due to a merge >

Re: RFR: 8268250: Class.arrayType() for a 255-d array throws undocumented IllegalArgumentException [v3]

2022-02-16 Thread Athijegannathan Sundararajan
On Thu, 17 Feb 2022 02:56:53 GMT, Joe Darcy wrote: >> Make explicit illegal argument cases of Class.arrayType. >> >> Please also review the corresponding CSR: >> https://bugs.openjdk.java.net/browse/JDK-8268300 > > Joe Darcy has updated the pull request with a new target base due to a merge >

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v2]

2022-02-10 Thread Athijegannathan Sundararajan
On Fri, 11 Feb 2022 03:49:45 GMT, Mandy Chung wrote: >> This patch removes the restriction in the raw library loading mechanism that >> does not allow mix-n-match of loading a library as a JNI library and as a >> raw library. >> >> The raw library loading mechanism is designed for panama to

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library

2022-02-10 Thread Athijegannathan Sundararajan
On Thu, 10 Feb 2022 23:27:49 GMT, Mandy Chung wrote: > This patch removes the restriction in the raw library loading mechanism that > does not allow mix-n-match of loading a library as a JNI library and as a raw > library. > > The raw library loading mechanism is designed for panama to load

Re: [jdk18] RFR: 8278574: update --help-extra message to include default value of --finalization option

2021-12-15 Thread Athijegannathan Sundararajan
On Thu, 16 Dec 2021 06:33:24 GMT, Stuart Marks wrote: > A small modification to the Launcher's help text. LGTM - Marked as reviewed by sundar (Reviewer). PR: https://git.openjdk.java.net/jdk18/pull/34

Re: [jdk18] RFR: 8278607: Misc issues in foreign API javadoc [v4]

2021-12-15 Thread Athijegannathan Sundararajan
On Tue, 14 Dec 2021 10:24:07 GMT, Maurizio Cimadamore wrote: >> This patch fixes a number of issues and typos in the foreign API javadoc >> following another internal round of reviews. > > Maurizio Cimadamore has updated the pull request incrementally with one > additional commit since the

Re: [jdk18] RFR: 8278607: Misc issues in foreign API javadoc [v3]

2021-12-14 Thread Athijegannathan Sundararajan
On Tue, 14 Dec 2021 02:07:00 GMT, Maurizio Cimadamore wrote: >> This patch fixes a number of issues and typos in the foreign API javadoc >> following another internal round of reviews. > > Maurizio Cimadamore has updated the pull request incrementally with one > additional commit since the

Integrated: 8278205: jlink plugins should dump .class file in debug mode

2021-12-03 Thread Athijegannathan Sundararajan
On Fri, 3 Dec 2021 10:03:30 GMT, Athijegannathan Sundararajan wrote: > jlink plugins dump .class files in debug mode. jpackage tests already set > jlink.debug property to true. This pull request has now been integrated. Changeset: ba2a8e5a Author:Athijegannathan Sundararaja

RFR: 8278205: jlink plugins should dump .class file in debug mode

2021-12-03 Thread Athijegannathan Sundararajan
jlink plugins dump .class files in debug mode. jpackage tests already set jlink.debug property to true. - Commit messages: - 8278205: jlink plugins should dump .class file in debug mode Changes: https://git.openjdk.java.net/jdk/pull/6696/files Webrev:

Re: RFR: 8278145: Javadoc for MemorySegment::set/MemorySegment::setAtIndex is missing throws tag

2021-12-02 Thread Athijegannathan Sundararajan
On Thu, 2 Dec 2021 12:26:33 GMT, Maurizio Cimadamore wrote: > This patch adds missing `@throws` tags to the javadoc of `MemorySegment::set` > and `MemorySegment::setAtIndex`. > These methods can fail with `UnsupportedOperationException` if the segment is > read-only. LGTM -

Re: RFR: 8277647: [REDO] JDK-8277507 Add jlink.debug system property while launching jpackage tests to help diagonize recent intermittent failures

2021-12-01 Thread Athijegannathan Sundararajan
On Wed, 24 Nov 2021 08:54:08 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which adds `jlink.debug=true` system > property while launching `jpackage` tests? > > The previous fix for this in https://github.com/openjdk/jdk/pull/6491 didn't > take into account the part

Re: RFR: 8273682: Upgrade Jline to 3.20.0

2021-10-11 Thread Athijegannathan Sundararajan
On Thu, 23 Sep 2021 14:43:21 GMT, Jan Lahoda wrote: > I'd like to upgrade the internal JLine to 3.20.0, to support the rxvt > terminal (see JDK-8270943), and to generally use a newer version of the > library. This patch is basically a application of relevant parts of the diff > between JLine

Re: [jdk17] RFR: JDK-8249646: Runtime.exec(String, String[], File) documentation contains literal {@link ...}

2021-06-28 Thread Athijegannathan Sundararajan
On Tue, 29 Jun 2021 04:39:28 GMT, Jonathan Gibbons wrote: > Please review a trivial `noreg-doc` fix for some javadoc tags for > `java.lang.Runtime` for JDK17 LGTM - Marked as reviewed by sundar (Reviewer). PR: https://git.openjdk.java.net/jdk17/pull/167

Integrated: 8240349: jlink should not leave partial image output directory on failure

2021-06-09 Thread Athijegannathan Sundararajan
On Mon, 7 Jun 2021 11:00:00 GMT, Athijegannathan Sundararajan wrote: > jlink should clean up output directory on any failure. should not leave > partially filled output. This pull request has now been integrated. Changeset: 4d1cf51b Author:Athijegannathan Sundararajan URL:

Re: RFR: 8240349: jlink should not leave partial image output directory on failure [v2]

2021-06-08 Thread Athijegannathan Sundararajan
> jlink should clean up output directory on any failure. should not leave > partially filled output. Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision: Fixed resouce closing issue for lib/moduls file. Pre-ex

Re: RFR: 8240349: jlink --vm with not present VM does not fail fast

2021-06-08 Thread Athijegannathan Sundararajan
On Tue, 8 Jun 2021 11:32:29 GMT, Alan Bateman wrote: >> jlink should clean up output directory on any failure. should not leave >> partially filled output. > > src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java line 295: > >> 293: cleanupOutput(outputPath); >> 294:

Re: RFR: 8240349: jlink --vm with not present VM does not fail fast

2021-06-08 Thread Athijegannathan Sundararajan
On Tue, 8 Jun 2021 12:20:32 GMT, Jorn Vernee wrote: > WRT the test failure on Windows discussed offline: when the directory is > deleted as a result of a `PluginException` being thrown, there is still an > open file handle on the `lib/modules` file in the image directory, which > prevents the

Re: RFR: 8268327: Upstream: 8268169: The system lookup can not find stdio functions such as printf on Windows 10

2021-06-07 Thread Athijegannathan Sundararajan
On Mon, 7 Jun 2021 13:23:46 GMT, Jorn Vernee wrote: > Hi, > > The documentation of `CLinker::systemLookup` [1] says this: > > > * Obtains a system lookup which is suitable to find symbols in the standard C > libraries. > > > However, currently it is not possible to look up common stdio.h

RFR: 8240349: jlink --vm with not present VM does not fail fast

2021-06-07 Thread Athijegannathan Sundararajan
jlink should clean up output directory on any failure. should not leave partially filled output. - Commit messages: - 8240349: jlink --vm with not present VM does not fail fast Changes: https://git.openjdk.java.net/jdk/pull/4386/files Webrev:

Integrated: 8240347: remove undocumented options from jlink --help message

2021-05-27 Thread Athijegannathan Sundararajan
On Thu, 27 May 2021 09:23:50 GMT, Athijegannathan Sundararajan wrote: > fixed constructor argument passing issue. This pull request has now been integrated. Changeset: ec65cf83 Author: Athijegannathan Sundararajan URL: https://git.openjdk.java.net/jdk/com

RFR: 8240347: remove undocumented options from jlink --help message

2021-05-27 Thread Athijegannathan Sundararajan
fixed constructor argument passing issue. - Commit messages: - 8240347: remove undocumented options from jlink --help message Changes: https://git.openjdk.java.net/jdk/pull/4221/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=4221=00 Issue:

Integrated: 8267583: jmod fails on symlink to class file

2021-05-26 Thread Athijegannathan Sundararajan
On Wed, 26 May 2021 07:55:53 GMT, Athijegannathan Sundararajan wrote: > FileVisitOption.FOLLOW_LINKS used. Test extended for file symlinks case. This pull request has now been integrated. Changeset: bf8d4a8e Author: Athijegannathan Sundararajan URL: https://git.openjdk.java.net/

RFR: 8267583: jmod fails on symlink to class file

2021-05-26 Thread Athijegannathan Sundararajan
FileVisitOption.FOLLOW_LINKS used. Test extended for file symlinks case. - Commit messages: - 8267583: jmod fails on symlink to class file Changes: https://git.openjdk.java.net/jdk/pull/4202/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=4202=00 Issue:

Integrated: 8266291: (jrtfs) Calling Files.exists may break the JRT filesystem

2021-05-14 Thread Athijegannathan Sundararajan
On Fri, 14 May 2021 05:39:10 GMT, Athijegannathan Sundararajan wrote: > Problematic paths that start with /modules/modules prefix are handled properly This pull request has now been integrated. Changeset: af4cd04c Author: Athijegannathan Sundararajan URL: ht

Re: RFR: 8266291: (jrtfs) Calling Files.exists may break the JRT filesystem [v2]

2021-05-14 Thread Athijegannathan Sundararajan
> Problematic paths that start with /modules/modules prefix are handled properly Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision: edited comment as per code review. - Changes: - all: ht

RFR: 8266291: (jrtfs) Calling Files.exists may break the JRT filesystem

2021-05-13 Thread Athijegannathan Sundararajan
Problematic paths that start with /modules/modules prefix are handled properly - Commit messages: - fixed typos in comments - 8266291: (jrtfs) Calling Files.exists may break the JRT filesystem Changes: https://git.openjdk.java.net/jdk/pull/4022/files Webrev:

Integrated: 8260621: (jrtfs) ThreadLocal memory leak in ImageBufferCache when using jrtfs

2021-05-05 Thread Athijegannathan Sundararajan
On Tue, 4 May 2021 09:05:38 GMT, Athijegannathan Sundararajan wrote: > Instead of BufferReference class, Map.Entry is used as pair implementation. > This avoids the metaspace leak seen via thread local. This pull request has now been integrated. Changeset: c9873c41 Author:Athijegan

RFR: 8260621: (jrtfs) ThreadLocal memory leak in ImageBufferCache when using jrtfs

2021-05-04 Thread Athijegannathan Sundararajan
Instead of BufferReference class, Map.Entry is used as pair implementation. This avoids the metaspace leak seen via thread local. - Commit messages: - added comment. generics cleanup. - 8260621: (jrtfs) ThreadLocal memory leak in ImageBufferCache when using jrtfs Changes:

Re: RFR: 8264326: Modernize javax.script.ScriptEngineManager and related classes' implementation [v2]

2021-03-30 Thread Athijegannathan Sundararajan
On Sun, 28 Mar 2021 13:38:51 GMT, Attila Szegedi wrote: >> I noticed that `javax.script.ScriptEngineManager` `getEngineByXxx` methods >> had a lot of code duplication among themselves, and even within each method. >> I refactored them into a modern unified implementation. While there I also

Re: RFR: 8262503: Support records in Dynalink

2021-03-30 Thread Athijegannathan Sundararajan
On Sun, 28 Feb 2021 16:46:31 GMT, Attila Szegedi wrote: > 8262503: Support records in Dynalink Looks good - Marked as reviewed by sundar (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/2767

Re: RFR: 8260337: Optimize ImageReader lookup, used by Class.getResource [v2]

2021-02-09 Thread Athijegannathan Sundararajan
On Mon, 25 Jan 2021 16:09:01 GMT, Claes Redestad wrote: >> This patch optimizes the code paths exercised by >> `String.class.getResource("String.class")` by: >> >> - Adding an ASCII fast-path to methods verifying strings in the jimage, >> which can then be done allocation-free >> - Avoiding

Integrated: 8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues

2021-02-01 Thread Athijegannathan Sundararajan
On Fri, 15 Jan 2021 05:19:44 GMT, Athijegannathan Sundararajan wrote: > Fixed compilation issues with the test. Test compiles and runs fine locally. This pull request has now been integrated. Changeset: c0cde7dc Author: Athijegannathan Sundararajan URL: https://git.openjdk.java.

Re: RFR: 8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues [v2]

2021-02-01 Thread Athijegannathan Sundararajan
> Fixed compilation issues with the test. Test compiles and runs fine locally. Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision: Removed CompressorPluginTest.java from ProblemList.txt - Changes: -

RFR: 8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues

2021-01-14 Thread Athijegannathan Sundararajan
Fixed compilation issues with the test. Test compiles and runs fine locally. - Commit messages: - 8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues Changes: https://git.openjdk.java.net/jdk/pull/2091/files Webrev:

Re: [jdk16] RFR: 8259636: Check for buffer backed by shared segment kicks in in unexpected places

2021-01-12 Thread Athijegannathan Sundararajan
On Tue, 12 Jan 2021 15:48:18 GMT, Maurizio Cimadamore wrote: > When support for shared segment was added, we decided to disable support for > buffers derived from shared segment in certain async operations, as there's > currently no way to make sure that the memory won't be reclaimed while

Integrated: 8242258: (jrtfs) Path::toUri throws AssertionError for malformed input

2020-12-08 Thread Athijegannathan Sundararajan
On Mon, 7 Dec 2020 16:35:52 GMT, Athijegannathan Sundararajan wrote: > Safe URI encode logic adopted from UnixUriUtils. This pull request has now been integrated. Changeset: d2b66196 Author: Athijegannathan Sundararajan URL: https://git.openjdk.java.net/jdk/commit/d2b66196 St

Re: RFR: 8242258: (jrtfs) Path::toUri throws AssertionError for malformed input [v2]

2020-12-07 Thread Athijegannathan Sundararajan
On Mon, 7 Dec 2020 19:59:40 GMT, Alan Bateman wrote: >> Athijegannathan Sundararajan has updated the pull request incrementally with >> one additional commit since the last revision: >> >> renamed the test as per review comment. > > test/jdk/jdk/internal/

Re: RFR: 8242258: (jrtfs) Path::toUri throws AssertionError for malformed input [v2]

2020-12-07 Thread Athijegannathan Sundararajan
> Safe URI encode logic adopted from UnixUriUtils. Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision: renamed the test as per review comment. - Changes: - all: https://git.openjdk.java.net/jdk/pull/1

RFR: 8242258: (jrtfs) Path::toUri throws AssertionError for malformed input

2020-12-07 Thread Athijegannathan Sundararajan
Safe URI encode logic adopted from UnixUriUtils. - Commit messages: - 8242258: (jrtfs) Path::toUri throws AssertionError for malformed input Changes: https://git.openjdk.java.net/jdk/pull/1669/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=1669=00 Issue:

Re: RFR: 8255845: Memory leak in imageFile.cpp

2020-12-03 Thread Athijegannathan Sundararajan
On Thu, 3 Dec 2020 14:57:16 GMT, Evan Whelan wrote: > This is a straightforward fix to resolve a potential memory leak in > imageFile.cpp. > > If `find_location` returns true, the `path` char array is never released. > > This has been fixed Marked as reviewed by sundar (Reviewer).

Re: RFR: 8256862: Several java/foreign tests fail on x86_32 platforms [v2]

2020-11-25 Thread Athijegannathan Sundararajan
On Wed, 25 Nov 2020 22:00:13 GMT, Jorn Vernee wrote: >> This patch fixes several failures on x86_32 of java/foreign tests. >> >> This is mostly done by disabling the failing tests, but the impl of CLinker >> is also adjusted ton properly detect 32 bit platforms as unsupported. >> >> CLinker

Re: RFR: 8256865: Foreign Memory Access and Linker API are missing NPE checks [v2]

2020-11-23 Thread Athijegannathan Sundararajan
On Mon, 23 Nov 2020 18:22:14 GMT, Maurizio Cimadamore wrote: >> Both the Foreign Memory Access and the Foreign Linker APIs leave something >> to be desired when it comes to handling NPEs - first, most of the API >> javadoc is oblivious to NPEs being thrown. Secondly, not all API method >>

Re: RFR: 8256477: Specialize heap memory segment implementations [v2]

2020-11-18 Thread Athijegannathan Sundararajan
On Wed, 18 Nov 2020 10:08:20 GMT, Maurizio Cimadamore wrote: >> The current memory segment implementation defines a hierarchy with 3 >> concrete classes: one for heap segments, one for native segments and one for >> mapped segments. >> >> Since there can be many kinds of heap segments (e.g.

Re: RFR: 8252919: JDK built with --enable-cds=no fails with NoClassDefFoundError

2020-09-09 Thread Athijegannathan Sundararajan
On Wed, 9 Sep 2020 19:38:38 GMT, Mandy Chung wrote: > `jlink --generate-jli-classes` plugin should retain the original holder > classes if the default_jli_trace.txt > file does not exist. > > Before JDK-8252725, `JavaLangInvokeAccess::generateXXXHolderClassesBytes` > methods are invoked >