Re: RFR: 8261845: File permissions of packages built by jpackage

2021-03-03 Thread Alexey Semenyuk
On Thu, 4 Mar 2021 03:59:27 GMT, Alexander Matveev wrote: > - Fixed by adding write permissions to .exe package. Marked as reviewed by asemenyuk (Committer). - PR: https://git.openjdk.java.net/jdk/pull/2822

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v7]

2021-03-03 Thread Ian Graves
> Modify the `unmodifiable*` methods in `java.util.Collections` to be > idempotent. That is, when given an immutable collection from > `java.util.ImmutableCollections` or `java.util.Collections`, these methods > will return the reference instead of creating a new immutable collection that > wra

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v5]

2021-03-03 Thread Ian Graves
On Thu, 4 Mar 2021 03:57:35 GMT, Stuart Marks wrote: >> The `@implNote` additions are good, and the test rewrite looks good too. > > Hm. I had thought of this previously but I was a bit suspicious, and it > didn't seem like it would make much difference, so I didn't say anything. But > thinking

RFR: 8261845: File permissions of packages built by jpackage

2021-03-03 Thread Alexander Matveev
- Fixed by adding write permissions to .exe package. - Commit messages: - 8261845: File permissions of packages built by jpackage Changes: https://git.openjdk.java.net/jdk/pull/2822/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2822&range=00 Issue: https://bugs.open

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v5]

2021-03-03 Thread Stuart Marks
On Fri, 26 Feb 2021 21:37:14 GMT, Stuart Marks wrote: >> Ian Graves has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Test refactoring. Adding implNote to modified methods > > The `@implNote` additions are good, and the test rewrite looks

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v6]

2021-03-03 Thread Ian Graves
> Modify the `unmodifiable*` methods in `java.util.Collections` to be > idempotent. That is, when given an immutable collection from > `java.util.ImmutableCollections` or `java.util.Collections`, these methods > will return the reference instead of creating a new immutable collection that > wra

Re: RFR: 8173970: jar tool should have a way to extract to a directory

2021-03-03 Thread Jaikiran Pai
Hello Lance, On 03/03/21 9:14 pm, Lance Andersen wrote: Some other things needed to be defined and agreed upon in order to move forward * The behavior if the path does not exist * If the option is specified more than once on the command line * Clarify the behavior if any of the files

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v5]

2021-03-03 Thread Ian Graves
On Thu, 4 Mar 2021 02:01:02 GMT, Ian Graves wrote: >> src/java.base/share/classes/java/util/Collections.java line 1168: >> >>> 1166: */ >>> 1167: public static SortedSet unmodifiableSortedSet(SortedSet >>> s) { >>> 1168: if (s.getClass() == UnmodifiableSortedSet.class) { >> >

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v5]

2021-03-03 Thread Ian Graves
On Wed, 3 Mar 2021 23:29:33 GMT, Joe Darcy wrote: >> Ian Graves has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Test refactoring. Adding implNote to modified methods > > src/java.base/share/classes/java/util/Collections.java line 1168: >

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v5]

2021-03-03 Thread Joe Darcy
On Fri, 26 Feb 2021 20:15:19 GMT, Ian Graves wrote: >> Modify the `unmodifiable*` methods in `java.util.Collections` to be >> idempotent. That is, when given an immutable collection from >> `java.util.ImmutableCollections` or `java.util.Collections`, these methods >> will return the reference

Integrated: 8262927: Explicitly state fields examined for BigDecimal.hashCode

2021-03-03 Thread Joe Darcy
On Wed, 3 Mar 2021 22:20:45 GMT, Joe Darcy wrote: > The class BigDecimal can be and sometimes is subclassed. The spec of > BigDecimal.hashCode is improved slightly by explicitly stating it is a > function of the unscaled value and the scale of the BigDecimal, the same > fields examined by equa

RFR: 8262989: Vectorize VectorShuffle checkIndexes, wrapIndexes and laneIsValid methods

2021-03-03 Thread Sandhya Viswanathan
The hot path of VectorShuffle checkIndexes, wrapIndexes and laneIsValid methods can be implemented using Vector API methods. For the attached jmh TestSlice.java, performance improves as below. Before: Benchmark (size) Mode Cnt Score Error Units T

Re: RFR: 8262927: Explicitly state fields examined for BigDecimal.hashCode

