8169766: c1 + Xcomp reresolving call target every invocation
authorneliasso
Wed, 11 Oct 2017 11:24:59 +0200
changeset 48001 600868bd3a8c
parent 48000 089b6bf0d1a7
child 48002 0c88cd009b5f
8169766: c1 + Xcomp reresolving call target every invocation Summary: Set reciever klass for static_bound calls Reviewed-by: kvn
src/hotspot/share/code/compiledIC.cpp
--- 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) {