summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-31 03:17:48 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-31 03:17:48 +0000
commit53cd3a6e283516523cbdacf36340687e233d6ba8 (patch)
tree9e1ad83a6fdf24736bad3da3ddafb94f85346735 /lib/libc/stdlib/malloc.c
parent92287f9b58f359eb2a68d5c728235f5ffd89c1cd (diff)
downloadFreeBSD-src-53cd3a6e283516523cbdacf36340687e233d6ba8.zip
FreeBSD-src-53cd3a6e283516523cbdacf36340687e233d6ba8.tar.gz
Debug version of simple_lock. This will store the CPU id of the
holding CPU along with the lock. When a CPU fails to get the lock it compares its own id to the holder id. If they are the same it panic()s, as simple locks are binary, and this would cause a deadlock. Controlled by smptests.h: SL_DEBUG, ON by default. Some minor cleanup.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud