comparison src/share/vm/utilities/hashtable.hpp @ 6172:246d977b51f2

7178670: runtime/7158800/BadUtf8.java fails in SymbolTable::rehash_table Summary: Cannot delete _buckets and HashtableEntries in shared space (CDS) Reviewed-by: acorn, kvn, dlong, dcubed, kamg
author coleenp
date Mon, 25 Jun 2012 21:33:35 -0400
parents e9140bf80b4a
children d2a62e0f25eb
comparison
equal deleted inserted replaced
6170:d8a240abb23a 6172:246d977b51f2
215 _end_block = src->_end_block; 215 _end_block = src->_end_block;
216 src->_end_block = NULL; 216 src->_end_block = NULL;
217 } 217 }
218 218
219 // Free the buckets in this hashtable 219 // Free the buckets in this hashtable
220 void free_buckets() { 220 void free_buckets();
221 if (NULL != _buckets) {
222 FREE_C_HEAP_ARRAY(HashtableBucket, _buckets);
223 _buckets = NULL;
224 }
225 }
226 221
227 public: 222 public:
228 int table_size() { return _table_size; } 223 int table_size() { return _table_size; }
229 void set_entry(int index, BasicHashtableEntry* entry); 224 void set_entry(int index, BasicHashtableEntry* entry);
230 225