8073543: Circular include dependency between psScavenge.inline.hpp and psPromotionManager.inline.hpp

Reviewed-by: brutisso, mgerdin
This commit is contained in:
Stefan Karlsson 2015-02-20 13:54:42 +01:00
parent 5cc358251f
commit cd997db44d
11 changed files with 58 additions and 51 deletions

View file

@ -66,6 +66,15 @@ void PSPromotionManager::initialize() {
// for work stealing.
}
// Helper functions to get around the circular dependency between
// psScavenge.inline.hpp and psPromotionManager.inline.hpp.
bool PSPromotionManager::should_scavenge(oop* p, bool check_to_space) {
return PSScavenge::should_scavenge(p, check_to_space);
}
bool PSPromotionManager::should_scavenge(narrowOop* p, bool check_to_space) {
return PSScavenge::should_scavenge(p, check_to_space);
}
PSPromotionManager* PSPromotionManager::gc_thread_promotion_manager(int index) {
assert(index >= 0 && index < (int)ParallelGCThreads, "index out of range");
assert(_manager_array != NULL, "Sanity");