comparison agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWithKlass.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
35 protected Klass getKlass() { 35 protected Klass getKlass() {
36 return method().getConstants().getKlassRefAt(index()); 36 return method().getConstants().getKlassRefAt(index());
37 } 37 }
38 38
39 public Symbol getClassName() { 39 public Symbol getClassName() {
40 Oop obj = method().getConstants().getObjAt(index()); 40 ConstantPool.CPSlot obj = method().getConstants().getSlotAt(index());
41 if (obj instanceof Symbol) { 41 if (obj.isMetaData()) {
42 return (Symbol)obj; 42 return obj.getSymbol();
43 } else { 43 } else {
44 return ((Klass)obj).getName(); 44 return ((Klass)obj.getOop()).getName();
45 } 45 }
46 } 46 }
47 47
48 public String toString() { 48 public String toString() {
49 StringBuffer buf = new StringBuffer(); 49 StringBuffer buf = new StringBuffer();