]> gitweb.factorcode.org Git - factor.git/blob - vm/data_heap.hpp
Merge branch 'master' of git://factorcode.org/git/factor into new_gc
[factor.git] / vm / data_heap.hpp
1 namespace factor
2 {
3
4 struct data_heap {
5         cell start;
6
7         cell young_size;
8         cell aging_size;
9         cell tenured_size;
10
11         segment *seg;
12
13         zone *nursery;
14         aging_space *aging;
15         aging_space *aging_semispace;
16         tenured_space *tenured;
17         tenured_space *tenured_semispace;
18
19         card *cards;
20         card *cards_end;
21
22         card_deck *decks;
23         card_deck *decks_end;
24         
25         explicit data_heap(factor_vm *myvm, cell young_size, cell aging_size, cell tenured_size);
26         ~data_heap();
27 };
28
29 static const cell nursery_gen = 0;
30 static const cell aging_gen = 1;
31 static const cell tenured_gen = 2;
32 static const cell gen_count = 3;
33
34 }