8325897: Parallel: Remove PSYoungGen::is_maximal_no_gc
Reviewed-by: ayang
This commit is contained in:
parent
98e4b753e8
commit
357c912be5
src/hotspot/share/gc/parallel
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -208,7 +208,8 @@ size_t ParallelScavengeHeap::used() const {
|
||||
}
|
||||
|
||||
bool ParallelScavengeHeap::is_maximal_no_gc() const {
|
||||
return old_gen()->is_maximal_no_gc() && young_gen()->is_maximal_no_gc();
|
||||
// We don't expand young-gen except at a GC.
|
||||
return old_gen()->is_maximal_no_gc();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -123,10 +123,6 @@ class PSYoungGen : public CHeapObj<mtGC> {
|
||||
size_t min_gen_size() const { return _min_gen_size; }
|
||||
size_t max_gen_size() const { return _max_gen_size; }
|
||||
|
||||
bool is_maximal_no_gc() const {
|
||||
return true; // Never expands except at a GC
|
||||
}
|
||||
|
||||
// Allocation
|
||||
HeapWord* allocate(size_t word_size) {
|
||||
HeapWord* result = eden_space()->cas_allocate(word_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user