diff --git a/src/share/vm/code/nmethod.cpp b/src/share/vm/code/nmethod.cpp index 2b8ed36245eaaa464d6e2b5a7e27f63e96d41c0f..759ae74e9edaa8bd0411567da3c3be9852a8c983 100644 --- a/src/share/vm/code/nmethod.cpp +++ b/src/share/vm/code/nmethod.cpp @@ -2176,6 +2176,7 @@ void nmethod::metadata_do(void f(Metadata*)) { } } else if (iter.type() == relocInfo::virtual_call_type) { // Check compiledIC holders associated with this nmethod + ResourceMark rm; CompiledIC *ic = CompiledIC_at(&iter); if (ic->is_icholder_call()) { CompiledICHolder* cichk = ic->cached_icholder();