8319889: Vector API tests trigger VM crashes with -XX:+StressIncrementalInlining

Reviewed-by: vlivanov, sviswanathan
This commit is contained in:
Jatin Bhateja 2024-03-19 01:14:06 +00:00
parent 3f2e849c54
commit 2dd5fba3bd

@ -161,8 +161,8 @@ Node* GraphKit::box_vector(Node* vector, const TypeInstPtr* vbox_type, BasicType
Node* GraphKit::unbox_vector(Node* v, const TypeInstPtr* vbox_type, BasicType elem_bt, int num_elem, bool shuffle_to_vector) {
assert(EnableVectorSupport, "");
const TypeInstPtr* vbox_type_v = gvn().type(v)->is_instptr();
if (vbox_type->instance_klass() != vbox_type_v->instance_klass()) {
const TypeInstPtr* vbox_type_v = gvn().type(v)->isa_instptr();
if (vbox_type_v == nullptr || vbox_type->instance_klass() != vbox_type_v->instance_klass()) {
return nullptr; // arguments don't agree on vector shapes
}
if (vbox_type_v->maybe_null()) {