Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v5]

2023-01-04 Thread Kevin Walls
On Wed, 4 Jan 2023 15:30:10 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 04:59:51 GMT, Serguei Spitsyn wrote: >> src/jdk.attach/windows/classes/sun/tools/attach/VirtualMachineImpl.java line >> 130: >> >>> 128: @Override >>> 129: protected int read(long fd, byte[] bs, int off, int len) >>> throws IOException { >>> 130:

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread Serguei Spitsyn
On Thu, 5 Jan 2023 04:31:16 GMT, David Holmes wrote: >> Yi Yang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add doc; readImpl/closeImpl to read/close > > src/jdk.attach/windows/classes/sun/tools/attach/VirtualMachineImpl.java line >

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 03:32:21 GMT, Yi Yang wrote: >> harmless refactor to share code across different platforms of >> VirtualMachineImpl: >> 1. Shared code to process command response after requesting a command >> execution >> 2. Read functionality in SocketInputStream can be reused > > Yi Yang h

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 02:37:45 GMT, David Holmes wrote: >> Yi Yang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add doc; readImpl/closeImpl to read/close > > src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java line

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread Yi Yang
On Thu, 5 Jan 2023 03:06:20 GMT, David Holmes wrote: >> All Posix OS platforms call the same VirtualMachineImpl.read/write/etc, but >> Windows is an unusual guy, it calls VirtualMachineImpl.readPipe/writePipe/etc > > That is a shame, though perhaps we could just rename those methods on Windows?

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v3]

2023-01-04 Thread Yi Yang
> harmless refactor to share code across different platforms of > VirtualMachineImpl: > 1. Shared code to process command response after requesting a command > execution > 2. Read functionality in SocketInputStream can be reused Yi Yang has updated the pull request incrementally with one additio

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 02:50:49 GMT, Yi Yang wrote: >> src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java >> line 425: >> >>> 423: >>> 424: protected abstract int readImpl(long fd, byte[] bs, int off, >>> int len) throws IOException; >>> 425: protected abstra

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 02:44:48 GMT, Yi Yang wrote: >> In that case the `int pid` determined by the superclass should be made >> available to the subclasses so they can use it and not need to re-parse the >> `vmid`. > >> In that case the `int pid` determined by the superclass should be made >> ava

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread Serguei Spitsyn
On Wed, 4 Jan 2023 09:22:40 GMT, Yi Yang wrote: >> harmless refactor to share code across different platforms of >> VirtualMachineImpl: >> 1. Shared code to process command response after requesting a command >> execution >> 2. Read functionality in SocketInputStream can be reused > > Yi Yang h

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread Yi Yang
On Thu, 5 Jan 2023 02:40:22 GMT, David Holmes wrote: >> src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java line >> 195: >> >>> 193: * InputStream for the socket connection to get target VM >>> 194: */ >>> 195: private static class SocketInputStreamImpl extends

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread Yi Yang
On Thu, 5 Jan 2023 02:36:59 GMT, David Holmes wrote: >> Yi Yang 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 two >> new commits si

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread Yi Yang
On Wed, 4 Jan 2023 04:20:11 GMT, David Holmes wrote: > In that case the `int pid` determined by the superclass should be made > available to the subclasses so they can use it and not need to re-parse the > `vmid`. Hi @dholmes-ora, this is feasible, but in fact, the super class of VirtualMachi

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread David Holmes
On Thu, 5 Jan 2023 02:35:54 GMT, David Holmes wrote: >> Yi Yang 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 two >> new commits si

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread David Holmes
On Wed, 4 Jan 2023 09:22:40 GMT, Yi Yang wrote: >> harmless refactor to share code across different platforms of >> VirtualMachineImpl: >> 1. Shared code to process command response after requesting a command >> execution >> 2. Read functionality in SocketInputStream can be reused > > Yi Yang h

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v5]

2023-01-04 Thread Serguei Spitsyn
On Wed, 4 Jan 2023 15:30:10 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: 8299563: Fix typos [v3]

2023-01-04 Thread Michael Ernst
On Wed, 4 Jan 2023 01:19:52 GMT, Jaikiran Pai wrote: >> Michael Ernst has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains seven commits: >> >> - Merge ../jdk-openjdk into typos-typos >> - Reinstate typos in Apache code that is copie

Integrated: 8299563: Fix typos

2023-01-04 Thread Michael Ernst
On Thu, 25 Aug 2022 15:35:53 GMT, Michael Ernst wrote: > 8299563: Fix typos This pull request has now been integrated. Changeset: 7dcc6899 Author:Michael Ernst Committer: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/7dcc689932ea276586282e0917f2efc10a598eb7 Stats: 5 lin

Re: RFR: 8299563: Fix typos [v4]

2023-01-04 Thread Alexey Ivanov
On Wed, 4 Jan 2023 16:35:41 GMT, Michael Ernst wrote: >> 8299563: Fix typos > > Michael Ernst has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains ten commits: > > - Address review feedback > - Merge ../jdk-openjdk into typos-typos >

Re: RFR: 8299563: Fix typos [v4]

2023-01-04 Thread Lance Andersen
On Wed, 4 Jan 2023 16:35:41 GMT, Michael Ernst wrote: >> 8299563: Fix typos > > Michael Ernst has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains ten commits: > > - Address review feedback > - Merge ../jdk-openjdk into typos-typos >

