hotspot/src/share/vm/classfile/symbolTable.hpp
author stefank
Tue, 23 Nov 2010 13:22:55 -0800
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 8076 96d498ec7ae1
permissions -rw-r--r--
6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
     2
 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2332
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2332
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2332
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#ifndef SHARE_VM_CLASSFILE_SYMBOLTABLE_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#define SHARE_VM_CLASSFILE_SYMBOLTABLE_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "memory/allocation.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "oops/symbolOop.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "utilities/hashtable.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
// The symbol table holds all symbolOops and corresponding interned strings.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
// symbolOops and literal strings should be canonicalized.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// The interned strings are created lazily.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// It is implemented as an open hash table with a fixed number of buckets.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// %note:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
//  - symbolTableEntrys are allocated in blocks to reduce the space overhead.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
class BoolObjectClosure;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
class SymbolTable : public Hashtable {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  friend class VMStructs;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  // The symbol table
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  static SymbolTable* _the_table;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  // Adding elements
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  symbolOop basic_add(int index, u1* name, int len,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
                      unsigned int hashValue, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  bool basic_add(constantPoolHandle cp, int names_count,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
                 const char** names, int* lengths, int* cp_indices,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
                 unsigned int* hashValues, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  // Table size
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
    symbol_table_size = 20011
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  symbolOop lookup(int index, const char* name, int len, unsigned int hash);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  SymbolTable()
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
    : Hashtable(symbol_table_size, sizeof (HashtableEntry)) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  SymbolTable(HashtableBucket* t, int number_of_entries)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
    : Hashtable(symbol_table_size, sizeof (HashtableEntry), t,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
                number_of_entries) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
    symbol_alloc_batch_size = 8
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
  // The symbol table
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  static SymbolTable* the_table() { return _the_table; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  static void create_table() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
    assert(_the_table == NULL, "One symbol table allowed.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
    _the_table = new SymbolTable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  static void create_table(HashtableBucket* t, int length,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
                           int number_of_entries) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
    assert(_the_table == NULL, "One symbol table allowed.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
    assert(length == symbol_table_size * sizeof(HashtableBucket),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
           "bad shared symbol size.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
    _the_table = new SymbolTable(t, number_of_entries);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  static symbolOop lookup(const char* name, int len, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  // lookup only, won't add. Also calculate hash.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  static symbolOop lookup_only(const char* name, int len, unsigned int& hash);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  // Only copy to C string to be added if lookup failed.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  static symbolOop lookup(symbolHandle sym, int begin, int end, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
2332
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   101
  // jchar (utf16) version of lookups
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   102
  static symbolOop lookup_unicode(const jchar* name, int len, TRAPS);
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   103
  static symbolOop lookup_only_unicode(const jchar* name, int len, unsigned int& hash);
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   104
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  static void add(constantPoolHandle cp, int names_count,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
                  const char** names, int* lengths, int* cp_indices,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
                  unsigned int* hashValues, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  // GC support
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  //   Delete pointers to otherwise-unreachable objects.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  static void unlink(BoolObjectClosure* cl) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
    the_table()->Hashtable::unlink(cl);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  // Invoke "f->do_oop" on the locations of all oops in the table.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  static void oops_do(OopClosure* f) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
    the_table()->Hashtable::oops_do(f);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  // Symbol lookup
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  static symbolOop lookup(int index, const char* name, int len, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  // Needed for preloading classes in signatures when compiling.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  // Returns the symbol is already present in symbol table, otherwise
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  // NULL.  NO ALLOCATION IS GUARANTEED!
2332
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   126
  static symbolOop probe(const char* name, int len) {
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   127
    unsigned int ignore_hash;
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   128
    return lookup_only(name, len, ignore_hash);
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   129
  }
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   130
  static symbolOop probe_unicode(const jchar* name, int len) {
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   131
    unsigned int ignore_hash;
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   132
    return lookup_only_unicode(name, len, ignore_hash);
5c7b6f4ce0a1 6814659: separable cleanups and subroutines for 6655638
jrose
parents: 1
diff changeset
   133
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  // Histogram
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  static void print_histogram()     PRODUCT_RETURN;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  // Debugging
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  static void verify();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  // Sharing
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  static void copy_buckets(char** top, char*end) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
    the_table()->Hashtable::copy_buckets(top, end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  static void copy_table(char** top, char*end) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
    the_table()->Hashtable::copy_table(top, end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  static void reverse(void* boundary = NULL) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
    ((Hashtable*)the_table())->reverse(boundary);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
class StringTable : public Hashtable {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  friend class VMStructs;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
  // The string table
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  static StringTable* _the_table;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  static oop intern(Handle string_or_null, jchar* chars, int length, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  oop basic_add(int index, Handle string_or_null, jchar* name, int len,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
                unsigned int hashValue, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  // Table size
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
    string_table_size = 1009
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  oop lookup(int index, jchar* chars, int length, unsigned int hashValue);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  StringTable() : Hashtable(string_table_size, sizeof (HashtableEntry)) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  StringTable(HashtableBucket* t, int number_of_entries)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
    : Hashtable(string_table_size, sizeof (HashtableEntry), t,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
                number_of_entries) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  // The string table
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  static StringTable* the_table() { return _the_table; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  static void create_table() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
    assert(_the_table == NULL, "One string table allowed.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
    _the_table = new StringTable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  static void create_table(HashtableBucket* t, int length,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
                           int number_of_entries) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
    assert(_the_table == NULL, "One string table allowed.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
    assert(length == string_table_size * sizeof(HashtableBucket),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
           "bad shared string size.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
    _the_table = new StringTable(t, number_of_entries);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  static int hash_string(jchar* s, int len);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  // GC support
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  //   Delete pointers to otherwise-unreachable objects.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  static void unlink(BoolObjectClosure* cl) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
    the_table()->Hashtable::unlink(cl);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  // Invoke "f->do_oop" on the locations of all oops in the table.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  static void oops_do(OopClosure* f) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
    the_table()->Hashtable::oops_do(f);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // Probing
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  static oop lookup(symbolOop symbol);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  // Interning
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
  static oop intern(symbolOop symbol, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  static oop intern(oop string, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  static oop intern(const char *utf8_string, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  // Debugging
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  static void verify();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  // Sharing
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  static void copy_buckets(char** top, char*end) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
    the_table()->Hashtable::copy_buckets(top, end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  static void copy_table(char** top, char*end) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
    the_table()->Hashtable::copy_table(top, end);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  static void reverse() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
    ((BasicHashtable*)the_table())->reverse();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   232
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   233
#endif // SHARE_VM_CLASSFILE_SYMBOLTABLE_HPP