summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-05-27 01:15:16 +0000
committermarcel <marcel@FreeBSD.org>2003-05-27 01:15:16 +0000
commit5fd5bdfb84667ef474531ecc19cceafdf2ef5e36 (patch)
treefb4c4aa5237bfb4f8c14141226ea5f9919d6e44d /sys
parenta5442fbe5be19237b7716062eb77cbde2c4fe4cb (diff)
downloadFreeBSD-src-5fd5bdfb84667ef474531ecc19cceafdf2ef5e36.zip
FreeBSD-src-5fd5bdfb84667ef474531ecc19cceafdf2ef5e36.tar.gz
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)
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/ia64/unwind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/unwind.c b/sys/ia64/ia64/unwind.c
index 5f1c3e3..7fa68b7 100644
--- a/sys/ia64/ia64/unwind.c
+++ b/sys/ia64/ia64/unwind.c
@@ -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
OpenPOWER on IntegriCloud