Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On Sun, Mar 26, 2006 at 08:19:52PM +0000, Eric Haszlakiewicz wrote:
> 
> Module Name:  src
> Committed By: erh
> Date:         Sun Mar 26 20:19:52 UTC 2006
> 
> Modified Files:
>       src/sys/kern: kern_lock.c
>       src/sys/sys: lock.h sched.h
> 
> Log Message:
> Add simple_lock_assert_locked/simple_lock_assert_unlocked to provide 
> additional
> useful information when panic'ing because the assertion fails.
> Use these to define the SCHED_ASSERT_LOCKED/SCHED_ASSERT_UNLOCKED macros.
> 

This change needs to be reworked a bit - I can't compile a kernel with
MULTIPROCESSOR and DEBUG options because _simple_lock_assert_locked() 
is only compiled under LOCKDEBUG.  If I add LOCKDEBUG, though, I
discover that _kernel_lock_assert_locked() tries to call it
with the wrong number of arguments...


+j

Attachment: pgp0lNdthTWLx.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index