apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r751633 - /apr/apr/trunk/memory/unix/apr_pools.c
Date Mon, 09 Mar 2009 09:29:27 GMT
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);
 



Mime
View raw message