hotspot/src/share/vm/classfile/stringTable.cpp
changeset 46369 3bf4544bec14
parent 44323 1566bea4793a
parent 46271 979ebd346ecf
child 46488 01c282163d38
--- a/hotspot/src/share/vm/classfile/stringTable.cpp	Thu Apr 06 04:50:34 2017 +0000
+++ b/hotspot/src/share/vm/classfile/stringTable.cpp	Thu Apr 06 22:58:55 2017 +0200
@@ -245,6 +245,7 @@
   assert(!Universe::heap()->is_in_reserved(name),
          "proposed name of symbol must be stable");
 
+  HandleMark hm(THREAD);  // cleanup strings created
   Handle string;
   // try to reuse the string if possible
   if (!string_or_null.is_null()) {