#
8409cf4a |
| 15-May-2020 |
joerg <joerg@NetBSD.org> |
Hook up proper fork lock handling for malloc: - lock all relevant mutexes just before fork - unlock all mutexes just after fork in the parent - full reinit non-spinlocks in the child This is not usin
Hook up proper fork lock handling for malloc: - lock all relevant mutexes just before fork - unlock all mutexes just after fork in the parent - full reinit non-spinlocks in the child This is not using the normal pthread_atfork interface to ensure order of operation, malloc is used as implementation detail too often.
show more ...
|
#
794a9d50 |
| 13-Jan-2017 |
christos <christos@NetBSD.org> |
use getpagesize(3).
|
#
8212adb6 |
| 12-Jan-2017 |
christos <christos@NetBSD.org> |
Avoid sysconf: __sysconf -> sysctlgetmibinfo -> strtoimax -> locale, etc.
|
#
227c2c07 |
| 12-Jan-2017 |
christos <christos@NetBSD.org> |
make this smaller.
|
#
9a513d96 |
| 18-Sep-2014 |
christos <christos@NetBSD.org> |
make more descriptors that we open as close-on-exec
|
#
2d146995 |
| 30-Dec-2012 |
dholland <dholland@NetBSD.org> |
typo in comment, from Abhinav Upadhyay in PR 47385
|
#
713ea189 |
| 18-May-2011 |
christos <christos@NetBSD.org> |
cleanup saving and restoring errno, and make it similar.
|
#
1ff5a5df |
| 13-May-2011 |
christos <christos@NetBSD.org> |
don't let readlink trash errno.;
|
#
ed13fe58 |
| 03-Feb-2008 |
christos <christos@NetBSD.org> |
fix posix_memalign; we are not going to support alignments > pagesize in this implementation.
|
#
f5356616 |
| 12-Dec-2007 |
macallan <macallan@NetBSD.org> |
make this compile again
|
#
b831a8ad |
| 04-Dec-2007 |
christos <christos@NetBSD.org> |
move decls for _malloc_{pre,post}fork() to extern.h
|
#
f6cecc05 |
| 28-Nov-2007 |
christos <christos@NetBSD.org> |
Sync phk malloc.c with the latest one from FreeBSD. This gives us the same api as jemalloc by:
- adding posix_memalign() - moving calloc in the same file - renaming malloc_options -> _ma
Sync phk malloc.c with the latest one from FreeBSD. This gives us the same api as jemalloc by:
- adding posix_memalign() - moving calloc in the same file - renaming malloc_options -> _malloc_options
show more ...
|
#
3d98aa3f |
| 24-Nov-2006 |
christos <christos@NetBSD.org> |
fix spelling of accidentally; from Zapher
|
#
25c47f23 |
| 08-Oct-2006 |
elad <elad@NetBSD.org> |
PR/34602: sushant: Bug in malloc implementation contains dead code in free_pages()
Applied patch from Mindaugas <unex at linija org> (in #NetBSD-code), thanks
|
#
46359204 |
| 24-Dec-2005 |
perry <perry@NetBSD.org> |
__inline__ -> inline
|
#
03256c6e |
| 29-Nov-2005 |
christos <christos@NetBSD.org> |
WARNS=4
|
#
88c3eadb |
| 12-Jun-2005 |
lukem <lukem@NetBSD.org> |
Add missing __RCSID()
|
#
e3ac3a4d |
| 05-Oct-2003 |
junyoung <junyoung@NetBSD.org> |
Style fixes to reduce diff size against the FreeBSD version, notably: - Use NULL where appropriate. - No need to pull in stdint.h. - Get rid of "register" keywords in the hope that the compiler wi
Style fixes to reduce diff size against the FreeBSD version, notably: - Use NULL where appropriate. - No need to pull in stdint.h. - Get rid of "register" keywords in the hope that the compiler will do a better job for us. :-) - Every message ends with a period. - MMAP() macro is supposed to return MAP_FAILED rather than -1 if it fails. - De-__P.
show more ...
|
#
6f4e912a |
| 23-Jul-2003 |
itojun <itojun@NetBSD.org> |
call malloc_init() on first call to free/realloc, to make malloc.conf to take effect. in response to PR 22223
|
#
3fdac2b8 |
| 18-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Merge the nathanw_sa branch.
|
#
5e606f5b |
| 09-Dec-2002 |
chris <chris@NetBSD.org> |
Add a couple of missing THREAD_UNLOCK's, for the error exit path.
No functional change on Mainline, however SA branch probably needs this.
|
#
1289029f |
| 11-Nov-2002 |
thorpej <thorpej@NetBSD.org> |
Fix signed/unsigned comparison warnings.
|
#
b2126f94 |
| 06-May-2001 |
christos <christos@NetBSD.org> |
More fixes:
1. use uintptr_t instead of u_long 2. check for overflow in map_pages and malloc_pages 3. bring in fixes from FreeBSD [int -> size_t, and a missing THREAD_UNLOCK] 4. rewrite map_pages to
More fixes:
1. use uintptr_t instead of u_long 2. check for overflow in map_pages and malloc_pages 3. bring in fixes from FreeBSD [int -> size_t, and a missing THREAD_UNLOCK] 4. rewrite map_pages to use sbrk() only to grow memory (avoids extra syscall and elides bug in brk(2) that ross is fixing) 5. restore the break point to its original value if the mmap(2) for the page directory or the alignment sbrk breaks.
reviewed by: chuq and ross tested by: make build and reboot Now memtest nearly works; unfortunately there is no way currently to lower the break point as we free, so memtest keeps trying to reduce memory when mlock() fails and that does not work.
show more ...
|
#
fa27739c |
| 03-May-2001 |
christos <christos@NetBSD.org> |
PR/12810: Chris ?: malloc core-dumps when given large number as the argument. This is because integer overflow occurs in the computation of the size of the page directory array. We now detect that, a
PR/12810: Chris ?: malloc core-dumps when given large number as the argument. This is because integer overflow occurs in the computation of the size of the page directory array. We now detect that, and return ENOMEM.
show more ...
|
#
6b25d775 |
| 19-Feb-2001 |
cgd <cgd@NetBSD.org> |
convert from __progname to getprogname()
|