diff options
author | otto <> | 2008-11-02 14:42:01 +0000 |
---|---|---|
committer | otto <> | 2008-11-02 14:42:01 +0000 |
commit | 7af3d9c76afbda8df5eb01ca1b72f7c03844f308 (patch) | |
tree | 231d7e957c686982c787484b0892b9b8872a1aff /src | |
parent | 78d2870f638221e075bcb0fbaf1e9f0a2b98c6b0 (diff) | |
download | openbsd-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.3 | 9 |
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 | |||
235 | cause a segmentation fault upon access. | 235 | cause a segmentation fault upon access. |
236 | .It Cm G | 236 | .It Cm G |
237 | .Dq Guard . | 237 | .Dq Guard . |
238 | Enable guard pages and chunk randomization. | 238 | Enable guard pages. |
239 | Each page size or larger allocation is followed by a guard page that will | 239 | Each page size or larger allocation is followed by a guard page that will |
240 | cause a segmentation fault upon any access. | 240 | cause a segmentation fault upon any access. |
241 | Smaller than page size chunks are returned in a random order. | ||
242 | .It Cm H | 241 | .It Cm H |
243 | .Dq Hint . | 242 | .Dq Hint . |
244 | Pass a hint to the kernel about pages we don't use. | 243 | Pass 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. | |||
295 | Increase the size of the free page cache by a factor of two. | 294 | Increase the size of the free page cache by a factor of two. |
296 | .El | 295 | .El |
297 | .Pp | 296 | .Pp |
298 | So to set a systemwide reduction of cache size and coredumps on problems: | 297 | So 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 |
301 | The | 300 | The |
302 | .Cm J | 301 | .Cm J |