1.1 --- a/src/share/vm/oops/constantPoolKlass.cpp Mon Feb 07 22:19:57 2011 -0800 1.2 +++ b/src/share/vm/oops/constantPoolKlass.cpp Tue Feb 08 12:33:19 2011 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -279,40 +279,6 @@ 1.11 return cp->object_size(); 1.12 } 1.13 1.14 -int 1.15 -constantPoolKlass::oop_update_pointers(ParCompactionManager* cm, oop obj, 1.16 - HeapWord* beg_addr, HeapWord* end_addr) { 1.17 - assert (obj->is_constantPool(), "obj must be constant pool"); 1.18 - constantPoolOop cp = (constantPoolOop) obj; 1.19 - 1.20 - // If the tags array is null we are in the middle of allocating this constant 1.21 - // pool. 1.22 - if (cp->tags() != NULL) { 1.23 - oop* base = (oop*)cp->base(); 1.24 - oop* const beg_oop = MAX2((oop*)beg_addr, base); 1.25 - oop* const end_oop = MIN2((oop*)end_addr, base + cp->length()); 1.26 - const size_t beg_idx = pointer_delta(beg_oop, base, sizeof(oop*)); 1.27 - const size_t end_idx = pointer_delta(end_oop, base, sizeof(oop*)); 1.28 - for (size_t cur_idx = beg_idx; cur_idx < end_idx; ++cur_idx, ++base) { 1.29 - if (cp->is_pointer_entry(int(cur_idx))) { 1.30 - PSParallelCompact::adjust_pointer(base); 1.31 - } 1.32 - } 1.33 - } 1.34 - 1.35 - oop* p; 1.36 - p = cp->tags_addr(); 1.37 - PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); 1.38 - p = cp->cache_addr(); 1.39 - PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); 1.40 - p = cp->operands_addr(); 1.41 - PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); 1.42 - p = cp->pool_holder_addr(); 1.43 - PSParallelCompact::adjust_pointer(p, beg_addr, end_addr); 1.44 - 1.45 - return cp->object_size(); 1.46 -} 1.47 - 1.48 void constantPoolKlass::oop_push_contents(PSPromotionManager* pm, oop obj) { 1.49 assert(obj->is_constantPool(), "should be constant pool"); 1.50 constantPoolOop cp = (constantPoolOop) obj;