1 /* |
1 /* |
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
143 |
143 |
144 PSParallelCompact::adjust_pointer(c->adr_holder_method()); |
144 PSParallelCompact::adjust_pointer(c->adr_holder_method()); |
145 PSParallelCompact::adjust_pointer(c->adr_holder_klass()); |
145 PSParallelCompact::adjust_pointer(c->adr_holder_klass()); |
146 return c->object_size(); |
146 return c->object_size(); |
147 } |
147 } |
148 |
|
149 int compiledICHolderKlass::oop_update_pointers(ParCompactionManager* cm, |
|
150 oop obj, |
|
151 HeapWord* beg_addr, |
|
152 HeapWord* end_addr) { |
|
153 assert(obj->is_compiledICHolder(), "must be compiledICHolder"); |
|
154 compiledICHolderOop c = compiledICHolderOop(obj); |
|
155 |
|
156 oop* p; |
|
157 p = c->adr_holder_method(); |
|
158 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); |
|
159 p = c->adr_holder_klass(); |
|
160 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); |
|
161 return c->object_size(); |
|
162 } |
|
163 #endif // SERIALGC |
148 #endif // SERIALGC |
164 |
149 |
165 // Printing |
150 // Printing |
166 |
151 |
167 void compiledICHolderKlass::oop_print_on(oop obj, outputStream* st) { |
152 void compiledICHolderKlass::oop_print_on(oop obj, outputStream* st) { |