mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8007762: Rename a bunch of methods in size policy across collectors
Rename: compute_generations_free_space() = compute_eden_space_size() + compute_old_gen_free_space(); update related logging messages Reviewed-by: jmasa, johnc, tschatzl, brutisso
This commit is contained in:
parent
a50a5688af
commit
1e80919f4c
9 changed files with 41 additions and 42 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2013, 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
|
||||
|
@ -969,8 +969,8 @@ size_t CMSAdaptiveSizePolicy::promo_increment_aligned_up(size_t cur_promo) {
|
|||
}
|
||||
|
||||
|
||||
void CMSAdaptiveSizePolicy::compute_young_generation_free_space(size_t cur_eden,
|
||||
size_t max_eden_size)
|
||||
void CMSAdaptiveSizePolicy::compute_eden_space_size(size_t cur_eden,
|
||||
size_t max_eden_size)
|
||||
{
|
||||
size_t desired_eden_size = cur_eden;
|
||||
size_t eden_limit = max_eden_size;
|
||||
|
@ -978,7 +978,7 @@ void CMSAdaptiveSizePolicy::compute_young_generation_free_space(size_t cur_eden,
|
|||
// Printout input
|
||||
if (PrintGC && PrintAdaptiveSizePolicy) {
|
||||
gclog_or_tty->print_cr(
|
||||
"CMSAdaptiveSizePolicy::compute_young_generation_free_space: "
|
||||
"CMSAdaptiveSizePolicy::compute_eden_space_size: "
|
||||
"cur_eden " SIZE_FORMAT,
|
||||
cur_eden);
|
||||
}
|
||||
|
@ -1024,7 +1024,7 @@ void CMSAdaptiveSizePolicy::compute_young_generation_free_space(size_t cur_eden,
|
|||
|
||||
if (PrintGC && PrintAdaptiveSizePolicy) {
|
||||
gclog_or_tty->print_cr(
|
||||
"CMSAdaptiveSizePolicy::compute_young_generation_free_space limits:"
|
||||
"CMSAdaptiveSizePolicy::compute_eden_space_size limits:"
|
||||
" desired_eden_size: " SIZE_FORMAT
|
||||
" old_eden_size: " SIZE_FORMAT,
|
||||
desired_eden_size, cur_eden);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2013, 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
|
||||
|
@ -436,8 +436,8 @@ class CMSAdaptiveSizePolicy : public AdaptiveSizePolicy {
|
|||
|
||||
size_t generation_alignment() { return _generation_alignment; }
|
||||
|
||||
virtual void compute_young_generation_free_space(size_t cur_eden,
|
||||
size_t max_eden_size);
|
||||
virtual void compute_eden_space_size(size_t cur_eden,
|
||||
size_t max_eden_size);
|
||||
// Calculates new survivor space size; returns a new tenuring threshold
|
||||
// value. Stores new survivor size in _survivor_size.
|
||||
virtual uint compute_survivor_space_size_and_threshold(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue