mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8214807: Improve handling of very old class files
Remove old version specific code in reflection.cpp Reviewed-by: acorn, dholmes
This commit is contained in:
parent
528361f7ae
commit
145582dfa1
@ -36,7 +36,6 @@
|
||||
class Verifier : AllStatic {
|
||||
public:
|
||||
enum {
|
||||
STRICTER_ACCESS_CTRL_CHECK_VERSION = 49,
|
||||
STACKMAP_ATTRIBUTE_MAJOR_VERSION = 50,
|
||||
INVOKEDYNAMIC_MAJOR_VERSION = 51,
|
||||
NO_RELAX_ACCESS_CTRL_CHECK_VERSION = 52,
|
||||
|
||||
@ -417,11 +417,9 @@ static bool can_relax_access_check_for(const Klass* accessor,
|
||||
under_unsafe_anonymous_host(accessee_ik, accessor_ik))
|
||||
return true;
|
||||
|
||||
if ((RelaxAccessControlCheck &&
|
||||
if (RelaxAccessControlCheck &&
|
||||
accessor_ik->major_version() < Verifier::NO_RELAX_ACCESS_CTRL_CHECK_VERSION &&
|
||||
accessee_ik->major_version() < Verifier::NO_RELAX_ACCESS_CTRL_CHECK_VERSION) ||
|
||||
(accessor_ik->major_version() < Verifier::STRICTER_ACCESS_CTRL_CHECK_VERSION &&
|
||||
accessee_ik->major_version() < Verifier::STRICTER_ACCESS_CTRL_CHECK_VERSION)) {
|
||||
accessee_ik->major_version() < Verifier::NO_RELAX_ACCESS_CTRL_CHECK_VERSION) {
|
||||
return classloader_only &&
|
||||
Verifier::relax_access_for(accessor_ik->class_loader()) &&
|
||||
accessor_ik->protection_domain() == accessee_ik->protection_domain() &&
|
||||
|
||||
@ -1396,11 +1396,6 @@ Enables printing of collected native memory tracking data at JVM exit when nativ
|
||||
\fB\-XX:NativeMemoryTracking\fR)\&. By default, this option is disabled and native memory tracking data is not printed\&.
|
||||
.RE
|
||||
.PP
|
||||
\-XX:+RelaxAccessControlCheck
|
||||
.RS 4
|
||||
Decreases the amount of access control checks in the verifier\&. By default, this option is disabled, and it is ignored (that is, treated as disabled) for classes with a recent bytecode version\&. You can enable it for classes with older versions of the bytecode\&.
|
||||
.RE
|
||||
.PP
|
||||
\-XX:+ShowMessageBoxOnError
|
||||
.RS 4
|
||||
Enables displaying of a dialog box when the JVM experiences an irrecoverable error\&. This prevents the JVM from exiting and keeps the process active so that you can attach a debugger to it to investigate the cause of the error\&. By default, this option is disabled\&.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user