From: "Mauricio Fernández" Date: 2003-06-25T22:48:00+09:00 Subject: Re: collect info about ruby-api On Wed, Jun 25, 2003 at 10:21:37PM +0900, Simon Strandgaard wrote: > On Wed, 25 Jun 2003 22:57:53 +0900, nobu.nokad wrote: > > > #3 Init_stack(address) > > tell GC the machine stack limit. > > I never heard about this before, what does it do ? > Can you give me a more lengthy description of it :-) The GC of Ruby is conservative: it will scan the stack to find VALUEs. This means at any moment it can take the stack pointer and scan from there to the beginning of the stack. Init_stack takes the address of one local variable (in the stack) and records it as the bottom of the stack (highest address in x86). > > > grep Init_stack *.h > > > > It doesn't seems to something public available to the embedding/extension > Rubyist's. To me it looks like an internal routine. There's lots of functions not declared in the headers... -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you. -- Vance Petree, Virginia Power