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();
|
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* factor_vm::new_context() {
|
||||||
context* new_context;
|
context* new_context;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,10 @@ factor_vm::factor_vm(THREADHANDLE thread)
|
||||||
}
|
}
|
||||||
|
|
||||||
factor_vm::~factor_vm() {
|
factor_vm::~factor_vm() {
|
||||||
delete_contexts();
|
FACTOR_ASSERT(!ctx);
|
||||||
|
FACTOR_FOR_EACH(unused_contexts) {
|
||||||
|
delete *iter;
|
||||||
|
}
|
||||||
if (signal_callstack_seg) {
|
if (signal_callstack_seg) {
|
||||||
delete signal_callstack_seg;
|
delete signal_callstack_seg;
|
||||||
signal_callstack_seg = NULL;
|
signal_callstack_seg = NULL;
|
||||||
|
|
|
@ -154,7 +154,6 @@ struct factor_vm {
|
||||||
void delete_context();
|
void delete_context();
|
||||||
void init_contexts(cell datastack_size_, cell retainstack_size_,
|
void init_contexts(cell datastack_size_, cell retainstack_size_,
|
||||||
cell callstack_size_);
|
cell callstack_size_);
|
||||||
void delete_contexts();
|
|
||||||
cell begin_callback(cell quot);
|
cell begin_callback(cell quot);
|
||||||
void end_callback();
|
void end_callback();
|
||||||
void primitive_current_callback();
|
void primitive_current_callback();
|
||||||
|
|
Loading…
Reference in New Issue