Release more drawables on OOM

We've changed how resources are released so they are now being
freed continuosly, rather than on OOM, since we want to free as early
possible to avoid fragmentation. So, OOM situations should be a bit
less common now and signify a real memory shortage, so we should try
to free up more resources.
This commit is contained in:
Alexander Larsson 2010-09-09 18:56:44 +02:00
parent 69bad628cc
commit 2f76d8e974

View File

@ -4408,7 +4408,7 @@ static int red_process_commands(RedWorker *worker, uint32_t max_pipe_size, int *
return n;
}
#define RED_RELEASE_BUNCH_SIZE 5
#define RED_RELEASE_BUNCH_SIZE 64
static void red_free_some(RedWorker *worker)
{