mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-18 18:05:39 +03:00
Add a0malloc(), a0calloc(), and a0free().
Add a0malloc(), a0calloc(), and a0free(), which are used by FreeBSD's libc to allocate/deallocate TLS in static binaries.
This commit is contained in:
parent
633aaff967
commit
01b3fe55ff
6 changed files with 89 additions and 29 deletions
|
|
@ -1016,7 +1016,7 @@ thread_arena_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
|
|||
int ret;
|
||||
unsigned newind, oldind;
|
||||
|
||||
newind = oldind = choose_arena()->ind;
|
||||
newind = oldind = choose_arena(NULL)->ind;
|
||||
WRITE(newind, unsigned);
|
||||
READ(oldind, unsigned);
|
||||
if (newind != oldind) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue