< prev index next >

src/hotspot/share/runtime/sharedRuntime.cpp

Print this page

        

@@ -1784,26 +1784,29 @@
     CodeBlob* callee = CodeCache::find_blob(destination);
     // callee == cb seems weird. It means calling interpreter thru stub.
     if (callee != NULL && (callee == cb || callee->is_adapter_blob())) {
       // static call or optimized virtual
       if (TraceCallFixup) {
+        ResourceMark rm;
         tty->print("fixup callsite           at " INTPTR_FORMAT " to compiled code for", p2i(caller_pc));
         moop->print_short_name(tty);
         tty->print_cr(" to " INTPTR_FORMAT, p2i(entry_point));
       }
       return true;
     } else {
       if (TraceCallFixup) {
+        ResourceMark rm;
         tty->print("failed to fixup callsite at " INTPTR_FORMAT " to compiled code for", p2i(caller_pc));
         moop->print_short_name(tty);
         tty->print_cr(" to " INTPTR_FORMAT, p2i(entry_point));
       }
       // assert is too strong could also be resolve destinations.
       // assert(InlineCacheBuffer::contains(destination) || VtableStubs::contains(destination), "must be");
     }
   } else {
     if (TraceCallFixup) {
+      ResourceMark rm;
       tty->print("already patched callsite at " INTPTR_FORMAT " to compiled code for", p2i(caller_pc));
       moop->print_short_name(tty);
       tty->print_cr(" to " INTPTR_FORMAT, p2i(entry_point));
     }
   }
< prev index next >