8272608: java_lang_System::allow_security_manager() doesn't set its initialization flag

Reviewed-by: coleenp, dholmes
This commit is contained in:
matias9927 2021-09-10 01:05:37 +00:00 committed by Coleen Phillimore
parent 2e321dc782
commit 08f0be8388

View File

@ -4438,6 +4438,7 @@ bool java_lang_System::allow_security_manager() {
oop base = vmClasses::System_klass()->static_field_base_raw();
int never = base->int_field(_static_never_offset);
allowed = (base->int_field(_static_allow_security_offset) != never);
initialized = true;
}
return allowed;
}