From ca64b2bb8026fb4510696736d2d887e21ac2bfa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Jan 2024 21:15:53 +0000 Subject: Zero out GC children with explicit memory stores --- runtime/src/gc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'runtime') 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.) -- cgit v1.2.3