Mercurial > hg > truffle
comparison src/share/vm/oops/cpCacheKlass.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 | c5a923563727 |
children | c7f3d0b4570f |
comparison
equal
deleted
inserted
replaced
2226:c5a923563727 | 2227:e5383553fd4e |
---|---|
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. |
201 cache->entry_at(i)->update_pointers(); | 201 cache->entry_at(i)->update_pointers(); |
202 } | 202 } |
203 | 203 |
204 return cache->object_size(); | 204 return cache->object_size(); |
205 } | 205 } |
206 | |
207 int | |
208 constantPoolCacheKlass::oop_update_pointers(ParCompactionManager* cm, oop obj, | |
209 HeapWord* beg_addr, | |
210 HeapWord* end_addr) { | |
211 assert(obj->is_constantPoolCache(), "obj must be constant pool cache"); | |
212 constantPoolCacheOop cache = (constantPoolCacheOop)obj; | |
213 | |
214 // Iteration over constant pool cache instance variables | |
215 oop* p; | |
216 p = (oop*)cache->constant_pool_addr(); | |
217 PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); | |
218 | |
219 // Iteration over constant pool cache entries | |
220 for (int i = 0; i < cache->length(); ++i) { | |
221 cache->entry_at(i)->update_pointers(beg_addr, end_addr); | |
222 } | |
223 return cache->object_size(); | |
224 } | |
225 #endif // SERIALGC | 206 #endif // SERIALGC |
226 | 207 |
227 void constantPoolCacheKlass::oop_print_on(oop obj, outputStream* st) { | 208 void constantPoolCacheKlass::oop_print_on(oop obj, outputStream* st) { |
228 assert(obj->is_constantPoolCache(), "obj must be constant pool cache"); | 209 assert(obj->is_constantPoolCache(), "obj must be constant pool cache"); |
229 constantPoolCacheOop cache = (constantPoolCacheOop)obj; | 210 constantPoolCacheOop cache = (constantPoolCacheOop)obj; |