diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-08-10 06:45:43 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-08-10 06:45:43 +0000 |
| commit | c4a448100c9906e379da825c67ad2863d2c0a043 (patch) | |
| tree | 02a8612ceb1f8a092e3dfc2250b5d6b96930d398 /sys/kern/kern_malloc.c | |
| parent | 8ec48c6dbfa6907898b26b7a5321f780ebdfe5aa (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_malloc.c')
| -rw-r--r-- | sys/kern/kern_malloc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index dcabed02d1b8..5f9ca0c69978 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -122,10 +122,6 @@ struct freelist { * * If M_NOWAIT is set, this routine will not block and return NULL if * the allocation fails. - * - * If M_ASLEEP is set (M_NOWAIT must also be set), this routine - * will have the side effect of calling asleep() if it returns NULL, - * allowing the parent to await() at some future time. */ void * malloc(size, type, flags) @@ -156,11 +152,6 @@ malloc(size, type, flags) s = splmem(); mtx_lock(&malloc_mtx); while (ksp->ks_memuse >= ksp->ks_limit) { - if (flags & M_ASLEEP) { - if (ksp->ks_limblocks < 65535) - ksp->ks_limblocks++; - asleep((caddr_t)ksp, PSWP+2, type->ks_shortdesc, 0); - } if (flags & M_NOWAIT) { splx(s); mtx_unlock(&malloc_mtx); |
