summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotto <>2009-02-13 18:49:14 +0000
committerotto <>2009-02-13 18:49:14 +0000
commit441b16c70edae508ef61ce467415b077ca49155a (patch)
treeb6855b4bdec3ea1335f74526bbc6ab5d915af553
parent46c70cc2fc62aa8d5816f39abeceef7affff5f1e (diff)
downloadopenbsd-441b16c70edae508ef61ce467415b077ca49155a.tar.gz
openbsd-441b16c70edae508ef61ce467415b077ca49155a.tar.bz2
openbsd-441b16c70edae508ef61ce467415b077ca49155a.zip
decribe 'F' better and mention flags are debugging aids; ok tedu@ jmc@
-rw-r--r--src/lib/libc/stdlib/malloc.318
1 files changed, 10 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index c3566e37e8..0b5914097f 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.60 2008/12/30 07:44:51 djm Exp $ 33.\" $OpenBSD: malloc.3,v 1.61 2009/02/13 18:49:14 otto Exp $
34.\" 34.\"
35.Dd $Mdocdate: December 30 2008 $ 35.Dd $Mdocdate: February 13 2009 $
36.Dt MALLOC 3 36.Dt MALLOC 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -233,6 +233,10 @@ order to have any effect.
233Enable use after free protection. 233Enable use after free protection.
234Unused pages on the freelist are read and write protected to 234Unused pages on the freelist are read and write protected to
235cause a segmentation fault upon access. 235cause a segmentation fault upon access.
236This will also switch off the delayed freeing of chunks,
237reducing random behaviour but detecting double
238.Fn free
239calls as early as possible.
236.It Cm G 240.It Cm G
237.Dq Guard . 241.Dq Guard .
238Enable guard pages. 242Enable guard pages.
@@ -298,12 +302,10 @@ Increase the size of the free page cache by a factor of two.
298So to set a systemwide reduction of cache size and use guard pages: 302So to set a systemwide reduction of cache size and use guard pages:
299.Dl # ln -s 'G\*(Lt' /etc/malloc.conf 303.Dl # ln -s 'G\*(Lt' /etc/malloc.conf
300.Pp 304.Pp
301The 305The flags are mostly for testing and debugging.
302.Cm J 306If a program changes behavior if any of these options (except
303and 307.Cm X )
304.Cm Z 308are used,
305flags are mostly for testing and debugging.
306If a program changes behavior if either of these options are used,
307it is buggy. 309it is buggy.
308.Pp 310.Pp
309The default number of free pages cached is 64. 311The default number of free pages cached is 64.