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