Re: RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259 [v2]

2024-06-10 Thread Daniel Jeliński
On Mon, 10 Jun 2024 13:48:08 GMT, Roger Riggs wrote: >> I don't have a test or counter example and don't have a detailed >> understanding of the blocking needs of Hotspot. > > Another reason to retain the checking of GetThreadInterruptEvent is to be > belt and suspenders against the Java code

Re: RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259 [v2]

2024-06-10 Thread Daniel Jeliński
problem is > important enough to justify an extra JNI call in the (probably typical) > still-alive case. > > Tier1-3 testing clean. I modified the existing OnExitTest to cover this case. Daniel Jeliński has updated the pull request incrementally with one additional commit since the la

Re: RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259

2024-06-07 Thread Daniel Jeliński
On Fri, 7 Jun 2024 20:36:45 GMT, Roger Riggs wrote: >> I only left it here because the wait for interrupt event was already >> present. Is being stuck in a blocking os call a bad thing? If not, I can >> drop the interrupt event, and wait on the process handle only. > > I think waiting on

Re: RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259

2024-06-07 Thread Daniel Jeliński
On Fri, 7 Jun 2024 20:35:00 GMT, Roger Riggs wrote: >> I don't follow. Could you explain? > > The `WaitForSingleObject(handle, 0)` seems like an indirect way to determine > if the process is alive. > Whereas `isProcessAlive(handle)` seems to directly answer the question. sorry, I still don't

Re: RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259

2024-06-07 Thread Daniel Jeliński
On Fri, 7 Jun 2024 14:58:30 GMT, Roger Riggs wrote: >> `GetExitCodeProcess` method is not reliable for checking if a process exited >> already; it returns 259 (STILL_ACTIVE) if the process hasn't exited yet, but >> the same value is returned when the process exited with code 259. In order >>

RFR: 8333742: ProcessImpl and ProcessHandleImpl may mishandle processes that exit with code 259

2024-06-07 Thread Daniel Jeliński
`GetExitCodeProcess` method is not reliable for checking if a process exited already; it returns 259 (STILL_ACTIVE) if the process hasn't exited yet, but the same value is returned when the process exited with code 259. In order to check if the process exited, we need to check if its handle is

Re: RFR: 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist [v2]

2024-05-27 Thread Daniel Jeliński
On Sun, 26 May 2024 07:24:16 GMT, SendaoYan wrote: >> Hi all, >> When there is no `/usr/bin/expect` in system, `throw new SkippedException` >> will not make the jvm exit in `@BeforeAll` junit stage, thus this will cause >> this testcase run failed. So I make change from `throw new

Re: RFR: 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist [v2]

2024-05-26 Thread Daniel Jeliński
On Sun, 26 May 2024 07:24:16 GMT, SendaoYan wrote: >> Hi all, >> When there is no `/usr/bin/expect` in system, `throw new SkippedException` >> will not make the jvm exit in `@BeforeAll` junit stage, thus this will cause >> this testcase run failed. So I make change from `throw new

Re: RFR: 8320448: Accelerate IndexOf using AVX2 [v33]

2024-05-26 Thread Daniel Jeliński
On Fri, 24 May 2024 18:37:13 GMT, Vladimir Kozlov wrote: >> Changed to `lea` with `InternalAddress()`. Generates the exact same code, >> but makes more sense. I looked at `movdqu` and see no code that generates >> RIP-relative loads. It merely checks `reachable()` and adds an intermediate

Re: RFR: 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist

