1.1 --- a/src/share/vm/oops/cpCacheKlass.cpp Fri Aug 13 07:33:20 2010 -0700 1.2 +++ b/src/share/vm/oops/cpCacheKlass.cpp Sat Aug 14 00:47:52 2010 -0700 1.3 @@ -166,29 +166,6 @@ 1.4 } 1.5 1.6 #ifndef SERIALGC 1.7 -void constantPoolCacheKlass::oop_copy_contents(PSPromotionManager* pm, 1.8 - oop obj) { 1.9 - assert(obj->is_constantPoolCache(), "should be constant pool"); 1.10 - if (EnableInvokeDynamic) { 1.11 - constantPoolCacheOop cache = (constantPoolCacheOop)obj; 1.12 - // during a scavenge, it is safe to inspect my pool, since it is perm 1.13 - constantPoolOop pool = cache->constant_pool(); 1.14 - assert(pool->is_constantPool(), "should be constant pool"); 1.15 - if (pool->has_invokedynamic()) { 1.16 - for (int i = 0; i < cache->length(); i++) { 1.17 - ConstantPoolCacheEntry* e = cache->entry_at(i); 1.18 - oop* p = (oop*)&e->_f1; 1.19 - if (e->is_secondary_entry()) { 1.20 - if (PSScavenge::should_scavenge(p)) 1.21 - pm->claim_or_forward_breadth(p); 1.22 - assert(!(e->is_vfinal() && PSScavenge::should_scavenge((oop*)&e->_f2)), 1.23 - "no live oops here"); 1.24 - } 1.25 - } 1.26 - } 1.27 - } 1.28 -} 1.29 - 1.30 void constantPoolCacheKlass::oop_push_contents(PSPromotionManager* pm, 1.31 oop obj) { 1.32 assert(obj->is_constantPoolCache(), "should be constant pool");