RFR: 8316433: net.dll should delay load winhttp.dll [v2]

Michael McMahon michaelm at openjdk.org
Thu Sep 21 14:15:48 UTC 2023


On Tue, 19 Sep 2023 07:02:32 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> WinHTTP functions are only used when an application:
>> - uses DefaultProxySelector to resolve proxies, and
>> - is run with -Djava.net.useSystemProxies=true
>> 
>> In all other cases, loading winhttp.dll is a waste of resources.
>> 
>> Verified that:
>> - existing tier1 and tier2 tests still pass
>> - the same system proxies are returned with and without this patch
>> - WinHTTP is not loaded unless DefaultProxySelector is used
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revert test changes

Can't really comment on the specifics of the build change, but it seems like a reasonable change.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15793#issuecomment-1729668433


More information about the build-dev mailing list