2021-03-03 Thread Brian Burkhalter
On Wed, 3 Mar 2021 22:20:45 GMT, Joe Darcy wrote: > The class BigDecimal can be and sometimes is subclassed. The spec of > BigDecimal.hashCode is improved slightly by explicitly stating it is a > function of the unscaled value and the scale of the BigDecimal, the same > fields examined by equa

RFR: 8262927: Explicitly state fields examined for BigDecimal.hashCode

2021-03-03 Thread Joe Darcy
The class BigDecimal can be and sometimes is subclassed. The spec of BigDecimal.hashCode is improved slightly by explicitly stating it is a function of the unscaled value and the scale of the BigDecimal, the same fields examined by equals. It is a conscious choice to *not* explicitly state what

[PING] RE: [PING] RE: 8250678: ModuleDescriptor.Version parsing treats empty segments inconsistently

2021-03-03 Thread yano-masan...@fujitsu.com
Hello, Please reply if anyone can be a sponsor. Regards, Masanori Yano > -Original Message- > From: Yano, Masanori > Sent: Tuesday, January 12, 2021 4:32 PM > To: 'core-libs-dev@openjdk.java.net' > Subject: RE: [PING] RE: 8250678: ModuleDescriptor.Version parsing treats empty > segment

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v2]

2021-03-03 Thread Alexey Semenyuk
On Wed, 3 Mar 2021 13:56:01 GMT, Andy Herrick wrote: >> test/jdk/tools/jpackage/share/jdk/jpackage/tests/NoMPathRuntimeTest.java >> line 125: >> >>> 123: .addArguments("-cvf", "junk.jar", >>> 124: "-C", tmpdir.toString(), "Hello.class") >>> 125:

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v4]

2021-03-03 Thread Alexey Semenyuk
On Wed, 3 Mar 2021 14:50:07 GMT, Andy Herrick wrote: >> when the app modules have already been jlinked with the runtime, and there >> is no need for module-path, jpackage was acting as if the module-path was >> "." and picking up jars in the current directory. > > Andy Herrick has updated the p

Re: Question about java.system.class.loader and the module system

2021-03-03 Thread Volker Simonis
Hi Alan, thanks for the quick response. Please find my answers inline On Wed, Mar 3, 2021 at 1:38 PM Alan Bateman wrote: > > On 03/03/2021 10:43, Volker Simonis wrote: > > : > > > > My question now is if this is an inherent property of the module > > system or merely an implementation detail? I.

Integrated: 8259267: Refactor LoaderLeak shell test as java test.

2021-03-03 Thread Ivan Šipka
On Wed, 2 Dec 2020 20:23:13 GMT, Ivan Šipka wrote: > Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java > test. This pull request has now been integrated. Changeset: 75aa1546 Author:Ivan Šipka Committer: Igor Ignatyev URL: https://git.openjdk.java.net/jdk/com

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v15]

2021-03-03 Thread Igor Ignatyev
On Wed, 3 Mar 2021 19:56:07 GMT, Ivan Šipka wrote: >> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java >> test. > > Ivan Šipka has updated the pull request incrementally with one additional > commit since the last revision: > > 8166026: Refactor java/lang shell tests

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v15]

2021-03-03 Thread Ivan Šipka
> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java > test. Ivan Šipka has updated the pull request incrementally with one additional commit since the last revision: 8166026: Refactor java/lang shell tests to java - Changes: - all: https://git.openjdk.j

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v14]

2021-03-03 Thread Ivan Šipka
On Wed, 3 Mar 2021 18:26:19 GMT, Igor Ignatyev wrote: >> Ivan Šipka has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8166026: Refactor java/lang shell tests to java > > test/jdk/java/lang/annotation/LoaderLeakTest.java line 74: > >> 72:

Integrated: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics

2021-03-03 Thread Joe Darcy
On Wed, 3 Mar 2021 07:20:03 GMT, Joe Darcy wrote: > I considered @stuart-marks previous suggestion during the code review of > JDK-8261123 to include a more explicit discussion of why, say, different > representations of 2 should not be regarded as equivalent. After > contemplating several alt

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics [v2]

2021-03-03 Thread Joe Darcy
On Wed, 3 Mar 2021 18:19:33 GMT, Stuart Marks wrote: >> Joe Darcy 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 three additional commits >> si

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics [v2]

2021-03-03 Thread Joe Darcy
On Wed, 3 Mar 2021 17:49:26 GMT, Brian Burkhalter wrote: >> Joe Darcy 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 three additional commits >

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics [v2]

