You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2009/03/09 10:29:27 UTC

svn commit: r751633 - /apr/apr/trunk/memory/unix/apr_pools.c

Author: mturk
Date: Mon Mar  9 09:29:26 2009
New Revision: 751633

URL: http://svn.apache.org/viewvc?rev=751633&view=rev
Log:
No need for additional allocator space.
System malloc should make less fragmentation if we are aligned on MIN_ALLOC
boundary. Unmanaged pool will just offer the SIZEOF_ALLOCATOR_T initial
free memory less

Modified:
    apr/apr/trunk/memory/unix/apr_pools.c

Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=751633&r1=751632&r2=751633&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Mon Mar  9 09:29:26 2009
@@ -929,7 +929,7 @@
     if (!apr_pools_initialized)
         return APR_ENOPOOL;
     if ((pool_allocator = allocator) == NULL) {
-        if ((pool_allocator = malloc(MIN_ALLOC + SIZEOF_ALLOCATOR_T)) == NULL) {
+        if ((pool_allocator = malloc(MIN_ALLOC)) == NULL) {
             if (abort_fn)
                 abort_fn(APR_ENOMEM);