< prev index next >

src/hotspot/share/interpreter/linkResolver.cpp

Print this page

        

@@ -464,10 +464,11 @@
       }
       methodHandle result = SystemDictionary::find_method_handle_intrinsic(iid,
                                                               basic_signature,
                                                               CHECK_NULL);
       if (result.not_null()) {
+        ResourceMark rm(THREAD);
         assert(result->is_method_handle_intrinsic(), "MH.invokeBasic or MH.linkTo* intrinsic");
         assert(result->intrinsic_id() != vmIntrinsics::_invokeGeneric, "wrong place to find this");
         assert(basic_signature == result->signature(), "predict the result signature");
         if (TraceMethodHandles) {
           ttyLocker ttyl;

@@ -502,10 +503,11 @@
                                                             link_info.current_klass(),
                                                             &appendix,
                                                             &method_type,
                                                             CHECK_NULL);
       if (TraceMethodHandles) {
+        ResourceMark rm(THREAD);
         ttyLocker ttyl;
         tty->print("lookup_polymorphic_method => (via Java) ");
         result->print_on(tty);
         tty->print("  lookup_polymorphic_method => appendix = ");
         if (appendix.is_null())  tty->print_cr("(none)");
< prev index next >