Re: RFR: 8341184: Clean up the interaction between the launcher native code and the LauncherHelper [v2]

2024-10-11 Thread Jaikiran Pai
> Can I please get a review of this change, which simplifies the interaction > between the `java` launcher's native code with the > `sun.launcher.LauncherHelper`? > > As noted in https://bugs.openjdk.org/browse/JDK-8341184, this proposed change > reduces the back and forth between the launcher

Integrated: 8341138: Rename jtreg property docker.support as container.support

2024-10-11 Thread Ramkumar Sunderbabu
On Wed, 9 Oct 2024 14:50:30 GMT, Ramkumar Sunderbabu wrote: > The System property "docker.support" defined in VMProps gives a wrong > impression that it is tied to docker alone. The property is common for any > container runtime. Hence, it needs to be renamed as "container.support". > > Posit

Re: RFR: 8339637: (tz) Update Timezone Data to 2024b [v3]

2024-10-11 Thread Johny Jose
> Timezone data 2024b changes Johny Jose has updated the pull request incrementally with one additional commit since the last revision: Review changes - Changes: - all: https://git.openjdk.org/jdk/pull/21265/files - new: https://git.openjdk.org/jdk/pull/21265/files/c3238444..

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v37]

2024-10-11 Thread fabioromano1
> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses > repeated squares trick. fabioromano1 has updated the pull request incrementally with one additional commit since the last revision: Added comments explaining the algorithm in more details - Changes: - a

Re: RFR: 8341692: Implement JEP 490: ZGC: Remove the Non-Generational Mode [v3]

