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

cvs commit: src/sys/kern kern_slaballoc.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 14 Feb 2004 12:02:28 -0800 (PST)

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

DragonFly src repository

  Modified files:
    sys/kern             kern_slaballoc.c 
  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


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