Move the processing of malloc flags out of the loop. The exception
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 2 Apr 2005 15:53:56 +0000 (15:53 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 2 Apr 2005 15:53:56 +0000 (15:53 +0000)
commit1de1e8002374c852889cae19a28f9b81898c4984
tree62f30e6f6b6717da779a0809ec7d72b41e93296e
parentb1f7ca9371422e539979a97289c82cdc3b21acb1
Move the processing of malloc flags out of the loop. The exception
is the M_WAITOK, since the interpretation changing when the current
thread is preempting or not.  This can change with the second run of
the loop, so evaluate it each time.
sys/kern/kern_slaballoc.c