equal
deleted
inserted
replaced
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 |