aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-service-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r--src/statistics/gnunet-service-statistics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index 3de481e77..ba6a614c8 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -1048,12 +1048,15 @@ GNUNET_SERVICE_MAIN (
1048/** 1048/**
1049 * MINIMIZE heap size (way below 128k) since this process doesn't need much. 1049 * MINIMIZE heap size (way below 128k) since this process doesn't need much.
1050 */ 1050 */
1051void __attribute__ ((constructor)) GNUNET_STATISTICS_memory_init () 1051void __attribute__ ((constructor))
1052GNUNET_STATISTICS_memory_init ()
1052{ 1053{
1053 mallopt (M_TRIM_THRESHOLD, 4 * 1024); 1054 mallopt (M_TRIM_THRESHOLD, 4 * 1024);
1054 mallopt (M_TOP_PAD, 1 * 1024); 1055 mallopt (M_TOP_PAD, 1 * 1024);
1055 malloc_trim (0); 1056 malloc_trim (0);
1056} 1057}
1058
1059
1057#endif 1060#endif
1058 1061
1059 1062