mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 01:27:19 +03:00
Make malloc_write() non-inline.
Make malloc_write() non-inline, in order to resolve its dependency on je_malloc_write().
This commit is contained in:
parent
8d5865eb57
commit
889ec59bd3
2 changed files with 12 additions and 11 deletions
11
src/util.c
11
src/util.c
|
|
@ -59,6 +59,17 @@ wrtmessage(void *cbopaque, const char *s)
|
|||
JEMALLOC_EXPORT void (*je_malloc_message)(void *, const char *s) =
|
||||
wrtmessage;
|
||||
|
||||
/*
|
||||
* Wrapper around malloc_message() that avoids the need for
|
||||
* je_malloc_message(...) throughout the code.
|
||||
*/
|
||||
void
|
||||
malloc_write(const char *s)
|
||||
{
|
||||
|
||||
je_malloc_message(NULL, s);
|
||||
}
|
||||
|
||||
/*
|
||||
* glibc provides a non-standard strerror_r() when _GNU_SOURCE is defined, so
|
||||
* provide a wrapper.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue