cvs commit: src/sys/kern kern_slaballoc.c

Matthew Dillon dillon at
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 
  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

More information about the Commits mailing list