mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8077411: Remove CollectedHeap::supports_heap_inspection()
Reviewed-by: stefank, ecaspole, jmasa
This commit is contained in:
parent
d0dafa0c28
commit
2cefed232b
6 changed files with 0 additions and 22 deletions
|
@ -1346,9 +1346,6 @@ public:
|
||||||
// the block is an object.
|
// the block is an object.
|
||||||
virtual bool block_is_obj(const HeapWord* addr) const;
|
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)
|
// Section on thread-local allocation buffers (TLABs)
|
||||||
// See CollectedHeap for semantics.
|
// See CollectedHeap for semantics.
|
||||||
|
|
||||||
|
|
|
@ -132,9 +132,6 @@ class ParallelScavengeHeap : public CollectedHeap {
|
||||||
// the young gen.
|
// the young gen.
|
||||||
virtual bool is_scavengable(const void* addr);
|
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;
|
size_t max_capacity() const;
|
||||||
|
|
||||||
// Whether p is in the allocated part of the heap
|
// Whether p is in the allocated part of the heap
|
||||||
|
|
|
@ -128,16 +128,7 @@ void VM_GC_Operation::doit_epilogue() {
|
||||||
release_and_notify_pending_list_lock();
|
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 {
|
bool VM_GC_HeapInspection::skip_operation() const {
|
||||||
assert(Universe::heap()->supports_heap_inspection(), "huh?");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,6 @@ class VM_GC_HeapInspection: public VM_GC_Operation {
|
||||||
~VM_GC_HeapInspection() {}
|
~VM_GC_HeapInspection() {}
|
||||||
virtual VMOp_Type type() const { return VMOp_GC_HeapInspection; }
|
virtual VMOp_Type type() const { return VMOp_GC_HeapInspection; }
|
||||||
virtual bool skip_operation() const;
|
virtual bool skip_operation() const;
|
||||||
virtual bool doit_prologue();
|
|
||||||
virtual void doit();
|
virtual void doit();
|
||||||
void set_csv_format(bool value) {_csv_format = value;}
|
void set_csv_format(bool value) {_csv_format = value;}
|
||||||
void set_print_help(bool value) {_print_help = value;}
|
void set_print_help(bool value) {_print_help = value;}
|
||||||
|
|
|
@ -450,9 +450,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
||||||
// remembered set.
|
// remembered set.
|
||||||
virtual void flush_deferred_store_barrier(JavaThread* thread);
|
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
|
// Perform a collection of the heap; intended for use in implementing
|
||||||
// "System.gc". This probably implies as full a collection as the
|
// "System.gc". This probably implies as full a collection as the
|
||||||
// "CollectedHeap" supports.
|
// "CollectedHeap" supports.
|
||||||
|
|
|
@ -177,9 +177,6 @@ public:
|
||||||
HeapWord** top_addr() const;
|
HeapWord** top_addr() const;
|
||||||
HeapWord** end_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
|
// Perform a full collection of the heap; intended for use in implementing
|
||||||
// "System.gc". This implies as full a collection as the CollectedHeap
|
// "System.gc". This implies as full a collection as the CollectedHeap
|
||||||
// supports. Caller does not hold the Heap_lock on entry.
|
// supports. Caller does not hold the Heap_lock on entry.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue