Skip to content

Use mallctl() instead of setting malloc_conf

Ondřej Surý requested to merge 2921-use-mallctl-instead-of-malloc_conf into main

It was discovered that named could crash when the allocation fails. This should not happen, as we are correctly setting xmalloc:true in malloc_conf configuration string for jemalloc.

In this commit, we use mallctl() calls with a second call as verification that the new configuration values has been set.

Closes #2921 (closed)

Merge request reports