DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/sys thread2.h

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 4 May 2004 10:13:04 -0700 (PDT)

dillon      2004/05/04 10:13:04 PDT

DragonFly src repository

  Modified files:
    sys/sys              thread2.h 
  A memory ordering barrier is needed in crit_exit() ensure that td_pri
  is adjusted before gd_reqflags is tested.
  Reorder the tests in crit_exit() as a branch prediction optimization.
  Check gd_reqflags first, since it is likely to be NULL, and td_pri second,
  since thd td_pri check may oscillate depending on the critical section's
  nesting level.
  Load the globaldata pointer before adjusting td_pri in crit_exit_quick()
  as an instruction ordering optimization.
  Revision  Changes    Path
  1.15      +9 -2      src/sys/sys/thread2.h


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