comparison agent/src/share/classes/sun/jvm/hotspot/oops/ConstantPool.java @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents da91efe96a93
children f16e75e0cf11
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
119 public U2Array getOperands() { return new U2Array(operands.getValue(getAddress())); } 119 public U2Array getOperands() { return new U2Array(operands.getValue(getAddress())); }
120 public ConstantPoolCache getCache() { 120 public ConstantPoolCache getCache() {
121 Address addr = cache.getValue(getAddress()); 121 Address addr = cache.getValue(getAddress());
122 return (ConstantPoolCache) VMObjectFactory.newObject(ConstantPoolCache.class, addr); 122 return (ConstantPoolCache) VMObjectFactory.newObject(ConstantPoolCache.class, addr);
123 } 123 }
124 public Klass getPoolHolder() { return (Klass) poolHolder.getValue(this); } 124 public InstanceKlass getPoolHolder() { return (InstanceKlass)poolHolder.getValue(this); }
125 public int getLength() { return (int)length.getValue(getAddress()); } 125 public int getLength() { return (int)length.getValue(getAddress()); }
126 public Oop getResolvedReferences() { 126 public Oop getResolvedReferences() {
127 Address handle = resolvedReferences.getValue(getAddress()); 127 Address handle = resolvedReferences.getValue(getAddress());
128 if (handle != null) { 128 if (handle != null) {
129 // Load through the handle 129 // Load through the handle