comparison src/share/vm/oops/methodKlass.cpp @ 2227:e5383553fd4e

7014851: Remove unused parallel compaction code Summary: Removed. Reviewed-by: jcoomes, brutisso
author stefank
date Tue, 08 Feb 2011 12:33:19 +0100
parents 3582bf76420e
children 5d8f5a6dced7
comparison
equal deleted inserted replaced
2226:c5a923563727 2227: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.
208 PSParallelCompact::adjust_pointer(m->adr_constMethod()); 208 PSParallelCompact::adjust_pointer(m->adr_constMethod());
209 PSParallelCompact::adjust_pointer(m->adr_constants()); 209 PSParallelCompact::adjust_pointer(m->adr_constants());
210 #ifdef COMPILER2 210 #ifdef COMPILER2
211 if (m->method_data() != NULL) { 211 if (m->method_data() != NULL) {
212 PSParallelCompact::adjust_pointer(m->adr_method_data()); 212 PSParallelCompact::adjust_pointer(m->adr_method_data());
213 }
214 #endif // COMPILER2
215 return m->object_size();
216 }
217
218 int methodKlass::oop_update_pointers(ParCompactionManager* cm, oop obj,
219 HeapWord* beg_addr, HeapWord* end_addr) {
220 assert(obj->is_method(), "should be method");
221
222 oop* p;
223 methodOop m = methodOop(obj);
224
225 p = m->adr_constMethod();
226 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
227 p = m->adr_constants();
228 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
229
230 #ifdef COMPILER2
231 if (m->method_data() != NULL) {
232 p = m->adr_method_data();
233 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
234 } 213 }
235 #endif // COMPILER2 214 #endif // COMPILER2
236 return m->object_size(); 215 return m->object_size();
237 } 216 }
238 #endif // SERIALGC 217 #endif // SERIALGC