Re: cvs commit: src/sys/kern kern_slaballoc.c

看板DFBSD_commit作者時間21年前 (2005/03/29 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
On Mon, Mar 28, 2005 at 09:48:40AM -0800, Matthew Dillon wrote: > > : > :On Mon, Mar 28, 2005 at 05:13:33PM -0000, Andreas Hauser wrote: > :> > Remove redundant panic. > :> > :> Joerg, > :> > :> can you elaborate a bit more ? > : > :This simply removed some dead code. The conditional was always false, > :because it was already checked a few lines before. > : > :Joerg > > Actually not quite true. The first condition requires that both bits > be zero. The second requires only that one bit be 0... which means > that you can't remove the second one. You might be able to remove > the first one. I should sleep more. Matt, what do you think about truely separating the M_NULLOK and M_RNOWAIT flags? Currently M_RNOWAIT implies M_NULLOK and since the flags are created by sys/malloc.h anyway, we could include M_NULLOK in the M_RNOWAIT cases. Joerg
文章代碼(AID): #12I4sk00 (DFBSD_commit)
討論串 (同標題文章)
文章代碼(AID): #12I4sk00 (DFBSD_commit)