2024-05-26 Thread Daniel Jeliński
On Sun, 26 May 2024 02:58:02 GMT, SendaoYan wrote: > Hi all, > When there is no `/usr/bin/expect` in system, `throw new SkippedException` > will not make the jvm exit in `@BeforeAll` junit stage, thus this will cause > this testcase run failed. So I make change from `throw new

Re: RFR: 8320448: Accelerate IndexOf using AVX2 [v33]

2024-05-24 Thread Daniel Jeliński
On Fri, 24 May 2024 14:19:13 GMT, Scott Gibbons wrote: >> the RIP-relative lea should have a shorter encoding. I think something like >> `lea(r15, ExternalAddress(small_jump_table))` should produce it (untested) > > Just did the experiment and it turns out that `mov64(r15, >

Re: RFR: 8320448: Accelerate IndexOf using AVX2 [v33]

2024-05-24 Thread Daniel Jeliński
On Thu, 23 May 2024 19:26:10 GMT, Scott Gibbons wrote: >> src/hotspot/cpu/x86/stubGenerator_x86_64_string.cpp line 268: >> >>> 266: __ cmpq(needle_len_p, 0); >>> 267: __ jg_b(L_nextCheck); >>> 268: __ xorq(rax, rax); >> >> out of curiosity, is there any advantage to using `xorq` instead

Re: RFR: 8320448: Accelerate IndexOf using AVX2 [v33]

2024-05-23 Thread Daniel Jeliński
On Thu, 23 May 2024 17:25:34 GMT, Scott Gibbons wrote: >> Re-write the IndexOf code without the use of the pcmpestri instruction, only >> using AVX2 instructions. This change accelerates String.IndexOf on average >> 1.3x for AVX2. The benchmark numbers: >> >> >> Benchmark

Integrated: 8331907: BigInteger and BigDecimal should use optimized division

2024-05-13 Thread Daniel Jeliński
On Wed, 8 May 2024 08:19:54 GMT, Daniel Jeliński wrote: > Replace the custom unsigned divide / remainder functions with the > compiler-optimized Long.divideUnsigned / remainderUnsigned. > > No new tests. Existing tier1-3 tests continue to pass. > > I added a new set of

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division [v4]

2024-05-13 Thread Daniel Jeliński
On Fri, 10 May 2024 16:16:18 GMT, Daniel Jeliński wrote: >> Replace the custom unsigned divide / remainder functions with the >> compiler-optimized Long.divideUnsigned / remainderUnsigned. >> >> No new tests. Existing tier1-3 tests continue to pass. >>

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division [v4]

2024-05-10 Thread Daniel Jeliński
the BigDecimal.toString benchmarks. They no longer serve their > purpose - toString caches the returned value, so we were only benchmarking > the cache access time. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Integer

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division [v3]

2024-05-10 Thread Daniel Jeliński
the BigDecimal.toString benchmarks. They no longer serve their > purpose - toString caches the returned value, so we were only benchmarking > the cache access time. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division [v3]

2024-05-10 Thread Daniel Jeliński
On Fri, 10 May 2024 13:39:42 GMT, Daniel Jeliński wrote: >> Replace the custom unsigned divide / remainder functions with the >> compiler-optimized Long.divideUnsigned / remainderUnsigned. >> >> No new tests. Existing tier1-3 tests continue to pass. >>

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division [v2]

2024-05-10 Thread Daniel Jeliński
the BigDecimal.toString benchmarks. They no longer serve their > purpose - toString caches the returned value, so we were only benchmarking > the cache access time. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8331907: BigInteger and BigDecimal should use optimized division

2024-05-08 Thread Daniel Jeliński
On Wed, 8 May 2024 08:19:54 GMT, Daniel Jeliński wrote: > Replace the custom unsigned divide / remainder functions with the > compiler-optimized Long.divideUnsigned / remainderUnsigned. > > No new tests. Existing tier1-3 tests continue to pass. > > I added a new set of

RFR: 8331907: BigInteger and BigDecimal should use optimized division

2024-05-08 Thread Daniel Jeliński
Replace the custom unsigned divide / remainder functions with the compiler-optimized Long.divideUnsigned / remainderUnsigned. No new tests. Existing tier1-3 tests continue to pass. I added a new set of divide benchmarks. Results in thread. I also removed the BigDecimal.toString benchmarks.

Re: RFR: JDK-8323186: A faster algorithm for MutablebigInteger.divWord(long, int) [v3]

2024-02-28 Thread Daniel Jeliński
On Mon, 22 Jan 2024 18:52:32 GMT, fabioromano1 wrote: >> As you note, that would probably require two divisions. I don't know if the >> JIT compiler can detect that the arguments are the same and emit just one >> division instead. >> I think your code is good enough for the purpose of

Re: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4]

2024-02-27 Thread Daniel Jeliński
On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, >> but it turned out that we really only need a single toolchain, with a single >> twist: if it should use CC or CPP to link. This is better described by a

Re: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v3]

2024-02-27 Thread Daniel Jeliński
On Mon, 26 Feb 2024 20:21:55 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, >> but it turned out that we really only need a single toolchain, with a single >> twist: if it should use CC or CPP to link. This is better described by a

Re: RFR: 8326714: Make file-local functions static in src/java.base/unix/native/libjava/childproc.c

2024-02-26 Thread Daniel Jeliński
On Tue, 27 Feb 2024 03:11:37 GMT, Jiangli Zhou wrote: > Please help review this trivial change. This was branched from > https://github.com/openjdk/jdk/pull/18013, based on discussion with > @plummercj in https://github.com/openjdk/jdk/pull/18013 comments. Thanks LGTM - Marked

