| #
229bcb83 |
| 20-Jan-2025 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Fix sense of assertion in aligned_alloc.
|
| #
2a758386 |
| 08-Jul-2023 |
simonb <simonb@NetBSD.org> |
Make mstats() decl match prototype so this compiles with -DMSTATS.
|
| #
d5888fcb |
| 05-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Use a multiply-overflow that clang supports too.
XXX pullup-10
|
| #
9e6ac21a |
| 05-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Make aligned_alloc(A, S) actually align when A > S.
XXX pullup-10
|
| #
c9e3880c |
| 05-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Lift C11 divisibility restriction on aligned_alloc.
Restriction was lifted in C17.
XXX pullup-10
|
| #
4651d9e0 |
| 05-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Fix build with DEBUG.
Nix __P while here.
XXX pullup-10
|
| #
6c3f4940 |
| 04-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Nix K&R definitions. Bump WARNS to 3.
|
| #
d95fa526 |
| 04-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
libbsdmalloc: Nix trailing whitespace.
No functional change intended.
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 ...
|
| #
eb7c1594 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
| #
645dee56 |
| 21-Apr-2003 |
elric <elric@NetBSD.org> |
Adding libbsdmalloc which is Chris Kingsley's `power of two bucket' malloc.
Suggested by christos.
|