From 821344c781a99a4f559949a7497617b64c061c82 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 23 Nov 2021 11:13:11 +0000 Subject: Stored pages release routine --- sysdep/unix/io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdep/unix/io.c') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index dd385c80..91d717d0 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -2193,6 +2193,7 @@ static int short_loops = 0; #define WORK_EVENTS_MAX 10 void pipe_drain(int fd); +void check_stored_pages(void); void io_loop(void) @@ -2215,6 +2216,9 @@ io_loop(void) timers_fire(&main_birdloop.time, 1); io_close_event(); + /* Try to release some memory if possible */ + check_stored_pages(); + // FIXME poll_tout = (events ? 0 : 3000); /* Time in milliseconds */ if (t = timers_first(&main_birdloop.time)) -- cgit v1.2.3