1.1 --- a/src/share/vm/oops/methodDataKlass.cpp Fri Apr 11 09:56:35 2008 -0400 1.2 +++ b/src/share/vm/oops/methodDataKlass.cpp Sun Apr 13 17:43:42 2008 -0400 1.3 @@ -95,6 +95,7 @@ 1.4 } 1.5 #endif // SERIALGC 1.6 1.7 + 1.8 int methodDataKlass::oop_oop_iterate(oop obj, OopClosure* blk) { 1.9 assert (obj->is_methodData(), "object must be method data"); 1.10 methodDataOop m = methodDataOop(obj); 1.11 @@ -113,7 +114,6 @@ 1.12 return size; 1.13 } 1.14 1.15 - 1.16 int methodDataKlass::oop_oop_iterate_m(oop obj, OopClosure* blk, MemRegion mr) { 1.17 assert (obj->is_methodData(), "object must be method data"); 1.18 methodDataOop m = methodDataOop(obj); 1.19 @@ -158,14 +158,14 @@ 1.20 assert (obj->is_methodData(), "object must be method data"); 1.21 methodDataOop m = methodDataOop(obj); 1.22 // This should never point into the young gen. 1.23 - assert(!PSScavenge::should_scavenge(oop(*m->adr_method())), "Sanity"); 1.24 + assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity"); 1.25 } 1.26 1.27 void methodDataKlass::oop_push_contents(PSPromotionManager* pm, oop obj) { 1.28 assert (obj->is_methodData(), "object must be method data"); 1.29 methodDataOop m = methodDataOop(obj); 1.30 // This should never point into the young gen. 1.31 - assert(!PSScavenge::should_scavenge(oop(*m->adr_method())), "Sanity"); 1.32 + assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity"); 1.33 } 1.34 1.35 int methodDataKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {