--- a/hotspot/src/share/vm/code/nmethod.hpp Wed Oct 21 13:46:25 2015 +0000
+++ b/hotspot/src/share/vm/code/nmethod.hpp Fri Oct 23 16:48:38 2015 -0400
@@ -307,7 +307,7 @@
public:
// create nmethod with entry_bci
- static nmethod* new_nmethod(methodHandle method,
+ static nmethod* new_nmethod(const methodHandle& method,
int compile_id,
int entry_bci,
CodeOffsets* offsets,
@@ -327,7 +327,7 @@
#endif
);
- static nmethod* new_native_nmethod(methodHandle method,
+ static nmethod* new_native_nmethod(const methodHandle& method,
int compile_id,
CodeBuffer *code_buffer,
int vep_offset,