mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8139772: Cleanups in Generation related code
Reviewed-by: tbenson, mgerdin
This commit is contained in:
parent
686fb800c8
commit
f21d1afd70
8 changed files with 25 additions and 51 deletions
|
@ -58,12 +58,12 @@ Generation::Generation(ReservedSpace rs, size_t initial_size) :
|
|||
(HeapWord*)_virtual_space.high_boundary());
|
||||
}
|
||||
|
||||
GenerationSpec* Generation::spec() {
|
||||
size_t Generation::initial_size() {
|
||||
GenCollectedHeap* gch = GenCollectedHeap::heap();
|
||||
if (gch->is_young_gen(this)) {
|
||||
return gch->gen_policy()->young_gen_spec();
|
||||
return gch->gen_policy()->young_gen_spec()->init_size();
|
||||
}
|
||||
return gch->gen_policy()->old_gen_spec();
|
||||
return gch->gen_policy()->old_gen_spec()->init_size();
|
||||
}
|
||||
|
||||
size_t Generation::max_capacity() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue