mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8339020: Remove unused HeapShared::calculate_oopmap
Reviewed-by: coleenp
This commit is contained in:
parent
a4962ace4d
commit
f2968b34a5
2 changed files with 0 additions and 27 deletions
|
@ -1644,30 +1644,6 @@ class FindEmbeddedNonNullPointers: public BasicOopIterateClosure {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PRODUCT
|
|
||||||
ResourceBitMap HeapShared::calculate_oopmap(MemRegion region) {
|
|
||||||
size_t num_bits = region.byte_size() / (UseCompressedOops ? sizeof(narrowOop) : sizeof(oop));
|
|
||||||
ResourceBitMap oopmap(num_bits);
|
|
||||||
|
|
||||||
HeapWord* p = region.start();
|
|
||||||
HeapWord* end = region.end();
|
|
||||||
FindEmbeddedNonNullPointers finder((void*)p, &oopmap);
|
|
||||||
|
|
||||||
int num_objs = 0;
|
|
||||||
while (p < end) {
|
|
||||||
oop o = cast_to_oop(p);
|
|
||||||
o->oop_iterate(&finder);
|
|
||||||
p += o->size();
|
|
||||||
++ num_objs;
|
|
||||||
}
|
|
||||||
|
|
||||||
log_info(cds, heap)("calculate_oopmap: objects = %6d, oop fields = %7d (nulls = %7d)",
|
|
||||||
num_objs, finder.num_total_oops(), finder.num_null_oops());
|
|
||||||
return oopmap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // !PRODUCT
|
|
||||||
|
|
||||||
void HeapShared::count_allocation(size_t size) {
|
void HeapShared::count_allocation(size_t size) {
|
||||||
_total_obj_count ++;
|
_total_obj_count ++;
|
||||||
_total_obj_size += size;
|
_total_obj_size += size;
|
||||||
|
|
|
@ -371,9 +371,6 @@ private:
|
||||||
KlassSubGraphInfo* subgraph_info,
|
KlassSubGraphInfo* subgraph_info,
|
||||||
oop orig_obj);
|
oop orig_obj);
|
||||||
|
|
||||||
#ifndef PRODUCT
|
|
||||||
static ResourceBitMap calculate_oopmap(MemRegion region); // marks all the oop pointers
|
|
||||||
#endif
|
|
||||||
static void add_to_dumped_interned_strings(oop string);
|
static void add_to_dumped_interned_strings(oop string);
|
||||||
|
|
||||||
// Scratch objects for archiving Klass::java_mirror()
|
// Scratch objects for archiving Klass::java_mirror()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue