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