--- old/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp 2015-04-21 13:44:52.803363516 +0200 +++ new/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp 2015-04-21 13:44:52.659358679 +0200 @@ -31,6 +31,7 @@ #include "gc_implementation/parallelScavenge/psPromotionLAB.inline.hpp" #include "gc_implementation/parallelScavenge/psScavenge.hpp" #include "oops/oop.inline.hpp" +#include "utilities/taskqueue.inline.hpp" inline PSPromotionManager* PSPromotionManager::manager_array(int index) { assert(_manager_array != NULL, "access of NULL manager_array"); @@ -38,6 +39,12 @@ return &_manager_array[index]; } + +template +inline void PSPromotionManager::push_depth(T* p) { + claimed_stack_depth()->push(p); +} + template inline void PSPromotionManager::claim_or_forward_internal_depth(T* p) { if (p != NULL) { // XXX: error if p != NULL here @@ -99,7 +106,7 @@ // performance. // template -oop PSPromotionManager::copy_to_survivor_space(oop o) { +inline oop PSPromotionManager::copy_to_survivor_space(oop o) { assert(should_scavenge(&o), "Sanity"); oop new_obj = NULL;