You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by rh...@apache.org on 2015/11/01 13:36:05 UTC
svn commit: r1711741 - /serf/trunk/test/test_util.c
Author: rhuijben
Date: Sun Nov 1 12:36:05 2015
New Revision: 1711741
URL: http://svn.apache.org/viewvc?rev=1711741&view=rev
Log:
* test/test_util.c
(test_setup): Only keep 16 MB of unused memory during testing.
(Subversion defaults to 4 MB). The default was
to never return memory.
Modified:
serf/trunk/test/test_util.c
Modified: serf/trunk/test/test_util.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_util.c?rev=1711741&r1=1711740&r2=1711741&view=diff
==============================================================================
--- serf/trunk/test/test_util.c (original)
+++ serf/trunk/test/test_util.c Sun Nov 1 12:36:05 2015
@@ -626,6 +626,9 @@ void *test_setup(void *dummy)
apr_pool_t *test_pool;
apr_pool_create(&test_pool, NULL);
apr_pool_abort_set(pool_abort_func, test_pool);
+ /* Keep a maximum of 16 MB unused memory inside APR. */
+ apr_allocator_max_free_set(apr_pool_allocator_get(test_pool),
+ 16384 * 1024);
return initTestCtx(test_pool);
}