Source-Changes archive

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

CVS commit: [netbsd-8] src

Module Name:    src
Committed By:   snj
Date:           Sat Jan 13 21:57:11 UTC 2018

Modified Files:
        src/lib/librumpuser [netbsd-8]: rumpfiber.c rumpuser_pth.c
        src/sys/kern [netbsd-8]: kern_condvar.c kern_lock.c kern_mutex.c
        src/sys/rump/include/rump [netbsd-8]: rumpuser.h
        src/sys/rump/librump/rumpkern [netbsd-8]: locks.c

Log Message:
Pull up following revision(s) (requested by ozaki-r in ticket #495):
        lib/librumpuser/rumpfiber.c: revision 1.13
        lib/librumpuser/rumpuser_pth.c: revision 1.46
        lib/librumpuser/rumpuser_pth_dummy.c: revision 1.18
        sys/kern/kern_condvar.c: revision 1.40
        sys/kern/kern_lock.c: revision 1.161
        sys/kern/kern_mutex.c: revision 1.68
        sys/kern/kern_rwlock.c: revision 1.48
        sys/rump/include/rump/rumpuser.h: revision 1.115
        sys/rump/librump/rumpkern/locks.c: revision 1.76-1.79
Apply C99-style struct initialization to lockops_t
Tweak LOCKDEBUG macros (NFC)
Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG
Formerly rump kernels treated the two types of mutexes as both adaptive for
LOCKDEBUG for some reasons.
Now we can detect violations of mutex restrictions on rump kernels such as
taking an adaptive mutex with holding a spin mutex as well as normal kernels.
rump: check if the mutex is surely owned by the caller in mutex_exit
Unlocking a not-owned mutex wasn't detected well (it could detect if the mutex
is not held by anyone but that's not enough). Let's check it (the check is the
same as normal kernel's mutex).
If LOCKDEBUG is enabled, give the check over LOCKDEBUG because it can provide
better debugging information.

To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.8.1 src/lib/librumpuser/rumpfiber.c
cvs rdiff -u -r1.45 -r1.45.8.1 src/lib/librumpuser/rumpuser_pth.c
cvs rdiff -u -r1.17 -r1.17.16.1 src/lib/librumpuser/rumpuser_pth_dummy.c
cvs rdiff -u -r1.35 -r1.35.10.1 src/sys/kern/kern_condvar.c
cvs rdiff -u -r1.158.6.1 -r1.158.6.2 src/sys/kern/kern_lock.c
cvs rdiff -u -r1.65 -r1.65.2.1 src/sys/kern/kern_mutex.c
cvs rdiff -u -r1.46 -r1.46.6.1 src/sys/kern/kern_rwlock.c
cvs rdiff -u -r1.114 -r1.114.10.1 src/sys/rump/include/rump/rumpuser.h
cvs rdiff -u -r1.74 -r1.74.2.1 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index