2024-10-11 Thread Chris Plummer
On Fri, 11 Oct 2024 06:43:33 GMT, Axel Boldt-Christmas wrote: >> This is the implementation task for `JEP 490: ZGC: Remove the >> Non-Generational Mode`. See the JEP for details. >> [JDK-8335850](https://bugs.openjdk.org/browse/JDK-8335850) > > Axel Boldt-Christmas has updated the pull request

Re: RFR: 8341445: DecimalFormatSymbols setters should throw NPE [v4]

2024-10-11 Thread Naoto Sato
On Fri, 11 Oct 2024 22:23:42 GMT, Justin Lu wrote: >> Please review this PR which improves the safety of equality checking for >> DecimalFormatSymbols. As certain setters did not throw NPE, this allowed for >> NPE in the equality method. This PR now updates the setters to throw NPE. >> >> In a

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Chen Liang
On Fri, 11 Oct 2024 21:02:30 GMT, Markus KARG wrote: >> src/java.base/share/classes/java/io/Reader.java line 212: >> >>> 210: default -> { >>> 211: for (int i = next, j = next + n; i < j;) >>> 212: cbuf[off++] = cs.charAt(i+

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Markus KARG
On Fri, 11 Oct 2024 20:56:44 GMT, Roger Riggs wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> inc should be faster than add on most CPUs > > src/java.base/share/classes/java/io/Reader.java line 212: > >> 210:

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Roger Riggs
On Thu, 10 Oct 2024 21:10:30 GMT, Markus KARG wrote: >> This Pull Requests proposes an implementation for >> [JDK-8341566](https://bugs.openjdk.org/browse/JDK-8341566): Adding the new >> method `public static Reader Reader.of(CharSequence)` will return an >> anonymous, non-synchronized impleme

Re: RFR: 8341566: Add Reader.of(CharSequence) [v7]

2024-10-11 Thread Chen Liang
On Wed, 9 Oct 2024 18:05:55 GMT, Chen Liang wrote: >> Markus KARG has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - assertThrows instead of expectedExceptions >> - ordered jtreg tags according recommendation in >> https://openjdk.org/j

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v36]

2024-10-11 Thread fabioromano1
> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses > repeated squares trick. fabioromano1 has updated the pull request incrementally with one additional commit since the last revision: Apply suggestions from code review Co-authored-by: Raffaello Giulietti Co-auth

Re: RFR: 8341445: DecimalFormatSymbols setters should throw NPE [v4]

2024-10-11 Thread Justin Lu
> Please review this PR which improves the safety of equality checking for > DecimalFormatSymbols. As certain setters did not throw NPE, this allowed for > NPE in the equality method. This PR now updates the setters to throw NPE. > > In addition to the NPEs, there is also a behavioral change tha

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API [v2]

2024-10-11 Thread ExE Boss
On Fri, 11 Oct 2024 16:21:30 GMT, Chen Liang wrote: >> Please review this patch that adds a test by @nizarbenalla to perform null >> checks across the ClassFile API. This is an updated version of #20556 that >> minimizes impact on our implementation code. >> >> Notes: >> 1. There's one change

Re: RFR: 8341566: Add Reader.of(CharSequence) [v7]

2024-10-11 Thread Markus KARG
On Wed, 9 Oct 2024 18:05:55 GMT, Chen Liang wrote: >> Markus KARG has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - assertThrows instead of expectedExceptions >> - ordered jtreg tags according recommendation in >> https://openjdk.org/j

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Markus KARG
On Fri, 11 Oct 2024 20:10:54 GMT, Roger Riggs wrote: > That's fine, but talking about performance improvements because of what you > think the compiler will do isn't productive. Make the source clear and > maintainable and low maintenance. tnx Uhm... actually I thought my change *made* it clea

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Roger Riggs
On Thu, 10 Oct 2024 21:10:30 GMT, Markus KARG wrote: >> This Pull Requests proposes an implementation for >> [JDK-8341566](https://bugs.openjdk.org/browse/JDK-8341566): Adding the new >> method `public static Reader Reader.of(CharSequence)` will return an >> anonymous, non-synchronized impleme

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 19:45:23 GMT, fabioromano1 wrote: > This doesn't say much about `maxPowsOf5`, though. You are not using `intVal` > but 2^`bitLength` > `intVal` in the computation of `maxPowsOf5`. So maybe the > property you are looking for is `maxPowsOf5` - 1 <= log5(intVal) < > `maxPowsOf

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 19:38:03 GMT, Raffaello Giulietti wrote: > This doesn't say much about `maxPowsOf5`, though. You are not using `intVal` > but 2^`bitLength` > `intVal` in the computation of `maxPowsOf5`. So maybe the > property you are looking for is `maxPowsOf5` - 1 <= log5(intVal) < > `m

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Fri, 11 Oct 2024 19:25:51 GMT, fabioromano1 wrote: >> Sorry, this is not a good question, disregard. > >> As I asked above, what's the property that should hold? 5^`maxPowsOf5` <= >> `intVal` < 5^(`maxPowsOf5` + 1)? > > Yes, as `floor(log5(intVal)) == max{integer n : 5^n <= intVal}`. This d

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 19:09:50 GMT, Raffaello Giulietti wrote: >> As I asked above, what's the property that should hold? >> 5^`maxPowsOf5` <= `intVal` < 5^(`maxPowsOf5` + 1)? > > Sorry, this is not a good question, disregard. > As I asked above, what's the property that should hold? 5^`maxPowsOf

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Fri, 11 Oct 2024 19:01:19 GMT, Raffaello Giulietti wrote: >> And considering that `Math.round()` rounds to the closest integer, it also >> should assure `maxPowsOf5 >= floor(log5(intVal))`, giving a better upper >> bound. > > As I asked above, what's the property that should hold? > 5^`maxP

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Fri, 11 Oct 2024 18:55:28 GMT, fabioromano1 wrote: >>> If the mathematical value v of the product and its floating-point value fp >>> are separated by an integer i in such a way that fp < i < v, we are in >>> trouble: the ceilings will be different, even if the values are very close >>> to

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 18:51:21 GMT, fabioromano1 wrote: >> One might prove that this cannot happen for a specific approximation of >> log5(2), like `LOG_5_OF_2` and for all bit length, but I don't think it is >> worthwhile to put too much effort on this, given the performance figures. > >> If the

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 18:41:50 GMT, Raffaello Giulietti wrote: >> If the mathematical value v of the product and its floating-point value fp >> are separated by an integer i in such a way that fp < i < v, we are in >> trouble: the ceilings will be different, even if the values are very close >>

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Fri, 11 Oct 2024 18:32:01 GMT, Raffaello Giulietti wrote: >> Actually, if we reason in terms of "ulp vs precision", the computation >> should be safe: `Math.log()`'s results are within 1 ulp of the exact result, >> and the floating point operations are a multiplication and a division. The

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Fri, 11 Oct 2024 18:20:50 GMT, fabioromano1 wrote: >> IIUC, the code assumes that the floating-point computation >> `Math.ceil(intVal.bitLength() * LOG_5_OF_2)` has the same value as the >> mathematical ⌈ `intVal.bitLength()` × log5(2) ⌉. >> I don't think this is safe, as it might happen tha

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v35]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 17:40:21 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Refining mathematical definition of remainingZeros > > src/java.base/share/classes/java/math/BigDecimal.java li

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread fabioromano1
On Fri, 11 Oct 2024 17:29:59 GMT, Raffaello Giulietti wrote: >> I'll have to check... >> ... tomorrow ;-) > > IIUC, the code assumes that the floating-point computation > `Math.ceil(intVal.bitLength() * LOG_5_OF_2)` has the same value as the > mathematical ⌈ `intVal.bitLength()` × log5(2) ⌉. >

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Markus KARG
On Fri, 11 Oct 2024 15:21:34 GMT, Roger Riggs wrote: > > I have slightly adapted the copy loop to allow CPUs to use solely > > single-operand INC within the loop instead of dual-operand ADD. > > Did you measure a performance improvement? Compiler optimizations are more > productive than spot s

Re: RFR: 8242888: Convert dynamic proxy to hidden classes [v3]

2024-10-11 Thread Chen Liang
On Fri, 11 Oct 2024 18:02:40 GMT, Chen Liang wrote: >> Please review this change that adds a new dynamic proxies implementation as >> hidden classes. >> >> Summary: >> 1. Adds new implementation which can be `-Djdk.reflect.useHiddenProxy=true` >> for early adoption. >> 2. ClassLoader.defineCla

Re: RFR: 8340801: Disable ubsan checks in some awt/2d coding [v4]

2024-10-11 Thread Kim Barrett
On Wed, 9 Oct 2024 07:50:20 GMT, Matthias Baesken wrote: >> There is some old awt/2d coding where warnings occur when running with ubsan >> enabled binaries. >> However at most of these locations the coding should work (at least on our >> supported platform set) so the warnings can be disabled

Re: RFR: 8242888: Convert dynamic proxy to hidden classes [v3]

2024-10-11 Thread Chen Liang
> Please review this change that adds a new dynamic proxies implementation as > hidden classes. > > Summary: > 1. Adds new implementation which can be `-Djdk.reflect.useHiddenProxy=true` > for early adoption. > 2. ClassLoader.defineClass0 takes a ClassLoader instance but discards it in > native

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v35]

2024-10-11 Thread Andrey Turbanov
On Thu, 10 Oct 2024 20:36:26 GMT, fabioromano1 wrote: >> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses >> repeated squares trick. > > fabioromano1 has updated the pull request incrementally with one additional > commit since the last revision: > > Refining mathematic

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v35]

2024-10-11 Thread Raffaello Giulietti
On Thu, 10 Oct 2024 20:36:26 GMT, fabioromano1 wrote: >> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses >> repeated squares trick. > > fabioromano1 has updated the pull request incrementally with one additional > commit since the last revision: > > Refining mathematic

Re: RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v33]

