8076294: Cleanup of CollectedHeap::kind()
Reviewed-by: stefank, ecaspole
This commit is contained in:
parent
be607cf8cf
commit
cee2c148bc
@ -1008,7 +1008,7 @@ public:
|
||||
// Set _n_par_threads according to a policy TBD.
|
||||
void set_par_threads();
|
||||
|
||||
virtual CollectedHeap::Name kind() const {
|
||||
virtual Name kind() const {
|
||||
return CollectedHeap::G1CollectedHeap;
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ class ParallelScavengeHeap : public CollectedHeap {
|
||||
MarkSweep
|
||||
};
|
||||
|
||||
ParallelScavengeHeap::Name kind() const {
|
||||
virtual Name kind() const {
|
||||
return CollectedHeap::ParallelScavengeHeap;
|
||||
}
|
||||
|
||||
|
@ -185,8 +185,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
||||
|
||||
public:
|
||||
enum Name {
|
||||
Abstract,
|
||||
SharedHeap,
|
||||
GenCollectedHeap,
|
||||
ParallelScavengeHeap,
|
||||
G1CollectedHeap
|
||||
@ -196,7 +194,7 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
||||
return _filler_array_max_size;
|
||||
}
|
||||
|
||||
virtual CollectedHeap::Name kind() const { return CollectedHeap::Abstract; }
|
||||
virtual Name kind() const = 0;
|
||||
|
||||
/**
|
||||
* Returns JNI error code JNI_ENOMEM if memory could not be allocated,
|
||||
|
@ -139,7 +139,7 @@ public:
|
||||
// Initialize ("weak") refs processing support
|
||||
virtual void ref_processing_init();
|
||||
|
||||
virtual CollectedHeap::Name kind() const {
|
||||
virtual Name kind() const {
|
||||
return CollectedHeap::GenCollectedHeap;
|
||||
}
|
||||
|
||||
|
@ -2253,9 +2253,9 @@ typedef CompactHashtable<Symbol*, char> SymbolCompactHashTable;
|
||||
\
|
||||
declare_constant(CardTableRS::youngergen_card) \
|
||||
\
|
||||
declare_constant(CollectedHeap::Abstract) \
|
||||
declare_constant(CollectedHeap::SharedHeap) \
|
||||
declare_constant(CollectedHeap::GenCollectedHeap) \
|
||||
declare_constant(CollectedHeap::ParallelScavengeHeap) \
|
||||
declare_constant(CollectedHeap::G1CollectedHeap) \
|
||||
\
|
||||
declare_constant(GenCollectedHeap::max_gens) \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user