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:
parent
a47e5d473b
commit
1093ceb088
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user