--- a/hotspot/src/share/vm/interpreter/invocationCounter.cpp Thu Jul 27 15:36:15 2017 +0200
+++ b/hotspot/src/share/vm/interpreter/invocationCounter.cpp Thu Jul 27 18:06:41 2017 -0400
@@ -104,7 +104,7 @@
}
-static address do_nothing(methodHandle method, TRAPS) {
+static address do_nothing(const methodHandle& method, TRAPS) {
// dummy action for inactive invocation counters
MethodCounters* mcs = method->method_counters();
assert(mcs != NULL, "");
@@ -114,7 +114,7 @@
}
-static address do_decay(methodHandle method, TRAPS) {
+static address do_decay(const methodHandle& method, TRAPS) {
// decay invocation counters so compilation gets delayed
MethodCounters* mcs = method->method_counters();
assert(mcs != NULL, "");
@@ -130,7 +130,7 @@
_action[state] = action;
}
-address dummy_invocation_counter_overflow(methodHandle m, TRAPS) {
+address dummy_invocation_counter_overflow(const methodHandle& m, TRAPS) {
ShouldNotReachHere();
return NULL;
}