mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8272608: java_lang_System::allow_security_manager() doesn't set its initialization flag
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
2e321dc782
commit
08f0be8388
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user