void GarbageCollector::execute() { //objectTable->print(); //objectHeap->print(); DEBUG_MSG("garbage collector executed"); numberOfRuns++; markLiveObjects(); cleanHeap(); DEBUG_MSG("garbage collector finished"); //objectTable->print(); //objectHeap->print(); }
Factory::~Factory() { cleanHeap(); for(auto &td: type_deducers) { delete td; } }