Almost finished w/ 1st impl of GC

This commit is contained in:
Victor Olin 2023-02-14 11:48:04 +01:00
parent 7fd324a5b2
commit deed239879
4 changed files with 208 additions and 12 deletions

15
src/GC/include/chunk.hpp Normal file
View file

@ -0,0 +1,15 @@
#pragma once
#include <stdlib.h>
#define CHUNK_LIST_CAP 1024
namespace GC {
struct Chunk {
bool marked;
void *start;
size_t size;
};
}