changeset 52:8c75606aa741

Only deoptimize the declared methods in infra, omit the super-class methods.
author shade
date Fri, 27 Sep 2013 14:17:28 +0400
parents be0b862fb796
children b63e0544fd19
files harness/src/main/java/org/openjdk/jcstress/util/VMSupport.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/harness/src/main/java/org/openjdk/jcstress/util/VMSupport.java	Fri Aug 30 19:52:16 2013 +0400
+++ b/harness/src/main/java/org/openjdk/jcstress/util/VMSupport.java	Fri Sep 27 14:17:28 2013 +0400
@@ -70,7 +70,7 @@
                     for (String name : infraNames) {
                         try {
                             Class<?> aClass = Class.forName(name);
-                            Collections.addAll(im, aClass.getMethods());
+                            Collections.addAll(im, aClass.getDeclaredMethods());
                         } catch (ClassNotFoundException e) {
                             throw new IllegalStateException();
                         }