[PATCH v2] lib/slab: introduce sl_allocz() function and use it in Babel

Toke Høiland-Jørgensen toke at toke.dk
Mon Nov 23 13:45:43 CET 2020


andreas at rammhold.de writes:

> While testing this patch I asked myself if there are actually still
> valid users of non-zeroed memory and if we shouldn't just change the
> default to be zeroed? That would also remove the need to patch every
> single call site.

Well there are other callers that already perform manual clearing, so
just changing sl_alloc() would lead to double-clearing there. Not a huge
issue, I suppose, but I'll leave it up to the maintainers to decide :)

-Toke


More information about the Bird-users mailing list