2024-10-11 Thread Raffaello Giulietti
On Thu, 10 Oct 2024 21:54:27 GMT, Raffaello Giulietti wrote: >> Could make sense using Math.round() instead of Math.ceil() to get better >> upper bound? > > I'll have to check... > ... tomorrow ;-) IIUC, the code assumes that the floating-point computation `Math.ceil(intVal.bitLength() * LOG_

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMULUDQ instruction [v2]

2024-10-11 Thread Jasmine Karthikeyan
On Fri, 11 Oct 2024 16:54:23 GMT, Quan Anh Mai wrote: > I am having a similar idea that is to group those transformations together > into a `Phase` called `PhaseLowering` I think such a phase could be quite useful in general. Recently I was trying to implement the BMI1 instruction `bextr` for

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMULUDQ instruction [v2]

2024-10-11 Thread Quan Anh Mai
On Wed, 9 Oct 2024 09:59:11 GMT, Jatin Bhateja wrote: >> This patch optimizes LongVector multiplication by inferring VPMULUDQ >> instruction for following IR pallets. >> >> >>MulL ( And SRC1, 0x) ( And SRC2, 0x) >>MulL (URShift SRC1 , 32) (URShift S

Re: RFR: 8324672: Update jdk/java/time/tck/java/time/TCKInstant.java now() to be more robust [v2]

2024-10-11 Thread Daniel Fuchs
On Thu, 10 Oct 2024 19:42:14 GMT, Roger Riggs wrote: >> I am keeping the timeout as 60 seconds. is this ok? >> >> @Test(timeOut=6) >> public void now() { >> Instant expected, test; >> long diff; >> do { >> expected = Instant.now(Clock.systemUTC());

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API [v2]

2024-10-11 Thread Adam Sotona
On Fri, 11 Oct 2024 16:21:30 GMT, Chen Liang wrote: >> Please review this patch that adds a test by @nizarbenalla to perform null >> checks across the ClassFile API. This is an updated version of #20556 that >> minimizes impact on our implementation code. >> >> Notes: >> 1. There's one change

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Chen Liang
On Thu, 10 Oct 2024 19:13:01 GMT, Chen Liang wrote: > Please review this patch that adds a test by @nizarbenalla to perform null > checks across the ClassFile API. This is an updated version of #20556 that > minimizes impact on our implementation code. > > Notes: > 1. There's one change in `Me

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API [v2]

2024-10-11 Thread Chen Liang
> Please review this patch that adds a test by @nizarbenalla to perform null > checks across the ClassFile API. This is an updated version of #20556 that > minimizes impact on our implementation code. > > Notes: > 1. There's one change in `MethodHandleProxies` to explicitly use platform > class

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Chen Liang
On Fri, 11 Oct 2024 15:57:50 GMT, Adam Sotona wrote: >> Please review this patch that adds a test by @nizarbenalla to perform null >> checks across the ClassFile API. This is an updated version of #20556 that >> minimizes impact on our implementation code. >> >> Notes: >> 1. There's one change

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Adam Sotona
On Fri, 11 Oct 2024 16:02:29 GMT, Chen Liang wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java >> line 276: >> >>> 274: @Override >>> 275: public ClassDesc map(ClassDesc desc) { >>> 276: if (desc == null) return null; >> >> I'm not sure th

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Adam Sotona
On Thu, 10 Oct 2024 19:13:01 GMT, Chen Liang wrote: > Please review this patch that adds a test by @nizarbenalla to perform null > checks across the ClassFile API. This is an updated version of #20556 that > minimizes impact on our implementation code. > > Notes: > 1. There's one change in `Me

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Adam Sotona
On Thu, 10 Oct 2024 19:13:01 GMT, Chen Liang wrote: > Please review this patch that adds a test by @nizarbenalla to perform null > checks across the ClassFile API. This is an updated version of #20556 that > minimizes impact on our implementation code. > > Notes: > 1. There's one change in `Me

Re: RFR: 8327858: Improve spliterator and forEach for single-element immutable collections [v3]

2024-10-11 Thread Chen Liang
On Wed, 25 Sep 2024 20:46:27 GMT, Stuart Marks wrote: >> Chen Liang has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 16 commits: >> >> - Add test to ensure reproducible iteration order >> - Merge branch 'master' of https://github

Re: RFR: 8327858: Improve spliterator and forEach for single-element immutable collections [v4]

2024-10-11 Thread Chen Liang
> Please review this patch that: > 1. Implemented `forEach` to optimize for 1 or 2 element collections. > 2. Implemented `spliterator` to optimize for a single element. > > The default implementations for multiple-element immutable collections are > fine as-is, specializing implementation doesn't

RFR: 8341957: Add test for URLClassLoader loading invalid class with mismatching CRC32

2024-10-11 Thread Eirik Bjørsnøs
Please review this PR which adds test coverage for the case where `URLClassLoader.defineClass` fails with a `ClassFormatError` _and_ the CRC32 checksum of the class file byte array did not match the CRC32 value stated in the JAR file's CEN header. In such cases, an `IOException` with the messag

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMULUDQ instruction [v2]

2024-10-11 Thread Jasmine Karthikeyan
On Wed, 9 Oct 2024 09:59:11 GMT, Jatin Bhateja wrote: >> This patch optimizes LongVector multiplication by inferring VPMULUDQ >> instruction for following IR pallets. >> >> >>MulL ( And SRC1, 0x) ( And SRC2, 0x) >>MulL (URShift SRC1 , 32) (URShift S

Re: RFR: 8341566: Add Reader.of(CharSequence) [v10]

2024-10-11 Thread Roger Riggs
On Fri, 11 Oct 2024 06:16:02 GMT, Markus KARG wrote: > I have slightly adapted the copy loop to allow CPUs to use solely > single-operand INC within the loop instead of dual-operand ADD. Did you measure a performance improvement? Compiler optimizations are more productive than spot source chan

Re: RFR: 8341944: The zlib library no longer requires dummy byte for raw inflate

2024-10-11 Thread Eirik Bjørsnøs
On Fri, 11 Oct 2024 08:11:37 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which removes overrides of > `InflaterInputStream.fill` in `ZipFileInflaterInputStream` and > `ZipFileSystem::getInputStream`. Associated boolean fields used to track > `eof` are also removed. > > These ov

Re: RFR: 8341944: The zlib library no longer requires dummy byte for raw inflate [v2]

2024-10-11 Thread Eirik Bjørsnøs
> Please review this cleanup PR which removes overrides of > `InflaterInputStream.fill` in `ZipFileInflaterInputStream` and > `ZipFileSystem::getInputStream`. Associated boolean fields used to track > `eof` are also removed. > > These overrides exist to provide zlib with an extra dummy byte at

Re: RFR: 8340801: Disable ubsan checks in some awt/2d coding [v4]

2024-10-11 Thread Matthias Baesken
On Wed, 9 Oct 2024 07:50:20 GMT, Matthias Baesken wrote: >> There is some old awt/2d coding where warnings occur when running with ubsan >> enabled binaries. >> However at most of these locations the coding should work (at least on our >> supported platform set) so the warnings can be disabled

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v3]

2024-10-11 Thread Chen Liang
On Tue, 8 Oct 2024 21:13:47 GMT, Mandy Chung wrote: >> So like `if (rank <= 0) throw ConstantUtils.rankNotPositive(rank);` at >> individual use sites? > > I meant no need to have a utility method. Just do this: > > Suggestion: > > public static void validateArrayDepth(int rank) { >

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v4]

2024-10-11 Thread Chen Liang
> @cl4es discovered that Stack Map generation in ClassFile API uses > `componentType` and `arrayType` for `aaload` `aastore` instructions, which > are currently quite slow. We can split out array class descriptors from class > or interfaces to support faster `arrayType` and `componentType` opera

Re: RFR: 8341944: The zlib library no longer requires dummy byte for raw inflate

2024-10-11 Thread Eirik Bjørsnøs
On Fri, 11 Oct 2024 14:05:40 GMT, Lance Andersen wrote: > I think we need to be a bit cautious with the proposed change while I > understand the desire to remove potentially unneeded code. I understand the need to be cautious in this area. But I would also like to avoid cargo-culting this for

Re: RFR: 8340801: Disable ubsan checks in some awt/2d coding [v4]

2024-10-11 Thread Magnus Ihse Bursie
On Thu, 10 Oct 2024 08:23:42 GMT, Julian Waters wrote: > I do wonder why the header both here and inside HotSpot is named ub.h instead > of ubsan.h. Latter sounds better to me, but it doesn't really matter much I agree it would have probably been better from the start, but at this point consis

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-11 Thread Magnus Ihse Bursie
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8341944: zlib no longer requires dummy byte for raw inflate

2024-10-11 Thread Lance Andersen
On Fri, 11 Oct 2024 08:11:37 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which removes overrides of > `InflaterInputStream.fill` in `ZipFileInflaterInputStream` and > `ZipFileSystem::getInputStream`. Associated boolean fields used to track > `eof` are also removed. > > These ov

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Chen Liang
On Fri, 11 Oct 2024 09:35:35 GMT, ExE Boss wrote: >> test/jdk/jdk/classfile/NullHostileTest.java line 1: >> >>> 1: /* >> >> I'm a bit worried about maintainability of such complex parametrized test >> with hard-listed method signatures in a text form. I would recommend to find >> better locat

Re: RFR: 8311530: Deprecate jdk.jsobject module for removal [v3]

2024-10-11 Thread Erik Joelsson
On Thu, 10 Oct 2024 12:25:53 GMT, Kevin Rushforth wrote: >> Deprecate the `jdk.jsobject` module for removal from the JDK, and ship it >> with JavaFX instead. >> >> See [JDK-8337280](https://bugs.openjdk.org/browse/JDK-8337280) / PR >> openjdk/jfx#1529 for the JavaFX PR that will include the mo

Re: RFR: 8329251: Print custom truststore/ keystore name [v4]

2024-10-11 Thread Sean Coffey
On Mon, 7 Oct 2024 12:42:00 GMT, Prasadrao Koppula wrote: >> Using SharedSecrets, I attempted to expose FileInputStream::path >> information. After implementing the fix, I validated the startup performance >> tests. Observed no consistent pattern of performance drops or gains, can >> disregard

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread ExE Boss
On Fri, 11 Oct 2024 07:55:44 GMT, Adam Sotona wrote: >> Please review this patch that adds a test by @nizarbenalla to perform null >> checks across the ClassFile API. This is an updated version of #20556 that >> minimizes impact on our implementation code. >> >> Notes: >> 1. There's one change

Re: RFR: 8341944: zlib no longer requires dummy byte for raw inflate

2024-10-11 Thread Eirik Bjørsnøs
On Fri, 11 Oct 2024 08:11:37 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which removes overrides of > `InflaterInputStream.fill` in `ZipFileInflaterInputStream` and > `ZipFileSystem::getInputStream`. Associated boolean fields used to track > `eof` are also removed. > > These ov

RFR: 8341944: zlib no longer requires dummy byte for raw inflate

2024-10-11 Thread Eirik Bjørsnøs
Please review this cleanup PR which removes overrides of `InflaterInputStream.fill` in `ZipFileInflaterInputStream` and `ZipFileSystem::getInputStream`. Associated boolean fields used to track `eof` are also removed. These overrides exist to provide zlib with an extra dummy byte at the end of

Re: RFR: 8341924: Improve error message with structurally malformed Code array

2024-10-11 Thread Adam Sotona
On Fri, 11 Oct 2024 05:39:20 GMT, Chen Liang wrote: > Patch a tableswitch instruction's low value to be greater than a high value, > previously, javap will not print any previous instruction and report > problematic address/bci to be 0. This is because the iteration of bound > models require f

Re: RFR: 8317356: Test ClassFile API if it deals with nulls correctly across the whole API

2024-10-11 Thread Adam Sotona
On Thu, 10 Oct 2024 19:13:01 GMT, Chen Liang wrote: > Please review this patch that adds a test by @nizarbenalla to perform null > checks across the ClassFile API. This is an updated version of #20556 that > minimizes impact on our implementation code. > > Notes: > 1. There's one change in `Me