diff options
author | Frank Ch. Eigler <[email protected]> | 2024-03-18 16:06:02 -0400 |
---|---|---|
committer | Frank Ch. Eigler <[email protected]> | 2024-03-18 16:06:02 -0400 |
commit | a0ab32276adbc157ebdadd922fb7a45bd99c68c7 (patch) | |
tree | 885d6cd1a73a75c62f7f39ff0a6111015aedd677 /configure.ac | |
parent | d74f4c1d572fbeb7454a2ffa02cbc955ea24780d (diff) |
PR31103: debuginfod: periodically call malloc_trim(0)
Add malloc_trim() for releasing memory which is allocated for
temporary purposes, e.g. answering queries, adding data to the
database during scans. This patch just adds one call after the groom
cycle, but others could be added around webapi query handling or
scanning ops too.
Signed-off-by: Di Chen <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bbe8673e..098d1306 100644 --- a/configure.ac +++ b/configure.ac @@ -483,6 +483,8 @@ AC_CHECK_HEADERS([sched.h]) AC_CHECK_FUNCS([sched_getaffinity]) AC_CHECK_HEADERS([sys/resource.h]) AC_CHECK_FUNCS([getrlimit]) +AC_CHECK_HEADERS([malloc.h]) +AC_CHECK_FUNCS([malloc_trim]) old_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -D_GNU_SOURCE" |