hotspot/src/share/vm/oops/methodDataKlass.cpp
changeset 6248 2e661807cef0
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
equal deleted inserted replaced
6247:00e5cc407d03 6248:2e661807cef0
   152   return size;
   152   return size;
   153 }
   153 }
   154 
   154 
   155 
   155 
   156 #ifndef SERIALGC
   156 #ifndef SERIALGC
   157 void methodDataKlass::oop_copy_contents(PSPromotionManager* pm, oop obj) {
       
   158   assert (obj->is_methodData(), "object must be method data");
       
   159   methodDataOop m = methodDataOop(obj);
       
   160   // This should never point into the young gen.
       
   161   assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity");
       
   162 }
       
   163 
       
   164 void methodDataKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
   157 void methodDataKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
   165   assert (obj->is_methodData(), "object must be method data");
   158   assert (obj->is_methodData(), "object must be method data");
   166   methodDataOop m = methodDataOop(obj);
   159   methodDataOop m = methodDataOop(obj);
   167   // This should never point into the young gen.
   160   // This should never point into the young gen.
   168   assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity");
   161   assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity");