8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_CLASSFILE_STRINGTABLE_HPP
26 #define SHARE_VM_CLASSFILE_STRINGTABLE_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/hashtable.hpp"
30
31 template <class T, class N> class CompactHashtable;
32 class CompactStringTableWriter;
33 class FileMapInfo;
34 class SerializeClosure;
35
36 class StringTable : public RehashableHashtable<oop, mtSymbol> {
37 friend class VMStructs;
38 friend class Symbol;
39
40 private:
41 // The string table
42 static StringTable* _the_table;
43
44 // Shared string table
45 static CompactHashtable<oop, char> _shared_table;
46 static bool _shared_string_mapped;
47
48 // Set if one bucket is out of balance due to hash algorithm deficiency
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_CLASSFILE_STRINGTABLE_HPP
26 #define SHARE_VM_CLASSFILE_STRINGTABLE_HPP
27
28 #include "utilities/hashtable.hpp"
29
30 template <class T, class N> class CompactHashtable;
31 class CompactStringTableWriter;
32 class FileMapInfo;
33 class SerializeClosure;
34
35 class StringTable : public RehashableHashtable<oop, mtSymbol> {
36 friend class VMStructs;
37 friend class Symbol;
38
39 private:
40 // The string table
41 static StringTable* _the_table;
42
43 // Shared string table
44 static CompactHashtable<oop, char> _shared_table;
45 static bool _shared_string_mapped;
46
47 // Set if one bucket is out of balance due to hash algorithm deficiency
|