changeset 8954:35d9d8c13d30

8220718: Missing ResourceMark in nmethod::metadata_do Reviewed-by: mdoerr, zgu
author shade
date Tue, 19 Mar 2019 17:30:58 +0100
parents a49d6f06f0d5
children 71aba4a921a0
files src/share/vm/code/nmethod.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp	Thu Jan 31 04:49:46 2019 -0800
+++ b/src/share/vm/code/nmethod.cpp	Tue Mar 19 17:30:58 2019 +0100
@@ -2176,6 +2176,7 @@
         }
       } 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();