8280804: Parallel: Remove unused variables in PSPromotionManager::drain_stacks_depth

Reviewed-by: tschatzl, mli
This commit is contained in:
Albert Mingkun Yang 2022-01-28 08:11:44 +00:00
parent 55f180fb7d
commit 973dda5ce0

View File

@ -244,12 +244,6 @@ void PSPromotionManager::restore_preserved_marks() {
void PSPromotionManager::drain_stacks_depth(bool totally_drain) {
totally_drain = totally_drain || _totally_drain;
#ifdef ASSERT
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
MutableSpace* to_space = heap->young_gen()->to_space();
MutableSpace* old_space = heap->old_gen()->object_space();
#endif /* ASSERT */
PSScannerTasksQueue* const tq = claimed_stack_depth();
do {
ScannerTask task;