1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys
Marcel Moolenaar 290245ea4c Don't call malloc() and free() while in the debugger and unwinding
to get a stacktrace. This does not work even with M_NOWAIT when we
have WITNESS and is generally a bad idea (pointed out by bde@). We
allocate an 8K heap for use by the unwinder when ddb is active. A
stack trace roughly takes up half of that in any case, so we have
some room for complex unwind situations. We don't want to waste too
much space though. Due to the nature of unwinding, we don't worry
too much about fragmentation or performance of unwinding while in
the debugger. For now we have our own heap management, but we may
be able to leverage from existing code at some later time.

While here:
o  Make sure we actually free the unwind environment after unwinding.
   This fixes a memory leak.
o  Replace Doug's license with mine in unwind.c and unwind.h. Both
   files don't have much, if any, of Doug's code left since the EPC
   syscall overhaul and the import of the unwinder.
o  Remove dead code.
o  Replace M_NOWAIT with M_WAITOK for all remaining malloc() calls.
2003-07-05 23:21:58 +00:00
..
alpha Background: pmap_object_init_pt() premaps the pages of a object in 2003-07-03 20:18:02 +00:00
amd64 Background: pmap_object_init_pt() premaps the pages of a object in 2003-07-03 20:18:02 +00:00
arm
boot Revert non-style part of the recent two deltas that dealt with 2003-07-02 12:45:45 +00:00
cam
coda
compat Don't map LINUX_POSIX_VDISABLE to _POSIX_VDISABLE and vice versa for 2003-06-28 19:32:07 +00:00
conf The .s files were repo-copied to .S files. 2003-07-02 12:57:07 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r116801, 2003-06-25 06:06:52 +00:00
crypto
ddb
dev Fix a signedness problem in zstty_cncheckc(): when no character is ready, 2003-07-05 01:31:30 +00:00
fs If bread() returns a zero-length buffer, as can happen after a 2003-07-03 14:54:47 +00:00
geom Only dump 512 bytes of debugging. 2003-07-02 08:07:07 +00:00
gnu
i4b Mega busdma API commit. 2003-07-01 15:52:06 +00:00
i386 Add vm object locking to pmap_prefault(). 2003-07-04 22:13:39 +00:00
ia64 Don't call malloc() and free() while in the debugger and unwinding 2003-07-05 23:21:58 +00:00
isa - Use the new resource_disabled() helper function to see if devices are 2003-07-02 16:09:02 +00:00
isofs/cd9660 change dev_t to struct cdev * to match ufs. This fixes fstat for cd9660 2003-06-24 22:11:20 +00:00
kern Make the conditional, which decides what siglist to put a signal on, 2003-07-05 08:37:40 +00:00
libkern
modules add the mbr_enc file so that we can load the module on sparc64. 2003-07-05 08:11:43 +00:00
net remove old 802.11 support; replaced by new code in sys/net80211 2003-06-28 06:09:39 +00:00
net80211 insure ic_bss always has a "valid" channel; avoids problems where users could 2003-06-29 20:13:38 +00:00
netatalk
netatm
netgraph Allow the caller to get an erro direclty if we sent the packet immediatly. 2003-07-03 22:09:47 +00:00
netinet Implement the 'ipsec' option to match packets coming out of an ipsec tunnel. 2003-07-04 21:42:32 +00:00
netinet6
netipsec consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
netipx
netkey
netnatm
netncp
netsmb Add a f_vnode field to struct file. 2003-06-22 08:41:43 +00:00
nfs
nfsclient Change idle sleep indentifier to "-" for nfsiod 2003-07-02 08:09:20 +00:00
nfsserver Change idle state sleep identifier to "-" for nfsd. 2003-07-02 08:08:32 +00:00
opencrypto consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
pc98 - Use the new resource_disabled() helper function to see if devices are 2003-07-02 16:09:02 +00:00
pccard
pci - Ensure that the busdma API won't do deferred loads by using the 2003-07-04 11:46:23 +00:00
posix4
powerpc Background: pmap_object_init_pt() premaps the pages of a object in 2003-07-03 20:18:02 +00:00
rpc
security Remove trailing whitespace. 2003-07-05 01:24:36 +00:00
sparc64 Background: pmap_object_init_pt() premaps the pages of a object in 2003-07-03 20:18:02 +00:00
sys Signals sent specifically to a particular thread must 2003-07-03 19:09:59 +00:00
tools Don't check the state of the vnode interlock if the specification says 2003-06-22 21:20:06 +00:00
ufs We just cached the inode pointer, no need to call VTOI() again. 2003-07-04 12:16:33 +00:00
vm Lock a vm object when freeing a page from it. 2003-07-05 20:51:22 +00:00
Makefile Revert exclusion for amd64 that stopped boot/ being built. 2003-06-26 03:52:48 +00:00