1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-08 05:00:17 +02:00

No need to clear allocation table during allocation

The mmc clears holes eagerly; there is no need to memset during
allocation.
This commit is contained in:
Andy Wingo 2025-05-21 14:01:42 +02:00
parent b794e46635
commit 8b9fe196a1

View file

@ -88,8 +88,6 @@ static inline void gc_update_alloc_table(struct gc_ref obj, size_t size,
alloc[0] = begin_pattern | end_pattern;
} else {
alloc[0] = begin_pattern;
if (granules > 2)
memset(alloc + 1, 0, granules - 2);
alloc[granules - 1] = end_pattern;
}
} else {