From 64fb6ad830d023e0bac1843d09c898e537faaaaf Mon Sep 17 00:00:00 2001 From: shade Date: Tue, 19 Mar 2019 17:30:58 +0100 Subject: [PATCH] 8220718: Missing ResourceMark in nmethod::metadata_do Reviewed-by: mdoerr, zgu --- src/share/vm/code/nmethod.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share/vm/code/nmethod.cpp b/src/share/vm/code/nmethod.cpp index 2b8ed3624..759ae74e9 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(); -- GitLab