Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-07 Thread Markus KARG
On Tue, 29 Nov 2022 23:40:58 GMT, Brian Burkhalter wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed bug number > >> > Please take note of the changes proposed in #11403. >> >> It might make sense to merge

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-07 Thread Markus KARG
On Tue, 29 Nov 2022 23:40:58 GMT, Brian Burkhalter wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed bug number > >> > Please take note of the changes proposed in #11403. >> >> It might make sense to merge

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-07 Thread Markus KARG
On Tue, 6 Dec 2022 16:20:44 GMT, Brian Burkhalter wrote: >> test/jdk/java/io/SequenceInputStream/TransferTo.java line 206: >> >>> 204: } >>> 205: >>> 206: } >> >> As auto-detected, there is no newline at the end of this file. Otherwise it >> appears all right. > > @mkarg Please take

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-07 Thread Markus KARG
On Tue, 6 Dec 2022 16:20:44 GMT, Brian Burkhalter wrote: >> test/jdk/java/io/SequenceInputStream/TransferTo.java line 206: >> >>> 204: } >>> 205: >>> 206: } >> >> As auto-detected, there is no newline at the end of this file. Otherwise it >> appears all right. > > @mkarg Please take

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-06 Thread Brian Burkhalter
On Mon, 5 Dec 2022 19:42:44 GMT, Brian Burkhalter wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fixed bug number > > test/jdk/java/io/SequenceInputStream/TransferTo.java line 206: > >> 204: } >> 205: >>

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-12-05 Thread Brian Burkhalter
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-30 Thread Alan Bateman
On Tue, 29 Nov 2022 23:40:58 GMT, Brian Burkhalter wrote: > > > Please take note of the changes proposed in #11403. > > > > > > It might make sense to merge _this_ PR as-is _first_, but then add the > > needed fix to #11403 afterwards? > > I concur. I will take a look at the test soon. That

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Brian Burkhalter
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Markus KARG
On Tue, 29 Nov 2022 19:39:49 GMT, Brian Burkhalter wrote: > Please take note of the changes proposed in #11403. It might make sense to merge *this* PR as-is *first*, but then add the needed fix to #11403 afterwards? Otherwise it might be confusing for a reader, why #11403 is not covering SIS

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Brian Burkhalter
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-24 Thread Alan Bateman
On Thu, 24 Nov 2022 20:22:16 GMT, Markus KARG wrote: > Kindly requesting review. :-) The override looks fine. I think [bplb](https://github.com/bplb) plans to review/sponsor it. - PR: https://git.openjdk.org/jdk/pull/11248

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-24 Thread Markus KARG
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-20 Thread Markus KARG
> Since JDK 18 some implementations of InputStream.transferTo, namely > FileInputStream and ChannelInputStream, offload work to lower layers using > NIO channels. This provides shorter execution time and reduced resource > consumption. Unfortunately, this effect is prevented once the input