Re: RFR: 8314480: Memory ordering spec updates in java.lang.ref [v9]

2024-02-22 Thread Daniel Jeliński
On Thu, 22 Feb 2024 01:42:17 GMT, Brent Christian wrote: >> Classes in the `java.lang.ref` package would benefit from an update to bring >> the spec in line with how the VM already behaves. The changes would focus on >> _happens-before_ edges at some key points during reference processing. >>

Re: RFR: 8314480: Memory ordering spec updates in java.lang.ref [v9]

2024-02-22 Thread Daniel Jeliński
On Thu, 22 Feb 2024 12:04:05 GMT, Daniel Jeliński wrote: >> Brent Christian has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Cleaner thread dequeue happens-before running cleaning action > > src/java.ba

Integrated: 8320691: Timeout handler on Windows takes 2 hours to complete

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 07:58:18 GMT, Daniel Jeliński wrote: > The recent cdb versions do not support `.dump /f`: > > * > * .dump /f is not supported on a user

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete [v2]

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 09:58:17 GMT, Daniel Jeliński wrote: >> The recent cdb versions do not support `.dump /f`: >> >> * >> * .dump /f is not supporte

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete [v2]

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 11:36:27 GMT, Alan Bateman wrote: >> It's ignoring the rest of the command line after `/f`, which means it >> ignores the `;qd` (quit and detach) part and enters the interactive mode. > >> It's ignoring the rest of the command line after `/f`, which means it >> ignores the

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete [v2]

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 10:28:30 GMT, Alan Bateman wrote: >> good point, 10 minutes should be more than enough. I'll update. > > Out of curiosity, do we know why it takes more than an hour? Is it attempting > to connect to the Microsoft symbol server? It's ignoring the rest of the command line

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete [v2]

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 09:09:03 GMT, Alan Bateman wrote: >> Daniel Jeliński has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address review comments > > test/failure_handler/src/share/conf/windows.proper

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete [v2]

2023-11-24 Thread Daniel Jeliński
gt; This PR updates the dump command to use the recommended `/ma` parameter. This > allows the command to produce a dump and complete in a timely manner. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Address review comments

Re: RFR: 8320691: Timeout handler on Windows takes 2 hours to complete

2023-11-24 Thread Daniel Jeliński
On Fri, 24 Nov 2023 09:17:47 GMT, Jaikiran Pai wrote: >> test/failure_handler/src/share/conf/windows.properties line 61: >> >>> 59: native.core.app=cdb >>> 60: native.core.args=-c ".dump /ma core.%p;qd" -p %p >>> 61: native.core.params.timeout=360 >> >> Hello Daniel, I found it surprising

RFR: 8320691: Timeout handler on Windows takes 2 hours to complete

2023-11-24 Thread Daniel Jeliński
The recent cdb versions do not support `.dump /f`: * * .dump /f is not supported on a user mode process. * * * * .dump /ma

Re: RFR: 8320386: Remove java/nio/channels/vthread/BlockingChannelOps.java#direct-register from ProblemList

2023-11-20 Thread Daniel Jeliński
On Mon, 20 Nov 2023 10:09:36 GMT, Daniel Jeliński wrote: > The direct-register test variant was removed in > c099cf53f25496c99629dc578045aa5186e1109d. The failing test case was also > modified - the socket timeout is much shorter now, so even if the receive > operation gets stuck

Integrated: 8320386: Remove java/nio/channels/vthread/BlockingChannelOps.java#direct-register from ProblemList

2023-11-20 Thread Daniel Jeliński
On Mon, 20 Nov 2023 10:09:36 GMT, Daniel Jeliński wrote: > The direct-register test variant was removed in > c099cf53f25496c99629dc578045aa5186e1109d. The failing test case was also > modified - the socket timeout is much shorter now, so even if the receive > operation gets stuck

RFR: 8320386: Remove java/nio/channels/vthread/BlockingChannelOps.java#direct-register from ProblemList

2023-11-20 Thread Daniel Jeliński
The direct-register test variant was removed in c099cf53f25496c99629dc578045aa5186e1109d. The failing test case was also modified - the socket timeout is much shorter now, so even if the receive operation gets stuck for the full duration, the test will still pass. - Commit

Re: instead of JSON => data language: irk

2023-11-14 Thread Daniel Jeliński
Hi Birke, You can find the unsubscribe button on the subscription management page here: https://mail.openjdk.org/mailman/listinfo/core-libs-dev Cheers, Daniel wt., 14 lis 2023 o 17:26 Birke Heeren napisał(a): > > please post the message: > > development of irk is my new goal > > watch at:

