equal
deleted
inserted
replaced
284 |
284 |
285 void constantPoolKlass::oop_push_contents(PSPromotionManager* pm, oop obj) { |
285 void constantPoolKlass::oop_push_contents(PSPromotionManager* pm, oop obj) { |
286 assert(obj->is_constantPool(), "should be constant pool"); |
286 assert(obj->is_constantPool(), "should be constant pool"); |
287 constantPoolOop cp = (constantPoolOop) obj; |
287 constantPoolOop cp = (constantPoolOop) obj; |
288 if (cp->tags() != NULL && |
288 if (cp->tags() != NULL && |
289 (!JavaObjectsInPerm || (AnonymousClasses && cp->has_pseudo_string()))) { |
289 (!JavaObjectsInPerm || (EnableInvokeDynamic && cp->has_pseudo_string()))) { |
290 for (int i = 1; i < cp->length(); ++i) { |
290 for (int i = 1; i < cp->length(); ++i) { |
291 if (cp->tag_at(i).is_string()) { |
291 if (cp->tag_at(i).is_string()) { |
292 oop* base = cp->obj_at_addr_raw(i); |
292 oop* base = cp->obj_at_addr_raw(i); |
293 if (PSScavenge::should_scavenge(base)) { |
293 if (PSScavenge::should_scavenge(base)) { |
294 pm->claim_or_forward_depth(base); |
294 pm->claim_or_forward_depth(base); |