[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the purpose of wdcache and wlcache?

From: Chet Ramey
Subject: Re: What is the purpose of wdcache and wlcache?
Date: Fri, 8 Feb 2019 10:03:55 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/7/19 11:43 PM, Peng Yu wrote:
> Hi,
> I don't understand the purpose of wdcache and wlcache. The "nc" field
> seems to be always 0 (as initialized in ocache_create(), and I don't
> find where it is increased. But `ocache_alloc()` just call xmalloc
> without using the cache since nc is 0. So wdcache and wlcache seem to
> be useless.
> Do I miss something?

Yes: ocache_free.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]