cvs commit: src/lib/libpthread/thread thr_kern.c thr_private.h

David Xu davidxu at FreeBSD.org
Sat Nov 29 06:22:30 PST 2003


davidxu     2003/11/29 06:22:29 PST

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_kern.c thr_private.h 
  Log:
  1.Macro optimizing KSE_LOCK_ACQUIRE and THR_LOCK_ACQUIRE to use static fall
  through branch predict as suggested in INTEL IA32 optimization guide.
  
  2.Allocate siginfo arrary separately to avoid pthread to be allocated at
  2K boundary, which hits L1 address alias problem and causes context
  switch to be slow down.
  
  3.Simplify context switch code by removing redundant code, code size is
  reduced, so it is expected to run faster.
  
  Reviewed by: deischen
  Approved by: re (scottl)
  
  Revision  Changes    Path
  1.103     +24 -91    src/lib/libpthread/thread/thr_kern.c
  1.106     +7 -8      src/lib/libpthread/thread/thr_private.h


More information about the cvs-src mailing list