mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8154467: Cleanup initialization of GCPolicyCounters
Reviewed-by: ehelin, sjohanss
This commit is contained in:
parent
fdd7fde740
commit
39b43a87e7
7 changed files with 21 additions and 23 deletions
|
@ -564,7 +564,7 @@ HeapWord* DefNewGeneration::expand_and_allocate(size_t size,
|
|||
|
||||
void DefNewGeneration::adjust_desired_tenuring_threshold() {
|
||||
// Set the desired survivor size to half the real survivor space
|
||||
GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->collector_policy()->counters();
|
||||
GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->gen_policy()->counters();
|
||||
_tenuring_threshold =
|
||||
age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, gc_counters);
|
||||
}
|
||||
|
@ -945,7 +945,7 @@ void DefNewGeneration::gc_epilogue(bool full) {
|
|||
|
||||
// update the generation and space performance counters
|
||||
update_counters();
|
||||
gch->collector_policy()->counters()->update_counters();
|
||||
gch->gen_policy()->counters()->update_counters();
|
||||
}
|
||||
|
||||
void DefNewGeneration::record_spaces_top() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue