Module Name:    src
Committed By:   christos
Date:           Wed Mar  3 21:46:43 UTC 2021

Modified Files:
        src/external/gpl2/libmalloc/lib: combined.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl2/libmalloc/lib/combined.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/libmalloc/lib/combined.c
diff -u src/external/gpl2/libmalloc/lib/combined.c:1.1 src/external/gpl2/libmalloc/lib/combined.c:1.2
--- src/external/gpl2/libmalloc/lib/combined.c:1.1	Wed Jan 13 16:56:38 2016
+++ src/external/gpl2/libmalloc/lib/combined.c	Wed Mar  3 16:46:43 2021
@@ -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) {}

Reply via email to