Static tikv_jemalloc_sys::malloc_message

source ยท
pub unsafe static mut malloc_message: Option<unsafe extern "C" fn(cbopaque: *mut c_void, s: *const c_char)>
Expand description

Allows overriding the function which emits the text strings forming the errors and warnings if for some reason the STDERR_FILENO file descriptor is not suitable for this.

malloc_message takes the cbopaque pointer argument that is null, unless overridden by the arguments in a call to malloc_stats_print, followed by a string pointer.

Please note that doing anything which tries to allocate memory in this function is likely to result in a crash or deadlock.