hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp
changeset 22828 17ecb098bc1e
parent 22808 88bca865e247
parent 19285 0a3b3f115402
child 22838 82c7497fbad4
equal deleted inserted replaced
22827:07d991d45a51 22828:17ecb098bc1e
    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