More debugging
This commit is contained in:
parent
5157e6b41d
commit
72a044cd59
5 changed files with 48 additions and 10 deletions
|
|
@ -12,11 +12,16 @@ void init() {
|
|||
auto temp1 = gc->alloc(sizeof(a_ptr));
|
||||
auto temp2 = gc->alloc(sizeof(live_int_vec));
|
||||
auto temp3 = gc->alloc(sizeof(dead_int_vec));
|
||||
a_ptr = nullptr;
|
||||
|
||||
// *arr, *temp1, *temp2 and *temp3 should all be on the stack
|
||||
//a_ptr = nullptr;
|
||||
}
|
||||
|
||||
int main() {
|
||||
init();
|
||||
//init();
|
||||
for (int i = 1; i < 10; i++) {
|
||||
gc->alloc(sizeof(i));
|
||||
}
|
||||
gc->collect(MARK | SWEEP);
|
||||
gc->print_contents();
|
||||
//delete gc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue