mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8212206: Refactor AdaptiveSizePolicy to separate out code related to GC overhead
Move check_gc_overhead_limit() and related code to its own class Reviewed-by: tschatzl, pliden, jiangli
This commit is contained in:
parent
c7219faf86
commit
e309fb9a3a
13 changed files with 313 additions and 177 deletions
|
@ -1889,8 +1889,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
|
|||
max_eden_size,
|
||||
true /* full gc*/);
|
||||
|
||||
size_policy->check_gc_overhead_limit(young_live,
|
||||
eden_live,
|
||||
size_policy->check_gc_overhead_limit(eden_live,
|
||||
max_old_gen_size,
|
||||
max_eden_size,
|
||||
true /* full gc*/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue