8323318: Remove unused Space::is_free_block
Reviewed-by: tschatzl
This commit is contained in:
parent
dd8ae61643
commit
bc05893f82
@ -74,10 +74,6 @@ void ContiguousSpace::clear(bool mangle_space) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ContiguousSpace::is_free_block(const HeapWord* p) const {
|
|
||||||
return p >= _top;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef PRODUCT
|
#ifndef PRODUCT
|
||||||
|
|
||||||
void ContiguousSpace::set_top_for_allocations(HeapWord* v) {
|
void ContiguousSpace::set_top_for_allocations(HeapWord* v) {
|
||||||
|
@ -133,9 +133,6 @@ class Space: public CHeapObj<mtGC> {
|
|||||||
// given address.
|
// given address.
|
||||||
bool is_in_reserved(const void* p) const { return _bottom <= p && p < _end; }
|
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
|
// Test whether p is double-aligned
|
||||||
static bool is_aligned(void* p) {
|
static bool is_aligned(void* p) {
|
||||||
return ::is_aligned(p, sizeof(double));
|
return ::is_aligned(p, sizeof(double));
|
||||||
@ -273,8 +270,6 @@ protected:
|
|||||||
size_t used() const override { return byte_size(bottom(), top()); }
|
size_t used() const override { return byte_size(bottom(), top()); }
|
||||||
size_t free() const override { return byte_size(top(), end()); }
|
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
|
// In a contiguous space we have a more obvious bound on what parts
|
||||||
// contain objects.
|
// contain objects.
|
||||||
MemRegion used_region() const override { return MemRegion(bottom(), top()); }
|
MemRegion used_region() const override { return MemRegion(bottom(), top()); }
|
||||||
|
Loading…
Reference in New Issue
Block a user