equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
292 } |
292 } |
293 |
293 |
294 }; |
294 }; |
295 |
295 |
296 template <class T, MEMFLAGS F> class RehashableHashtable : public Hashtable<T, F> { |
296 template <class T, MEMFLAGS F> class RehashableHashtable : public Hashtable<T, F> { |
|
297 friend class VMStructs; |
297 protected: |
298 protected: |
298 |
299 |
299 enum { |
300 enum { |
300 rehash_count = 100, |
301 rehash_count = 100, |
301 rehash_multiple = 60 |
302 rehash_multiple = 60 |