mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8189776: Remove dead code in jvm.cpp: force_verify_field_access
Reviewed-by: redestad
This commit is contained in:
parent
41796c1066
commit
817d6bc039
1 changed files with 0 additions and 18 deletions
|
@ -3355,24 +3355,6 @@ JVM_END
|
||||||
|
|
||||||
// ObjectInputStream ///////////////////////////////////////////////////////////////
|
// ObjectInputStream ///////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool force_verify_field_access(Klass* current_class, Klass* field_class, AccessFlags access, bool classloader_only) {
|
|
||||||
if (current_class == NULL) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ((current_class == field_class) || access.is_public()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (access.is_protected()) {
|
|
||||||
// See if current_class is a subclass of field_class
|
|
||||||
if (current_class->is_subclass_of(field_class)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (!access.is_private() && InstanceKlass::cast(current_class)->is_same_class_package(field_class));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return the first user-defined class loader up the execution stack, or null
|
// Return the first user-defined class loader up the execution stack, or null
|
||||||
// if only code from the bootstrap or platform class loader is on the stack.
|
// if only code from the bootstrap or platform class loader is on the stack.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue