RFR 8062758: Update java/security/Security/ClassLoaderDeadlock/Deadlock2.sh with the removal of -Djava.ext.dirs

Sean Mullan sean.mullan at oracle.com
Mon Jun 6 15:03:04 UTC 2016


Looks fine to me. Also copying Mandy to see if she is ok with this.

--Sean

On 06/06/2016 01:40 AM, Bhanu Gopularam wrote:
> Hi all,
>
> Please review fix for following bug :
>
> Bug - https://bugs.openjdk.java.net/browse/JDK-8062758
>
> Issue - Test java/security/Security/ClassLoaderDeadlock/Deadlock2.sh started failing after removal of java.ext.dirs option
>
> Actually the test loads two classes SunJCE provider class (uses ExtClassLoader in 8) and java.xml.parsers.DocumentBuilderFactory (loaded by bootstrap classloader) class using two separate threads simultaneously. In jdk-9 the provider classes are part of java.base and loaded by bootstrap loader. The ext classloader is replaced by platform classloader which is confined to load classes from modules only. Removing this particular test as scenario mentioned in it is not possible with new JDK-9 changes.
>
> Webrev - http://cr.openjdk.java.net/~bgopularam/8062758/webrev.00
>
> Thank you,
> Bhanu
>


More information about the security-dev mailing list