Fixed some bugs and modifications to mark

This commit is contained in:
valtermiari 2023-03-15 18:03:08 +01:00
parent 02c9ae0ab4
commit 6840297c08
10 changed files with 114 additions and 24 deletions

View file

@ -10,6 +10,18 @@ namespace GC
bool marked;
uintptr_t *start;
size_t size;
};
// Default constructor
Chunk()
{}
// -- Temporary --
// A copy constructor, keep track of how many times the vectors that hold chunks
// are copied.
// Shouldn't be all that relevant if we use vectors with Chunk-pointers.
Chunk(const Chunk& c) : marked(c.marked), start(c.start), size(c.size)
{
std::cout << "Chunk was copied" << std::endl;
}
};
}