File tree 3 files changed +1
-20
lines changed
src/hotspot/share/gc/parallel
3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -231,24 +231,6 @@ size_t MutableNUMASpace::unsafe_max_tlab_alloc(Thread *thr) const {
231
231
}
232
232
233
233
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
-
252
234
// Check if the NUMA topology has changed. Add and remove spaces if needed.
253
235
// The update can be forced by setting the force parameter equal to true.
254
236
bool MutableNUMASpace::update_layout (bool force) {
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ class MutableNUMASpace : public MutableSpace {
218
218
virtual size_t free_in_words () const ;
219
219
220
220
using MutableSpace::capacity_in_words;
221
- virtual size_t capacity_in_words (Thread* thr) const ;
221
+
222
222
virtual size_t tlab_capacity (Thread* thr) const ;
223
223
virtual size_t tlab_used (Thread* thr) const ;
224
224
virtual size_t unsafe_max_tlab_alloc (Thread* thr) const ;
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ class MutableSpace: public CHeapObj<mtGC> {
89
89
90
90
size_t capacity_in_bytes () const { return capacity_in_words () * HeapWordSize; }
91
91
size_t capacity_in_words () const { return pointer_delta (end (), bottom ()); }
92
- virtual size_t capacity_in_words (Thread*) const { return capacity_in_words (); }
93
92
94
93
// Returns a subregion containing all objects in this space.
95
94
MemRegion used_region () { return MemRegion (bottom (), top ()); }
You can’t perform that action at this time.
0 commit comments