hotspot/src/share/vm/classfile/symbolTable.cpp
changeset 20079 edbc2f7b38ef
parent 18091 ddde9f0f414d
child 20085 f27fdaa8f89a
--- a/hotspot/src/share/vm/classfile/symbolTable.cpp	Wed Sep 18 15:59:41 2013 +0200
+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp	Fri Sep 20 10:53:28 2013 +0200
@@ -341,7 +341,7 @@
 
 Symbol* SymbolTable::basic_add(int index_arg, u1 *name, int len,
                                unsigned int hashValue_arg, bool c_heap, TRAPS) {
-  assert(!Universe::heap()->is_in_reserved(name) || GC_locker::is_active(),
+  assert(!Universe::heap()->is_in_reserved(name),
          "proposed name of symbol must be stable");
 
   // Don't allow symbols to be created which cannot fit in a Symbol*.
@@ -685,7 +685,7 @@
   if (found_string != NULL) return found_string;
 
   debug_only(StableMemoryChecker smc(name, len * sizeof(name[0])));
-  assert(!Universe::heap()->is_in_reserved(name) || GC_locker::is_active(),
+  assert(!Universe::heap()->is_in_reserved(name),
          "proposed name of symbol must be stable");
 
   Handle string;