Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/libmalloc/lib Add some jemalloc stubs so we ca...



details:   https://anonhg.NetBSD.org/src/rev/ab0052992d41
branches:  trunk
changeset: 953275:ab0052992d41
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 03 21:46:43 2021 +0000

description:
Add some jemalloc stubs so we can link as a jemalloc replacement

diffstat:

 external/gpl2/libmalloc/lib/combined.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 05ba43451f50 -r ab0052992d41 external/gpl2/libmalloc/lib/combined.c
--- a/external/gpl2/libmalloc/lib/combined.c    Wed Mar 03 12:31:19 2021 +0000
+++ b/external/gpl2/libmalloc/lib/combined.c    Wed Mar 03 21:46:43 2021 +0000
@@ -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) {}



Home | Main Index | Thread Index | Old Index