Skip to content

Instantly share code, notes, and snippets.

Avatar

Zhe Wang 0x1997

View GitHub Profile
@0x1997
0x1997 / mark_sweep.cc
Created Dec 27, 2015
Toy implementation of mark&sweep GC
View mark_sweep.cc
#include <stdio.h>
#include <cassert>
#include <stdexcept>
enum class ObjectType
{
Int,
Pair
};