Re: RFR: 8274122: java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11 [v3]

2023-10-25 Thread Daniel Jeliński
On Tue, 24 Oct 2023 22:57:59 GMT, Brian Burkhalter wrote: >> Windows 11 does not reserve as many names as prior versions of Windows so do >> not expect exceptions for COM7 and LPT1. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last

Re: RFR: 8274122: java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11 [v2]

2023-10-24 Thread Daniel Jeliński
On Tue, 19 Sep 2023 21:55:24 GMT, Brian Burkhalter wrote: >> Windows 11 does not reserve as many names as prior versions of Windows so do >> not expect exceptions for COM7 and LPT1. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last

Re: RFR: 8316046: x64 platforms unecessarily save xmm16-31 when UseAVX >= 3

2023-10-23 Thread Daniel Jeliński
On Mon, 23 Oct 2023 11:37:08 GMT, Jorn Vernee wrote: > See JBS issue. We don't need to save xmm16+ on x64 platforms (which are > currently saved in FFM upcall stubs). This is achieved simply by adding these > registers to the volatile register lists of both ABIs. > > Related:

Re: RFR: 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind [v9]

2023-09-21 Thread Daniel Jeliński
On Thu, 21 Sep 2023 15:35:16 GMT, Brian Burkhalter wrote: >> Add a `finally` block to delete the created files. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8315960: Use assertEquals LGTM. Thanks! -

Re: RFR: 8316421: libjava should load shell32.dll eagerly [v3]

2023-09-21 Thread Daniel Jeliński
On Thu, 21 Sep 2023 06:08:27 GMT, Daniel Jeliński wrote: >> Please review this patch that makes java.dll load shell32.dll earlier. >> Delay-loading requires some additional code (delayimp.lib), and offers no >> benefits since we always load shell32 during JVM startup.

Integrated: 8316421: libjava should load shell32.dll eagerly

2023-09-21 Thread Daniel Jeliński
On Mon, 18 Sep 2023 14:44:13 GMT, Daniel Jeliński wrote: > Please review this patch that makes java.dll load shell32.dll earlier. > Delay-loading requires some additional code (delayimp.lib), and offers no > benefits since we always load shell32 during JVM startup. > > Othe

Re: RFR: 8316421: libjava should load shell32.dll eagerly [v2]

2023-09-21 Thread Daniel Jeliński
On Wed, 20 Sep 2023 14:42:40 GMT, Jorn Vernee wrote: >> src/java.base/windows/native/libjava/java_props_md.c line 214: >> >>> 212: HRESULT hr; >>> 213: WCHAR *tmpPath = NULL; >>> 214: hr = SHGetKnownFolderPath(_Profile, >>> KF_FLAG_DONT_VERIFY, NULL, ); >> >> I'd say

Re: RFR: 8316421: libjava should load shell32.dll eagerly [v3]

2023-09-21 Thread Daniel Jeliński
ll by 2KB on my > machine. > No new tests. Existing tier1-2 tests continue to pass. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Inline variable declaration - Changes: - all: https://git.openjdk.org/jdk/pull/

Re: RFR: 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind [v8]

2023-09-20 Thread Daniel Jeliński
On Wed, 20 Sep 2023 21:51:19 GMT, Brian Burkhalter wrote: >> Add a `finally` block to delete the created files. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8315960: Address additional reviewer comments Now that

Re: RFR: 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind [v7]

2023-09-19 Thread Daniel Jeliński
On Tue, 19 Sep 2023 21:45:13 GMT, Brian Burkhalter wrote: >> Add a `finally` block to delete the created files. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8315960: Fix indentation

Re: RFR: 8316421: libjava should load shell32.dll eagerly [v2]

2023-09-19 Thread Daniel Jeliński
On Mon, 18 Sep 2023 18:10:12 GMT, Daniel Jeliński wrote: >> Please review this patch that makes java.dll load shell32.dll earlier. >> Delay-loading requires some additional code (delayimp.lib), and offers no >> benefits since we always load shell32 during JVM startup.

Re: RFR: 8316433: net.dll should delay load winhttp.dll [v2]

2023-09-19 Thread Daniel Jeliński
d tier2 tests still pass > - the same system proxies are returned with and without this patch > - WinHTTP is not loaded unless DefaultProxySelector is used Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Revert test changes -

Re: RFR: 8316433: net.dll should delay load winhttp.dll [v2]

2023-09-19 Thread Daniel Jeliński
On Tue, 19 Sep 2023 06:41:11 GMT, Alan Bateman wrote: >> Daniel Jeliński has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Revert test changes > > test/jdk/java/net/ProxySelector/SystemProxies.java line 26

