src/share/vm/oops/klassKlass.cpp

changeset 2534
e5383553fd4e
parent 2497
3582bf76420e
child 2658
c7f3d0b4570f
equal deleted inserted replaced
2533:c5a923563727 2534:e5383553fd4e
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

mercurial