src/hotspot/share/ci/ciField.cpp
changeset 51444 3e5d28e6de32
parent 50735 2f2af62dfac7
child 51467 12997ebbc0d8
--- a/src/hotspot/share/ci/ciField.cpp	Mon Aug 20 10:04:00 2018 +0200
+++ b/src/hotspot/share/ci/ciField.cpp	Mon Aug 20 08:25:57 2018 -0400
@@ -222,9 +222,9 @@
   // 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())
+  // Trust VM unsafe anonymous classes. They are private API (jdk.internal.misc.Unsafe)
+  // and can't be serialized, so there is no hacking of finals going on with them.
+  if (holder->is_unsafe_anonymous())
     return true;
   // Trust final fields in all boxed classes
   if (holder->is_box_klass())