VM: removing end_gc()

char-rename
Björn Lindqvist 2016-09-28 05:22:32 +02:00
parent 8899914697
commit 91843ef22d
2 changed files with 4 additions and 9 deletions

View File

@ -64,13 +64,6 @@ gc_state::~gc_state() {
}
}
void factor_vm::end_gc() {
if (gc_events) {
current_gc->event->ended_gc(this);
gc_events->push_back(*current_gc->event);
}
}
void factor_vm::start_gc_again() {
if (current_gc->op == collect_nursery_op) {
// Nursery collection can fail if aging does not have enough
@ -160,7 +153,10 @@ void factor_vm::gc(gc_op op, cell requested_size) {
}
}
end_gc();
if (gc_events) {
current_gc->event->ended_gc(this);
gc_events->push_back(*current_gc->event);
}
atomic::store(&current_gc_p, false);
if (ctx)

View File

@ -338,7 +338,6 @@ struct factor_vm {
void check_data_heap();
// gc
void end_gc();
void set_current_gc_op(gc_op op);
void start_gc_again();
void collect_nursery();