Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/memory/SymbolTable.java @ 12825:c90e76575b03
8019375: Internal symbol table size should be tunable.
Reviewed-by: coleenp, kamg
author | kevinw |
---|---|
date | Tue, 08 Oct 2013 09:33:51 +0100 |
parents | 1d1603768966 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12823:ac9cb1d5a202 | 12825:c90e76575b03 |
---|---|
42 } | 42 } |
43 | 43 |
44 private static synchronized void initialize(TypeDataBase db) { | 44 private static synchronized void initialize(TypeDataBase db) { |
45 Type type = db.lookupType("SymbolTable"); | 45 Type type = db.lookupType("SymbolTable"); |
46 theTableField = type.getAddressField("_the_table"); | 46 theTableField = type.getAddressField("_the_table"); |
47 symbolTableSize = db.lookupIntConstant("SymbolTable::symbol_table_size").intValue(); | |
48 } | 47 } |
49 | 48 |
50 // Fields | 49 // Fields |
51 private static AddressField theTableField; | 50 private static AddressField theTableField; |
52 private static int symbolTableSize; | |
53 | 51 |
54 // Accessors | 52 // Accessors |
55 public static SymbolTable getTheTable() { | 53 public static SymbolTable getTheTable() { |
56 Address tmp = theTableField.getValue(); | 54 Address tmp = theTableField.getValue(); |
57 return (SymbolTable) VMObjectFactory.newObject(SymbolTable.class, tmp); | 55 return (SymbolTable) VMObjectFactory.newObject(SymbolTable.class, tmp); |
58 } | |
59 | |
60 public static int getSymbolTableSize() { | |
61 return symbolTableSize; | |
62 } | 56 } |
63 | 57 |
64 public SymbolTable(Address addr) { | 58 public SymbolTable(Address addr) { |
65 super(addr); | 59 super(addr); |
66 } | 60 } |