factor/vm/code_heap.hpp

21 lines
542 B
C++
Raw Normal View History

2009-05-04 02:46:13 -04:00
namespace factor
{
2009-10-06 02:42:17 -04:00
struct code_heap : heap {
/* Set of blocks which need full relocation. */
std::set<code_block *> needs_fixup;
/* Code blocks which may reference objects in the nursery */
std::set<code_block *> points_to_nursery;
/* Code blocks which may reference objects in aging space or the nursery */
std::set<code_block *> points_to_aging;
2009-10-07 09:33:54 -04:00
explicit code_heap(bool secure_gc, cell size);
void write_barrier(code_block *compiled);
bool needs_fixup_p(code_block *compiled);
void code_heap_free(code_block *compiled);
};
2009-05-04 02:46:13 -04:00
}