cvs commit: src/sys/kern kern_mutex.c

John Baldwin jhb at FreeBSD.org
Fri Apr 14 19:51:51 UTC 2006


jhb         2006-04-14 19:51:50 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c 
  Log:
  Mark the thread pointer used during an adaptive spin volatile so that the
  compiler doesn't decide to cache td_state.  Cachine the state would cause
  the spinning thread to not notice when the owning thread stopped executing
  (if it was preempted for example) which could result in livelock.
  
  Revision  Changes    Path
  1.168     +1 -1      src/sys/kern/kern_mutex.c


More information about the cvs-src mailing list