comparison agent/src/share/classes/sun/jvm/hotspot/oops/Method.java @ 2177:3582bf76420e

6990754: Use native memory and reference counting to implement SymbolTable Summary: move symbols from permgen into C heap and reference count them Reviewed-by: never, acorn, jmasa, stefank
author coleenp
date Thu, 27 Jan 2011 16:11:27 -0800
parents c18cbe5936b8
children 1d1603768966
comparison
equal deleted inserted replaced
2176:27e4ea99855d 2177:3582bf76420e
194 public Address getCode() { return codeField.getValue(this); } 194 public Address getCode() { return codeField.getValue(this); }
195 public Address getInterpreterEntry() { return interpreterEntryField.getValue(this); } 195 public Address getInterpreterEntry() { return interpreterEntryField.getValue(this); }
196 public Address getFromCompiledCodeEntryPoint() { return fromCompiledCodeEntryPointField.getValue(this); } 196 public Address getFromCompiledCodeEntryPoint() { return fromCompiledCodeEntryPointField.getValue(this); }
197 */ 197 */
198 // Accessors 198 // Accessors
199 public Symbol getName() { return (Symbol) getConstants().getObjAt(getNameIndex()); } 199 public Symbol getName() { return getConstants().getSymbolAt(getNameIndex()); }
200 public Symbol getSignature() { return (Symbol) getConstants().getObjAt(getSignatureIndex()); } 200 public Symbol getSignature() { return getConstants().getSymbolAt(getSignatureIndex()); }
201 public Symbol getGenericSignature() { 201 public Symbol getGenericSignature() {
202 long index = getGenericSignatureIndex(); 202 long index = getGenericSignatureIndex();
203 return (index != 0L) ? (Symbol) getConstants().getObjAt(index) : null; 203 return (index != 0L) ? getConstants().getSymbolAt(index) : null;
204 } 204 }
205 205
206 // Method holder (the Klass holding this method) 206 // Method holder (the Klass holding this method)
207 public Klass getMethodHolder() { return getConstants().getPoolHolder(); } 207 public Klass getMethodHolder() { return getConstants().getPoolHolder(); }
208 208