Fixed some bugs and modifications to mark
This commit is contained in:
parent
02c9ae0ab4
commit
6840297c08
10 changed files with 114 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue