hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp
equal
deleted
inserted
replaced
30 #include "gc_implementation/parallelScavenge/psScavenge.hpp" |
30 #include "gc_implementation/parallelScavenge/psScavenge.hpp" |
31 |
31 |
32 inline PSPromotionManager* PSPromotionManager::manager_array(int index) { |
32 inline PSPromotionManager* PSPromotionManager::manager_array(int index) { |
33 assert(_manager_array != NULL, "access of NULL manager_array"); |
33 assert(_manager_array != NULL, "access of NULL manager_array"); |
34 assert(index >= 0 && index <= (int)ParallelGCThreads, "out of range manager_array access"); |
34 assert(index >= 0 && index <= (int)ParallelGCThreads, "out of range manager_array access"); |
35 return _manager_array[index]; |
35 return &_manager_array[index]; |
36 } |
36 } |
37 |
37 |
38 template <class T> |
38 template <class T> |
39 inline void PSPromotionManager::claim_or_forward_internal_depth(T* p) { |
39 inline void PSPromotionManager::claim_or_forward_internal_depth(T* p) { |
40 if (p != NULL) { // XXX: error if p != NULL here |
40 if (p != NULL) { // XXX: error if p != NULL here |