Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8273594: [lworld] JITs need to properly handle static inline type field with unloaded type #551

wants to merge 9 commits into from
@@ -669,7 +669,8 @@ void ciTypeFlow::StateVector::do_getstatic(ciBytecodeStream* str) {
trap(str, field->holder(), str->get_field_holder_index());
} else {
ciType* field_type = field->type();
if (field->is_static() && field->is_null_free() && !field_type->as_inline_klass()->is_initialized()) {
if (field->is_static() && field->is_null_free() &&
!field_type->as_instance_klass()->is_initialized()) {
// Deoptimize if we load from a static field with an uninitialized inline type
// because we need to throw an exception if initialization of the type failed.
trap(str, field_type->as_klass(),