Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 1997 07:51:18 -0800
From:      David Greenman <dg@root.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        bugs@FreeBSD.ORG, dyson@FreeBSD.ORG, wollman@FreeBSD.ORG
Subject:   Re: malloc(..., M_WAITOK) found harmful 
Message-ID:  <199701151551.HAA07423@root.com>
In-Reply-To: Your message of "Thu, 16 Jan 1997 00:51:05 %2B1100." <199701151351.AAA24268@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Here mbinit() calls m_clalloc() with the M_DONTWAIT flag and m_clalloc()
>calls kmem_malloc() with the M_NOWAIT flag, but the flag is not passed
>on to vm_map_insert() and vm_map_entry_create() eventually calls malloc()
>with the M_WAITOK flag.  vm_map_create() always uses M_WAITOK.

   Hmmm. I don't see how this can happen since the map is mb_map and
vm_map_entry_create does special things in this case to make sure that
malloc is NOT called. Please explain...

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701151551.HAA07423>