Assert that the calling CPU is holding the KERNEL_LOCK() in malloc(9)
authormpi <mpi@openbsd.org>
Wed, 7 Jun 2017 13:30:36 +0000 (13:30 +0000)
committermpi <mpi@openbsd.org>
Wed, 7 Jun 2017 13:30:36 +0000 (13:30 +0000)
commit1a582ed7bc900ebabab5537a822307b96f4025c7
tree96aca781920cd6702c1a2ba13a715b35b74c9336
parent3431983c017a4bc56451d3de848a13601e5d75a1
Assert that the calling CPU is holding the KERNEL_LOCK() in malloc(9)
and free(9).

The exception is at early boot when only one CPU is running since we
grab the KERNL_LOCK() relatively late in main().

ok kettenis@
sys/kern/kern_malloc.c