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, |