mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8038405: Clean up some virtual fucntions in Space class hierarchy
Get rid of some duplicated implementations and change nonsense implementations to pure virtuals Reviewed-by: stefank, jmasa
This commit is contained in:
parent
c62c16f94a
commit
1fdc7cd78f
3 changed files with 15 additions and 31 deletions
|
@ -302,10 +302,6 @@ void ContiguousSpace::clear(bool mangle_space) {
|
|||
CompactibleSpace::clear(mangle_space);
|
||||
}
|
||||
|
||||
bool ContiguousSpace::is_in(const void* p) const {
|
||||
return _bottom <= p && p < _top;
|
||||
}
|
||||
|
||||
bool ContiguousSpace::is_free_block(const HeapWord* p) const {
|
||||
return p >= _top;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue