8077411: Remove CollectedHeap::supports_heap_inspection()

Reviewed-by: stefank, ecaspole, jmasa
This commit is contained in:
Bengt Rutisson 2015-04-12 14:59:41 +02:00
parent d0dafa0c28
commit 2cefed232b
6 changed files with 0 additions and 22 deletions

View File

@ -1346,9 +1346,6 @@ public:
// the block is an object.
virtual bool block_is_obj(const HeapWord* addr) const;
// Does this heap support heap inspection? (+PrintClassHistogram)
virtual bool supports_heap_inspection() const { return true; }
// Section on thread-local allocation buffers (TLABs)
// See CollectedHeap for semantics.

View File

@ -132,9 +132,6 @@ class ParallelScavengeHeap : public CollectedHeap {
// the young gen.
virtual bool is_scavengable(const void* addr);
// Does this heap support heap inspection? (+PrintClassHistogram)
bool supports_heap_inspection() const { return true; }
size_t max_capacity() const;
// Whether p is in the allocated part of the heap

View File

@ -128,16 +128,7 @@ void VM_GC_Operation::doit_epilogue() {
release_and_notify_pending_list_lock();
}
bool VM_GC_HeapInspection::doit_prologue() {
if (Universe::heap()->supports_heap_inspection()) {
return VM_GC_Operation::doit_prologue();
} else {
return false;
}
}
bool VM_GC_HeapInspection::skip_operation() const {
assert(Universe::heap()->supports_heap_inspection(), "huh?");
return false;
}

View File

@ -150,7 +150,6 @@ class VM_GC_HeapInspection: public VM_GC_Operation {
~VM_GC_HeapInspection() {}
virtual VMOp_Type type() const { return VMOp_GC_HeapInspection; }
virtual bool skip_operation() const;
virtual bool doit_prologue();
virtual void doit();
void set_csv_format(bool value) {_csv_format = value;}
void set_print_help(bool value) {_print_help = value;}

View File

@ -450,9 +450,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
// remembered set.
virtual void flush_deferred_store_barrier(JavaThread* thread);
// Does this heap support heap inspection (+PrintClassHistogram?)
virtual bool supports_heap_inspection() const = 0;
// Perform a collection of the heap; intended for use in implementing
// "System.gc". This probably implies as full a collection as the
// "CollectedHeap" supports.

View File

@ -177,9 +177,6 @@ public:
HeapWord** top_addr() const;
HeapWord** end_addr() const;
// Does this heap support heap inspection? (+PrintClassHistogram)
virtual bool supports_heap_inspection() const { return true; }
// Perform a full collection of the heap; intended for use in implementing
// "System.gc". This implies as full a collection as the CollectedHeap
// supports. Caller does not hold the Heap_lock on entry.