--- old/src/hotspot/share/ci/ciMethod.cpp 2017-11-13 13:59:25.601431985 +0530 +++ new/src/hotspot/share/ci/ciMethod.cpp 2017-11-13 13:59:25.385539982 +0530 @@ -729,6 +729,7 @@ #ifndef PRODUCT if (TraceDependencies && target() != NULL && target() != root_m->get_Method()) { + ResourceMark rm; tty->print("found a non-root unique target method"); tty->print_cr(" context = %s", actual_recv->get_Klass()->external_name()); tty->print(" method = ");