Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parNew/asParNewGeneration.cpp @ 10359:14d3f71f831d
8007762: Rename a bunch of methods in size policy across collectors
Summary: Rename: compute_generations_free_space() = compute_eden_space_size() + compute_old_gen_free_space(); update related logging messages
Reviewed-by: jmasa, johnc, tschatzl, brutisso
Contributed-by: tamao <tao.mao@oracle.com>
author | tamao |
---|---|
date | Wed, 22 May 2013 11:11:47 -0700 |
parents | f95d63e2154a |
children | 63a4eb8bcd23 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
10358:0def34ab1c98 | 10359:14d3f71f831d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
583 _tenuring_threshold, | 583 _tenuring_threshold, |
584 survivor_limit); | 584 survivor_limit); |
585 size_policy->avg_young_live()->sample(used()); | 585 size_policy->avg_young_live()->sample(used()); |
586 size_policy->avg_eden_live()->sample(eden()->used()); | 586 size_policy->avg_eden_live()->sample(eden()->used()); |
587 | 587 |
588 size_policy->compute_young_generation_free_space(eden()->capacity(), | 588 size_policy->compute_eden_space_size(eden()->capacity(), max_gen_size()); |
589 max_gen_size()); | |
590 | 589 |
591 resize(size_policy->calculated_eden_size_in_bytes(), | 590 resize(size_policy->calculated_eden_size_in_bytes(), |
592 size_policy->calculated_survivor_size_in_bytes()); | 591 size_policy->calculated_survivor_size_in_bytes()); |
593 | 592 |
594 if (UsePerfData) { | 593 if (UsePerfData) { |