RFR: 8316433: net.dll should delay load winhttp.dll

2023-09-18 Thread Daniel Jeliński
WinHTTP functions are only used when an application: - uses DefaultProxySelector to resolve proxies, and - is run with -Djava.net.useSystemProxies=true In all other cases, loading winhttp.dll is a waste of resources. Verified that: - existing tier1 and tier2 tests still pass - the same system

Re: RFR: 8316421: libjava should load shell32.dll eagerly [v2]

2023-09-18 Thread Daniel Jeliński
ll by 2KB on my > machine. > No new tests. Existing tier1-2 tests continue to pass. Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Remove unused define - Changes: - all: https://git.openjdk.org/jdk/pull/15789/files

Re: RFR: 8316421: libjava should load shell32.dll eagerly

2023-09-18 Thread Daniel Jeliński
On Mon, 18 Sep 2023 14:44:13 GMT, Daniel Jeliński wrote: > Please review this patch that makes java.dll load shell32.dll earlier. > Delay-loading requires some additional code (delayimp.lib), and offers no > benefits since we always load shell32 during JVM startup. > > Othe

Re: RFR: 8316421: libjava should load shell32.dll eagerly

2023-09-18 Thread Daniel Jeliński
On Mon, 18 Sep 2023 14:44:13 GMT, Daniel Jeliński wrote: > Please review this patch that makes java.dll load shell32.dll earlier. > Delay-loading requires some additional code (delayimp.lib), and offers no > benefits since we always load shell32 during JVM startup. > > Othe

RFR: 8316421: libjava should load shell32.dll eagerly

2023-09-18 Thread Daniel Jeliński
Please review this patch that makes java.dll load shell32.dll earlier. Delay-loading requires some additional code (delayimp.lib), and offers no benefits since we always load shell32 during JVM startup. Other than removing the delayload clause, the patch also cleans up the `getHomeFromShell32`

Re: RFR: 8155902: DataOuputStream should clarify that it might write primitive types as multiple byte groups [v4]

2023-07-11 Thread Daniel Jeliński
On Tue, 11 Jul 2023 17:36:18 GMT, Brian Burkhalter wrote: >> Add a disclaimer to `java.io.DataOutputStream` to the effect that it makes >> no guarantee as to how the underlying output stream actually writes the >> bytes provided to it. > > Brian Burkhalter has updated the pull request

Re: RFR: 8155902: DataOutputStream writeInt creates 2 packets instead of 1

2023-07-07 Thread Daniel Jeliński
On Fri, 7 Jul 2023 15:27:29 GMT, Brian Burkhalter wrote: > Was it actually verified that things are not split up into two or more > packets? It seems that `write(2)` could in fact return a value less than the > number of bytes requested. Yes, the test case included in JBS sends all 4 bytes in

Re: RFR: 8155902: DataOutputStream writeInt creates 2 packets instead of 1

2023-07-06 Thread Daniel Jeliński
On Thu, 6 Jul 2023 21:40:38 GMT, Brian Burkhalter wrote: > Add a disclaimer to `java.io.DataOutputStream` to the effect that it makes no > guarantee as to how the underlying output stream actually writes the bytes > provided to it. This issue is reported against JDK 8 and 9. It was fixed in

Integrated: 8311489: Remove unused dirent_md files

2023-07-06 Thread Daniel Jeliński
On Wed, 5 Jul 2023 10:21:51 GMT, Daniel Jeliński wrote: > The methods declared in dirent_md are not used in libjava and not exported. > They should be removed. This pull request has now been integrated. Changeset: 356067d0 Author:Daniel Jeliński URL: https://git.openjdk.o

RFR: 8311489: Remove unused dirent_md files

2023-07-05 Thread Daniel Jeliński
The methods declared in dirent_md are not used in libjava and not exported. They should be removed. - Commit messages: - Remove dirent_md Changes: https://git.openjdk.org/jdk/pull/14772/files Webrev: https://webrevs.openjdk.org/?repo=jdk=14772=00 Issue:

Re: RFR: 8308286 Fix clang warnings in linux code [v8]

2023-06-23 Thread Daniel Jeliński
On Fri, 23 Jun 2023 08:03:45 GMT, Artem Semenov wrote: >> When using the clang compiler to build OpenJDk on Linux, we encounter >> various "warnings as errors". >> They can be fixed with small changes. > > Artem Semenov has updated the pull request incrementally with one additional > commit

Re: RFR: 8308780: Fix the Java Integer types on Windows [v11]

