vm: remove some dead code

db4
Slava Pestov 2009-10-15 22:06:43 -05:00
parent d48c72a274
commit 8a7547ef1b
3 changed files with 5 additions and 19 deletions

View File

@ -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; }
};
}

View File

@ -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<typename SourceGeneration>
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);
}
}
};

View File

@ -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; }
};
}