History log of /netbsd-src/lib/libbsdmalloc/Makefile (Results 1 – 7 of 7)
Revision Date Author Comments
# 6c3f4940 04-Jul-2023 riastradh <riastradh@NetBSD.org>

libbsdmalloc: Nix K&R definitions. Bump WARNS to 3.


# 2daa8bfe 04-Jul-2023 riastradh <riastradh@NetBSD.org>

libbsdmalloc: New man page.

XXX pullup-10


# d6f78684 04-Jul-2023 riastradh <riastradh@NetBSD.org>

libbsdmalloc: Provide all allocator front ends and fork hooks.

Front ends:

- aligned_alloc
- calloc
- posix_memalign

Fork hooks:

- _malloc_prefork
- _malloc_postfork
- _malloc_postfork_child

Oth

libbsdmalloc: Provide all allocator front ends and fork hooks.

Front ends:

- aligned_alloc
- calloc
- posix_memalign

Fork hooks:

- _malloc_prefork
- _malloc_postfork
- _malloc_postfork_child

Otherwise these will pull in the jemalloc definitions from libc,
which (a) defeats the purpose, and (b) won't work correctly with
fork and threads.

Thanks to kre@ and the thread on tech-userlevel for pointing me in
the right direction to making this actually work to override
jemalloc:

https://mail-index.netbsd.org/tech-userlevel/2023/06/30/msg013957.html

Note: libbsdmalloc doesn't set errno=ENOMEM on malloc failure, but
these front ends do (even aligned_alloc, which is from C11, which
doesn't define ENOMEM at all, but this pacifies our aligned_alloc
tests in t_posix_memalign.c). Might want to fix that.

XXX pullup-10

show more ...


# 572e1c85 21-Mar-2012 matt <matt@NetBSD.org>

These directories don't handle WARNS=5


# 61ae1a1c 10-Apr-2011 joerg <joerg@NetBSD.org>

Define _REENT. Extend CPPFLAGS.


# 7b6e5e66 10-Jul-2003 lukem <lukem@NetBSD.org>

NOxxx= variables must appear before <bsd.own.mk>


# 645dee56 21-Apr-2003 elric <elric@NetBSD.org>

Adding libbsdmalloc which is Chris Kingsley's `power of two bucket' malloc.

Suggested by christos.