summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorotto <>2008-11-02 14:42:01 +0000
committerotto <>2008-11-02 14:42:01 +0000
commit7af3d9c76afbda8df5eb01ca1b72f7c03844f308 (patch)
tree231d7e957c686982c787484b0892b9b8872a1aff /src
parent78d2870f638221e075bcb0fbaf1e9f0a2b98c6b0 (diff)
downloadopenbsd-7af3d9c76afbda8df5eb01ca1b72f7c03844f308.tar.gz
openbsd-7af3d9c76afbda8df5eb01ca1b72f7c03844f308.tar.bz2
openbsd-7af3d9c76afbda8df5eb01ca1b72f7c03844f308.zip
fix markup of example line and description of G flag; partly from and
ok jmc@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/malloc.39
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 8da3a299e1..a6a8014433 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
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.55 2008/11/02 08:50:41 otto Exp $ 33.\" $OpenBSD: malloc.3,v 1.56 2008/11/02 14:42:01 otto Exp $
34.\" 34.\"
35.Dd $Mdocdate: November 2 2008 $ 35.Dd $Mdocdate: November 2 2008 $
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -235,10 +235,9 @@ Unused pages on the freelist are read and write protected to
235cause a segmentation fault upon access. 235cause a segmentation fault upon access.
236.It Cm G 236.It Cm G
237.Dq Guard . 237.Dq Guard .
238Enable guard pages and chunk randomization. 238Enable guard pages.
239Each page size or larger allocation is followed by a guard page that will 239Each page size or larger allocation is followed by a guard page that will
240cause a segmentation fault upon any access. 240cause a segmentation fault upon any access.
241Smaller than page size chunks are returned in a random order.
242.It Cm H 241.It Cm H
243.Dq Hint . 242.Dq Hint .
244Pass a hint to the kernel about pages we don't use. 243Pass a hint to the kernel about pages we don't use.
@@ -295,8 +294,8 @@ Decrease the size of the free page cache by a factor of two.
295Increase the size of the free page cache by a factor of two. 294Increase the size of the free page cache by a factor of two.
296.El 295.El
297.Pp 296.Pp
298So to set a systemwide reduction of cache size and coredumps on problems: 297So to set a systemwide reduction of cache size and use guard pages:
299.Li ln -s 'G<' /etc/malloc.conf 298.Dl # ln -s 'G\*(Lt' /etc/malloc.conf
300.Pp 299.Pp
301The 300The
302.Cm J 301.Cm J