Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2000 19:59:31 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_mutex.c
Message-ID:  <200010270259.TAA81385@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2000/10/26 19:59:31 PDT

  Modified files:
    sys/kern             kern_mutex.c 
  Log:
  - Use MUTEX_DECLARE() and MTX_COLD for the WITNESS code's internal mutex so
    it can function before malloc(9) is up and running.
  - Add two new options WITNESS_DDB and WITNESS_SKIPSPIN.  If WITNESS_SKIPSPIN
    is enabled, then spin mutexes are ignored by the WITNESS code.  If
    WITNESS_DDB is turned on and DDB is compiled into the kernel, then the
    kernel will drop into DDB when either a lock hierarchy violation occurs
    or mutexes are held when going to sleep.
  - Add some new sysctls:
    debug.witness_ddb is a read-write sysctl that corresponds to WITNESS_DDB.
       The kernel option merely changes the default value to on at boot.
    debug.witness_skipspin is a read-only sysctl that one can use to determine
       if the kernel was compiled with WITNESS_SKIPSPIN.
  - Wipe out the BSD/OS-specific lock order lists.  We get to build our own
    lists now as we add mutexes to the kernel.
  
  Revision  Changes    Path
  1.11      +39 -57    src/sys/kern/kern_mutex.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010270259.TAA81385>