Fixed mark skipping

Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
This commit is contained in:
Victor Olin 2023-02-20 11:45:07 +01:00
parent 3473c953b5
commit 6cd6edb594
6 changed files with 73 additions and 21 deletions

View file

@ -3,11 +3,9 @@
#include "heap.hpp"
// using namespace std;
// GC::Heap *singleton_test();
// void init_gc(GC::Heap *heap);
// void frame_test(GC::Heap *heap);
GC::Heap *singleton_test();
void init_gc(GC::Heap *heap);
void frame_test(GC::Heap *heap);
GC::Heap *singleton_test() {
std::cout << "TESTING SINGLETON INSTANCES" << std::endl;
@ -38,11 +36,13 @@ void frame_test(GC::Heap *heap) {
std::cout << "Previous stack frame:\t" << prev_frame << std::endl;
heap->check_init();
// auto alloced = heap->alloc(sizeof(unsigned long));
std::cout << "===========================" << std::endl;
}
int main() {
std::cout << "in main" << std::endl;
auto heap = singleton_test();
init_gc(heap);