cvs commit: src/sys/kern kern_slaballoc.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 14 12:02:31 PST 2004


dillon      2004/02/14 12:02:28 PST

DragonFly src repository

  Modified files:
    sys/kern             kern_slaballoc.c 
  Log:
  Get rid of some old cruft and add a failsafe for M_WAITOK which guarentees
  that malloc() will not attempt to reuse pages from the VM page cache if
  called with M_WAITOK from a preemption.
  
  If M_WAITOK is used in a malloc called from a preemption, and we would block,
  do an initial yield instead of blocking.  This does not effect sequencing
  of the preemption since either will cause the preemption to return and the
  blocking thread to be scheduled normally, but yield as a first go will get
  the cpu back more quickly.
  
  Revision  Changes    Path
  1.17      +18 -9     src/sys/kern/kern_slaballoc.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_slaballoc.c.diff?r1=1.16&r2=1.17&f=h





More information about the Commits mailing list