diff --git a/vm/code_heap.cpp b/vm/code_heap.cpp index 1338226f6d..b6b1e4e648 100644 --- a/vm/code_heap.cpp +++ b/vm/code_heap.cpp @@ -47,8 +47,6 @@ void code_heap::set_marked_p(code_block* compiled) { allocator->state.set_marked_p((cell)compiled, compiled->size()); } -void code_heap::clear_mark_bits() { allocator->state.clear_mark_bits(); } - void code_heap::free(code_block* compiled) { FACTOR_ASSERT(!uninitialized_p(compiled)); points_to_nursery.erase(compiled); diff --git a/vm/code_heap.hpp b/vm/code_heap.hpp index 28b066afc7..1b9169f69e 100644 --- a/vm/code_heap.hpp +++ b/vm/code_heap.hpp @@ -39,7 +39,6 @@ struct code_heap { bool uninitialized_p(code_block* compiled); bool marked_p(code_block* compiled); void set_marked_p(code_block* compiled); - void clear_mark_bits(); void free(code_block* compiled); void flush_icache(); void guard_safepoint(); diff --git a/vm/full_collector.cpp b/vm/full_collector.cpp index ac8721a83e..c8a22b749b 100644 --- a/vm/full_collector.cpp +++ b/vm/full_collector.cpp @@ -36,8 +36,8 @@ void factor_vm::collect_mark_impl(bool trace_contexts_p) { mark_stack.clear(); - code->clear_mark_bits(); - data->tenured->clear_mark_bits(); + code->allocator->state.clear_mark_bits(); + data->tenured->state.clear_mark_bits(); collector.data_visitor.visit_roots(); if (trace_contexts_p) { diff --git a/vm/tenured_space.hpp b/vm/tenured_space.hpp index c163e9c0c2..cf501f2e89 100644 --- a/vm/tenured_space.hpp +++ b/vm/tenured_space.hpp @@ -25,8 +25,6 @@ struct tenured_space : free_list_allocator { return (cell)next_allocated_block_after(next); } - void clear_mark_bits() { state.clear_mark_bits(); } - bool marked_p(object* obj) { return this->state.marked_p((cell)obj); }