Add some jemalloc stubs so we can link as a jemalloc replacement
This commit is contained in:
parent
0971f40e55
commit
e5814c28b5
|
@ -4,9 +4,17 @@
|
|||
* and libc sometimes invokes realloc, which can greatly confuse things
|
||||
* in the linking process...
|
||||
*
|
||||
* $Id: combined.c,v 1.1 2016/01/13 21:56:38 christos Exp $
|
||||
* $Id: combined.c,v 1.2 2021/03/03 21:46:43 christos Exp $
|
||||
*/
|
||||
|
||||
#include "malloc.c"
|
||||
#include "free.c"
|
||||
#include "realloc.c"
|
||||
|
||||
/* jemalloc defines these */
|
||||
void _malloc_prefork(void);
|
||||
void _malloc_postfork(void);
|
||||
void _malloc_postfork_child(void);
|
||||
void _malloc_prefork(void) {}
|
||||
void _malloc_postfork(void) {}
|
||||
void _malloc_postfork_child(void) {}
|
||||
|
|
Loading…
Reference in New Issue