8076294: Cleanup of CollectedHeap::kind()

Reviewed-by: stefank, ecaspole
This commit is contained in:
Per Lidén 2015-04-01 10:49:08 +02:00
parent be607cf8cf
commit cee2c148bc
5 changed files with 6 additions and 8 deletions

View File

@ -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;
}

View File

@ -83,7 +83,7 @@ class ParallelScavengeHeap : public CollectedHeap {
MarkSweep
};
ParallelScavengeHeap::Name kind() const {
virtual Name kind() const {
return CollectedHeap::ParallelScavengeHeap;
}

View File

@ -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,

View File

@ -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;
}

View File

@ -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) \
\