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/83bc8490a9de
branches:  trunk
changeset: 959986:83bc8490a9de
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 d8befe7091ce -r 83bc8490a9de 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