Skip to content

Commit

Permalink
8272608: java_lang_System::allow_security_manager() doesn't set its i…
Browse files Browse the repository at this point in the history
…nitialization flag

Backport-of: 08f0be8388914901ac40525ed995136ce020f432
  • Loading branch information
shipilev committed Nov 8, 2022
1 parent 18c4c25 commit a61b74e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/classfile/javaClasses.cpp
Expand Up @@ -4480,6 +4480,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;
}
Expand Down

0 comments on commit a61b74e

Please sign in to comment.