equal
deleted
inserted
replaced
146 BasicHashtable(int table_size, int entry_size); |
146 BasicHashtable(int table_size, int entry_size); |
147 BasicHashtable(int table_size, int entry_size, |
147 BasicHashtable(int table_size, int entry_size, |
148 HashtableBucket<F>* buckets, int number_of_entries); |
148 HashtableBucket<F>* buckets, int number_of_entries); |
149 |
149 |
150 // Sharing support. |
150 // Sharing support. |
151 void copy_buckets(char** top, char* end); |
151 size_t count_bytes_for_buckets(); |
152 void copy_table(char** top, char* end); |
152 size_t count_bytes_for_table(); |
|
153 void copy_buckets(char* top, char* end); |
|
154 void copy_table(char* top, char* end); |
153 |
155 |
154 // Bucket handling |
156 // Bucket handling |
155 int hash_to_index(unsigned int full_hash) const { |
157 int hash_to_index(unsigned int full_hash) const { |
156 int h = full_hash % _table_size; |
158 int h = full_hash % _table_size; |
157 assert(h >= 0 && h < _table_size, "Illegal hash value"); |
159 assert(h >= 0 && h < _table_size, "Illegal hash value"); |