Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread Ryan Ernst
On Mon, 4 Jul 2022 08:42:02 GMT, Alan Bateman wrote: >> +1 - except for the "deadlock" part (see other comment). I think the old >> paragraph is at least confusing, and perhaps even just wrong. Let's say >> we've run `shutdown` so run all the hooks but not halted. Then someone >> calls `exi

Re: RFR: 8288984: Simplification in Shutdown.exit [v3]

2022-07-04 Thread Ryan Ernst
> This is a followup to simplify Shutdown.exit after the removal of > finalizers (https://bugs.openjdk.org/browse/JDK-8198250). Once agreement > on the approach has been reached in this PR, a CSR will be filed to > propose the spec change to Runtime.exit. Ryan Ernst has updated the pull request in

[jdk19] Integrated: 8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Matthias Baesken
On Mon, 4 Jul 2022 10:39:20 GMT, Matthias Baesken wrote: > 8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl This pull request has now been integrated. Changeset: 0dff3276 Author:Matthias Baesken URL: https://git.openjdk.org/jdk19/commit/0dff3276e863fcbf496fe6

Re: [jdk19] RFR: 8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Christoph Langer
On Mon, 4 Jul 2022 10:39:20 GMT, Matthias Baesken wrote: > 8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl Thanks for bringing it to jdk19. - Marked as reviewed by clanger (Reviewer). PR: https://git.openjdk.org/jdk19/pull/106

[jdk19] RFR: 8289601: SegmentAllocator::allocateUtf8String(String str) should be clarified for strings containing \0

2022-07-04 Thread Jorn Vernee
This PR updates the spec and implementation to throw an `IllegalArgumentException` when an attempt is made to convert a Java string containing null characters to a C string. Testing: local run of the `jdk_foreign` test suite. - Commit messages: - Throw IAE when converting string w

Re: RFR: 8289260: BigDecimal movePointLeft() and movePointRight() do not follow their API spec [v2]

2022-07-04 Thread Raffaello Giulietti
On Tue, 28 Jun 2022 10:32:31 GMT, Raffaello Giulietti wrote: >> `BigDecimal.morePoint[Left|Right]()` should return the target `this` when >> the argument is 0 _and_ the scale is non-negative. > > Raffaello Giulietti has updated the pull request incrementally with one > additional commit since t

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread David Holmes
On Sat, 2 Jul 2022 21:21:37 GMT, Ryan Ernst wrote: >> This is a followup to simplify Shutdown.exit after the removal of >> finalizers (https://bugs.openjdk.org/browse/JDK-8198250). Once agreement >> on the approach has been reached in this PR, a CSR will be filed to >> propose the spec change to

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread David Holmes
On Mon, 4 Jul 2022 08:07:25 GMT, Chris Hegarty wrote: >> src/java.base/share/classes/java/lang/Runtime.java line 89: >> >>> 87: * of the first invocation will be used; the status codes from >>> other invocations >>> 88: * will be ignored. If this method is invoked from a shutdown hook

Re: [jdk19] RFR: 8289558: Need spec clarification of j.l.foreign.*Layout [v2]

2022-07-04 Thread Jorn Vernee
On Fri, 1 Jul 2022 11:18:35 GMT, Maurizio Cimadamore wrote: >> This patch fixes few javadoc issues in the memory layout API. >> The main issues are that `SequenceLayout::flatten` and >> `SequenceLayout::reshape` still mention failures caused by a lack of size. >> But that condition is no longe

[jdk19] RFR: 8289148: j.l.foreign.VaList::nextVarg call could throw IndexOutOfBoundsException or even crash the VM

2022-07-04 Thread Jorn Vernee
This patch changes all VaList implementations to throw `NoSuchElementException` when out of bounds reads occur on a VaList that is created using the Java builder API. The docs are updated accordingly. For VaLists that are created from native addresses, we don't know their bounds, so we can not

[jdk19] RFR: 8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Matthias Baesken
8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl - Commit messages: - Backport a8edd7a12f955fe843c7c9ad4273e9c653a80c5a Changes: https://git.openjdk.org/jdk19/pull/106/files Webrev: https://webrevs.openjdk.org/?repo=jdk19&pr=106&range=00 Issue: https://bug

Re: RFR: 8288327: Executable.hasRealParameterData should not be volatile [v7]

2022-07-04 Thread Сергей Цыпанов
On Mon, 4 Jul 2022 06:31:15 GMT, Peter Levart wrote: >> ...neither is obtaining a cloned array and passing its reference to JMH's >> black hole our usecase... Still, it seems that even part of that has some >> advantage. I would keep the @stable annotation then. > > A more realistic use case wo

Integrated: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Matthias Baesken
On Mon, 4 Jul 2022 07:05:03 GMT, Matthias Baesken wrote: > Currently the ProcessBuilder/Basic.java test fails on musl. > We run into >>'java.io.IOException: Cannot run program "./prog": error=8, Exec format error > at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) > at java.ba

Re: RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Thomas Stuefe
On Mon, 4 Jul 2022 07:05:03 GMT, Matthias Baesken wrote: > Currently the ProcessBuilder/Basic.java test fails on musl. > We run into >>'java.io.IOException: Cannot run program "./prog": error=8, Exec format error > at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) > at java.ba

Re: RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Matthias Baesken
On Mon, 4 Jul 2022 08:35:35 GMT, Thomas Stuefe wrote: > Do you want to leave the "Platform.isMusl()" parts in the code? I would leave it for now if it is okay. - PR: https://git.openjdk.org/jdk/pull/9361

Re: RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Alan Bateman
On Mon, 4 Jul 2022 07:05:03 GMT, Matthias Baesken wrote: > Currently the ProcessBuilder/Basic.java test fails on musl. > We run into >>'java.io.IOException: Cannot run program "./prog": error=8, Exec format error > at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) > at java.ba

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread Alan Bateman
On Mon, 4 Jul 2022 01:59:37 GMT, Kim Barrett wrote: >> src/java.base/share/classes/java/lang/Runtime.java line 89: >> >>> 87: * of the first invocation will be used; the status codes from >>> other invocations >>> 88: * will be ignored. If this method is invoked from a shutdown hook

Re: RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Thomas Stuefe
On Mon, 4 Jul 2022 07:05:03 GMT, Matthias Baesken wrote: > Currently the ProcessBuilder/Basic.java test fails on musl. > We run into >>'java.io.IOException: Cannot run program "./prog": error=8, Exec format error > at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) > at java.ba

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread Chris Hegarty
On Mon, 4 Jul 2022 01:57:11 GMT, Kim Barrett wrote: > Is "deadlock" accurate? Yes. In the context of the specification, "shutdown hook" means _application_ shutdown hook - as far as the specification is concerned, application shutdown hooks are the only kind of hooks. Right? For example, the

[jdk19] Integrated: 8287672: jtreg test com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails intermittently in nightly run

2022-07-04 Thread Christoph Langer
On Fri, 1 Jul 2022 09:10:07 GMT, Christoph Langer wrote: > This pull request contains a backport of > [JDK-8287672](https://bugs.openjdk.org/browse/JDK-8287672), commit > [7e211d7d](https://github.com/openjdk/jdk/commit/7e211d7daac32dca8f26f408d1a3b2c7805b5a2e) > from the [openjdk/jdk](https:/

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread Kim Barrett
On Sat, 2 Jul 2022 21:21:37 GMT, Ryan Ernst wrote: >> This is a followup to simplify Shutdown.exit after the removal of >> finalizers (https://bugs.openjdk.org/browse/JDK-8198250). Once agreement >> on the approach has been reached in this PR, a CSR will be filed to >> propose the spec change to

Re: RFR: 8288984: Simplification in Shutdown.exit [v2]

2022-07-04 Thread Kim Barrett
On Sun, 3 Jul 2022 22:19:50 GMT, David Holmes wrote: >> Ryan Ernst has updated the pull request incrementally with one additional >> commit since the last revision: >> >> better clarify multiple threads behavior > > src/java.base/share/classes/java/lang/Runtime.java line 89: > >> 87: *

Re: RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Christoph Langer
On Mon, 4 Jul 2022 07:05:03 GMT, Matthias Baesken wrote: > Currently the ProcessBuilder/Basic.java test fails on musl. > We run into >>'java.io.IOException: Cannot run program "./prog": error=8, Exec format error > at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) > at java.ba

RFR: JDK-8289569: [test] java/lang/ProcessBuilder/Basic.java fails on Alpine/musl

2022-07-04 Thread Matthias Baesken
Currently the ProcessBuilder/Basic.java test fails on musl. We run into >'java.io.IOException: Cannot run program "./prog": error=8, Exec format error at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at Basic

Re: RFR: 8288723: Avoid redundant ConcurrentHashMap.get call in java.time [v2]

2022-07-04 Thread Andrey Turbanov
On Sun, 3 Jul 2022 19:44:55 GMT, Attila Szegedi wrote: >> But it will generate garbage: non-static lambda. > > It already generates some garbage as it does string concatenation for the > key. Here's an idea: declare a record class for the key, `record > CacheKey(DayOfWeek firstDayOfWeek, int mi

Re: RFR: 8288723: Avoid redundant ConcurrentHashMap.get call in java.time [v3]

2022-07-04 Thread Andrey Turbanov
On Tue, 21 Jun 2022 17:08:17 GMT, liach wrote: >> @liach advance apologies for nitpicking: `ConcurrentHashMap` doesn't in >> general block while the mapping function runs. It can block _some_ >> concurrent updates, namely those that [hash to the same >> bin](https://github.com/openjdk/jdk/blob

Re: RFR: 8288723: Avoid redundant ConcurrentHashMap.get call in java.time [v3]

2022-07-04 Thread Andrey Turbanov
> Instead of separate ConcurrentHashMap.get call, we can use result of previous > putIfAbsent call. Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision: 8288723: Avoid redundant ConcurrentHashMap.get call in java.time - C