Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/klassKlass.cpp @ 2273:2ab52cda08e5
Merge with OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Thu, 03 Mar 2011 19:25:53 +0100 |
parents | d25d4ca69222 e5383553fd4e |
children | 0654ee04b214 |
comparison
equal
deleted
inserted
replaced
2219:0a14ff0a8cc4 | 2273:2ab52cda08e5 |
---|---|
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. |
192 PSParallelCompact::adjust_pointer(cur_oop); | 192 PSParallelCompact::adjust_pointer(cur_oop); |
193 } | 193 } |
194 | 194 |
195 return oop_size(obj); | 195 return oop_size(obj); |
196 } | 196 } |
197 | |
198 int klassKlass::oop_update_pointers(ParCompactionManager* cm, oop obj, | |
199 HeapWord* beg_addr, HeapWord* end_addr) { | |
200 Klass* k = Klass::cast(klassOop(obj)); | |
201 | |
202 oop* const beg_oop = MAX2((oop*)beg_addr, k->oop_block_beg()); | |
203 oop* const end_oop = MIN2((oop*)end_addr, k->oop_block_end()); | |
204 for (oop* cur_oop = beg_oop; cur_oop < end_oop; ++cur_oop) { | |
205 PSParallelCompact::adjust_pointer(cur_oop); | |
206 } | |
207 | |
208 return oop_size(obj); | |
209 } | |
210 #endif // SERIALGC | 197 #endif // SERIALGC |
211 | 198 |
212 | 199 |
213 // Printing | 200 // Printing |
214 | 201 |