src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp

changeset 5515
9766f73e770d
parent 5237
f2110083203d
child 5784
190899198332
child 6462
e2722a66aba7
equal deleted inserted replaced
5495:39127bb12d32 5515:9766f73e770d
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

mercurial