mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7014851: Remove unused parallel compaction code
Removed. Reviewed-by: jcoomes, brutisso
This commit is contained in:
parent
7eccb460db
commit
0c395c7799
25 changed files with 24 additions and 424 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -279,40 +279,6 @@ int constantPoolKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
|
|||
return cp->object_size();
|
||||
}
|
||||
|
||||
int
|
||||
constantPoolKlass::oop_update_pointers(ParCompactionManager* cm, oop obj,
|
||||
HeapWord* beg_addr, HeapWord* end_addr) {
|
||||
assert (obj->is_constantPool(), "obj must be constant pool");
|
||||
constantPoolOop cp = (constantPoolOop) obj;
|
||||
|
||||
// If the tags array is null we are in the middle of allocating this constant
|
||||
// pool.
|
||||
if (cp->tags() != NULL) {
|
||||
oop* base = (oop*)cp->base();
|
||||
oop* const beg_oop = MAX2((oop*)beg_addr, base);
|
||||
oop* const end_oop = MIN2((oop*)end_addr, base + cp->length());
|
||||
const size_t beg_idx = pointer_delta(beg_oop, base, sizeof(oop*));
|
||||
const size_t end_idx = pointer_delta(end_oop, base, sizeof(oop*));
|
||||
for (size_t cur_idx = beg_idx; cur_idx < end_idx; ++cur_idx, ++base) {
|
||||
if (cp->is_pointer_entry(int(cur_idx))) {
|
||||
PSParallelCompact::adjust_pointer(base);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
oop* p;
|
||||
p = cp->tags_addr();
|
||||
PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
|
||||
p = cp->cache_addr();
|
||||
PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
|
||||
p = cp->operands_addr();
|
||||
PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
|
||||
p = cp->pool_holder_addr();
|
||||
PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
|
||||
|
||||
return cp->object_size();
|
||||
}
|
||||
|
||||
void constantPoolKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
|
||||
assert(obj->is_constantPool(), "should be constant pool");
|
||||
constantPoolOop cp = (constantPoolOop) obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue