mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 20:14:43 +02:00
8078156: G1: Remove dead code PrintObjsInRegionClosure
Reviewed-by: tschatzl, sjohanss
This commit is contained in:
parent
f2ac065c42
commit
0d5c04e00d
1 changed files with 0 additions and 29 deletions
|
@ -2921,35 +2921,6 @@ public:
|
|||
size_t live_bytes() { return _live_bytes; }
|
||||
};
|
||||
|
||||
class PrintObjsInRegionClosure : public ObjectClosure {
|
||||
HeapRegion *_hr;
|
||||
G1CollectedHeap *_g1;
|
||||
public:
|
||||
PrintObjsInRegionClosure(HeapRegion *hr) : _hr(hr) {
|
||||
_g1 = G1CollectedHeap::heap();
|
||||
};
|
||||
|
||||
void do_object(oop o) {
|
||||
if (o != NULL) {
|
||||
HeapWord *start = (HeapWord *) o;
|
||||
size_t word_sz = o->size();
|
||||
gclog_or_tty->print("\nPrinting obj "PTR_FORMAT" of size " SIZE_FORMAT
|
||||
" isMarkedPrev %d isMarkedNext %d isAllocSince %d\n",
|
||||
(void*) o, word_sz,
|
||||
_g1->isMarkedPrev(o),
|
||||
_g1->isMarkedNext(o),
|
||||
_hr->obj_allocated_since_prev_marking(o));
|
||||
HeapWord *end = start + word_sz;
|
||||
HeapWord *cur;
|
||||
int *val;
|
||||
for (cur = start; cur < end; cur++) {
|
||||
val = (int *) cur;
|
||||
gclog_or_tty->print("\t "PTR_FORMAT":%d\n", val, *val);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class VerifyRegionClosure: public HeapRegionClosure {
|
||||
private:
|
||||
bool _par;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue