Have the unwinder allocate memory with M_NOWAIT. The unwinder is

used by DDB and we cannot know in advance whether it's save to
sleep. It often enough isn't. We may want to pre-allocate space
to cover the most common cases without having to use malloc at
all, but that requires some analysis. We leave that for later.

Approved by: re@ (blanket)
This commit is contained in:
Marcel Moolenaar 2003-05-27 01:15:16 +00:00
parent a47e5d473b
commit 1093ceb088

View File

@ -61,7 +61,7 @@ static void *
unw_alloc(size_t sz)
{
return (malloc(sz, M_UNWIND, M_WAITOK));
return (malloc(sz, M_UNWIND, M_NOWAIT));
}
static void