6819122: DefaultProxySelector should lazily initialize the Pattern object and the NonProxyInfo objects

Webrev at:
 http://cr.openjdk.java.net/~mchung/6819122/webrev.00/

Details:
1. The Pattern object is only used for checking a IPv6 loopback address. The current fix is to create a Pattern object for every check instead of caching it. The other alternative is to cache the Pattern object at the first time it is needed. Do you believe typically applications will hit this path frequently such that caching the Pattern object is needed? 2. Move the static NonProxyInfo fields into the NonProxyInfo classes so that they will only be initialized when it is needed.

Thanks
Mandy

Reply via email to