diff options
| author | otto <> | 2009-02-13 18:49:14 +0000 |
|---|---|---|
| committer | otto <> | 2009-02-13 18:49:14 +0000 |
| commit | 441b16c70edae508ef61ce467415b077ca49155a (patch) | |
| tree | b6855b4bdec3ea1335f74526bbc6ab5d915af553 /src/lib/libc | |
| parent | 46c70cc2fc62aa8d5816f39abeceef7affff5f1e (diff) | |
| download | openbsd-441b16c70edae508ef61ce467415b077ca49155a.tar.gz openbsd-441b16c70edae508ef61ce467415b077ca49155a.tar.bz2 openbsd-441b16c70edae508ef61ce467415b077ca49155a.zip | |
decribe 'F' better and mention flags are debugging aids; ok tedu@ jmc@
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 18 |
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. | |||
| 233 | Enable use after free protection. | 233 | Enable use after free protection. |
| 234 | Unused pages on the freelist are read and write protected to | 234 | 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 | This will also switch off the delayed freeing of chunks, | ||
| 237 | reducing random behaviour but detecting double | ||
| 238 | .Fn free | ||
| 239 | calls as early as possible. | ||
| 236 | .It Cm G | 240 | .It Cm G |
| 237 | .Dq Guard . | 241 | .Dq Guard . |
| 238 | Enable guard pages. | 242 | Enable guard pages. |
| @@ -298,12 +302,10 @@ Increase the size of the free page cache by a factor of two. | |||
| 298 | So to set a systemwide reduction of cache size and use guard pages: | 302 | So 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 |
| 301 | The | 305 | The flags are mostly for testing and debugging. |
| 302 | .Cm J | 306 | If a program changes behavior if any of these options (except |
| 303 | and | 307 | .Cm X ) |
| 304 | .Cm Z | 308 | are used, |
| 305 | flags are mostly for testing and debugging. | ||
| 306 | If a program changes behavior if either of these options are used, | ||
| 307 | it is buggy. | 309 | it is buggy. |
| 308 | .Pp | 310 | .Pp |
| 309 | The default number of free pages cached is 64. | 311 | The default number of free pages cached is 64. |
