< prev index next >
src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.cpp
Print this page
rev 7858 : 8073543: Circular include dependency between psScavenge.inline.hpp and psPromotionManager.inline.hpp
*** 64,73 ****
--- 64,82 ----
}
// The VMThread gets its own PSPromotionManager, which is not available
// 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");
return &_manager_array[index];
}
< prev index next >