8081320: Backout JDK-8059340: ConstantPool::_resolved_references is missing in heap dump
authorvlivanov
Fri, 29 May 2015 17:05:33 +0300
changeset 31074 0a91f3afaae7
parent 31073 0aef48d34118
child 31075 317ef3b5d6f6
child 31146 22d69730ee60
8081320: Backout JDK-8059340: ConstantPool::_resolved_references is missing in heap dump Reviewed-by: sspitsyn, coleenp
jdk/src/java.base/share/classes/java/lang/Class.java
jdk/src/java.base/share/classes/sun/reflect/Reflection.java
--- a/jdk/src/java.base/share/classes/java/lang/Class.java	Fri May 29 12:49:32 2015 +0200
+++ b/jdk/src/java.base/share/classes/java/lang/Class.java	Fri May 29 17:05:33 2015 +0300
@@ -3653,7 +3653,4 @@
     public AnnotatedType[] getAnnotatedInterfaces() {
          return TypeAnnotationParser.buildAnnotatedInterfaces(getRawTypeAnnotations(), getConstantPool(), this);
     }
-
-    /** An array of resolved objects from constant pool. Used by JVM. */
-    private transient Object[] resolvedReferences;
 }
--- a/jdk/src/java.base/share/classes/sun/reflect/Reflection.java	Fri May 29 12:49:32 2015 +0200
+++ b/jdk/src/java.base/share/classes/sun/reflect/Reflection.java	Fri May 29 17:05:33 2015 +0300
@@ -46,7 +46,7 @@
         map.put(Reflection.class,
             new String[] {"fieldFilterMap", "methodFilterMap"});
         map.put(System.class, new String[] {"security"});
-        map.put(Class.class, new String[] {"classLoader", "resolvedReferences"});
+        map.put(Class.class, new String[] {"classLoader"});
         fieldFilterMap = map;
 
         methodFilterMap = new HashMap<>();