diff options
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/gc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/gc.c b/runtime/src/gc.c index 413ffce9..6e3f0803 100644 --- a/runtime/src/gc.c +++ b/runtime/src/gc.c @@ -19,5 +19,7 @@ bool is_marked(struct ShedGcObjectHeader* object) { } void* shed__runtime__gc_alloc(size_t size) { - return shed__runtime__alloc(size); + struct ShedGcObjectHeader* object = shed__runtime__alloc(size); + object->mark = 0; + return object; } |
