Re: RFR: 8290059: Do not use std::thread in panama tests [v2]

2022-07-27 Thread David Holmes
On Wed, 27 Jul 2022 14:29:26 GMT, Jorn Vernee wrote: > startThread and joinThread is not the functionality that the tests need. But it is the functionality the tests are already using. > now the context passed to CreateThread and pthread_create has to outlive the > function That's not an issu

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v5]

2022-07-27 Thread Joe Wang
On Thu, 28 Jul 2022 01:49:13 GMT, Bill Huang wrote: >> Provided coverage for XPath node set functions. Functions include: >> - id() >> - last() >> - position() >> - count() >> - local-name() >> - namespace-uri() >> - name() > > Bill Huang has updated the pull request incrementally with one additi

Re: RFR: 8290488: IBM864 character encoding implementation bug

2022-07-27 Thread Naoto Sato
On Thu, 28 Jul 2022 00:58:59 GMT, Ichiroh Takiguchi wrote: >> Adding an extra c2b mapping for the `%` in `IBM864` charset. The discrepancy >> came from the mapping difference between MS and IBM. > > Hello @naotoj . > I'm not reviewer, but I'd like to test this change. > Could you wait for a mom

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v5]

2022-07-27 Thread Bill Huang
> Provided coverage for XPath node set functions. Functions include: > - id() > - last() > - position() > - count() > - local-name() > - namespace-uri() > - name() Bill Huang has updated the pull request incrementally with one additional commit since the last revision: Rename test name to XPat

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v4]

2022-07-27 Thread Bill Huang
On Thu, 28 Jul 2022 00:14:52 GMT, Joe Wang wrote: >> Bill Huang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Added documentation/comments and test cases using namespace. > > test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpFnTest.java

Re: RFR: 8290488: IBM864 character encoding implementation bug

2022-07-27 Thread Ichiroh Takiguchi
On Wed, 27 Jul 2022 17:47:36 GMT, Naoto Sato wrote: > Adding an extra c2b mapping for the `%` in `IBM864` charset. The discrepancy > came from the mapping difference between MS and IBM. Hello @naotoj . I'm not reviewer, but I'd like to test this change. Could you wait for a moment ? Thanks. --

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v4]

2022-07-27 Thread Joe Wang
On Wed, 27 Jul 2022 20:04:54 GMT, Bill Huang wrote: >> Provided coverage for XPath node set functions. Functions include: >> - id() >> - last() >> - position() >> - count() >> - local-name() >> - namespace-uri() >> - name() > > Bill Huang has updated the pull request incrementally with one additi

Integrated: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Leonid Mesnik
On Thu, 21 Jul 2022 22:33:36 GMT, Leonid Mesnik wrote: > Propagate test.vm.opts/test.java.opts to tested process. Also, accept the > output of non-generation (ZGC) GC as valid. This pull request has now been integrated. Changeset: 348a0521 Author:Leonid Mesnik URL: https://git.open

Re: RFR: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Serguei Spitsyn
On Thu, 21 Jul 2022 22:33:36 GMT, Leonid Mesnik wrote: > Propagate test.vm.opts/test.java.opts to tested process. Also, accept the > output of non-generation (ZGC) GC as valid. Looks good to me. Thanks, Serguei - Marked as reviewed by sspitsyn (Reviewer). PR: https://git.openjdk.

Re: RFR: 8288377: [REDO] DST not applying properly with zone id offset set with TZ env variable [v3]

