factor/vm/data_heap.hpp

31 lines
466 B
C++
Raw Normal View History

2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-04 05:50:24 -04:00
struct data_heap {
2009-10-09 12:16:18 -04:00
cell start;
2009-05-04 05:50:24 -04:00
cell young_size;
cell aging_size;
cell tenured_size;
2009-05-02 05:04:19 -04:00
segment *seg;
zone *nursery;
aging_space *aging;
aging_space *aging_semispace;
tenured_space *tenured;
tenured_space *tenured_semispace;
2009-05-02 05:04:19 -04:00
2009-10-09 12:16:18 -04:00
card *cards;
card *cards_end;
2009-05-02 05:04:19 -04:00
2009-10-09 12:16:18 -04:00
card_deck *decks;
card_deck *decks_end;
explicit data_heap(cell young_size, cell aging_size, cell tenured_size);
~data_heap();
data_heap *grow(cell requested_size);
2009-05-02 10:19:09 -04:00
};
2009-05-02 05:04:19 -04:00
2009-05-04 02:46:13 -04:00
}