8300040: TypeOopPtr::make_from_klass_common calls itself with args in wrong order

Co-authored-by: David Simms <dsimms@openjdk.org>
Reviewed-by: chagedorn, kvn
This commit is contained in:
Tobias Hartmann 2023-01-13 07:16:53 +00:00
parent 19628e3e0c
commit 640eff64d2

View File

@ -3578,7 +3578,7 @@ const TypeOopPtr* TypeOopPtr::make_from_klass_common(ciKlass* klass, bool klass_
} else if (klass->is_obj_array_klass()) {
// Element is an object array. Recursively call ourself.
ciKlass* eklass = klass->as_obj_array_klass()->element_klass();
const TypeOopPtr *etype = TypeOopPtr::make_from_klass_common(eklass, try_for_exact, false, interface_handling);
const TypeOopPtr *etype = TypeOopPtr::make_from_klass_common(eklass, false, try_for_exact, interface_handling);
bool xk = etype->klass_is_exact();
const TypeAry* arr0 = TypeAry::make(etype, TypeInt::POS);
// We used to pass NotNull in here, asserting that the sub-arrays