--- old/src/share/vm/opto/machnode.cpp 2017-08-04 21:19:10.727362067 +0200 +++ new/src/share/vm/opto/machnode.cpp 2017-08-04 21:19:03.892373100 +0200 @@ -716,6 +716,11 @@ const RegMask &MachCallNode::in_RegMask(uint idx) const { // Values in the domain use the users calling convention, embodied in the // _in_rms array of RegMasks. + if (entry_point() == NULL && idx == TypeFunc::Parms) { + // Null entry point is a special cast where the target of the call + // is in a register. + return MachNode::in_RegMask(idx); + } if (idx < tf()->domain_sig()->cnt()) { return _in_rms[idx]; }