[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Detecting incipient stack overflow

From: John Cowan
Subject: Re: [Chicken-hackers] Detecting incipient stack overflow
Date: Sat, 30 Sep 2006 11:23:11 -0400
User-agent: Mutt/1.3.28i

felix winkelmann scripsit:
> On 9/30/06, John Cowan <address@hidden> wrote:
> >How does the Chicken runtime detect incipient C stack overflow
> >reliably?  I tried to RTFS, but got lost in a maze.
> You mean the stack-overflow that triggers a minor GC? Very simple,
> it regularly compares the current stack-pointer with a precomputed limit
> (see C_demand in chicken.h).

Yes, I was able to trace that far.  But how does C_stack_limit
actually get set?  Looking for assignments to it just confused me

John Cowan  address@hidden
The competent programmer is fully aware of the strictly limited size of his own
skull; therefore he approaches the programming task in full humility, and among
other things he avoids clever tricks like the plague.  --Edsger Dijkstra

reply via email to

[Prev in Thread] Current Thread [Next in Thread]