--- a/src/hotspot/share/opto/graphKit.cpp Mon Sep 23 14:39:11 2019 -0400
+++ b/src/hotspot/share/opto/graphKit.cpp Mon Sep 23 14:49:04 2019 -0400
@@ -2276,7 +2276,7 @@
int skip = Bytecodes::has_receiver(bc) ? 1 : 0;
for (int j = skip, i = 0; j < nargs && i < TypeProfileArgsLimit; j++) {
const Type *targ = tf->domain()->field_at(j + TypeFunc::Parms);
- if (targ->basic_type() == T_OBJECT || targ->basic_type() == T_ARRAY) {
+ if (is_reference_type(targ->basic_type())) {
ProfilePtrKind ptr_kind = ProfileMaybeNull;
ciKlass* better_type = NULL;
if (method()->argument_profiled_type(bci(), i, better_type, ptr_kind)) {