summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2003-11-25 12:32:54 +0000
committerjmc <jmc@openbsd.org>2003-11-25 12:32:54 +0000
commit61575d8ec07b7154a224e1a1fea5c6ac7007c382 (patch)
tree6a4f269aaaec701ef9dd76be34d729102259254a /lib/libc/stdlib/malloc.3
parent- document interaction with SIGINFO, as observed by Franciszek Holop on misc@ (diff)
downloadwireguard-openbsd-61575d8ec07b7154a224e1a1fea5c6ac7007c382.tar.xz
wireguard-openbsd-61575d8ec07b7154a224e1a1fea5c6ac7007c382.zip
wording improvements from Brian Poole;
kill a .Pp before a display;
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r--lib/libc/stdlib/malloc.39
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 2af89006560..1182256650a 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.32 2003/10/16 17:05:04 tedu Exp $
+.\" $OpenBSD: malloc.3,v 1.33 2003/11/25 12:32:54 jmc Exp $
.\"
.Dd August 27, 1996
.Dt MALLOC 3
@@ -141,7 +141,6 @@ object is returned.
When using
.Fn realloc
one must be careful to avoid the following idiom:
-.Pp
.Bd -literal -offset indent
size += 50;
if ((p = realloc(p, size)) == NULL)
@@ -349,7 +348,7 @@ internal freelist has been stomped on.
Here is a brief description of the warning messages and what they mean:
.Bl -tag -width Fl
.It Dq chunk/page is already free.
-A pointer to a free chunk is attempted freed again.
+There was an attempt to free a chunk that had already been freed.
.It Dq junk pointer, too high to make sense.
The pointer doesn't make sense.
It's above the area of memory that
@@ -422,5 +421,5 @@ Every time the free-list is traversed, all the otherwise unused, and very
likely paged out, pages get faulted into primary memory, just to see what
lies after them in the list.
.Pp
-On systems which are paging, this can make a factor five in difference on the
-page-faults of a process.
+On systems which are paging, this can increase the page-faults
+of a process by a factor of five.