Re: RFR: 8299563: Fix typos [v4]

2023-01-04 Thread Michael Ernst
> 8299563: Fix typos Michael Ernst has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains ten commits: - Address review feedback - Merge ../jdk-openjdk into typos-typos - Merge ../jdk-openjdk into typos-typos - Reinstate typos in Apache

Integrated: Merge jdk20

2023-01-04 Thread Jesper Wilhelmsson
On Wed, 4 Jan 2023 14:25:12 GMT, Jesper Wilhelmsson wrote: > Forwardport JDK 20 -> JDK 21 This pull request has now been integrated. Changeset: df1caf90 Author:Jesper Wilhelmsson URL: https://git.openjdk.org/jdk/commit/df1caf90818558b897a6b8ab80757f2a03398c55 Stats: 299 lines i

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v5]

2023-01-04 Thread Matthias Baesken
> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some > circumstances a negative rmiport (--rmiport -1) to SALauncher.java. > This leads to a somewhat misleading message > `[debugd] Argument is expected for 'rmiport' ` > (we set an argument [-1] but probably this is not what

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v4]

2023-01-04 Thread Kevin Walls
On Wed, 4 Jan 2023 14:56:54 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Matthias Baesken
On Wed, 4 Jan 2023 14:39:14 GMT, Kevin Walls wrote: > SADebugDTest is only one test, so seems OK to have it fail as soon as we > realise we need a port, and it has a value of -1. > > I would do it in this change as they are so connected, but really whichever > works best for you. (I don't see

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v4]

2023-01-04 Thread Matthias Baesken
> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some > circumstances a negative rmiport (--rmiport -1) to SALauncher.java. > This leads to a somewhat misleading message > `[debugd] Argument is expected for 'rmiport' ` > (we set an argument [-1] but probably this is not what

Re: RFR: 8299593: getprotobyname should not be used

2023-01-04 Thread Alan Bateman
On Wed, 4 Jan 2023 12:56:18 GMT, Daniel Jeliński wrote: > Please review this patch that removes the remaining uses of non-reentrant > `getprotobyname` function. > > While the protocol number for TCP could theoretically be modified to > something other than the default `IPPROTO_TCP`, that scena

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Kevin Walls
On Wed, 4 Jan 2023 13:04:10 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

RFR: 8299593: getprotobyname should not be used

2023-01-04 Thread Daniel Jeliński
Please review this patch that removes the remaining uses of non-reentrant `getprotobyname` function. While the protocol number for TCP could theoretically be modified to something other than the default `IPPROTO_TCP`, that scenario would likely not work, and is not something that we are willing

RFR: Merge jdk20

2023-01-04 Thread Jesper Wilhelmsson
Forwardport JDK 20 -> JDK 21 - Commit messages: - Merge remote-tracking branch 'jdk20/master' into Merge_jdk20 - 8299476: PPC64 Zero build fails after JDK-8286302 - 8293824: gc/whitebox/TestConcMarkCycleWB.java failed "RuntimeException: assertTrue: expected true, was false" - 829

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Matthias Baesken
On Wed, 4 Jan 2023 14:19:18 GMT, Kevin Walls wrote: > In the "if (useRmiPort) {" block, we should be failing the test if rmiPort is > -1, saying something like "cannot find an rmiPort, findUnreservedFreePort > returns -1" > > A similar abort if setting registryPort gets -1 might also be good?

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Kevin Walls
On Wed, 4 Jan 2023 13:04:10 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Christoph Langer
On Wed, 4 Jan 2023 13:04:10 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v3]

2023-01-04 Thread Matthias Baesken
> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some > circumstances a negative rmiport (--rmiport -1) to SALauncher.java. > This leads to a somewhat misleading message > `[debugd] Argument is expected for 'rmiport' ` > (we set an argument [-1] but probably this is not what

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v2]

2023-01-04 Thread Christoph Langer
On Wed, 4 Jan 2023 12:10:11 GMT, Matthias Baesken wrote: >> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some >> circumstances a negative rmiport (--rmiport -1) to SALauncher.java. >> This leads to a somewhat misleading message >> `[debugd] Argument is expected for 'rmip

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args [v2]

2023-01-04 Thread Matthias Baesken
> The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some > circumstances a negative rmiport (--rmiport -1) to SALauncher.java. > This leads to a somewhat misleading message > `[debugd] Argument is expected for 'rmiport' ` > (we set an argument [-1] but probably this is not what

Re: RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args

2023-01-04 Thread Matthias Baesken
On Mon, 2 Jan 2023 14:31:14 GMT, Matthias Baesken wrote: > The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some > circumstances a negative rmiport (--rmiport -1) to SALauncher.java. > This leads to a somewhat misleading message > `[debugd] Argument is expected for 'rmiport'

Re: RFR: 8299518: HotSpotVirtualMachine shared code across different platforms [v2]

2023-01-04 Thread Yi Yang
> harmless refactor to share code across different platforms of > VirtualMachineImpl: > 1. Shared code to process command response after requesting a command > execution > 2. Read functionality in SocketInputStream can be reused Yi Yang has refreshed the contents of this pull request, and previo