comparison src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp @ 4909:95f6641e38e0

7144296: PS: Optimize nmethods processing Summary: Prunes scavenge roots in code list every young GC, promote objects directly pointed by the code immediately Reviewed-by: johnc, jcoomes
author iveresov
date Fri, 10 Feb 2012 17:40:20 -0800
parents f95d63e2154a
children d2a62e0f25eb
comparison
equal deleted inserted replaced
4888:3c4621be5149 4909:95f6641e38e0
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();