hotspot/src/share/vm/ci/ciObject.cpp
changeset 24322 c2978d1578e3
parent 13728 882756847a04
child 24424 2658d7834c6e
equal deleted inserted replaced
24320:394d55c783dc 24322:c2978d1578e3
   179     // embeddable but there's no easy way to distinguish the interned
   179     // embeddable but there's no easy way to distinguish the interned
   180     // from the regulars ones so just treat them all that way.
   180     // from the regulars ones so just treat them all that way.
   181     if (klass() == env->String_klass() || klass() == env->Class_klass()) {
   181     if (klass() == env->String_klass() || klass() == env->Class_klass()) {
   182       return true;
   182       return true;
   183     }
   183     }
   184   if (EnableInvokeDynamic &&
   184   if (klass()->is_subclass_of(env->MethodHandle_klass()) ||
   185       (klass()->is_subclass_of(env->MethodHandle_klass()) ||
   185       klass()->is_subclass_of(env->CallSite_klass())) {
   186        klass()->is_subclass_of(env->CallSite_klass()))) {
       
   187     assert(ScavengeRootsInCode >= 1, "must be");
   186     assert(ScavengeRootsInCode >= 1, "must be");
   188     // We want to treat these aggressively.
   187     // We want to treat these aggressively.
   189     return true;
   188     return true;
   190   }
   189   }
   191 
   190