Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/symbolTable.cpp @ 20493:152cf4afc11f
8056084: Refactor Hashtable to allow implementations without rehashing support
Reviewed-by: gziemski, jmasa, brutisso, coleenp, tschatzl
author | mgerdin |
---|---|
date | Fri, 29 Aug 2014 13:08:01 +0200 |
parents | 833b0f92429a |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20492:50d3433155d9 | 20493:152cf4afc11f |
---|---|
203 return sym; | 203 return sym; |
204 } | 204 } |
205 } | 205 } |
206 } | 206 } |
207 // If the bucket size is too deep check if this hash code is insufficient. | 207 // If the bucket size is too deep check if this hash code is insufficient. |
208 if (count >= BasicHashtable<mtSymbol>::rehash_count && !needs_rehashing()) { | 208 if (count >= rehash_count && !needs_rehashing()) { |
209 _needs_rehashing = check_rehash_table(count); | 209 _needs_rehashing = check_rehash_table(count); |
210 } | 210 } |
211 return NULL; | 211 return NULL; |
212 } | 212 } |
213 | 213 |
654 return l->literal(); | 654 return l->literal(); |
655 } | 655 } |
656 } | 656 } |
657 } | 657 } |
658 // If the bucket size is too deep check if this hash code is insufficient. | 658 // If the bucket size is too deep check if this hash code is insufficient. |
659 if (count >= BasicHashtable<mtSymbol>::rehash_count && !needs_rehashing()) { | 659 if (count >= rehash_count && !needs_rehashing()) { |
660 _needs_rehashing = check_rehash_table(count); | 660 _needs_rehashing = check_rehash_table(count); |
661 } | 661 } |
662 return NULL; | 662 return NULL; |
663 } | 663 } |
664 | 664 |