initial GC commit

This commit is contained in:
Yuichi Nishiwaki
2013-10-13 19:00:12 +09:00
parent 2ef277d5bd
commit dc2f25ef2a
3 changed files with 122 additions and 19 deletions
+6
View File
@@ -1,10 +1,16 @@
#ifndef GC_H__
#define GC_H__
enum pic_gc_mark {
PIC_GC_MARK,
PIC_GC_UNMARK
};
union header {
struct {
union header *ptr;
size_t size;
enum pic_gc_mark mark;
} s;
long alignment; /* force alignment for headers to be allocated at the size of long */
};