You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/05/19 17:39:19 UTC
svn commit: r1124950 -
/subversion/trunk/subversion/libsvn_subr/cache-inprocess.c
Author: danielsh
Date: Thu May 19 15:39:19 2011
New Revision: 1124950
URL: http://svn.apache.org/viewvc?rev=1124950&view=rev
Log:
* subversion/libsvn_subr/cache-inprocess.c
(cache_page.page_pool): Clarify the CACHE_PAGE lifetime in the docstring.
Modified:
subversion/trunk/subversion/libsvn_subr/cache-inprocess.c
Modified: subversion/trunk/subversion/libsvn_subr/cache-inprocess.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-inprocess.c?rev=1124950&r1=1124949&r2=1124950&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-inprocess.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-inprocess.c Thu May 19 15:39:19 2011
@@ -97,7 +97,11 @@ struct cache_page {
struct cache_page *next;
/* The pool in which cache_entry structs, hash keys, and dup'd
- * values are allocated. */
+ * values are allocated. The CACHE_PAGE structs are allocated
+ * in CACHE_POOL and have the same lifetime as the cache itself.
+ * (The cache will never allocate more than TOTAL_PAGES page
+ * structs (inclusive of the sentinel) from CACHE_POOL.)
+ */
apr_pool_t *page_pool;
/* A singly linked list of the entries on this page; used to remove