VM: removes the delete_contexts method
parent
5fabb71404
commit
340ad8b8d9
|
@ -94,13 +94,6 @@ void factor_vm::init_contexts(cell datastack_size_, cell retainstack_size_,
|
|||
spare_ctx = new_context();
|
||||
}
|
||||
|
||||
void factor_vm::delete_contexts() {
|
||||
FACTOR_ASSERT(!ctx);
|
||||
FACTOR_FOR_EACH(unused_contexts) {
|
||||
delete *iter;
|
||||
}
|
||||
}
|
||||
|
||||
context* factor_vm::new_context() {
|
||||
context* new_context;
|
||||
|
||||
|
|
|
@ -27,7 +27,10 @@ factor_vm::factor_vm(THREADHANDLE thread)
|
|||
}
|
||||
|
||||
factor_vm::~factor_vm() {
|
||||
delete_contexts();
|
||||
FACTOR_ASSERT(!ctx);
|
||||
FACTOR_FOR_EACH(unused_contexts) {
|
||||
delete *iter;
|
||||
}
|
||||
if (signal_callstack_seg) {
|
||||
delete signal_callstack_seg;
|
||||
signal_callstack_seg = NULL;
|
||||
|
|
Loading…
Reference in New Issue