hotspot/src/share/vm/classfile/symbolTable.hpp
changeset 14487 9a40ad461ee9
parent 13728 882756847a04
child 16601 7c6db0c8952f
--- a/hotspot/src/share/vm/classfile/symbolTable.hpp	Fri Nov 09 22:22:53 2012 -0800
+++ b/hotspot/src/share/vm/classfile/symbolTable.hpp	Mon Nov 12 15:58:11 2012 -0500
@@ -262,19 +262,14 @@
   // The string table
   static StringTable* the_table() { return _the_table; }
 
+  // Size of one bucket in the string table.  Used when checking for rollover.
+  static uint bucket_size() { return sizeof(HashtableBucket<mtSymbol>); }
+
   static void create_table() {
     assert(_the_table == NULL, "One string table allowed.");
     _the_table = new StringTable();
   }
 
-  static void create_table(HashtableBucket<mtSymbol>* t, int length,
-                           int number_of_entries) {
-    assert(_the_table == NULL, "One string table allowed.");
-    assert((size_t)length == StringTableSize * sizeof(HashtableBucket<mtSymbol>),
-           "bad shared string size.");
-    _the_table = new StringTable(t, number_of_entries);
-  }
-
   // GC support
   //   Delete pointers to otherwise-unreachable objects.
   static void unlink(BoolObjectClosure* cl);