--- old/src/share/vm/compiler/compilerOracle.cpp 2017-07-27 08:49:57.833303758 -0400 +++ new/src/share/vm/compiler/compilerOracle.cpp 2017-07-27 08:49:57.603829057 -0400 @@ -132,7 +132,7 @@ } static TypedMethodOptionMatcher* parse_method_pattern(char*& line, const char*& error_msg); - TypedMethodOptionMatcher* match(methodHandle method, const char* opt, OptionType type); + TypedMethodOptionMatcher* match(const methodHandle& method, const char* opt, OptionType type); void init(const char* opt, OptionType type, TypedMethodOptionMatcher* next) { _next = next; @@ -261,7 +261,7 @@ return tom; } -TypedMethodOptionMatcher* TypedMethodOptionMatcher::match(methodHandle method, const char* opt, OptionType type) { +TypedMethodOptionMatcher* TypedMethodOptionMatcher::match(const methodHandle& method, const char* opt, OptionType type) { TypedMethodOptionMatcher* current = this; while (current != NULL) { // Fastest compare first. @@ -289,7 +289,7 @@ return; } -static bool check_predicate(OracleCommand command, methodHandle method) { +static bool check_predicate(OracleCommand command, const methodHandle& method) { return ((lists[command] != NULL) && !method.is_null() && lists[command]->match(method));