summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.3
Commit message (Collapse)AuthorAgeFilesLines
* Minor mdoc cleanup.Mike Pritchard2000-05-051-2/+3
| | | | | | | PR: docs/13218 Notes: svn path=/head/; revision=60015
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Add a missing THREAD_UNLOCK() found missing by Valentin NechayevPoul-Henning Kamp2000-04-101-5/+1
| | | | | | | | | | <netch@segfault.kiev.ua> Remove allocation failure check from 'A' option, the 'X' option does this as a standalone check now. Notes: svn path=/head/; revision=59117
* Add history: The reallocf() function first appeared in FreeBSD-3.0.Tim Vanderhoek1999-12-281-0/+5
| | | | | | | | See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the reallocf.c cvs history mistakenly refers to freebsd-current). Notes: svn path=/head/; revision=55186
* Document the current behaviour with respect to the handling of errno.Sheldon Hearn1999-12-221-1/+8
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=55006
* Go to a bit more trouble to make it absolutely clear that malloc(3)Peter Wemm1999-11-121-2/+9
| | | | | | | does not zero the allocated memory. Notes: svn path=/head/; revision=53111
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.Chris Costello1999-09-251-2/+2
| | | | Notes: svn path=/head/; revision=51667
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Various man page cleanup:Mike Pritchard1999-08-151-3/+3
| | | | | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=49828
* Fix .Xr line for `getpagesize'Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49744
* Disable the "Hint" option in phkmalloc as default. Recent VM systemPoul-Henning Kamp1999-03-281-2/+2
| | | | | | | | | | | | | | | changes have made this too expensive. This gains about 1.25% on worldstone on my SMP machine. Swap-less machines, for instance PicoBSDs, and machines which experience page-out trafic, check with top(1), will probably want to reenable this with: ln -s H /etc/malloc.conf Suggested by: alc (&dyson ?) Notes: svn path=/head/; revision=45091
* o Don't reference non-existant function freealloc.Warner Losh1998-09-161-4/+4
| | | | | | | | | o Properly order things Pointed out by: bde Notes: svn path=/head/; revision=39325
* Add reallocf to the library. This function is simliar to realloc, butWarner Losh1998-09-141-10/+27
| | | | | | | | | | | | | | | | when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null. This does not change the semantics of realloc. A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations. Beaten-to-death-but-finally-approved-in: -current Notes: svn path=/head/; revision=39191
* environmental -> environment.Philippe Charnier1997-09-181-2/+2
| | | | Notes: svn path=/head/; revision=29563
* Malloc option H is now default.Poul-Henning Kamp1997-08-271-2/+3
| | | | Notes: svn path=/head/; revision=28830
* malloc_sysv used before initialized, reported in PR4002 byPoul-Henning Kamp1997-07-011-5/+15
| | | | | | | | | | | | | | | | | | Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Various cleanup from Keith Bostic Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect. PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com> Notes: svn path=/head/; revision=27152
* Integrate calloc with the rest of the gang.Poul-Henning Kamp1997-06-221-201/+293
| | | | | | | | | | | | | | Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary. Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com> Notes: svn path=/head/; revision=26816
* Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)Poul-Henning Kamp1997-06-121-3/+18
| | | | | | | Prompted by: X11 & XFree86 Notes: svn path=/head/; revision=26579
* Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.Poul-Henning Kamp1997-05-301-1/+13
| | | | | | | | | | Untested support for Solaris from John-Mark Gurney Reviewed by: phk Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu> Notes: svn path=/head/; revision=26284
* Remove an extra comma.Mike Pritchard1997-03-221-2/+2
| | | | Notes: svn path=/head/; revision=24125
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* phkmalloc/3Poul-Henning Kamp1996-09-231-7/+110
| | | | | | | | | | | Various neat features added. More documentation in the manpage. If your machine has very little RAM, I guess that would be < 16M these days :-(, you may want to try this: ln -fs 'H<' /etc/malloc.conf check the manpage. Notes: svn path=/head/; revision=18479
* Correct a bunch of man page cross references and generallyMike Pritchard1996-02-111-2/+2
| | | | | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however. Notes: svn path=/head/; revision=14038
* Fix even more spelling errors in some more man pages.Mike Pritchard1996-01-301-5/+5
| | | | Notes: svn path=/head/; revision=13750
* phkmalloc/2Poul-Henning Kamp1995-10-081-20/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "zero' and 'junk' options to help find and diagnose malloc abuse. EXTRA_SANITY defaults "junk" to on. Don't dump the internal state, unless EXTRA_SANITY. General code cleanup. Error messages cleaned up a bit, more checking earlier. EXTRA_SANITY is default at this time (just in case). Performance (without EXTRA_SANITY) is better, beats gnumalloc in both time & space most of the time: # In-memory test. ./malloc 50000000 2000 8192 159.2u 1.5s 2:41.85 99.3% 5+7742k 0+0io 0pf+0w ./gnumalloc 50000000 2000 8192 272.6u 0.4s 4:35.01 99.3% 5+8533k 0+0io 0pf+0w # Swap-space test. ./malloc 500000 14000 8192 6.5u 4.1s 4:08.87 4.3% 5+49209k 0+0io 9772pf+0w ./gnumalloc 500000 14000 8192 16.2u 14.5s 15:36.14 3.2% 5+54100k 0+0io 47651pf+0w # Small items test. ./malloc 20000000 20000 2048 67.0u 0.3s 1:07.83 99.2% 5+18199k 0+0io 4pf+0w ./gnumalloc 20000000 20000 2048 66.2u 0.3s 1:07.03 99.3% 5+18107k 0+0io 0pf+0w SANITY is not an option anymore. (!!) Notes: svn path=/head/; revision=11338
* ``phkmalloc''Poul-Henning Kamp1995-09-161-10/+114
| | | | | | | | | | Performance is comparable to gnumalloc if you have sufficient RAM, and it screams around it if you don't. Compiled with "EXTRA_SANITY" until further notice. see malloc.3 for more details. Notes: svn path=/head/; revision=10818
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+90
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573