summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorsf <sf@13f79535-47bb-0310-9956-ffa450edef68>2014-05-14 21:30:48 +0000
committersf <sf@13f79535-47bb-0310-9956-ffa450edef68>2014-05-14 21:30:48 +0000
commit2b53ade052014def1455c512fe7d5283fd344bc7 (patch)
tree454b56ef49820bd0f509719ce61b2577e53f509d /CHANGES
parent968eeaaf7dcfce3141ced68c9a38ee889451e0f8 (diff)
downloadlibapr-2b53ade052014def1455c512fe7d5283fd344bc7.tar.gz
Don't waste memory when creating or allocating from small, long-lived
APR pools after clearing or destroying pools that allocated larger nodes. When allocating nodes from the bucket allocator (<= 80k or 20 pages), we would eagerly reuse *any* free node that is at least the minimum size. Depending on the pool usage scheme, that extra memory would never be used. This patch limits the node to approximate twice the minimum. * memory/unix/apr_pools.c (allocator_alloc): When searching the buckets for free nodes, limit the range to twice the starting index. Submitted by: Stefan Fuhrmann <stefan fuhrmann wandisco com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1594729 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 51ad08419..82033a399 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
-*- coding: utf-8 -*-
Changes for APR 2.0.0
+ *) apr_allocator: Be less wasteful and don't return a memnode that is
+ much larger than what was requested. [Stefan Fuhrmann
+ <stefan fuhrmann wandisco com>]
+
*) Windows platform: Remove support for Windows 9x.
*) Added signed apr_intptr_t. Changed ODBC dbd driver to use this.