hotspot/src/share/vm/jvmci/jvmciRuntime.cpp
changeset 35835 7fade08f69b2
parent 35499 b79827ea1b9f
child 36333 dcca1e98a2ab
--- a/hotspot/src/share/vm/jvmci/jvmciRuntime.cpp	Fri Feb 05 18:24:41 2016 +0000
+++ b/hotspot/src/share/vm/jvmci/jvmciRuntime.cpp	Fri Feb 05 12:27:02 2016 -0800
@@ -634,6 +634,7 @@
 
 void JVMCIRuntime::initialize_HotSpotJVMCIRuntime(TRAPS) {
   if (JNIHandles::resolve(_HotSpotJVMCIRuntime_instance) == NULL) {
+    ResourceMark rm;
 #ifdef ASSERT
     // This should only be called in the context of the JVMCI class being initialized
     TempNewSymbol name = SymbolTable::new_symbol("jdk/vm/ci/runtime/JVMCI", CHECK);