hotspot/src/share/vm/classfile/symbolTable.cpp
changeset 31790 4a08476437e8
parent 31345 1bba15125d8d
child 33148 68fa8b6c4340
--- a/hotspot/src/share/vm/classfile/symbolTable.cpp	Tue Jul 14 16:28:53 2015 +0200
+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp	Wed Jul 15 12:24:41 2015 -0700
@@ -58,14 +58,14 @@
 
   if (DumpSharedSpaces) {
     // Allocate all symbols to CLD shared metaspace
-    sym = new (len, ClassLoaderData::the_null_class_loader_data(), THREAD) Symbol(name, len, -1);
+    sym = new (len, ClassLoaderData::the_null_class_loader_data(), THREAD) Symbol(name, len, PERM_REFCOUNT);
   } else if (c_heap) {
     // refcount starts as 1
     sym = new (len, THREAD) Symbol(name, len, 1);
     assert(sym != NULL, "new should call vm_exit_out_of_memory if C_HEAP is exhausted");
   } else {
     // Allocate to global arena
-    sym = new (len, arena(), THREAD) Symbol(name, len, -1);
+    sym = new (len, arena(), THREAD) Symbol(name, len, PERM_REFCOUNT);
   }
   return sym;
 }