From 4e116e25a5c0d9b9b7f92e3c363a93902eaf19d6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 27 Jan 2024 00:29:34 +0000 Subject: Reduce size of GC header --- runtime/src/gc.c | 2 +- runtime/src/gc.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/src') diff --git a/runtime/src/gc.c b/runtime/src/gc.c index dc8c719b..b15c20dc 100644 --- a/runtime/src/gc.c +++ b/runtime/src/gc.c @@ -80,7 +80,7 @@ void shed__runtime__gc_push_root(ShedObject gc_root) { struct ShedGcObjectHeader* first = NULL; -void* shed__runtime__gc_alloc(size_t size, size_t children_offset, size_t children_count) { +void* shed__runtime__gc_alloc(size_t size, uint32_t children_offset, uint32_t children_count) { struct ShedGcObjectHeader* object = malloc(size); object->next = first; object->mark = 0; diff --git a/runtime/src/gc.h b/runtime/src/gc.h index 0b15a117..b642a7d9 100644 --- a/runtime/src/gc.h +++ b/runtime/src/gc.h @@ -8,10 +8,10 @@ struct ShedGcObjectHeader { struct ShedGcObjectHeader* next; PatioInt mark; - PatioInt children_offset; - PatioInt children_count; + uint32_t children_offset; + uint32_t children_count; }; -void* shed__runtime__gc_alloc(size_t size, size_t children_offset, size_t children_count); +void* shed__runtime__gc_alloc(size_t size, uint32_t children_offset, uint32_t children_count); #endif -- cgit v1.2.3