2021-03-03 Thread Joe Darcy
> I considered @stuart-marks previous suggestion during the code review of > JDK-8261123 to include a more explicit discussion of why, say, different > representations of 2 should not be regarded as equivalent. After > contemplating several alternatives, I didn't find anything simpler than > St

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v9]

2021-03-03 Thread Anton Kozlov
On Wed, 3 Mar 2021 17:46:41 GMT, Andrew Haley wrote: > A list of the bugs that our internal testing revealed so far ... Thank you! Some of them look like test issues, but a few need more serious consideration. I want to resolve https://bugs.openjdk.java.net/browse/JDK-8262903 at least, along w

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v14]

2021-03-03 Thread Igor Ignatyev
On Wed, 3 Mar 2021 15:55:03 GMT, Ivan Šipka wrote: >> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java >> test. > > Ivan Šipka has updated the pull request incrementally with one additional > commit since the last revision: > > 8166026: Refactor java/lang shell tests

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics

2021-03-03 Thread Brian Burkhalter
On Wed, 3 Mar 2021 07:20:03 GMT, Joe Darcy wrote: > I considered @stuart-marks previous suggestion during the code review of > JDK-8261123 to include a more explicit discussion of why, say, different > representations of 2 should not be regarded as equivalent. After > contemplating several alt

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics

2021-03-03 Thread Stuart Marks
On Wed, 3 Mar 2021 07:20:03 GMT, Joe Darcy wrote: > I considered @stuart-marks previous suggestion during the code review of > JDK-8261123 to include a more explicit discussion of why, say, different > representations of 2 should not be regarded as equivalent. After > contemplating several alt

Re: RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Brent Christian
On Wed, 3 Mar 2021 18:10:25 GMT, Brent Christian wrote: >> This seems to be a long standing bug, maybe goes all the way back to JDK >> 1.2. Are you planning to add a regression test? > > Hi, Craig > The commented-out lines should be removed from the change. > > As Alan said, a regression test w

Re: RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Brent Christian
On Wed, 3 Mar 2021 14:28:00 GMT, Alan Bateman wrote: >> _NOTE_: I've reported this issue at https://bugreport.java.com/ (internal >> review ID : 9069151) >> >> `java.net.URLClassLoader.getResource` can throw an undocumented >> `IllegalArgumentException`. >> >> According to the javadoc for the

Re: RFR: 8248862: Implement Enhanced Pseudo-Random Number Generators [v28]

2021-03-03 Thread Jim Laskey
> This PR is to introduce a new random number API for the JDK. The primary API > is found in RandomGenerator and RandomGeneratorFactory. Further description > can be found in the JEP https://openjdk.java.net/jeps/356 . > > javadoc can be found at > http://cr.openjdk.java.net/~jlaskey/prng/doc/a

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v9]

2021-03-03 Thread Andrew Haley
On Wed, 3 Mar 2021 17:39:28 GMT, Gerard Ziemski wrote: > A list of the bugs that our internal testing revealed so far: Are any of these blockers for integration? Some of them are to do with things like features that aren't yet supported, and we can't fix what we can't see. - PR: h

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v9]

2021-03-03 Thread Gerard Ziemski
On Tue, 2 Mar 2021 11:05:20 GMT, Anton Kozlov wrote: >> For platform files that were copied from other ports to this port, if the >> file wasn't >> changed I presume the copyright years are left alone. If the file required >> changes >> for this port, I expect the year to be updated to 2021. Ho

Re: RFR: 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics

2021-03-03 Thread Brian Burkhalter
On Wed, 3 Mar 2021 07:20:03 GMT, Joe Darcy wrote: > I considered @stuart-marks previous suggestion during the code review of > JDK-8261123 to include a more explicit discussion of why, say, different > representations of 2 should not be regarded as equivalent. After > contemplating several alt

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v14]

2021-03-03 Thread Daniel Fuchs
On Wed, 3 Mar 2021 15:55:03 GMT, Ivan Šipka wrote: >> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java >> test. > > Ivan Šipka has updated the pull request incrementally with one additional > commit since the last revision: > > 8166026: Refactor java/lang shell tests

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v23]

2021-03-03 Thread Gerard Ziemski
On Tue, 2 Mar 2021 23:21:28 GMT, David Holmes wrote: > Note that `thread` can be NULL here if the signal handler is running in a > non-attached thread. If we then perform: > `ThreadWXEnable(WXMode new_mode, Thread* thread = NULL) : _thread(thread ? > thread : Thread::current()),` > we call Thre

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v14]