2023-06-23 Thread Daniel Jeliński
On Fri, 23 Jun 2023 02:38:13 GMT, Julian Waters wrote: >> On Windows, the basic Java Integer types are defined as long and __int64 >> respectively. In particular, the former is rather problematic since it >> breaks compilation as the Visual C++ becomes stricter and more compliant >> with

Re: RFR: 8308286 Fix clang warnings in linux code [v6]

2023-06-23 Thread Daniel Jeliński
On Thu, 22 Jun 2023 09:58:19 GMT, Daniel Jeliński wrote: >> Artem Semenov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> update > > make/modules/java.desktop/lib/Awt2dLib

Re: RFR: 8308780: Fix the Java Integer types on Windows [v9]

2023-06-22 Thread Daniel Jeliński
On Thu, 22 Jun 2023 14:40:23 GMT, Julian Waters wrote: >> On Windows, the basic Java Integer types are defined as long and __int64 >> respectively. In particular, the former is rather problematic since it >> breaks compilation as the Visual C++ becomes stricter and more compliant >> with

Re: RFR: 8308780: Fix the Java Integer types on Windows [v8]

2023-06-22 Thread Daniel Jeliński
On Thu, 22 Jun 2023 14:23:25 GMT, Julian Waters wrote: >> On Windows, the basic Java Integer types are defined as long and __int64 >> respectively. In particular, the former is rather problematic since it >> breaks compilation as the Visual C++ becomes stricter and more compliant >> with

Re: RFR: 8308780: Fix the Java Integer types on Windows [v6]

2023-06-22 Thread Daniel Jeliński
On Thu, 22 Jun 2023 13:48:53 GMT, Julian Waters wrote: >> src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp line >> 547: >> >>> 545: snprintf( s, sizeof(s), >>> 546: "ERROR calling GetAccessibleContextInfo; vmID = %lX, >>> context = %p", >>> 547:

Re: RFR: 8308780: Fix the Java Integer types on Windows [v6]

2023-06-22 Thread Daniel Jeliński
On Thu, 22 Jun 2023 03:00:16 GMT, Julian Waters wrote: >> On Windows, the basic Java Integer types are defined as long and __int64 >> respectively. In particular, the former is rather problematic since it >> breaks compilation as the Visual C++ becomes stricter and more compliant >> with

Re: RFR: 8308286 Fix clang warnings in linux code [v6]

2023-06-22 Thread Daniel Jeliński
On Thu, 22 Jun 2023 09:13:21 GMT, Artem Semenov wrote: >> When using the clang compiler to build OpenJDk on Linux, we encounter >> various "warnings as errors". >> They can be fixed with small changes. > > Artem Semenov has updated the pull request incrementally with one additional > commit

Re: RFR: 8308780: Fix the Java Integer types on Windows [v4]

2023-06-21 Thread Daniel Jeliński
On Thu, 1 Jun 2023 11:49:24 GMT, Julian Waters wrote: >> On Windows, the basic Java Integer types are defined as long and __int64 >> respectively. In particular, the former is rather problematic since it >> breaks compilation as the Visual C++ becomes stricter and more compliant >> with every

Re: RFR: 8308286 Fix clang warnings in linux code [v5]

2023-06-21 Thread Daniel Jeliński
On Sun, 11 Jun 2023 16:38:31 GMT, Artem Semenov wrote: >> When using the clang compiler to build OpenJDk on Linux, we encounter >> various "warnings as errors". >> They can be fixed with small changes. > > Artem Semenov has updated the pull request with a new target base due to a > merge or a

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v6]

2023-06-07 Thread Daniel Jeliński
On Wed, 7 Jun 2023 03:37:26 GMT, SUN Guoyun wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> "sun.util.locale.BaseLocale.getVariant()" because

Re: RFR: 8308286 Fix clang warnings in linux code

