--- a/hotspot/src/share/vm/code/nmethod.cpp Wed Oct 21 13:46:25 2015 +0000
+++ b/hotspot/src/share/vm/code/nmethod.cpp Fri Oct 23 16:48:38 2015 -0400
@@ -558,7 +558,7 @@
#endif
}
-nmethod* nmethod::new_native_nmethod(methodHandle method,
+nmethod* nmethod::new_native_nmethod(const methodHandle& method,
int compile_id,
CodeBuffer *code_buffer,
int vep_offset,
@@ -596,7 +596,7 @@
return nm;
}
-nmethod* nmethod::new_nmethod(methodHandle method,
+nmethod* nmethod::new_nmethod(const methodHandle& method,
int compile_id,
int entry_bci,
CodeOffsets* offsets,