diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-01-27 00:29:34 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-01-27 00:29:45 +0000 |
| commit | 4e116e25a5c0d9b9b7f92e3c363a93902eaf19d6 (patch) | |
| tree | 5f9f838714bc1b604f1e8873684e322a9326c028 /runtime/src | |
| parent | fa664754ddf04071414d2d103402b0028af681c1 (diff) | |
Reduce size of GC header
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/gc.c | 2 | ||||
| -rw-r--r-- | runtime/src/gc.h | 6 |
2 files changed, 4 insertions, 4 deletions
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 |
