Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/constantPoolKlass.cpp @ 2416:38fea01eb669
6817525: turn on method handle functionality by default for JSR 292
Summary: After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default.
Reviewed-by: never, kvn, jrose, phh
author | twisti |
---|---|
date | Thu, 31 Mar 2011 02:31:57 -0700 |
parents | b099aaf51bf8 |
children | 4f978fb6c81a ed69575596ac |
comparison
equal
deleted
inserted
replaced
2415:09f96c3ff1ad | 2416:38fea01eb669 |
---|---|
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); |