2023-05-26 Thread Daniel Jeliński
On Wed, 17 May 2023 12:28:47 GMT, Artem Semenov wrote: > When using the clang compiler to build OpenJDk on Linux, we encounter various > "warnings as errors". > They can be fixed with small changes. According to our docs, [clang is a supported compiler for

Re: RFR: 7065228: To interpret case-insensitive string locale independently [v2]

2023-05-18 Thread Daniel Jeliński
On Wed, 17 May 2023 13:53:55 GMT, Darragh Clarke wrote: >> Updated instances of `toLowerCase` and `toUpperCase` in several net and io >> files to specify `Locale.ROOT` to ensure that case conversion issues don't >> occur, >> >> I didn't add any new tests but ran tier 1-3 with no issues > >

Re: RFR: 7065228: To interpret case-insensitive string locale independently

2023-05-17 Thread Daniel Jeliński
On Tue, 16 May 2023 10:38:52 GMT, Darragh Clarke wrote: > Updated instances of `toLowerCase` and `toUpperCase` in several net and io > files to specify `Locale.ROOT` to ensure that case conversion issues don't > occur, > > I didn't add any new tests but ran tier 1-3 with no issues

Re: RFR: 8302845: Replace finalizer usage in JNDI DNS provider with Cleaner [v4]

2023-05-09 Thread Daniel Jeliński
On Tue, 9 May 2023 13:20:28 GMT, Aleksei Efimov wrote: >> JNDI `DnsClient` has a finalize method to close its internal datagram >> channel selector. >> The change proposed here replaces it with a cleaner to close the selector >> once the `DnsClient` >> instance becomes phantom reachable.

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v3]

2023-03-14 Thread Daniel Jeliński
On Mon, 13 Mar 2023 15:55:27 GMT, Daniel Jeliński wrote: >> This patch modifies the `getLastErrorString` method to return a `jstring`. >> Thanks to that we can avoid unnecessary back and forth conversions between >> Unicode and other charsets on Windows. >>

Integrated: 8303814: getLastErrorString should avoid charset conversions

2023-03-14 Thread Daniel Jeliński
On Wed, 8 Mar 2023 11:30:27 GMT, Daniel Jeliński wrote: > This patch modifies the `getLastErrorString` method to return a `jstring`. > Thanks to that we can avoid unnecessary back and forth conversions between > Unicode and other charsets on Windows. > > Other changes include:

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v2]

2023-03-13 Thread Daniel Jeliński
On Mon, 13 Mar 2023 15:05:04 GMT, Roger Riggs wrote: >> Daniel Jeliński has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Address review comments >> - Mention that the returned text is static and thread

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v3]

2023-03-13 Thread Daniel Jeliński
t;nonexistent.local");` starts with > `"不知道这样的主机。"` (or > `"\u4e0d\u77e5\u9053\u8fd9\u6837\u7684\u4e3b\u673a\u3002"`). Without the > change, the exception message started with a row of question marks. Daniel Jeliński has updated the pull request incrementally wi

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v2]

2023-03-13 Thread Daniel Jeliński
On Thu, 9 Mar 2023 18:08:32 GMT, Naoto Sato wrote: >> Daniel Jeliński has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Address review comments >> - Mention that the returned text is static and thread

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v2]

2023-03-13 Thread Daniel Jeliński
On Fri, 10 Mar 2023 21:47:45 GMT, Roger Riggs wrote: >> Daniel Jeliński has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Address review comments >> - Mention that the returned text is static and thread

Re: RFR: 8303814: getLastErrorString should avoid charset conversions [v2]

2023-03-13 Thread Daniel Jeliński
t;nonexistent.local");` starts with > `"不知道这样的主机。"` (or > `"\u4e0d\u77e5\u9053\u8fd9\u6837\u7684\u4e3b\u673a\u3002"`). Without the > change, the exception message started with a row of question marks. Daniel Jeliński has updated the pull request incrementally with th

Re: RFR: 8303814: getLastErrorString should avoid charset conversions

2023-03-10 Thread Daniel Jeliński
The message from this sender included one or more files which could not be scanned for virus detection; do not open these files unless you are certain of the sender's intent. -- On Thu, 9 Mar 2023 00:17:42 GMT, Naoto Sato wrote:

Re: RFR: 8303814: getLastErrorString should avoid charset conversions

2023-03-09 Thread Daniel Jeliński
On Wed, 8 Mar 2023 23:23:33 GMT, Chris Plummer wrote: >> This patch modifies the `getLastErrorString` method to return a `jstring`. >> Thanks to that we can avoid unnecessary back and forth conversions between >> Unicode and other charsets on Windows. >> >> Other changes include: >> - the

Re: RFR: 8303814: getLastErrorString should avoid charset conversions

2023-03-08 Thread Daniel Jeliński
On Wed, 8 Mar 2023 11:30:27 GMT, Daniel Jeliński wrote: > This patch modifies the `getLastErrorString` method to return a `jstring`. > Thanks to that we can avoid unnecessary back and forth conversions between > Unicode and other charsets on Windows. > > Other changes include:

RFR: 8303814: getLastErrorString should avoid charset conversions

2023-03-08 Thread Daniel Jeliński
This patch modifies the `getLastErrorString` method to return a `jstring`. Thanks to that we can avoid unnecessary back and forth conversions between Unicode and other charsets on Windows. Other changes include: - the Windows implementation of `getLastErrorString` no longer checks `errno`. I

