equal
deleted
inserted
replaced
51 ProtectionDomainCacheTable* _pd_cache_table; |
51 ProtectionDomainCacheTable* _pd_cache_table; |
52 |
52 |
53 DictionaryEntry* get_entry(int index, unsigned int hash, |
53 DictionaryEntry* get_entry(int index, unsigned int hash, |
54 Symbol* name, ClassLoaderData* loader_data); |
54 Symbol* name, ClassLoaderData* loader_data); |
55 |
55 |
|
56 protected: |
56 DictionaryEntry* bucket(int i) { |
57 DictionaryEntry* bucket(int i) { |
57 return (DictionaryEntry*)Hashtable<Klass*, mtClass>::bucket(i); |
58 return (DictionaryEntry*)Hashtable<Klass*, mtClass>::bucket(i); |
58 } |
59 } |
59 |
60 |
60 // The following method is not MT-safe and must be done under lock. |
61 // The following method is not MT-safe and must be done under lock. |
64 |
65 |
65 void add_entry(int index, DictionaryEntry* new_entry) { |
66 void add_entry(int index, DictionaryEntry* new_entry) { |
66 Hashtable<Klass*, mtClass>::add_entry(index, (HashtableEntry<Klass*, mtClass>*)new_entry); |
67 Hashtable<Klass*, mtClass>::add_entry(index, (HashtableEntry<Klass*, mtClass>*)new_entry); |
67 } |
68 } |
68 |
69 |
|
70 static size_t entry_size(); |
69 public: |
71 public: |
70 Dictionary(int table_size); |
72 Dictionary(int table_size); |
71 Dictionary(int table_size, HashtableBucket<mtClass>* t, int number_of_entries); |
73 Dictionary(int table_size, HashtableBucket<mtClass>* t, int number_of_entries); |
72 |
74 |
73 DictionaryEntry* new_entry(unsigned int hash, Klass* klass, ClassLoaderData* loader_data); |
75 DictionaryEntry* new_entry(unsigned int hash, Klass* klass, ClassLoaderData* loader_data); |