Date: Fri, 1 Nov 2002 10:58:13 -0800 (PST) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c Message-ID: <200211011858.gA1IwDrc035364@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2002/11/01 10:58:13 PST Modified files: sys/sys malloc.h sys/kern kern_malloc.c Log: Introduce malloc_last_fail() which returns the number of seconds since malloc(9) failed last time. This is intended to help code adjust memory usage to the current circumstances. A typical use could be: if (malloc_last_fail() < 60) reduce_cache_by_one(); Revision Changes Path 1.113 +16 -0 src/sys/kern/kern_malloc.c 1.68 +1 -0 src/sys/sys/malloc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211011858.gA1IwDrc035364>