hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp
changeset 19285 0a3b3f115402
parent 18025 b7bcf7497f93
child 20282 7f9cbdf89af2
child 22828 17ecb098bc1e
equal deleted inserted replaced
19265:df22e7139250 19285:0a3b3f115402
    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