]> gitweb.factorcode.org Git - factor.git/blob - vm/code_heap.hpp
Merge branch 'help' of git://github.com/klazuka/factor
[factor.git] / vm / code_heap.hpp
1 namespace factor
2 {
3
4 struct code_heap : heap {
5         /* Set of blocks which need full relocation. */
6         std::set<code_block *> needs_fixup;
7
8         /* Code blocks which may reference objects in the nursery */
9         std::set<code_block *> points_to_nursery;
10
11         /* Code blocks which may reference objects in aging space or the nursery */
12         std::set<code_block *> points_to_aging;
13
14         explicit code_heap(bool secure_gc, cell size);
15         void write_barrier(code_block *compiled);
16         bool needs_fixup_p(code_block *compiled);
17         void code_heap_free(code_block *compiled);
18 };
19
20 }