# HG changeset patch # User dholmes # Date 1508742919 14400 # Node ID 1587ffa1496a42ae5078b0f0113102c136dd59fe # Parent 6126617b8508907c4e0fb508c89a65aece2a848e 8189776: Remove dead code in jvm.cpp: force_verify_field_access Reviewed-by: redestad diff -r 6126617b8508 -r 1587ffa1496a src/hotspot/share/prims/jvm.cpp --- a/src/hotspot/share/prims/jvm.cpp Sat Oct 21 15:15:46 2017 -0700 +++ b/src/hotspot/share/prims/jvm.cpp Mon Oct 23 03:15:19 2017 -0400 @@ -3355,24 +3355,6 @@ // 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 // if only code from the bootstrap or platform class loader is on the stack.