equal
deleted
inserted
replaced
99 entry->set_next(NULL); |
99 entry->set_next(NULL); |
100 return entry; |
100 return entry; |
101 } |
101 } |
102 |
102 |
103 template <MEMFLAGS F> void BasicHashtable<F>::free_buckets() { |
103 template <MEMFLAGS F> void BasicHashtable<F>::free_buckets() { |
104 if (NULL != _buckets) { |
104 FREE_C_HEAP_ARRAY(HashtableBucket, _buckets); |
105 FREE_C_HEAP_ARRAY(HashtableBucket, _buckets); |
105 _buckets = NULL; |
106 _buckets = NULL; |
|
107 } |
|
108 } |
106 } |
109 |
107 |
110 // For oops and Strings the size of the literal is interesting. For other types, nobody cares. |
108 // For oops and Strings the size of the literal is interesting. For other types, nobody cares. |
111 static int literal_size(ConstantPool*) { return 0; } |
109 static int literal_size(ConstantPool*) { return 0; } |
112 static int literal_size(Klass*) { return 0; } |
110 static int literal_size(Klass*) { return 0; } |
304 template class BasicHashtable<mtSymbol>; |
302 template class BasicHashtable<mtSymbol>; |
305 template class BasicHashtable<mtCode>; |
303 template class BasicHashtable<mtCode>; |
306 template class BasicHashtable<mtInternal>; |
304 template class BasicHashtable<mtInternal>; |
307 template class BasicHashtable<mtModule>; |
305 template class BasicHashtable<mtModule>; |
308 template class BasicHashtable<mtCompiler>; |
306 template class BasicHashtable<mtCompiler>; |
|
307 template class BasicHashtable<mtTracing>; |
309 |
308 |
310 template void BasicHashtable<mtClass>::verify_table<DictionaryEntry>(char const*); |
309 template void BasicHashtable<mtClass>::verify_table<DictionaryEntry>(char const*); |
311 template void BasicHashtable<mtModule>::verify_table<ModuleEntry>(char const*); |
310 template void BasicHashtable<mtModule>::verify_table<ModuleEntry>(char const*); |
312 template void BasicHashtable<mtModule>::verify_table<PackageEntry>(char const*); |
311 template void BasicHashtable<mtModule>::verify_table<PackageEntry>(char const*); |
313 template void BasicHashtable<mtClass>::verify_table<ProtectionDomainCacheEntry>(char const*); |
312 template void BasicHashtable<mtClass>::verify_table<ProtectionDomainCacheEntry>(char const*); |