4 template<typename TargetGeneration, typename Policy>
5 struct copying_collector : collector<TargetGeneration,Policy> {
8 explicit copying_collector(factor_vm *parent_, TargetGeneration *target_, Policy policy_) :
9 collector<TargetGeneration,Policy>(parent_,target_,policy_), scan(target_->here) {}
11 void cheneys_algorithm()
13 while(scan && scan < this->target->here)
15 this->trace_object((object *)scan);
16 scan = this->target->next_object_after(scan);