< prev index next >

src/share/vm/ci/ciField.cpp

Print this page

        

*** 184,193 **** --- 184,197 ---- // Never trust strangely unstable finals: System.out, etc. return false; // Even if general trusting is disabled, trust system-built closures in these packages. if (holder->is_in_package("java/lang/invoke") || holder->is_in_package("sun/invoke")) return true; + // Trust VM anonymous classes. They are private API (sun.misc.Unsafe) and can't be serialized, + // so there is no hacking of finals going on with them. + if (holder->is_anonymous()) + return true; return TrustFinalNonStaticFields; } void ciField::initialize_from(fieldDescriptor* fd) { // Get the flags, offset, and canonical holder of the field.
< prev index next >