Next up is tests
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
This commit is contained in:
parent
deed239879
commit
31bc719e74
4 changed files with 78 additions and 16 deletions
|
|
@ -40,7 +40,7 @@ namespace GC {
|
|||
|
||||
void collect();
|
||||
void compact();
|
||||
void mark(uintptr_t *start, uintptr_t *end);
|
||||
void mark(uintptr_t *start, const uintptr_t *end, std::vector<Chunk *> worklist);
|
||||
|
||||
bool compareChunks(Chunk *c1, Chunk *c2);
|
||||
|
||||
|
|
@ -49,8 +49,8 @@ namespace GC {
|
|||
size_t m_size;
|
||||
size_t m_allocated_size;
|
||||
|
||||
std::vector<Chunk*> m_allocated_chunks;
|
||||
std::vector<Chunk*> m_freed_chunks;
|
||||
std::vector<Chunk *> m_allocated_chunks;
|
||||
std::vector<Chunk *> m_freed_chunks;
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue