--- a/hotspot/src/share/vm/classfile/classLoader.cpp Thu Jul 27 15:36:15 2017 +0200
+++ b/hotspot/src/share/vm/classfile/classLoader.cpp Thu Jul 27 18:06:41 2017 -0400
@@ -1887,7 +1887,7 @@
*
* TODO: This should be a private method in a CompileTheWorld class.
*/
-static bool can_be_compiled(methodHandle m, int comp_level) {
+static bool can_be_compiled(const methodHandle& m, int comp_level) {
assert(CompileTheWorld, "must be");
// It's not valid to compile a native wrapper for MethodHandle methods