8335544: Serial: Remove unused _should_allocate_from_space

Reviewed-by: iwalulya
This commit is contained in:
Albert Mingkun Yang 2024-07-03 08:42:43 +00:00
parent 4d2f73764b
commit 6c84e9c8cb
2 changed files with 0 additions and 13 deletions
src/hotspot/share/gc/serial

@ -229,7 +229,6 @@ DefNewGeneration::DefNewGeneration(ReservedSpace rs,
_promotion_failed(false),
_preserved_marks_set(false /* in_c_heap */),
_promo_failure_drain_in_progress(false),
_should_allocate_from_space(false),
_string_dedup_requests()
{
MemRegion cmr((HeapWord*)_virtual_space.low(),

@ -119,18 +119,6 @@ class DefNewGeneration: public Generation {
size_t _max_eden_size;
size_t _max_survivor_size;
// Allocation support
bool _should_allocate_from_space;
bool should_allocate_from_space() const {
return _should_allocate_from_space;
}
void clear_should_allocate_from_space() {
_should_allocate_from_space = false;
}
void set_should_allocate_from_space() {
_should_allocate_from_space = true;
}
// Tenuring
void adjust_desired_tenuring_threshold();