8140274: methodHandles and constantPoolHandles should be passed as const references

Modified code to use const reference parameters

Reviewed-by: sspitsyn, twisti
This commit is contained in:
Coleen Phillimore 2015-10-23 16:48:38 -04:00
parent 686fb800c8
commit f1e89ea4cc
111 changed files with 521 additions and 515 deletions

View file

@ -307,7 +307,7 @@ class nmethod : public CodeBlob {
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 @@ class nmethod : public CodeBlob {
#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,