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:
parent
b794e46635
commit
8b9fe196a1
1 changed files with 0 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue