changeset 361:b43ec0c985d9

7901899: @Contended detection checks are eagerly initializing all classes
author shade
date Tue, 14 Feb 2017 20:29:00 +0100
parents e15fe039a6e2
children f0679b57b3d9
files jcstress-core/src/main/java/org/openjdk/jcstress/util/Reflections.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/util/Reflections.java	Tue Feb 14 20:59:53 2017 +0100
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/util/Reflections.java	Tue Feb 14 20:29:00 2017 +0100
@@ -61,7 +61,7 @@
             try {
                 if (name.contains("sun.misc")) continue;
                 if (name.contains("jdk.internal")) continue;
-                newClasses.add(Class.forName(name));
+                newClasses.add(Class.forName(name, false, Reflections.class.getClassLoader()));
             } catch (ClassNotFoundException e) {
                 throw new IllegalStateException(e.getMessage(), e);
             } catch (NoClassDefFoundError e) {