[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] Detecting incipient stack overflow
From: |
felix winkelmann |
Subject: |
Re: [Chicken-hackers] Detecting incipient stack overflow |
Date: |
Sat, 30 Sep 2006 10:28:16 +0200 |
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).
cheers,
felix
--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp