8300958: Parallel: Remove unused MutableNUMASpace::capacity_in_words
Reviewed-by: tschatzl
This commit is contained in:
parent
30cb305dc1
commit
7328182b68
@ -231,24 +231,6 @@ size_t MutableNUMASpace::unsafe_max_tlab_alloc(Thread *thr) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t MutableNUMASpace::capacity_in_words(Thread* thr) const {
|
|
||||||
guarantee(thr != NULL, "No thread");
|
|
||||||
int lgrp_id = thr->lgrp_id();
|
|
||||||
if (lgrp_id == -1) {
|
|
||||||
if (lgrp_spaces()->length() > 0) {
|
|
||||||
return capacity_in_words() / lgrp_spaces()->length();
|
|
||||||
} else {
|
|
||||||
assert(false, "There should be at least one locality group");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int i = lgrp_spaces()->find(&lgrp_id, LGRPSpace::equals);
|
|
||||||
if (i == -1) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return lgrp_spaces()->at(i)->space()->capacity_in_words();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if the NUMA topology has changed. Add and remove spaces if needed.
|
// Check if the NUMA topology has changed. Add and remove spaces if needed.
|
||||||
// The update can be forced by setting the force parameter equal to true.
|
// The update can be forced by setting the force parameter equal to true.
|
||||||
bool MutableNUMASpace::update_layout(bool force) {
|
bool MutableNUMASpace::update_layout(bool force) {
|
||||||
|
@ -218,7 +218,7 @@ class MutableNUMASpace : public MutableSpace {
|
|||||||
virtual size_t free_in_words() const;
|
virtual size_t free_in_words() const;
|
||||||
|
|
||||||
using MutableSpace::capacity_in_words;
|
using MutableSpace::capacity_in_words;
|
||||||
virtual size_t capacity_in_words(Thread* thr) const;
|
|
||||||
virtual size_t tlab_capacity(Thread* thr) const;
|
virtual size_t tlab_capacity(Thread* thr) const;
|
||||||
virtual size_t tlab_used(Thread* thr) const;
|
virtual size_t tlab_used(Thread* thr) const;
|
||||||
virtual size_t unsafe_max_tlab_alloc(Thread* thr) const;
|
virtual size_t unsafe_max_tlab_alloc(Thread* thr) const;
|
||||||
|
@ -89,7 +89,6 @@ class MutableSpace: public CHeapObj<mtGC> {
|
|||||||
|
|
||||||
size_t capacity_in_bytes() const { return capacity_in_words() * HeapWordSize; }
|
size_t capacity_in_bytes() const { return capacity_in_words() * HeapWordSize; }
|
||||||
size_t capacity_in_words() const { return pointer_delta(end(), bottom()); }
|
size_t capacity_in_words() const { return pointer_delta(end(), bottom()); }
|
||||||
virtual size_t capacity_in_words(Thread*) const { return capacity_in_words(); }
|
|
||||||
|
|
||||||
// Returns a subregion containing all objects in this space.
|
// Returns a subregion containing all objects in this space.
|
||||||
MemRegion used_region() { return MemRegion(bottom(), top()); }
|
MemRegion used_region() { return MemRegion(bottom(), top()); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user