summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-05-23 23:09:22 (GMT)
committerJason Evans <je@fb.com>2012-05-23 23:09:22 (GMT)
commit5c710cee783a44061fa2c467ffd8984b8047b90e (patch)
tree6122c308c8acff7128ca1bb23576ae50745fce0f /src/jemalloc.c
parentf1966e1dc7543543e98386180f2b8530bf9725ab (diff)
downloadjemalloc-5c710cee783a44061fa2c467ffd8984b8047b90e.zip
jemalloc-5c710cee783a44061fa2c467ffd8984b8047b90e.tar.gz
jemalloc-5c710cee783a44061fa2c467ffd8984b8047b90e.tar.bz2
Remove const from __*_hook variable declarations.
Remove const from __*_hook variable declarations, so that glibc can modify them during process forking.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r--src/jemalloc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 481936d..1ab8a1c 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1265,11 +1265,10 @@ je_valloc(size_t size)
* passed an extra argument for the caller return address, which will be
* ignored.
*/
-JEMALLOC_EXPORT void (* const __free_hook)(void *ptr) = je_free;
-JEMALLOC_EXPORT void *(* const __malloc_hook)(size_t size) = je_malloc;
-JEMALLOC_EXPORT void *(* const __realloc_hook)(void *ptr, size_t size) =
- je_realloc;
-JEMALLOC_EXPORT void *(* const __memalign_hook)(size_t alignment, size_t size) =
+JEMALLOC_EXPORT void (* __free_hook)(void *ptr) = je_free;
+JEMALLOC_EXPORT void *(* __malloc_hook)(size_t size) = je_malloc;
+JEMALLOC_EXPORT void *(* __realloc_hook)(void *ptr, size_t size) = je_realloc;
+JEMALLOC_EXPORT void *(* __memalign_hook)(size_t alignment, size_t size) =
je_memalign;
#endif