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

Mandy Chung mandy.chung at oracle.com
Wed Jun 8 21:05:15 UTC 2016


> On Jun 5, 2016, at 10:40 PM, Bhanu Gopularam <bhanu.prakash.gopularam at oracle.com> 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 


Removing this test seems okay since there are existing tests checking for deadlocks.

Mandy


More information about the security-dev mailing list