comparison agent/src/share/classes/sun/jvm/hotspot/utilities/HashtableEntry.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
39 } 39 }
40 }); 40 });
41 } 41 }
42 42
43 private static synchronized void initialize(TypeDataBase db) { 43 private static synchronized void initialize(TypeDataBase db) {
44 Type type = db.lookupType("HashtableEntry"); 44 Type type = db.lookupType("HashtableEntry<intptr_t>");
45 literalField = type.getOopField("_literal"); 45 literalField = type.getAddressField("_literal");
46 } 46 }
47 47
48 // Fields 48 // Fields
49 private static OopField literalField; 49 private static AddressField literalField;
50 50
51 // Accessors 51 // Accessors
52 public Oop literal() { 52 public Address literalValue() {
53 return VM.getVM().getObjectHeap().newOop(literalField.getValue(addr)); 53 return literalField.getValue(addr);
54 } 54 }
55 55
56 public HashtableEntry(Address addr) { 56 public HashtableEntry(Address addr) {
57 super(addr); 57 super(addr);
58 } 58 }