135 template <class T> static inline bool should_scavenge(T* p, bool check_to_space); |
135 template <class T> static inline bool should_scavenge(T* p, bool check_to_space); |
136 |
136 |
137 template <class T, bool promote_immediately> |
137 template <class T, bool promote_immediately> |
138 inline static void copy_and_push_safe_barrier(PSPromotionManager* pm, T* p); |
138 inline static void copy_and_push_safe_barrier(PSPromotionManager* pm, T* p); |
139 |
139 |
|
140 static void copy_and_push_safe_barrier_from_klass(PSPromotionManager* pm, oop* p); |
|
141 |
140 // Is an object in the young generation |
142 // Is an object in the young generation |
141 // This assumes that the HeapWord argument is in the heap, |
143 // This assumes that the HeapWord argument is in the heap, |
142 // so it only checks one side of the complete predicate. |
144 // so it only checks one side of the complete predicate. |
143 inline static bool is_obj_in_young(HeapWord* o) { |
145 inline static bool is_obj_in_young(HeapWord* o) { |
144 const bool result = (o >= _young_generation_boundary); |
146 const bool result = (o >= _young_generation_boundary); |