RFR 8062758: Update java/security/Security/ClassLoaderDeadlock/Deadlock2.sh with the removal of -Djava.ext.dirs
Bhanu Gopularam
bhanu.prakash.gopularam at oracle.com
Mon Jun 6 05:40:19 UTC 2016
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