Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/methodDataKlass.cpp @ 2264:a97fd181b813
Merge
author | kvn |
---|---|
date | Wed, 23 Feb 2011 11:18:16 -0800 |
parents | e5383553fd4e |
children | f7251c729b31 |
comparison
equal
deleted
inserted
replaced
2263:5841dc1964f0 | 2264:a97fd181b813 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 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 for (data = m->first_data(); m->is_valid(data); data = m->next_data(data)) { | 186 for (data = m->first_data(); m->is_valid(data); data = m->next_data(data)) { |
187 data->update_pointers(); | 187 data->update_pointers(); |
188 } | 188 } |
189 return m->object_size(); | 189 return m->object_size(); |
190 } | 190 } |
191 | |
192 int | |
193 methodDataKlass::oop_update_pointers(ParCompactionManager* cm, oop obj, | |
194 HeapWord* beg_addr, HeapWord* end_addr) { | |
195 assert(obj->is_methodData(), "should be method data"); | |
196 | |
197 oop* p; | |
198 methodDataOop m = methodDataOop(obj); | |
199 | |
200 p = m->adr_method(); | |
201 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); | |
202 | |
203 ResourceMark rm; | |
204 ProfileData* data; | |
205 for (data = m->first_data(); m->is_valid(data); data = m->next_data(data)) { | |
206 data->update_pointers(beg_addr, end_addr); | |
207 } | |
208 return m->object_size(); | |
209 } | |
210 #endif // SERIALGC | 191 #endif // SERIALGC |
211 | 192 |
212 #ifndef PRODUCT | 193 #ifndef PRODUCT |
213 | 194 |
214 // Printing | 195 // Printing |