hotspot/src/share/vm/oops/objArrayKlass.cpp
changeset 6248 2e661807cef0
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
equal deleted inserted replaced
6247:00e5cc407d03 6248:2e661807cef0
   424   ObjArrayKlass_OOP_ITERATE(a, p, MarkSweep::adjust_pointer(p))
   424   ObjArrayKlass_OOP_ITERATE(a, p, MarkSweep::adjust_pointer(p))
   425   return size;
   425   return size;
   426 }
   426 }
   427 
   427 
   428 #ifndef SERIALGC
   428 #ifndef SERIALGC
   429 void objArrayKlass::oop_copy_contents(PSPromotionManager* pm, oop obj) {
       
   430   assert(!pm->depth_first(), "invariant");
       
   431   assert(obj->is_objArray(), "obj must be obj array");
       
   432   ObjArrayKlass_OOP_ITERATE( \
       
   433     objArrayOop(obj), p, \
       
   434     if (PSScavenge::should_scavenge(p)) { \
       
   435       pm->claim_or_forward_breadth(p); \
       
   436     })
       
   437 }
       
   438 
       
   439 void objArrayKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
   429 void objArrayKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
   440   assert(pm->depth_first(), "invariant");
       
   441   assert(obj->is_objArray(), "obj must be obj array");
   430   assert(obj->is_objArray(), "obj must be obj array");
   442   ObjArrayKlass_OOP_ITERATE( \
   431   ObjArrayKlass_OOP_ITERATE( \
   443     objArrayOop(obj), p, \
   432     objArrayOop(obj), p, \
   444     if (PSScavenge::should_scavenge(p)) { \
   433     if (PSScavenge::should_scavenge(p)) { \
   445       pm->claim_or_forward_depth(p); \
   434       pm->claim_or_forward_depth(p); \