Re: [RFC PATCH] explicitly mark recursion count

From: Jörn Engel
Date: Wed Jun 02 2004 - 10:07:11 EST


On Wed, 2 June 2004 07:45:10 -0700, Linus Torvalds wrote:
>
> The programmer had _better_ know that there is some upper limit.
>
> And I claim: recursion is illegal unless the programmer has some explicit
> recursion limiter. And if he has that recursion limiter in one of the
> functions, then he damn well better know it, and know the value it limits
> recursion to.

Can I read this as:
Linus himself will use strong words to enforce all recursions in the
kernel to be either removed or properly documented.

In that case, you have 273 recursions to deal with. They are all in
the data I attached a few posts back. Recursions would basically be
in the same league as huge stack hogs, sounds good.

Jörn

--
Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface.
-- Doug MacIlroy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/