2021-03-03 Thread Ivan Šipka
> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java > test. Ivan Šipka has updated the pull request incrementally with one additional commit since the last revision: 8166026: Refactor java/lang shell tests to java - Changes: - all: https://git.openjdk.j

Re: RFR: 8173970: jar tool should have a way to extract to a directory

2021-03-03 Thread Lance Andersen
Hi Jaikiran, It should not be too difficult to support the options listed below via GNUStyleOptions. Some other things needed to be defined and agreed upon in order to move forward * The behavior if the path does not exist * If the option is specified more than once on the command line

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v2]

2021-03-03 Thread Andy Herrick
On Wed, 3 Mar 2021 00:32:24 GMT, Alexey Semenyuk wrote: >> Andy Herrick has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JDK-8261518: jpackage looks for main module in current dir when there is >> no module-path > > test/jdk/tools/jpacka

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v4]

2021-03-03 Thread Andy Herrick
> when the app modules have already been jlinked with the runtime, and there is > no need for module-path, jpackage was acting as if the module-path was "." > and picking up jars in the current directory. Andy Herrick has updated the pull request incrementally with one additional commit since t

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v3]

2021-03-03 Thread Andy Herrick
> when the app modules have already been jlinked with the runtime, and there is > no need for module-path, jpackage was acting as if the module-path was "." > and picking up jars in the current directory. Andy Herrick has updated the pull request incrementally with one additional commit since t

Re: RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Alan Bateman
On Sat, 20 Feb 2021 19:20:48 GMT, Craig Andrews wrote: > _NOTE_: I've reported this issue at https://bugreport.java.com/ (internal > review ID : 9069151) > > `java.net.URLClassLoader.getResource` can throw an undocumented > `IllegalArgumentException`. > > According to the javadoc for the `ge

Re: RFR: 8259267: Refactor LoaderLeak shell test as java test. [v13]

2021-03-03 Thread Ivan Šipka
> Refactor `test/jdk/java/lang/annotation/loaderLeak/LoaderLeak.sh` as java > test. Ivan Šipka has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contai

Re: RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Craig Andrews
On Sat, 20 Feb 2021 19:22:10 GMT, Craig Andrews wrote: >> _NOTE_: I've reported this issue at https://bugreport.java.com/ (internal >> review ID : 9069151) >> >> `java.net.URLClassLoader.getResource` can throw an undocumented >> `IllegalArgumentException`. >> >> According to the javadoc for

Re: RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Craig Andrews
On Sat, 20 Feb 2021 19:20:48 GMT, Craig Andrews wrote: > _NOTE_: I've reported this issue at https://bugreport.java.com/ (internal > review ID : 9069151) > > `java.net.URLClassLoader.getResource` can throw an undocumented > `IllegalArgumentException`. > > According to the javadoc for the `ge

RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException

2021-03-03 Thread Craig Andrews
_NOTE_: I've reported this issue at https://bugreport.java.com/ (internal review ID : 9069151) `java.net.URLClassLoader.getResource` can throw an undocumented `IllegalArgumentException`. According to the javadoc for the `getResource` and `findResource` methods, neither should be throwing `Ille

Re: RFR: JDK-8261518: jpackage looks for main module in current dir when there is no module-path [v2]

2021-03-03 Thread Andy Herrick
On Wed, 3 Mar 2021 00:31:34 GMT, Alexey Semenyuk wrote: >> Andy Herrick has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JDK-8261518: jpackage looks for main module in current dir when there is >> no module-path > > test/jdk/tools/jpacka

Re: Question about java.system.class.loader and the module system

2021-03-03 Thread Alan Bateman
On 03/03/2021 10:43, Volker Simonis wrote: : My question now is if this is an inherent property of the module system or merely an implementation detail? I.e. would it be possible to put the application module into its own layer and initialize that only later when the custom system class loader w

Question about java.system.class.loader and the module system

2021-03-03 Thread Volker Simonis
Hi, I have a question about how changing the system class loader by setting "java.system.class.loader" interacts with the module system. I couldn't find a lot of information on this topic but if it has been discussed before please point me to the corresponding place. Traditionally, setting "java.

Re: RFR: 8173970: jar tool should have a way to extract to a directory

2021-03-03 Thread Jaikiran Pai
Thank you Lance. So I think there's some level of agreement on using -C and --dir (or --directory) for the option names. Anymore opinion on the directory creation semantics and any other aspects to consider? -Jaikiran On 28/02/21 5:38 pm, Lance Andersen wrote: Hi Jaikiran, Thank you for th