From: otto Date: Fri, 9 Apr 2021 06:04:15 +0000 (+0000) Subject: Cache implementation has changed, we do not hold on to an exact number X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=853bf09bc9f5f6b9a9de5434bd19524ee0dfbfa5;p=openbsd Cache implementation has changed, we do not hold on to an exact number of pages anymore, but also cache larger regions; ok tb@ --- diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index c27f965d0a7..dc3e691ece2 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -30,9 +30,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.127 2021/02/25 15:20:18 otto Exp $ +.\" $OpenBSD: malloc.3,v 1.128 2021/04/09 06:04:15 otto Exp $ .\" -.Dd $Mdocdate: February 25 2021 $ +.Dd $Mdocdate: April 9 2021 $ .Dt MALLOC 3 .Os .Sh NAME @@ -366,7 +366,8 @@ If a program changes behavior if any of these options (except are used, it is buggy. .Pp -The default number of free pages cached is 64 per malloc pool. +The default size of the cache is 64 single page allocations. +It also caches a number of larger regions. Multi-threaded programs use multiple pools. .Sh RETURN VALUES Upon successful completion, the allocation functions