RFR: 8263442: Potential bug in jdk.internal.net.http.common.Utils.CONTEXT_RESTRICTED

2021-03-12 Thread Michael McMahon
Hi, The fix for the reported bug in Utils.CONTEXT_RESTRICTED caused a couple of regression failures, which turned out to be another bug exposed by this fix where HTTP/1.1 CONNECT requests with authentication were filtering out proxy authentication headers wrongly. This was because the HttpReque

RFR: 8187450: JNI local refs exceeds capacity warning in NetworkInterface::getAll

2021-03-12 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 depends upon the n