2022-07-27 Thread Naoto Sato
On Wed, 27 Jul 2022 20:18:16 GMT, Gaurav Chaudhari wrote: >> This is a REDO of the Fix that was incompletely implemented earlier: >> [8285838: Fix for TZ environment variable DST >> rules](https://github.com/openjdk/jdk/pull/8660) >> >> Offset calculation now accounts all the way upto year in o

Re: RFR: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Chris Plummer
On Thu, 21 Jul 2022 22:33:36 GMT, Leonid Mesnik wrote: > Propagate test.vm.opts/test.java.opts to tested process. Also, accept the > output of non-generation (ZGC) GC as valid. Marked as reviewed by cjplummer (Reviewer). - PR: https://git.openjdk.org/jdk/pull/9604

Re: RFR: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Chris Plummer
On Wed, 27 Jul 2022 21:39:47 GMT, Leonid Mesnik wrote: >> I meant shouldn't we see ZGC failures before your changes. Otherwise I don't >> understand why this change is needed. > > Before my changes test just silently ignored any GC setting and always use G1. Ah, ok. That makes sense now. -

Re: RFR: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Leonid Mesnik
On Fri, 22 Jul 2022 19:27:29 GMT, Chris Plummer wrote: >> No, test passes with ZGC. > > I meant shouldn't we see ZGC failures before your changes. Otherwise I don't > understand why this change is needed. Before my changes test just silently ignored any GC setting and always use G1. --

Re: RFR: 8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

2022-07-27 Thread Chris Plummer
On Fri, 22 Jul 2022 03:10:11 GMT, Leonid Mesnik wrote: >> So shouldn't we have ZGC test failures then? > > No, test passes with ZGC. I meant shouldn't we see ZGC failures before your changes. Otherwise I don't understand why this change is needed. - PR: https://git.openjdk.org/jdk

Re: RFR: 8178355: IdentityHashMap uses identity-based comparison for values everywhere except remove(K,V) and replace(K,V,V) [v4]

2022-07-27 Thread liach
On Fri, 6 May 2022 22:05:35 GMT, liach wrote: >> Explicitly implement `remove` and `replace` in `IdentityHashMap` to compare >> values by identity. Updated API documentation of these two methods >> ([Preview](https://cr.openjdk.java.net/~liach/8178355/IdentityHashMap.html#remove(java.lang.Objec

Re: RFR: 8288377: [REDO] DST not applying properly with zone id offset set with TZ env variable [v3]

2022-07-27 Thread Gaurav Chaudhari
> This is a REDO of the Fix that was incompletely implemented earlier: > [8285838: Fix for TZ environment variable DST > rules](https://github.com/openjdk/jdk/pull/8660) > > Offset calculation now accounts all the way upto year in order to avoid > cross-day miscalculations as well as to calculat

Re: RFR: 8288377: [REDO] DST not applying properly with zone id offset set with TZ env variable [v2]

2022-07-27 Thread Gaurav Chaudhari
On Thu, 30 Jun 2022 20:05:05 GMT, Naoto Sato wrote: >> Gaurav Chaudhari has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8288377: Simplified TZ offset calc and consolidate MACOS impl. > > src/java.base/unix/native/libjava/TimeZone_md.c li

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v3]

2022-07-27 Thread Bill Huang
On Tue, 26 Jul 2022 19:44:51 GMT, Joe Wang wrote: >> Bill Huang has refreshed the contents of this pull request, and previous >> commits have been removed. The incremental views will show differences >> compared to the previous content of the PR. The pull request contains one >> new commit sin

Re: RFR: JDK-8289948: Improve test coverage for XPath functions: Node Set Functions [v4]

2022-07-27 Thread Bill Huang
> Provided coverage for XPath node set functions. Functions include: > - id() > - last() > - position() > - count() > - local-name() > - namespace-uri() > - name() Bill Huang has updated the pull request incrementally with one additional commit since the last revision: Added documentation/comm

Integrated: 8290848: LoadLibraryUnload.java still fails with "Too few cleared WeakReferences"

2022-07-27 Thread Roger Riggs
On Tue, 26 Jul 2022 21:44:19 GMT, Roger Riggs wrote: > The intermittent test failure was due to the WeakReferences being > unreferenced too early. > Adding a Reference.reachabilityFence to the test makes it robust. > > Remove from ProblemList-Xcomp.txt This pull request has now been integrated

Re: RFR: 8290059: Do not use std::thread in panama tests [v2]

2022-07-27 Thread Jorn Vernee
On Wed, 27 Jul 2022 06:43:45 GMT, David Holmes wrote: > > Does run_in_new_thread seem good enough? > > No, sorry, the fact it both runs and joins is a critical aspect. `run_async` > in `CompleteableFuture` just does the "run in new thread" part, whereas the > `get()` on the returned `FutureTas

Re: RFR: 8290059: Do not use std::thread in panama tests [v5]

2022-07-27 Thread Jorn Vernee
> This patch removes the use of std::thread from the `java.lang.foreign` tests, > and switches to the OS specific thread APIs, in order to change things such > as the stack size on some platforms where this is required in the future (see > the JBS issue). > > This is done by adding a small head

Integrated: Merge jdk19

2022-07-27 Thread David Holmes
Forward port JDK 19 -> JDK 20 - Commit messages: - Merge remote-tracking branch 'jdk19/master' into Merge_jdk19 - 8291006: java/foreign/TestUnsupportedPlatform fails after JDK-8290455 - 8290455: jck test api/java_lang/foreign/VaList/Empty.html fails on some platforms - 8290460: A

Integrated: Merge jdk19

2022-07-27 Thread David Holmes
On Wed, 27 Jul 2022 12:59:36 GMT, David Holmes wrote: > Forward port JDK 19 -> JDK 20 This pull request has now been integrated. Changeset: 92346246 Author:David Holmes URL: https://git.openjdk.org/jdk/commit/923462467e52eda359249a4fb61d654f56182603 Stats: 134 lines in 4 files c

Re: RFR: 8290848: LoadLibraryUnload.java still fails with "Too few cleared WeakReferences"

2022-07-27 Thread Jaikiran Pai
On Tue, 26 Jul 2022 21:44:19 GMT, Roger Riggs wrote: > The intermittent test failure was due to the WeakReferences being > unreferenced too early. > Adding a Reference.reachabilityFence to the test makes it robust. > > Remove from ProblemList-Xcomp.txt Marked as reviewed by jpai (Reviewer). T

Re: RFR: 8290848: LoadLibraryUnload.java still fails with "Too few cleared WeakReferences"

2022-07-27 Thread Roger Riggs
On Tue, 26 Jul 2022 21:44:19 GMT, Roger Riggs wrote: > The intermittent test failure was due to the WeakReferences being > unreferenced too early. > Adding a Reference.reachabilityFence to the test makes it robust. > > Remove from ProblemList-Xcomp.txt Hi Jai, The actions related to Reference

Withdrawn: Merge jdk19

2022-07-27 Thread David Holmes
On Wed, 27 Jul 2022 05:29:09 GMT, David Holmes wrote: > Forward port JDK 19 -> JDK 20 This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/pull/9651

Re: RFR: Merge jdk19

2022-07-27 Thread David Holmes
On Wed, 27 Jul 2022 05:29:09 GMT, David Holmes wrote: > Forward port JDK 19 -> JDK 20 Need to pull in a follow up test fix so closing this MR. - PR: https://git.openjdk.org/jdk/pull/9651

Re: RFR: 8283276: java/io/ObjectStreamClass/ObjectStreamClassCaching.java fails with various GCs

2022-07-27 Thread Aleksey Shipilev
On Mon, 25 Jul 2022 16:41:04 GMT, Aleksey Shipilev wrote: > > ...I can take this over, unless you want to do it, Aleksey? > > I find it dubious to try and guess what GCs would do with non-strong refs, > but feel free. Don't reassign the bug yet, just see how messy that would be? On the other h

Re: RFR: 8282648: Weaken the InflaterInputStream specification in order to allow faster Zip implementations [v10]

2022-07-27 Thread Volker Simonis
On Mon, 9 May 2022 09:56:19 GMT, Volker Simonis wrote: >> Add an API note to `InflaterInputStream::read(byte[] b, int off, int len)` >> to highlight that it might write more bytes than the returned number of >> inflated bytes into the buffer `b`. >> >> The superclass `java.io.InputStream` spe

Re: RFR: 8282648: Weaken the InflaterInputStream specification in order to allow faster Zip implementations [v11]

2022-07-27 Thread Volker Simonis
> Add an API note to `InflaterInputStream::read(byte[] b, int off, int len)` to > highlight that it might write more bytes than the returned number of > inflated bytes into the buffer `b`. > > The superclass `java.io.InputStream` specifies that `read(byte[] b, int off, > int len)` will leave t

Re: Issue regarding hugeLength() method of ArraysSupport class in java.internal.util package

2022-07-27 Thread Raffaello Giulietti
1. minLength < 0 means that there is an overflow in the preceding addition, so the error's message is correct. 2. + 3. hugeLength() is only ever invoked by the newLength() method just above. The javadoc spec of that method is quite clear about what newLength(), and thus hugeLength(), are expec

[jdk19] Integrated: 8291006: java/foreign/TestUnsupportedPlatform fails after JDK-8290455

2022-07-27 Thread Maurizio Cimadamore
On Tue, 26 Jul 2022 09:44:53 GMT, Maurizio Cimadamore wrote: > This patch removes java/foreign/TestUnsupportedPlatform, which has been > superseded by TestUnsupportedLinker, and is no longer required. > This old test relies on unspecified behavior and should be removed. This pull request has n