Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v7]

2022-03-08 Thread Daniel Fuchs
On Mon, 7 Feb 2022 09:14:51 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Initialize return value in all cases

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v7]

2022-03-08 Thread Mark Sheppard
On Mon, 7 Feb 2022 09:14:51 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Initialize return value in all cases

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v7]

2022-03-07 Thread Daniel Jeliński
On Mon, 7 Feb 2022 09:14:51 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Initialize return value in all cases

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-02-07 Thread Daniel Jeliński
On Wed, 19 Jan 2022 08:15:46 GMT, Daniel Jeliński wrote: >> Why? >> No users of `enumInterfaces` rely on the value returned in the second >> parameter when `enumInterfaces` returns a negative result. The same is true >> for `getAllInterfacesAndAddresses`. >> The second parameter was NULL-initia

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v7]

2022-02-07 Thread Daniel Jeliński
> Clean up of various issues related to error handling and memory management Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Initialize return value in all cases - Changes: - all: https://git.openjdk.java.net/jdk/pu

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v6]

2022-01-27 Thread Daniel Fuchs
On Wed, 26 Jan 2022 20:09:36 GMT, Daniel Jeliński wrote: >> src/java.base/windows/native/libnet/NetworkInterface_winXP.c line 253: >> >>> 251: >>> 252: ret = enumInterfaces(env, netifPP); >>> 253: if (ret < 0) { >> >> Why did we remove handling for -2 here when `enumInterfaces` might r

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v6]

2022-01-26 Thread Daniel Jeliński
On Wed, 26 Jan 2022 18:25:19 GMT, Daniel Fuchs wrote: >> 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 >> brought in by the merge/rebase. The pull request contains 12 additional >> commit

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v6]

2022-01-26 Thread Daniel Fuchs
On Wed, 19 Jan 2022 08:15:24 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > 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 > br

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-01-19 Thread Daniel Jelinski
On Wed, 12 Jan 2022 12:34:35 GMT, Daniel Jelinski wrote: >> src/java.base/windows/native/libnet/NetworkInterface.c line 216: >> >>> 214: break; >>> 215: } >>> 216: return -1; >> >> *netifPP = NULL; >> >> and a similar NULL out value for all return -1 in this f

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v6]

2022-01-19 Thread Daniel Jelinski
> Clean up of various issues related to error handling and memory management Daniel Jelinski has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 12 addition

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-01-12 Thread Daniel Jelinski
On Wed, 12 Jan 2022 11:01:03 GMT, Mark Sheppard wrote: >> Daniel Jelinski has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove unused / incorrect exit code -2 from enumInterfaces > > src/java.base/windows/native/libnet/NetworkInterface

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v5]

2022-01-12 Thread Daniel Jelinski
> Clean up of various issues related to error handling and memory management Daniel Jelinski has updated the pull request incrementally with one additional commit since the last revision: Remove redundant initialization - Changes: - all: https://git.openjdk.java.net/jdk/pull/60

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-01-12 Thread Mark Sheppard
On Wed, 12 Jan 2022 08:09:59 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Remove unused / incorrect exit code -

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-01-12 Thread Daniel Jelinski
On Mon, 10 Jan 2022 19:58:56 GMT, Mark Sheppard wrote: >> In my experiments the `enumInterfaces` succeeded in IPv6-only environment. >> The function only fails with -2 when a new interface is added during >> enumeration. >> I could modify the function to stop returning -2 if you think it makes

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v4]

