Re: RFR: 8301306: java/net/httpclient/* fail with -Xcomp: java.io.IOException: HTTP/1.1 header parser received no bytes

2023-01-30 Thread Alan Bateman
On Mon, 30 Jan 2023 07:16:17 GMT, SUN Guoyun wrote: > Hi all, > I think `BackgroundCompilation` should not be set to false when `-Xcomp` be > used, which causes the java thread to block for longer, then causing the > following tests failed frequently on the AArch64 and LoongArch64 architecture.

Re: RFR: JDK-8301392: Port fdlibm log1p to Java

2023-01-30 Thread Andrey Turbanov
On Tue, 31 Jan 2023 02:52:45 GMT, Joe Darcy wrote: > Another day, another PR to port FDLBIM to Java, this time for the log1p > method. > > Other than using the two-argument form of the __HI method in Java > transliteration version rather than C macro, there are no appreciable > differences be

RFR: JDK-8301392: Port fdlibm log1p to Java

2023-01-30 Thread Joe Darcy
Another day, another PR to port FDLBIM to Java, this time for the log1p method. Other than using the two-argument form of the __HI method in Java transliteration version rather than C macro, there are no appreciable differences between the original C source in src/java.base/share/native/libfdl

Re: NPE throwing behavior of immutable collections

2023-01-30 Thread Stuart Marks
In this reply I'll focus on the null handling issues in collections. As you've noted, there are really (at least) two distinct issues here: whether a collection permits nulls, and the behavior of contains(null) queries. There have been continual complaints about both, and the issues are somewha

Re: RFR: 8301306: java/net/httpclient/* fail with -Xcomp: java.io.IOException: HTTP/1.1 header parser received no bytes

2023-01-30 Thread Vladimir Kozlov
On Mon, 30 Jan 2023 21:13:12 GMT, Daniel D. Daugherty wrote: >> Hi all, >> I think `BackgroundCompilation` should not be set to false when `-Xcomp` be >> used, which causes the java thread to block for longer, then causing the >> following tests failed frequently on the AArch64 and LoongArch64

Integrated: JDK-8262994: Refactor String.split to help method inlining

2023-01-30 Thread Christian Wimmer
On Tue, 27 Dec 2022 20:12:51 GMT, Christian Wimmer wrote: > The method `String.split` contains a fast-path when the regular expression > parameter is not really a regular expression, but just a single split > character. > This fast path vs. slow path check can be constant folded when the regula

Integrated: 8301207: (jdeps) Deprecate jdeps -profile option

2023-01-30 Thread Mandy Chung
On Mon, 30 Jan 2023 18:06:12 GMT, Mandy Chung wrote: > jdeps -profile option shows which compact profile of the types that a class > depends on instead. By default jdeps shows the types and their modules that > a class depend on. Compact profiles becomes legacy since Java SE 9 when > modules

Re: RFR: 8301306: java/net/httpclient/* fail with -Xcomp: java.io.IOException: HTTP/1.1 header parser received no bytes

2023-01-30 Thread Daniel D . Daugherty
On Mon, 30 Jan 2023 07:16:17 GMT, SUN Guoyun wrote: > Hi all, > I think `BackgroundCompilation` should not be set to false when `-Xcomp` be > used, which causes the java thread to block for longer, then causing the > following tests failed frequently on the AArch64 and LoongArch64 architecture.

Integrated: JDK-8301205: Port fdlibm log10 to Java

2023-01-30 Thread Joe Darcy
On Fri, 27 Jan 2023 06:52:31 GMT, Joe Darcy wrote: > Restarting the port of FDLIBM to Java with the log10 method. > > There are two port, the first a near-transliteration from C port to use as a > test reference in > > test/jdk/java/lang/StrictMath/FdlibmTranslit.java > > and a more idiomatic

Re: RFR: JDK-8301205: Port fdlibm log10 to Java [v3]

2023-01-30 Thread Joe Darcy
> Restarting the port of FDLIBM to Java with the log10 method. > > There are two port, the first a near-transliteration from C port to use as a > test reference in > > test/jdk/java/lang/StrictMath/FdlibmTranslit.java > > and a more idiomatic Java port in > > src/java.base/share/classes/java/

Re: RFR: 8240567: MethodTooLargeException thrown while creating a jlink image [v15]

2023-01-30 Thread Oliver Kopp
> Fix for [JDK-8240567](https://bugs.openjdk.org/browse/JDK-8240567): > "MethodTooLargeException thrown while creating a jlink image". > > Java still has a 64kb limit: A method may not be longer than 64kb. The idea > of the fix is to split up the generated methods in several smaller methods Oli

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Raffaello Giulietti
On Mon, 30 Jan 2023 19:48:50 GMT, Joe Darcy wrote: >> The bug id was added there because I'm not sure there's a way to add the >> @bug line to Basic-X.java.template`. > > I see; it might suffice in this case to rely on the bug information in the > SCM history, but I don't have a strong opinion.

Re: RFR: JDK-8301205: Port fdlibm log10 to Java [v2]

2023-01-30 Thread Brian Burkhalter
On Fri, 27 Jan 2023 17:53:40 GMT, Joe Darcy wrote: >> Restarting the port of FDLIBM to Java with the log10 method. >> >> There are two port, the first a near-transliteration from C port to use as a >> test reference in >> >> test/jdk/java/lang/StrictMath/FdlibmTranslit.java >> >> and a more i

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Joe Darcy
On Mon, 30 Jan 2023 18:52:11 GMT, Raffaello Giulietti wrote: >> test/jdk/java/util/Formatter/Basic-X.java.template line 935: >> >>> 933: >>> 934: >>> //- >>> 935: // %e - adoption of Double.toString(double) al

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Mark Sheppard
On Mon, 30 Jan 2023 11:06:05 GMT, Daniel Jeliński wrote: > Please review this patch that reduces the socket timeout used in > HandshakeTimeout test to its minimum value of 1 millisecond. > > This change makes the test complete 10 seconds faster; before this change it > took 5 seconds for the h

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Raffaello Giulietti
On Mon, 30 Jan 2023 14:33:06 GMT, Raffaello Giulietti wrote: >> Align `double` and `float` decimal conversions in `java.util.Formatter` with >> the algorithm used in `Double.toString(double)`. > > Raffaello Giulietti has updated the pull request incrementally with one > additional commit since

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v5]

2023-01-30 Thread Raffaello Giulietti
> Align `double` and `float` decimal conversions in `java.util.Formatter` with > the algorithm used in `Double.toString(double)`. Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision: 8300869: Make use of the Double.toString(double)

module opens directive and Lookup::defineClass

2023-01-30 Thread Kasper Nielsen
Hi, I just saw the pull request for 8217920 (Lookup.defineClass injects a class that can access private members of any class in its own module.) The PR details how you can generate a class in a package that has been opened to you via a module declaration. This generated class can then create a ne

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Raffaello Giulietti
On Mon, 30 Jan 2023 18:47:31 GMT, Joe Darcy wrote: >> Raffaello Giulietti has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8300869: Make use of the Double.toString(double) algorithm in >> java.util.Formatter > > test/jdk/java/util/Format

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Joe Darcy
On Mon, 30 Jan 2023 14:33:06 GMT, Raffaello Giulietti wrote: >> Align `double` and `float` decimal conversions in `java.util.Formatter` with >> the algorithm used in `Double.toString(double)`. > > Raffaello Giulietti has updated the pull request incrementally with one > additional commit since

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v2]

2023-01-30 Thread Joe Darcy
On Fri, 27 Jan 2023 18:22:11 GMT, Raffaello Giulietti wrote: >> Raffaello Giulietti has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8300869: Make use of the Double.toString(double) algorithm in >> java.util.Formatter >> >> Added t

Re: RFR: 8301207: (jdeps) Deprecate jdeps -profile option

2023-01-30 Thread Alan Bateman
On Mon, 30 Jan 2023 18:06:12 GMT, Mandy Chung wrote: > jdeps -profile option shows which compact profile of the types that a class > depends on instead. By default jdeps shows the types and their modules that > a class depend on. Compact profiles becomes legacy since Java SE 9 when > modules

RFR: 8301207: (jdeps) Deprecate jdeps -profile option

2023-01-30 Thread Mandy Chung
jdeps -profile option shows which compact profile of the types that a class depends on instead. By default jdeps shows the types and their modules that a class depend on. Compact profiles becomes legacy since Java SE 9 when modules are defined. The `-profile` option can be deprecated and rem

Integrated: 8300916: Re-examine the initialization of JNU Charset in StaticProperty

2023-01-30 Thread Naoto Sato
On Tue, 24 Jan 2023 21:13:30 GMT, Naoto Sato wrote: > This issue was found during the review of this PR: > https://github.com/openjdk/jdk/pull/12132 where `Charset` class was > loaded/initialized at the phase 1 of the startup process. Since `Charset` > depends on `StaticProperty`, loading of `

Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v7]

2023-01-30 Thread Roger Riggs
On Mon, 9 Jan 2023 09:22:25 GMT, Per Minborg wrote: >> Currently, `java.io.Bits` is using explicit logic to read/write various >> primitive types to/from byte arrays. Switching to the use of `VarHandle` >> access would provide better performance and less code. >> >> Also, using a standard API

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Vyom Tewari
On Mon, 30 Jan 2023 14:08:49 GMT, Daniel Jeliński wrote: >> test/jdk/java/rmi/transport/handshakeTimeout/HandshakeTimeout.java line 59: >> >>> 57: public static void main(String[] args) throws Exception { >>> 58: >>> 59: System.setProperty("sun.rmi.transport.tcp.handshakeTimeout",

Re: RFR: 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter [v4]

2023-01-30 Thread Raffaello Giulietti
> Align `double` and `float` decimal conversions in `java.util.Formatter` with > the algorithm used in `Double.toString(double)`. Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision: 8300869: Make use of the Double.toString(double)

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Daniel Jeliński
On Mon, 30 Jan 2023 12:54:34 GMT, Vyom Tewari wrote: > I can see that this test uses "TIMEOUT" down in test Right, this is why I didn't remove the TIMEOUT constant > i will suggest you to reduce the "TIMEOUT" constant instead of hard coding it > to "1" second. I can't; this would make the test

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Vyom Tewari
On Mon, 30 Jan 2023 11:06:05 GMT, Daniel Jeliński wrote: > Please review this patch that reduces the socket timeout used in > HandshakeTimeout test to its minimum value of 1 millisecond. > > This change makes the test complete 10 seconds faster; before this change it > took 5 seconds for the h

Re: Update TestTooManyEntries to run non-manual

2023-01-30 Thread Eirik Bjørsnøs
On Sat, Jan 28, 2023 at 5:29 PM Lance Andersen wrote: > I also would prefer to see the test based off of an actual ZIP(or at least > have the current/modified version of the test). > Consensus seems to be we leave the existing manual test alone. I've updated the PR to leave the existing test as-

Re: NPE throwing behavior of immutable collections

2023-01-30 Thread Glavo
One of the meanings is debug. Now it is even difficult to detect whether a list has these features through assertions. We want to see exceptions, but when we actually call unsupported methods, the wrong object may have been propagated to other methods or even threads, so that we can't see the prob

RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Daniel Jeliński
Please review this patch that reduces the socket timeout used in HandshakeTimeout test to its minimum value of 1 millisecond. This change makes the test complete 10 seconds faster; before this change it took 5 seconds for the handshake to timeout, and the test attempts 2 handshakes. The change

Re: NPE throwing behavior of immutable collections

2023-01-30 Thread Kasper Nielsen
On Mon, 30 Jan 2023 at 09:11, Glavo wrote: > Now that we have the interface default method, can we add a new method to the > Collection to obtain the support status of the feature, like this: > > public record CollectionFeature(String name) { > public enum Status { > SUPPORTED, UNSUPP

Re: NPE throwing behavior of immutable collections

2023-01-30 Thread Glavo
Thank you for your reply, which explains why there are so few interfaces in the collection framework. But I think it still doesn't answer my question: Why doesn't it provide a means to judge the features supported by the collection? Now that we have the interface default method, can we add a new m

Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v2]

2023-01-30 Thread Andriy Plokhotnyuk
On Mon, 30 Jan 2023 08:41:25 GMT, Per Minborg wrote: > > java.time.ZoneOffset > > Maybe I am blind but can you provide a direct reference to an exising JDK > method in `java.time` where we can apply similar optimizations? No problem! We can start from `java.time.ZoneOffset` and its `parse` and

Re: RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v2]

2023-01-30 Thread Per Minborg
On Wed, 4 Jan 2023 13:16:26 GMT, Andriy Plokhotnyuk wrote: > java.time.ZoneOffset Maybe I am blind but can you provide a direct reference to an exising JDK method in `java.time` where we can apply similar optimizations? - PR: https://git.openjdk.org/jdk/pull/11840

Re: RFR: 8299748: java/util/zip/Deinflate.java failing on s390x

2023-01-30 Thread Amit Kumar
On Mon, 30 Jan 2023 08:24:27 GMT, Jaikiran Pai wrote: >> DeInflate.java test fails on s390x platform because size for out1 array >> which is responsible for storing the compressed data is insufficient. And >> being unable to write whole compressed data on array, on s390 whole data >> can't be

Re: RFR: 8299748: java/util/zip/Deinflate.java failing on s390x

2023-01-30 Thread Jaikiran Pai
On Mon, 30 Jan 2023 08:03:38 GMT, Amit Kumar wrote: > DeInflate.java test fails on s390x platform because size for out1 array which > is responsible for storing the compressed data is insufficient. And being > unable to write whole compressed data on array, on s390 whole data can't be > recove

Re: RFR: 8299748: java/util/zip/Deinflate.java failing on s390x

2023-01-30 Thread Jaikiran Pai
On Mon, 30 Jan 2023 08:03:38 GMT, Amit Kumar wrote: > DeInflate.java test fails on s390x platform because size for out1 array which > is responsible for storing the compressed data is insufficient. And being > unable to write whole compressed data on array, on s390 whole data can't be > recove

Integrated: JDK-8301163: jdk/internal/vm/Continuation/Fuzz.java increase COMPILATION_TIMEOUT for Linux ppc64le

2023-01-30 Thread Matthias Baesken
On Fri, 27 Jan 2023 08:33:32 GMT, Matthias Baesken wrote: > On our Linux ppc64le test machines we quite often see compilation timeouts in > the test jdk/internal/vm/Continuation/Fuzz.java. > (especially when running with fastdebug binaries) > So it probably makes sense to use a higher compilatio

RFR: 8299748: java/util/zip/Deinflate.java failing on s390x

2023-01-30 Thread Amit Kumar
DeInflate.java test fails on s390x platform because size for out1 array which is responsible for storing the compressed data is insufficient. And being unable to write whole compressed data on array, on s390 whole data can't be recovered after compression. So this fix increase Array size (for s3