aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-01-28 21:15:53 +0000
committerMichael Williamson <mike@zwobble.org>2024-01-28 21:15:53 +0000
commitca64b2bb8026fb4510696736d2d887e21ac2bfa3 (patch)
treef965e1845bf36de7df6a738369faaa62297a9856 /runtime
parentf495be56b344bf79f45ce1bc55165ae6933e8246 (diff)
Zero out GC children with explicit memory stores
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/gc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/src/gc.c b/runtime/src/gc.c
index b15c20dc..8d2efc08 100644
--- a/runtime/src/gc.c
+++ b/runtime/src/gc.c
@@ -87,12 +87,6 @@ void* shed__runtime__gc_alloc(size_t size, uint32_t children_offset, uint32_t ch
object->children_offset = children_offset;
object->children_count = children_count;
- __builtin_memset(
- ((void*) object) + children_offset,
- 0,
- sizeof(void*) * children_count
- );
-
// TODO: is it possible to leave adding the root to the caller, and avoid
// having to add so many roots? (Since some values will immediately become a
// descendant of a root.)