--- old/src/hotspot/share/opto/graphKit.hpp 2018-10-10 10:10:45.281887659 +0200 +++ new/src/hotspot/share/opto/graphKit.hpp 2018-10-10 10:10:44.917705664 +0200 @@ -681,6 +681,9 @@ // callee (with all arguments still on the stack). Node* null_check_receiver_before_call(ciMethod* callee) { assert(!callee->is_static(), "must be a virtual method"); + if (argument(0)->is_ValueType()) { + return argument(0); + } // Callsite signature can be different from actual method being called (i.e _linkTo* sites). // Use callsite signature always. ciMethod* declared_method = method()->get_method_at_bci(bci());