Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v6]

2023-03-12 Thread Eirik Bjorsnos
On Mon, 13 Mar 2023 01:31:20 GMT, Martin Buchholz wrote: >> Eirik Bjorsnos has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - MAX_EXTRA_FIELD_SIZE can be better expressed as 0x >> - Bring back '@requires sun.arch.data.model == 64' fo

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v6]

2023-03-12 Thread Martin Buchholz
On Sun, 12 Mar 2023 21:25:46 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v19]

2023-03-12 Thread iaroslavski
> Sorting: > > - adopt radix sort for sequential and parallel sorts on int/long/float/double > arrays (almost random and length > 6K) > - fix tryMergeRuns() to better handle case when the last run is a single > element > - minor javadoc and comment changes > > Testing: > - add new data inputs i

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v6]

2023-03-12 Thread Eirik Bjorsnos
> Please review this PR which speeds up TestTooManyEntries and clarifies its > purpose: > > - The name 'TestTooManyEntries' does not clearly convey the purpose of the > test. What is tested is the validation that the total CEN size fits in a Java > byte array. Suggested rename: CenSizeTooLarge

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v5]

2023-03-12 Thread Eirik Bjorsnos
> Please review this PR which speeds up TestTooManyEntries and clarifies its > purpose: > > - The name 'TestTooManyEntries' does not clearly convey the purpose of the > test. What is tested is the validation that the total CEN size fits in a Java > byte array. Suggested rename: CenSizeTooLarge

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
On Sun, 12 Mar 2023 14:12:08 GMT, Lance Andersen wrote: > I think this is probably OK. I would probably create a constant with the Data > Size to make it clearer and add more of a detailed comment of this method > (laying out the structure of the Extra field) along with pointing to 4.6.1 of >

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
On Sun, 12 Mar 2023 16:41:33 GMT, Martin Buchholz wrote: >> Eirik Bjorsnos has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Use Integer.toString instead of Long.toString > > test/jdk/java/util/zip/ZipFile/CenSizeTooLarge.java line 67: >

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Martin Buchholz
On Sun, 12 Mar 2023 10:00:50 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v4]

2023-03-12 Thread Eirik Bjorsnos
> Please review this PR which speeds up TestTooManyEntries and clarifies its > purpose: > > - The name 'TestTooManyEntries' does not clearly convey the purpose of the > test. What is tested is the validation that the total CEN size fits in a Java > byte array. Suggested rename: CenSizeTooLarge

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Lance Andersen
On Sun, 12 Mar 2023 10:00:50 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: 8303485: Replacing os.name for operating system customization [v2]

2023-03-12 Thread Michael Osipov
On Fri, 10 Mar 2023 21:21:56 GMT, Roger Riggs wrote: >> Improvements to support OS specific customization for JDK internal use: >> - To select values and code; allowing elimination of unused code and values >> - Optionally evaluated by build processes, compilation, or archiving (i.e. >> CDS) >

Re: RFR: 8303485: Replacing os.name for operating system customization

2023-03-12 Thread Michael Osipov
On Fri, 10 Mar 2023 14:22:17 GMT, Justin King wrote: > > > Has this totally killed of BSD support on the JDK side? I thought > > > building non-macOS BSD was still viable, but perhaps not - certainly not > > > after this change. > > > > > > The macOS port in 7u4 was based on a BSD port and th

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
On Sun, 12 Mar 2023 11:47:47 GMT, Alan Bateman wrote: > It would be great if we could change this to be an automatic test. Maybe we > could create a sub-directory in test/jdk/java/util/zip/ZipFile for the > resource hogs and put this here, exclude this directory from tier1, and add > it to tie

Re: RFR: 8304006: jlink should create the jimage file in the native endian for the target platform [v3]

2023-03-12 Thread Jim Laskey
On Sat, 11 Mar 2023 11:11:05 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which proposes to fix the issue >> reported in https://bugs.openjdk.org/browse/JDK-8206890? >> >> The `jlink` command allows a `--endian` option to specify the byte order in >> the generated imag

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
On Sun, 12 Mar 2023 10:00:50 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Alan Bateman
On Sun, 12 Mar 2023 10:00:50 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
On Sun, 12 Mar 2023 11:13:51 GMT, Lance Andersen wrote: > I think the changes look good overall. Thank you for this. I am not sure that > the `@requires` is needed at this point. I think it is still needed. ZipOutputStream needs to keep all entries in memory until it can write the CEN entries.

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Lance Andersen
On Sun, 12 Mar 2023 10:00:50 GMT, Eirik Bjorsnos wrote: >> Please review this PR which speeds up TestTooManyEntries and clarifies its >> purpose: >> >> - The name 'TestTooManyEntries' does not clearly convey the purpose of the >> test. What is tested is the validation that the total CEN size f

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-03-12 Thread Eirik Bjorsnos
> Please review this PR which speeds up TestTooManyEntries and clarifies its > purpose: > > - The name 'TestTooManyEntries' does not clearly convey the purpose of the > test. What is tested here is the validation that the total CEN size fits in a > Java byte array. Suggested rename: CenSizeTooL

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v2]

2023-03-12 Thread Eirik Bjorsnos
> Please review this PR which speeds up TestTooManyEntries and clarifies its > purpose: > > - The name 'TestTooManyEntries' does not clearly convey the purpose of the > test. What is tested here is the validation that the total CEN size fits in a > Java byte array. Suggested rename: CenSizeTooL

Re: RFR: 8304006: jlink should create the jimage file in the native endian for the target platform [v4]

2023-03-12 Thread Alan Bateman
On Sat, 11 Mar 2023 12:16:04 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which proposes to fix the issue >> reported in https://bugs.openjdk.org/browse/JDK-8206890? >> >> The `jlink` command allows a `--endian` option to specify the byte order in >> the generated imag

RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose

2023-03-12 Thread Eirik Bjorsnos
Please review this test which speeds up TestTooManyEntries and clarifies its purpose: - The name 'TestTooManyEntries' does not clearly convey the purpose of the test. What is tested here is the validation that the total CEN size fits in a Java byte array. Suggested rename: CenSizeTooLarge - The