--- 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();