diff --git a/vm/aging_space.hpp b/vm/aging_space.hpp index 743363b10c..c2ec2a645e 100644 --- a/vm/aging_space.hpp +++ b/vm/aging_space.hpp @@ -3,10 +3,6 @@ namespace factor struct aging_space : old_space { aging_space(cell size, cell start) : old_space(size,start) {} - - bool is_nursery_p() { return false; } - bool is_aging_p() { return true; } - bool is_tenured_p() { return false; } }; } diff --git a/vm/copying_collector.hpp b/vm/copying_collector.hpp index 654b84f3ae..297e70e687 100644 --- a/vm/copying_collector.hpp +++ b/vm/copying_collector.hpp @@ -153,19 +153,13 @@ end: this->myvm->gc_stats.card_scan_time += (current_micros() - start_time); for(; iter != end; iter++) trace_literal_references(*iter); } - template - void trace_objects_between(SourceGeneration *gen, cell scan, cell *end) - { - while(scan && scan < *end) - { - this->trace_slots((object *)scan); - scan = gen->next_object_after(this->myvm,scan); - } - } - void cheneys_algorithm() { - trace_objects_between(this->target,scan,&this->target->here); + while(scan && scan < this->target->here) + { + this->trace_slots((object *)scan); + scan = this->target->next_object_after(this->myvm,scan); + } } }; diff --git a/vm/tenured_space.hpp b/vm/tenured_space.hpp index a05b272fb6..f9f584b200 100644 --- a/vm/tenured_space.hpp +++ b/vm/tenured_space.hpp @@ -3,10 +3,6 @@ namespace factor struct tenured_space : old_space { tenured_space(cell size, cell start) : old_space(size,start) {} - - bool is_nursery_p() { return false; } - bool is_aging_p() { return false; } - bool is_tenured_p() { return true; } }; }