1 /* |
1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2012, 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. |
169 |
169 |
170 bool old_gen_is_full() { return _old_gen_is_full; } |
170 bool old_gen_is_full() { return _old_gen_is_full; } |
171 void set_old_gen_is_full(bool state) { _old_gen_is_full = state; } |
171 void set_old_gen_is_full(bool state) { _old_gen_is_full = state; } |
172 |
172 |
173 // Promotion methods |
173 // Promotion methods |
174 oop copy_to_survivor_space(oop o); |
174 template<bool promote_immediately> oop copy_to_survivor_space(oop o); |
175 oop oop_promotion_failed(oop obj, markOop obj_mark); |
175 oop oop_promotion_failed(oop obj, markOop obj_mark); |
176 |
176 |
177 void reset(); |
177 void reset(); |
178 |
178 |
179 void flush_labs(); |
179 void flush_labs(); |