8169766: c1 + Xcomp reresolving call target every invocation
Summary: Set reciever klass for static_bound calls
Reviewed-by: kvn
--- a/src/hotspot/share/code/compiledIC.cpp Wed Oct 11 11:22:21 2017 +0200
+++ b/src/hotspot/share/code/compiledIC.cpp Wed Oct 11 11:24:59 2017 +0200
@@ -494,7 +494,7 @@
bool far_c2a = entry != NULL && caller_is_nmethod && method_code->is_far_code();
if (entry != NULL && !far_c2a) {
// Call to near compiled code (nmethod or aot).
- info.set_compiled_entry(entry, (static_bound || is_optimized) ? NULL : receiver_klass, is_optimized);
+ info.set_compiled_entry(entry, is_optimized ? NULL : receiver_klass, is_optimized);
} else {
if (is_optimized) {
if (far_c2a) {