vm: remove some dead code
							parent
							
								
									d48c72a274
								
							
						
					
					
						commit
						8a7547ef1b
					
				| 
						 | 
					@ -3,10 +3,6 @@ namespace factor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct aging_space : old_space {
 | 
					struct aging_space : old_space {
 | 
				
			||||||
	aging_space(cell size, cell start) : old_space(size,start) {}
 | 
						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; }
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -153,19 +153,13 @@ end:		this->myvm->gc_stats.card_scan_time += (current_micros() - start_time);
 | 
				
			||||||
		for(; iter != end; iter++) trace_literal_references(*iter);
 | 
							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()
 | 
						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);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,10 +3,6 @@ namespace factor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct tenured_space : old_space {
 | 
					struct tenured_space : old_space {
 | 
				
			||||||
	tenured_space(cell size, cell start) : old_space(size,start) {}
 | 
						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; }
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue