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. |
62 _entry_size = entry_size; |
62 _entry_size = entry_size; |
63 _free_list = NULL; |
63 _free_list = NULL; |
64 _first_free_entry = NULL; |
64 _first_free_entry = NULL; |
65 _end_block = NULL; |
65 _end_block = NULL; |
66 _number_of_entries = number_of_entries; |
66 _number_of_entries = number_of_entries; |
67 #ifdef ASSERT |
|
68 _lookup_warning = false; |
|
69 _lookup_count = 0; |
|
70 _lookup_length = 0; |
|
71 #endif |
|
72 } |
67 } |
73 |
68 |
74 |
69 |
75 // The following method is MT-safe and may be used with caution. |
70 // The following method is MT-safe and may be used with caution. |
76 template <MEMFLAGS F> inline BasicHashtableEntry<F>* BasicHashtable<F>::bucket(int i) const { |
71 template <MEMFLAGS F> inline BasicHashtableEntry<F>* BasicHashtable<F>::bucket(int i) const { |