< prev index next >

src/hotspot/share/code/nmethod.cpp

Print this page

        

@@ -2401,10 +2401,11 @@
             }
           }
           return st.as_string();
         }
         case relocInfo::virtual_call_type: {
+          ResourceMark rm;
           stringStream st;
           st.print_raw("virtual_call");
           virtual_call_Relocation* r = iter.virtual_call_reloc();
           Method* m = r->method_value();
           if (m != NULL) {

@@ -2412,10 +2413,11 @@
             m->print_short_name(&st);
           }
           return st.as_string();
         }
         case relocInfo::opt_virtual_call_type: {
+          ResourceMark rm;
           stringStream st;
           st.print_raw("optimized virtual_call");
           opt_virtual_call_Relocation* r = iter.opt_virtual_call_reloc();
           Method* m = r->method_value();
           if (m != NULL) {

@@ -2423,10 +2425,11 @@
             m->print_short_name(&st);
           }
           return st.as_string();
         }
         case relocInfo::static_call_type: {
+          ResourceMark rm;
           stringStream st;
           st.print_raw("static_call");
           static_call_Relocation* r = iter.static_call_reloc();
           Method* m = r->method_value();
           if (m != NULL) {
< prev index next >