RFR: JDK-8293466: libjsig should ignore non-modifying sigaction calls

2022-09-09 Thread Thomas Stuefe
Found during code review of [JDK-8292695](https://bugs.openjdk.org/browse/JDK-8292695). We have two bugs in libjsig when we install hotspot signal handlers. Relevant code in libjsig: int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) { sigused = sigismember(&jvmsig

Integrated: 8292240: CarrierThread.blocking not reset when spare not activated

2022-09-09 Thread Alan Bateman
On Thu, 11 Aug 2022 16:11:02 GMT, Alan Bateman wrote: > Some blocking operations that pin a virtual thread to its carrier will > compensate by activating a spare carrier (essentially managed blocker). This > is done by wrapping the operation in a Blocker begin/end. This code is not > correct f

Re: RFR: 8293579: tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java fails on Japanese Windows platform

2022-09-09 Thread Naoto Sato
On Fri, 9 Sep 2022 08:30:55 GMT, KIRIYAMA Takuya wrote: > Could you please review the JDK-8293579 bug fixes? > > tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java attempts to give > the launcher the character which is encoded by Windows API > WideCharToMultiByte() > from UNICODE "é

Re: RFR: 8291916: Unexpected output on Windows command prompt

2022-09-09 Thread Naoto Sato
On Fri, 5 Aug 2022 02:15:21 GMT, Ichiroh Takiguchi wrote: > To support Windows command prompt's codepage, following charsets should be > moved from jdk.charsets module to java.base module. > > - IBM860 > - IBM861 > - IBM863 > - IBM864 > - IBM865 > - IBM869 Considering those code page encoding

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences" [v3]

2022-09-09 Thread Mandy Chung
On Fri, 9 Sep 2022 15:48:41 GMT, Roger Riggs wrote: >> Modify the LoadLibraryUnload test to call gc() more a few times, allowing >> multiple gc cycles to queue the expected refs. >> Short the timeout on each cycle to 10 sec. > > Roger Riggs has updated the pull request incrementally with one add

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences" [v3]

2022-09-09 Thread Mandy Chung
On Fri, 9 Sep 2022 15:48:41 GMT, Roger Riggs wrote: >> Modify the LoadLibraryUnload test to call gc() more a few times, allowing >> multiple gc cycles to queue the expected refs. >> Short the timeout on each cycle to 10 sec. > > Roger Riggs has updated the pull request incrementally with one add

Re: Standard Artifact Resolution API

2022-09-09 Thread Ethan McCue
> We already have Ant+Ivy, Maven, Gradle and they have significantly different philosophies such that agreeing on a single dependency management tool may be too ambitious. Maybe it would be useful to dig into what those different philosophies are? > I suggest looking at what Gradle has done in th

Integrated: 8291660: Grapheme support in BreakIterator

2022-09-09 Thread Naoto Sato
On Tue, 23 Aug 2022 22:44:13 GMT, Naoto Sato wrote: > This is to enhance the character break analysis in `java.text.BreakIterator` > to conform to the extended grapheme cluster boundaries defined in > https://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries. A > corresponding CSR has

Re: RFR: 8291660: Grapheme support in BreakIterator [v6]

2022-09-09 Thread Stuart Marks
On Thu, 8 Sep 2022 18:32:56 GMT, Naoto Sato wrote: >> This is to enhance the character break analysis in `java.text.BreakIterator` >> to conform to the extended grapheme cluster boundaries defined in >> https://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries. A >> corresponding CSR h

Integrated: 8288933: Improve the implementation of Double/Float.isInfinite

2022-09-09 Thread Quan Anh Mai
On Wed, 22 Jun 2022 12:43:53 GMT, Quan Anh Mai wrote: > Improve the implementation of `Double/Float.isInfinite` to reduce branching. > Using `>` comparison with `MAX_VALUE` instead of `==` with > `POSITIVE_INFINITY` improves code emission on x86 and produces similar code > for arm. This is als

Re: RFR: 8288933: Improve the implementation of Double/Float.isInfinite

2022-09-09 Thread Joe Darcy
On Wed, 22 Jun 2022 12:43:53 GMT, Quan Anh Mai wrote: > Improve the implementation of `Double/Float.isInfinite` to reduce branching. > Using `>` comparison with `MAX_VALUE` instead of `==` with > `POSITIVE_INFINITY` improves code emission on x86 and produces similar code > for arm. This is als

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property [v2]

2022-09-09 Thread Aleksei Efimov
On Fri, 9 Sep 2022 15:29:22 GMT, Roger Riggs wrote: > Is the case of -Dcom.sun.jndi.ldap.object.trustSerialData (w/o a value) well > defined. Deserialization and reconstruction of Java objects are only allowed when the system property is set to "true". That's how its defined in `java.naming`

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property [v2]

2022-09-09 Thread Aleksei Efimov
> ### Summary of the change > > The LDAP Naming Service Provider implementation's default settings are > changed to disallow deserialization and reconstruction of Java objects from > different LDAP attributes (RFC 2713). Currently, only the deserialization is > controlled by the `com.sun.jndi.l

Re: RFR: 8288933: Improve the implementation of Double/Float.isInfinite

2022-09-09 Thread Quan Anh Mai
On Sun, 17 Jul 2022 10:58:45 GMT, Claes Redestad wrote: >> @merykitty, the proposed change is functionally correct. >> >> @cl4es, what set of platforms do we usually consider for evaluating >> performance changes like this? > >> @cl4es, what set of platforms do we usually consider for evaluatin

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences" [v3]

2022-09-09 Thread Roger Riggs
> Modify the LoadLibraryUnload test to call gc() more a few times, allowing > multiple gc cycles to queue the expected refs. > Short the timeout on each cycle to 10 sec. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Remove unused Re

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property

2022-09-09 Thread Roger Riggs
On Fri, 9 Sep 2022 11:03:14 GMT, Aleksei Efimov wrote: > ### Summary of the change > > The LDAP Naming Service Provider implementation's default settings are > changed to disallow deserialization and reconstruction of Java objects from > different LDAP attributes (RFC 2713). Currently, only th

Withdrawn: 8286849: Use @Stable for generic repositories

2022-09-09 Thread duke
On Tue, 17 May 2022 04:40:50 GMT, liach wrote: > Generic repositories, the implementation detail for generic information in > core reflection, can be updated to use the `@Stable` annotation to replace > their `volatile` access. Their existing accessor code is already safe, > reading the cache

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property

2022-09-09 Thread Aleksei Efimov
On Fri, 9 Sep 2022 14:42:20 GMT, Daniel Fuchs wrote: > `javaReferenceAddress` is defined in RFC 2713, section 3.6 - but > `javaRemoteLocation` is not - it's marked deprecated in our code base so > maybe it came from some early draft of this representation. Correct, and since these attributes a

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences" [v2]

2022-09-09 Thread Roger Riggs
> Modify the LoadLibraryUnload test to call gc() more a few times, allowing > multiple gc cycles to queue the expected refs. > Short the timeout on each cycle to 10 sec. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Refactored to us

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences"

2022-09-09 Thread Roger Riggs
On Thu, 8 Sep 2022 20:26:41 GMT, Roger Riggs wrote: > Modify the LoadLibraryUnload test to call gc() more a few times, allowing > multiple gc cycles to queue the expected refs. > Short the timeout on each cycle to 10 sec. Hi Jai, I don't think the memory size comes into play, the GC is invoked

Re: RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences"

2022-09-09 Thread Roger Riggs
On Thu, 8 Sep 2022 20:54:28 GMT, Mandy Chung wrote: >> Modify the LoadLibraryUnload test to call gc() more a few times, allowing >> multiple gc cycles to queue the expected refs. >> Short the timeout on each cycle to 10 sec. > > test/jdk/java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnload.

Re: RFR: 8293499: Provide jmod compression level option

2022-09-09 Thread Alan Bateman
On Thu, 8 Sep 2022 07:57:36 GMT, Aleksey Shipilev wrote: > I have been looking into `make clean-images images` performance, and realized > jmod keeps compressing files with default compression level. Tuning that > toward lighter compression levels improves build performance considerably, > wit

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property

2022-09-09 Thread Daniel Fuchs
On Fri, 9 Sep 2022 14:13:09 GMT, Alan Bateman wrote: >> ### Summary of the change >> >> The LDAP Naming Service Provider implementation's default settings are >> changed to disallow deserialization and reconstruction of Java objects from >> different LDAP attributes (RFC 2713). Currently, only

Re: RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property

2022-09-09 Thread Alan Bateman
On Fri, 9 Sep 2022 11:03:14 GMT, Aleksei Efimov wrote: > ### Summary of the change > > The LDAP Naming Service Provider implementation's default settings are > changed to disallow deserialization and reconstruction of Java objects from > different LDAP attributes (RFC 2713). Currently, only th

Re: RFR: 8292240: CarrierThread.blocking not reset when spare not activated

2022-09-09 Thread Daniel Fuchs
On Thu, 11 Aug 2022 16:11:02 GMT, Alan Bateman wrote: > Some blocking operations that pin a virtual thread to its carrier will > compensate by activating a spare carrier (essentially managed blocker). This > is done by wrapping the operation in a Blocker begin/end. This code is not > correct f

Standard Artifact Resolution API

2022-09-09 Thread Ethan McCue
This email is mostly to test the waters, I expect some hostility. Say, as a premise, that an API for resolving external dependencies was something that the JDK concerned itself with providing. I think the foundation for that is there - the POM v4 format is more or less around forever, maven style

RFR: 8293595: tstrings::any() is missing an overload

2022-09-09 Thread Julian Waters
tstrings::any() has an overload for std::wstring (if required) but is missing the corresponding operator overload for std::string, leaving only the templated one as a fallback, which will expand into a std::wostringstream << std::string operation. This isn't particularly safe on Windows, conside

Re: RFR: 8288933: Improve the implementation of Double/Float.isInfinite

2022-09-09 Thread Claes Redestad
On Wed, 22 Jun 2022 12:43:53 GMT, Quan Anh Mai wrote: > Improve the implementation of `Double/Float.isInfinite` to reduce branching. > Using `>` comparison with `MAX_VALUE` instead of `==` with > `POSITIVE_INFINITY` improves code emission on x86 and produces similar code > for arm. This is als

Re: RFR: 8293499: Provide jmod compression level option

2022-09-09 Thread Alan Bateman
On Thu, 8 Sep 2022 07:57:36 GMT, Aleksey Shipilev wrote: > I have been looking into `make clean-images images` performance, and realized > jmod keeps compressing files with default compression level. Tuning that > toward lighter compression levels improves build performance considerably, > wit

RFR: 8292240: CarrierThread.blocking not reset when spare not activated

2022-09-09 Thread Alan Bateman
Some blocking operations that pin a virtual thread to its carrier will compensate by activating a spare carrier (essentially managed blocker). This is done by wrapping the operation in a Blocker begin/end. This code is not correct for the case that a spare cannot be activated (e.g. already at th

Re: RFR: 8279283 - BufferedInputStream should override transferTo [v9]

2022-09-09 Thread Markus KARG
On Thu, 8 Sep 2022 12:18:35 GMT, Markus KARG wrote: >>> Actually I wrote this code in 2021. What are the official rules here, do I >>> have to use the original date or the latest change date? >> >> I remember reading it somewhere but I can't seem to locate the text right >> now and it isn't m

Re: RFR: 8279283 - BufferedInputStream should override transferTo [v10]

2022-09-09 Thread Markus KARG
On Fri, 9 Sep 2022 10:03:11 GMT, Markus KARG wrote: >> Unless there's a bug and the new code path is triggered when there's a mark >> ;-) . Maybe we can convince ourselves that this can't happen now (by reading >> the code), but if someone modifies this code 2 years from now and introduces >>

Re: RFR: 8279283 - BufferedInputStream should override transferTo [v11]

2022-09-09 Thread Markus KARG
> Implementation of JDK-8279283 Markus KARG has updated the pull request incrementally with two additional commits since the last revision: - corrected copyright - testing transferTo() after reset() - Changes: - all: https://git.openjdk.org/jdk/pull/6935/files - new: https://

RFR: 8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property

2022-09-09 Thread Aleksei Efimov
### Summary of the change The LDAP Naming Service Provider implementation's default settings are changed to disallow deserialization and reconstruction of Java objects from different LDAP attributes (RFC 2713). Currently, only the deserialization is controlled by the `com.sun.jndi.ldap.object.t

Re: RFR: 8279283 - BufferedInputStream should override transferTo [v10]

2022-09-09 Thread Markus KARG
On Fri, 9 Sep 2022 08:49:07 GMT, Daniel Fuchs wrote: >> I did not do that so far, as we agreed to check the *new* code path, which >> is only executed when noting was marked (so reset plays no role). Certainly >> I will be happy to add another test for the use case you describe (i. e. the >> *

Re: RFR: 8279283 - BufferedInputStream should override transferTo [v10]

2022-09-09 Thread Daniel Fuchs
On Fri, 9 Sep 2022 06:45:04 GMT, Markus KARG wrote: >> test/jdk/java/io/BufferedInputStream/TransferTo.java line 170: >> >>> 168: if (mark) { >>> 169: in.mark(1); >>> 170: } >> >> This just tests transferTo with a mark set, it doesn't appear to check that

RFR: 8293579: tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java fails on Japanese Windows platform

2022-09-09 Thread KIRIYAMA Takuya
Could you please review the JDK-8293579 bug fixes? tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java attempts to give the launcher the character which is encoded by Windows API WideCharToMultiByte() from UNICODE "é"(0x00e9) as an argument. However, this test fails because the code p