diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-27 09:34:31 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-27 09:35:03 +0000 |
| commit | 3e03324fa88d4364dddff092aa1e5a9e8deaa51b (patch) | |
| tree | 6d72f78e6831454063b450c089d6e628969d805b /runtime | |
| parent | 4e9724ce88569a70f21ecf83470cb13961bb29d3 (diff) | |
Update to node 20
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 |
