comparison src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp @ 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 22b8d3d181d9
children 63a4eb8bcd23
comparison
equal deleted inserted replaced
10358:0def34ab1c98 10359:14d3f71f831d
1 /* 1 /*
2 * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2004, 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.
434 // Cost of GC for all types of collections. 434 // Cost of GC for all types of collections.
435 virtual double gc_cost() const; 435 virtual double gc_cost() const;
436 436
437 size_t generation_alignment() { return _generation_alignment; } 437 size_t generation_alignment() { return _generation_alignment; }
438 438
439 virtual void compute_young_generation_free_space(size_t cur_eden, 439 virtual void compute_eden_space_size(size_t cur_eden,
440 size_t max_eden_size); 440 size_t max_eden_size);
441 // Calculates new survivor space size; returns a new tenuring threshold 441 // Calculates new survivor space size; returns a new tenuring threshold
442 // value. Stores new survivor size in _survivor_size. 442 // value. Stores new survivor size in _survivor_size.
443 virtual uint compute_survivor_space_size_and_threshold( 443 virtual uint compute_survivor_space_size_and_threshold(
444 bool is_survivor_overflow, 444 bool is_survivor_overflow,
445 uint tenuring_threshold, 445 uint tenuring_threshold,