Separate pruning from marking of spark pools