lkml.org 
[lkml]   [2003]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BUGed to death
Date
> BUG_ON is already marked unlikely.
> See include/linux/kernel.h
>
> The costs here are doing the actual checks, nothing to do with
> the branch prediction.

Some places don't seem to know about BUG_ON, for example
(from include/linux/skbuff.h):

static inline char *__skb_pull(struct sk_buff *skb, unsigned int len)
{
skb->len -= len;
if (skb->len < skb->data_len)
BUG();
return skb->data += len;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.059 / U:1.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site