Re: RFR: 8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll [v2]

2021-03-15 Thread Jonathan Dowland
On Mon, 15 Mar 2021 12:53:11 GMT, Chris Hegarty wrote: >> Jonathan Dowland 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. > > src/java.base/unix/native/libnet/

Re: RFR: 8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll [v2]

2021-03-15 Thread Jonathan Dowland
> This is an adaptation of a patch originally written by Shafi Ahmad in > a comment on the JBS page but never submitted or merged. > > With -Xcheck:jni, the method java.net.NetworkInterface.getAll very > quickly breaches the default JNI local refs threshold (32). Exactly when > this happens depend

Re: RFR: 8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll [v2]

2021-03-15 Thread Chris Hegarty
On Mon, 15 Mar 2021 12:53:16 GMT, Jonathan Dowland wrote: >> This is an adaptation of a patch originally written by Shafi Ahmad in >> a comment on the JBS page but never submitted or merged. >> >> With -Xcheck:jni, the method java.net.NetworkInterface.getAll very >> quickly breaches the default