]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use custom isc_mem based allocator for libuv
authorOndřej Surý <ondrej@isc.org>
Fri, 23 Sep 2022 11:54:33 +0000 (13:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 27 Sep 2022 15:10:42 +0000 (17:10 +0200)
commita32d06dd4228650d461dfb018489287d7a470eb9
tree15a035ff5ac7c78b85dbb8ba393ed7c8c4b5ed8e
parenta30e75db86f408fec1c727d6a02c054420e1ee48
Use custom isc_mem based allocator for libuv

The libuv library provides a way to replace the default allocator with
user supplied allocator (malloc, realloc, calloc and free).

Create a memory context specifically for libuv to allow tracking the
memory usage that has originated from within libuv.  This requires
libuv >= 1.38.0 which provides uv_library_shutdown() function that
assures no more allocations will be made.
lib/isc/include/isc/uv.h
lib/isc/lib.c
lib/isc/uv.c