51 return sizeof(DictionaryEntry); |
51 return sizeof(DictionaryEntry); |
52 } |
52 } |
53 } |
53 } |
54 |
54 |
55 Dictionary::Dictionary(ClassLoaderData* loader_data, int table_size, bool resizable) |
55 Dictionary::Dictionary(ClassLoaderData* loader_data, int table_size, bool resizable) |
56 : _loader_data(loader_data), _resizable(resizable), _needs_resizing(false), |
56 : Hashtable<InstanceKlass*, mtClass>(table_size, (int)entry_size()), |
57 Hashtable<InstanceKlass*, mtClass>(table_size, (int)entry_size()) { |
57 _resizable(resizable), _needs_resizing(false), _loader_data(loader_data) { |
58 }; |
58 }; |
59 |
59 |
60 |
60 |
61 Dictionary::Dictionary(ClassLoaderData* loader_data, |
61 Dictionary::Dictionary(ClassLoaderData* loader_data, |
62 int table_size, HashtableBucket<mtClass>* t, |
62 int table_size, HashtableBucket<mtClass>* t, |
63 int number_of_entries, bool resizable) |
63 int number_of_entries, bool resizable) |
64 : _loader_data(loader_data), _resizable(resizable), _needs_resizing(false), |
64 : Hashtable<InstanceKlass*, mtClass>(table_size, (int)entry_size(), t, number_of_entries), |
65 Hashtable<InstanceKlass*, mtClass>(table_size, (int)entry_size(), t, number_of_entries) { |
65 _resizable(resizable), _needs_resizing(false), _loader_data(loader_data) { |
66 }; |
66 }; |
67 |
67 |
68 Dictionary::~Dictionary() { |
68 Dictionary::~Dictionary() { |
69 DictionaryEntry* probe = NULL; |
69 DictionaryEntry* probe = NULL; |
70 for (int index = 0; index < table_size(); index++) { |
70 for (int index = 0; index < table_size(); index++) { |