1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp Wed Apr 27 01:25:04 2016 +0800 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp Fri Apr 29 00:06:10 2016 +0800 1.3 @@ -22,6 +22,12 @@ 1.4 * 1.5 */ 1.6 1.7 +/* 1.8 + * This file has been modified by Loongson Technology in 2015. These 1.9 + * modifications are Copyright (c) 2015 Loongson Technology, and are made 1.10 + * available on the same license terms set forth above. 1.11 + */ 1.12 + 1.13 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSPROMOTIONMANAGER_HPP 1.14 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSPROMOTIONMANAGER_HPP 1.15 1.16 @@ -77,6 +83,7 @@ 1.17 1.18 PSYoungPromotionLAB _young_lab; 1.19 PSOldPromotionLAB _old_lab; 1.20 + PSOldPromotionLAB _old_lab_oldnuma[4]; 1.21 bool _young_gen_is_full; 1.22 bool _old_gen_is_full; 1.23 1.24 @@ -176,6 +183,11 @@ 1.25 bool old_gen_is_full() { return _old_gen_is_full; } 1.26 void set_old_gen_is_full(bool state) { _old_gen_is_full = state; } 1.27 1.28 + //Stastic methods 1.29 + int get_oop_location(oop o); 1.30 + int get_oop_node_id(oop o, int location); 1.31 + void stastic_scavenge(oop o); 1.32 + 1.33 // Promotion methods 1.34 template<bool promote_immediately> oop copy_to_survivor_space(oop o); 1.35 oop oop_promotion_failed(oop obj, markOop obj_mark);