Re: RFR: 8302664: Fix several incorrect usages of Preconditions.checkFromIndexSize

2023-02-17 Thread Daniel Jeliński
On Thu, 16 Feb 2023 14:42:52 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which fixes the usage of > `Preconditions.checkFromIndexSize`? This addresses > https://bugs.openjdk.org/browse/JDK-8302664. > > There was an oversight when these changes were introduced in >

Re: RFR: 6595142: (spec) ByteArrayInputStream treats bytes, not characters

2023-02-10 Thread Daniel Jeliński
On Fri, 10 Feb 2023 02:11:35 GMT, Brian Burkhalter wrote: > Replace the two occurrences of `character` with `byte`. There are similar incorrect comments in SequenceInputStream and BufferedInputStream. There could be others, but "character" is a very popular word, so they are hard to spot.

Integrated: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-02-08 Thread Daniel Jeliński
On Mon, 30 Jan 2023 11:06:05 GMT, Daniel Jeliński wrote: > Please review this patch that reduces the socket timeout used in > HandshakeTimeout test to its minimum value of 1 millisecond. > > This change makes the test complete 10 seconds faster; before this change it >

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338 [v2]

2023-02-07 Thread Daniel Jeliński
On Tue, 7 Feb 2023 09:38:13 GMT, Daniel Jeliński wrote: >> Please review this patch that reduces the socket timeout used in >> HandshakeTimeout test to its minimum value of 1 millisecond. >> >> This change makes the test complete 10 seconds faster; before this chan

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338 [v2]

2023-02-07 Thread Daniel Jeliński
2 > handshakes. > > The change also makes the test more likely to pass when it has to compete > with other tests for CPU time. Daniel Jeliński has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes bro

Re: RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Daniel Jeliński
On Mon, 30 Jan 2023 12:54:34 GMT, Vyom Tewari wrote: > I can see that this test uses "TIMEOUT" down in test Right, this is why I didn't remove the TIMEOUT constant > i will suggest you to reduce the "TIMEOUT" constant instead of hard coding it > to "1" second. I can't; this would make the

RFR: 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

2023-01-30 Thread Daniel Jeliński
Please review this patch that reduces the socket timeout used in HandshakeTimeout test to its minimum value of 1 millisecond. This change makes the test complete 10 seconds faster; before this change it took 5 seconds for the handshake to timeout, and the test attempts 2 handshakes. The change

Re: RFR: 8294403: [REDO] make test should report only on executed tests [v2]

2023-01-04 Thread Daniel Jeliński
On Wed, 4 Jan 2023 09:15:18 GMT, Aleksey Shipilev wrote: >> This should help to speed up tests significantly. Currently, if we run "make >> test" with a subset of tests, JTReg would still read the entirety of test >> root to report on tests that were not run. Even with current suite of tests

Integrated: 8189338: JMX RMI Remote Mbean server connection hangs if the server stops responding during a SSL Handshake

2023-01-04 Thread Daniel Jeliński
On Tue, 3 Jan 2023 13:35:32 GMT, Daniel Jeliński wrote: > This patch introduces a time limit for establishing a secure connection to a > RMI server. > > The existing implementation uses the configured > `sun.rmi.transport.tcp.handshakeTimeout` during RMI handshake only; the

RFR: 8189338: JMX RMI Remote Mbean server connection hangs if the server stops responding during a SSL Handshake

2023-01-03 Thread Daniel Jeliński
This patch introduces a time limit for establishing a secure connection to a RMI server. The existing implementation uses the configured `sun.rmi.transport.tcp.handshakeTimeout` during RMI handshake only; there's no time limit for SSL handshake. With this patch, the configuration option

Integrated: 8297976: Remove sun.net.ProgressMonitor and related classes

2022-12-07 Thread Daniel Jeliński
On Fri, 2 Dec 2022 08:31:25 GMT, Daniel Jeliński wrote: > Please review this patch that removes progress monitoring classes used by > UrlConnection. > Since Java 9 these classes are not used in the JDK, and are not exported from > java.base. If anyone was still using them, reimple

Re: RFR: 8297976: Remove sun.net.ProgressMonitor and related classes [v4]

2022-12-07 Thread Daniel Jeliński
On Tue, 6 Dec 2022 13:42:04 GMT, Daniel Jeliński wrote: >> Please review this patch that removes progress monitoring classes used by >> UrlConnection. >> Since Java 9 these classes are not used in the JDK, and are not exported >> from java.base. If anyone was still us

  1   2   >