diff options
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/src/gc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/src/gc.c b/runtime/src/gc.c index 26c1c204..dc8c719b 100644 --- a/runtime/src/gc.c +++ b/runtime/src/gc.c @@ -87,18 +87,11 @@ void* shed__runtime__gc_alloc(size_t size, size_t children_offset, size_t childr object->children_offset = children_offset; object->children_count = children_count; -#ifdef __WASM64__ - for (size_t child_offset = 0; child_offset < sizeof(void*) * children_count; child_offset++) { - char* ptr = ((void*) object) + children_offset + child_offset; - *ptr = 0; - } -#else __builtin_memset( ((void*) object) + children_offset, 0, sizeof(void*) * children_count ); -#endif // 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 |
