Re: [RFC PATCH] explicitly mark recursion count

From: Davide Libenzi (davidel_at_xmailserver.org)
Date: 06/02/04

  • Next message: Arthur Perry: "Re: GART Error 11"
    Date:	Wed, 2 Jun 2004 11:37:50 -0700 (PDT)
    To: Jörn Engel <joern@wohnheim.fh-wedel.de>
    
    

    On Wed, 2 Jun 2004, [iso-8859-1] Jörn Engel wrote:

    > On Wed, 2 June 2004 07:35:39 -0700, Davide Libenzi wrote:
    > >
    > > Hmmm, I see more data to maintain to support a method that will never be
    > > even close to be perfect.
    >
    > You get it wrong. This is mainly about Bad Code or Insufficient
    > Documentation. In general, I want recursions to be removed, full
    > stop. So there is not more data, but less.

    You're requesting to add and maintain data to feed a tool that catches
    only trivially visible recursion. I don't want to waste mine and your time
    explaining why your tool will never work, but if you want an hint, you can
    start thinking about all functions that sets/pass callbacks and/or sets
    operational functions. I don't know if you noticed that, but Linux is
    heavily function-pointer driven. Eg, one function setups a set of function
    pointers, and another 317 indirectly calls them. Having such comments, not
    only makes the maintainance heavier, but gives the false sense of safeness
    that once you drop that data in, you're protected against recursion.

    - Davide

    -
    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/


  • Next message: Arthur Perry: "Re: GART Error 11"

    Relevant Pages

    • RE: StackOverflowException
      ... The StackOverflowException is thrown when the execution stack overflows ... very deep or unbounded recursion. ... code to detect and prevent a stack overflow. ... Microsoft Online Community Support ...
      (microsoft.public.dotnet.framework)
    • Re: oops with dual xeon 2.8ghz 4gb ram +smp, software raid, lvm, and xfs
      ... >> depth problems with stacked block devices, ... > around sticky situations. ... Recursion is like that (... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Broken shared object on Solaris 10 x64
      ... Even on quite recent SPARC I get build times near 1 hour. ... I've only built gcc* on Solaris/SPARC, ... should say somthing about 64-bit support. ... In order to understand recursion you must first understand recursion. ...
      (comp.unix.solaris)
    • Re: "SS History" Command Line: Getting history of project with recursive option?
      ... Adding -R option after the command will enable VSS to display the ... DynamSoft Online Community Support ... folder but it doesn't seem to support recursion on folder and ...
      (microsoft.public.vstudio.sourcesafe)
    • Re: whats wrong with a pic ?
      ... elementary requirements of the C language, such as recursion. ... My issue was that his point seemed to be if you can not support the full ... The Keil 8052 compiler supports recursion function pointers and malloc. ...
      (comp.arch.embedded)