Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2001 11:36:13 -0800 (PST)
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:  <200102241936.f1OJaEf71655@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/02/24 11:36:13 PST

  Modified files:
    sys/kern             kern_mutex.c 
  Log:
  - Axe RETIP() as it was very i386 specific and unwieldy.  Instead, use the
    passed in filename and line number in the KTR tracepoint message.
  - Even though it is #if 0'd code, change the code to detect that a process
    is an interrupt thread to check p->p_ithd against NULL rather than
    checking non-existant process flags from BSD/OS.
  - Use '%p' to print pointers in KTR log messages instead of assuming
    sizeof(int) == sizeof(void *).
  - Don't set p_mtxname to NULL when releasing a mutex.  It doesn't hurt
    to leave it set (we don't clear w_mesg for example) and at least at
    one time in the past, there used to be race conditions in the kernel
    that would result in setting this to NULL causing the kernel to
    dereference NULL.
  - Make the _mtx_assert() function be compiled in if INVARIANTS_SUPPORT is
    defined rather than if INVARIANTS is defined so that a KLD compiled
    with INVARIANTS that uses mtx_assert() can be used with a kernel that
    just has INVARIANT_SUPPORT compiled in.
  
  Revision  Changes    Path
  1.49      +13 -14    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?200102241936.f1OJaEf71655>