src/hotspot/share/aot/aotCompiledMethod.cpp
changeset 50995 3c59afe1afc9
parent 50416 ef980b9ac191
child 51341 09cc8813ae51
--- a/src/hotspot/share/aot/aotCompiledMethod.cpp	Fri Jul 06 00:40:12 2018 +0530
+++ b/src/hotspot/share/aot/aotCompiledMethod.cpp	Thu Jul 05 09:38:15 2018 +0200
@@ -272,6 +272,7 @@
           if (md != _method) f(md);
         }
       } else if (iter.type() == relocInfo::virtual_call_type) {
+        ResourceMark rm;
         // Check compiledIC holders associated with this nmethod
         CompiledIC *ic = CompiledIC_at(&iter);
         if (ic->is_icholder_call()) {
@@ -444,6 +445,7 @@
     return;
   }
 
+  ResourceMark rm;
   RelocIterator iter(this);
   while (iter.next()) {
     iter.reloc()->clear_inline_cache();