diff src/hotspot/cpu/s390/c1_LIRGenerator_s390.cpp @ 50458:c63bdf53a1a7

8202399: [C1] LIRGenerator::do_CheckCast needs to exclude is_invokespecial_receiver_check() when using PatchAlot Reviewed-by: kvn Contributed-by: Vladimir Ivanov <vladimir.x.ivanov@oracle.com>
author dholmes
date Mon, 30 Apr 2018 20:29:19 -0400
parents 4bb58f644e4e
children 9010b580d8a9
line wrap: on
line diff
--- a/src/hotspot/cpu/s390/c1_LIRGenerator_s390.cpp	Mon Apr 30 17:50:05 2018 -0400
+++ b/src/hotspot/cpu/s390/c1_LIRGenerator_s390.cpp	Mon Apr 30 20:29:19 2018 -0400
@@ -875,7 +875,7 @@
   LIRItem obj(x->obj(), this);
 
   CodeEmitInfo* patching_info = NULL;
-  if (!x->klass()->is_loaded() || (PatchALot && !x->is_incompatible_class_change_check())) {
+  if (!x->klass()->is_loaded() || (PatchALot && !x->is_incompatible_class_change_check() && !x->is_invokespecial_receiver_check())) {
     // Must do this before locking the destination register as an oop register,
     // and before the obj is loaded (the latter is for deoptimization).
     patching_info = state_for (x, x->state_before());