--- a/hotspot/src/share/vm/jvmci/jvmciCompiler.cpp Thu Jul 27 15:36:15 2017 +0200
+++ b/hotspot/src/share/vm/jvmci/jvmciCompiler.cpp Thu Jul 27 18:06:41 2017 -0400
@@ -194,7 +194,7 @@
}
}
-CompLevel JVMCIRuntime::adjust_comp_level(methodHandle method, bool is_osr, CompLevel level, JavaThread* thread) {
+CompLevel JVMCIRuntime::adjust_comp_level(const methodHandle& method, bool is_osr, CompLevel level, JavaThread* thread) {
if (!thread->adjusting_comp_level()) {
thread->set_adjusting_comp_level(true);
level = adjust_comp_level_inner(method, is_osr, level, thread);