mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8076294: Cleanup of CollectedHeap::kind()
Reviewed-by: stefank, ecaspole
This commit is contained in:
parent
be607cf8cf
commit
cee2c148bc
5 changed files with 6 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue