8323318: Remove unused Space::is_free_block

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2024-01-09 19:37:28 +00:00
parent dd8ae61643
commit bc05893f82
2 changed files with 0 additions and 9 deletions

View File

@ -74,10 +74,6 @@ void ContiguousSpace::clear(bool mangle_space) {
}
}
bool ContiguousSpace::is_free_block(const HeapWord* p) const {
return p >= _top;
}
#ifndef PRODUCT
void ContiguousSpace::set_top_for_allocations(HeapWord* v) {

View File

@ -133,9 +133,6 @@ class Space: public CHeapObj<mtGC> {
// given address.
bool is_in_reserved(const void* p) const { return _bottom <= p && p < _end; }
// Returns true iff the given block is not allocated.
virtual bool is_free_block(const HeapWord* p) const = 0;
// Test whether p is double-aligned
static bool is_aligned(void* p) {
return ::is_aligned(p, sizeof(double));
@ -273,8 +270,6 @@ protected:
size_t used() const override { return byte_size(bottom(), top()); }
size_t free() const override { return byte_size(top(), end()); }
bool is_free_block(const HeapWord* p) const override;
// In a contiguous space we have a more obvious bound on what parts
// contain objects.
MemRegion used_region() const override { return MemRegion(bottom(), top()); }