2022-01-12 Thread Daniel Jelinski
> Clean up of various issues related to error handling and memory management Daniel Jelinski has updated the pull request incrementally with one additional commit since the last revision: Remove unused / incorrect exit code -2 from enumInterfaces - Changes: - all: https://git.o

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-10 Thread Mark Sheppard
On Mon, 10 Jan 2022 07:37:24 GMT, Daniel Jelinski wrote: >> src/java.base/windows/native/libnet/NetworkInterface_winXP.c line 256: >> >>> 254: >>> 255: ret = enumInterfaces(env, netifPP); >>> 256: if (ret == -1) { >> >> this change is questionable: enumInterfaces returns -2 to allows

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-10 Thread Daniel Jelinski
On Sat, 8 Jan 2022 19:00:52 GMT, Mark Sheppard wrote: >> Daniel Jelinski has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address problems reported by clang-tidy > > src/java.base/windows/native/libnet/NetworkInterface_winXP.c line 271: >

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-10 Thread Daniel Jelinski
On Sat, 8 Jan 2022 09:11:05 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Address problems reported by clang-tid

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-09 Thread Daniel Jelinski
On Sat, 8 Jan 2022 18:17:29 GMT, Mark Sheppard wrote: >> Daniel Jelinski has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address problems reported by clang-tidy > > src/java.base/windows/native/libnet/NetworkInterface_winXP.c line 256: >

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-08 Thread Mark Sheppard
On Sat, 8 Jan 2022 09:11:05 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Address problems reported by clang-tid

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-08 Thread Mark Sheppard
On Sat, 8 Jan 2022 09:11:05 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Address problems reported by clang-tid

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-08 Thread Mark Sheppard
On Sat, 8 Jan 2022 09:11:05 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Address problems reported by clang-tid

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-08 Thread Mark Sheppard
On Sat, 8 Jan 2022 09:11:05 GMT, Daniel Jelinski wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jelinski has updated the pull request incrementally with one > additional commit since the last revision: > > Address problems reported by clang-tid

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v3]

2022-01-08 Thread Daniel Jelinski
> Clean up of various issues related to error handling and memory management Daniel Jelinski has updated the pull request incrementally with one additional commit since the last revision: Address problems reported by clang-tidy - Changes: - all: https://git.openjdk.java.net/jdk

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-12-14 Thread Daniel Jeliński
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-11-29 Thread Daniel Jeliński
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-11-29 Thread Daniel Fuchs
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-11-22 Thread Daniel Jeliński
On Thu, 28 Oct 2021 14:27:15 GMT, Daniel Fuchs wrote: >> Just to clarify, no tests were run. The failure was reported by JTReg >> itself. As of now building Java on Windows requires IPv4. >> >> On a side note, Microsoft created a completely new set of network >> interface-related APIs in Windo

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Jeliński
On Thu, 28 Oct 2021 14:27:15 GMT, Daniel Fuchs wrote: > I still need to review it though Each commit tries to fix one function (memory allocation / deallocation / return values); it may be easier to review them one by one. > I assume we're talking about using `GetIfTable2` and `GetIfEntry2` Y

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Fuchs
On Thu, 28 Oct 2021 11:15:16 GMT, Daniel Jeliński wrote: > Just to clarify, no tests were run. The failure was reported by JTReg itself. > As of now building Java on Windows requires IPv4. Understood. I'm satisfied that you manually tested the results on your machine - and if that change passe

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Jeliński
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Fuchs
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Jeliński
On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński wrote: >> Clean up of various issues related to error handling and memory management > > Daniel Jeliński has updated the pull request incrementally with one > additional commit since the last revision: > > Restore support for IPv6-only operati

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

2021-10-28 Thread Daniel Jeliński
> Clean up of various issues related to error handling and memory management Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision: Restore support for IPv6-only operation - Changes: - all: https://git.openjdk.java.net/jdk

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments

2021-10-27 Thread Daniel Jeliński
On Sat, 23 Oct 2021 10:26:34 GMT, Daniel Jeliński wrote: > Clean up of various issues related to error handling and memory management Hi, I wasn't able to run the test yet; need to find a machine where I could run this test without worrying about restoring it to a working state. However, lookin

Re: RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments

2021-10-27 Thread Daniel Fuchs
On Sat, 23 Oct 2021 10:26:34 GMT, Daniel Jeliński wrote: > Clean up of various issues related to error handling and memory management Hi Daniel - it looks like your changeset is reverting all the changes that were made by [JDK-8046500](https://bugs.openjdk.java.net/browse/JDK-8046500), to fix