Skip to content

Commit 7328182

Browse files
committed
8300958: Parallel: Remove unused MutableNUMASpace::capacity_in_words
Reviewed-by: tschatzl
1 parent 30cb305 commit 7328182

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

src/hotspot/share/gc/parallel/mutableNUMASpace.cpp

-18
Original file line numberDiff line numberDiff line change
@@ -231,24 +231,6 @@ size_t MutableNUMASpace::unsafe_max_tlab_alloc(Thread *thr) const {
231231
}
232232

233233

234-
size_t MutableNUMASpace::capacity_in_words(Thread* thr) const {
235-
guarantee(thr != NULL, "No thread");
236-
int lgrp_id = thr->lgrp_id();
237-
if (lgrp_id == -1) {
238-
if (lgrp_spaces()->length() > 0) {
239-
return capacity_in_words() / lgrp_spaces()->length();
240-
} else {
241-
assert(false, "There should be at least one locality group");
242-
return 0;
243-
}
244-
}
245-
int i = lgrp_spaces()->find(&lgrp_id, LGRPSpace::equals);
246-
if (i == -1) {
247-
return 0;
248-
}
249-
return lgrp_spaces()->at(i)->space()->capacity_in_words();
250-
}
251-
252234
// Check if the NUMA topology has changed. Add and remove spaces if needed.
253235
// The update can be forced by setting the force parameter equal to true.
254236
bool MutableNUMASpace::update_layout(bool force) {

src/hotspot/share/gc/parallel/mutableNUMASpace.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class MutableNUMASpace : public MutableSpace {
218218
virtual size_t free_in_words() const;
219219

220220
using MutableSpace::capacity_in_words;
221-
virtual size_t capacity_in_words(Thread* thr) const;
221+
222222
virtual size_t tlab_capacity(Thread* thr) const;
223223
virtual size_t tlab_used(Thread* thr) const;
224224
virtual size_t unsafe_max_tlab_alloc(Thread* thr) const;

src/hotspot/share/gc/parallel/mutableSpace.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class MutableSpace: public CHeapObj<mtGC> {
8989

9090
size_t capacity_in_bytes() const { return capacity_in_words() * HeapWordSize; }
9191
size_t capacity_in_words() const { return pointer_delta(end(), bottom()); }
92-
virtual size_t capacity_in_words(Thread*) const { return capacity_in_words(); }
9392

9493
// Returns a subregion containing all objects in this space.
9594
MemRegion used_region() { return MemRegion(bottom(), top()); }

0 commit comments

Comments
 (0)