hotspot/src/share/vm/oops/klassKlass.cpp
changeset 8297 f05d10c1c4b8
parent 8076 96d498ec7ae1
child 8725 8c1e3dd5fe1b
equal deleted inserted replaced
8296:b1c2163e4e59 8297:f05d10c1c4b8
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   186     PSParallelCompact::adjust_pointer(cur_oop);
   186     PSParallelCompact::adjust_pointer(cur_oop);
   187   }
   187   }
   188 
   188 
   189   return oop_size(obj);
   189   return oop_size(obj);
   190 }
   190 }
   191 
       
   192 int klassKlass::oop_update_pointers(ParCompactionManager* cm, oop obj,
       
   193                                     HeapWord* beg_addr, HeapWord* end_addr) {
       
   194   Klass* k = Klass::cast(klassOop(obj));
       
   195 
       
   196   oop* const beg_oop = MAX2((oop*)beg_addr, k->oop_block_beg());
       
   197   oop* const end_oop = MIN2((oop*)end_addr, k->oop_block_end());
       
   198   for (oop* cur_oop = beg_oop; cur_oop < end_oop; ++cur_oop) {
       
   199     PSParallelCompact::adjust_pointer(cur_oop);
       
   200   }
       
   201 
       
   202   return oop_size(obj);
       
   203 }
       
   204 #endif // SERIALGC
   191 #endif // SERIALGC
   205 
   192 
   206 
   193 
   207 // Printing
   194 // Printing
   208 
   195