On Wed, 25 Jun 2003 23:48:00 +0900, Mauricio Fern?ndez wrote:

> 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).

Sorry I don't understand Nobu's reason to added Init_stack as number 3rd 
item in the list of possible ways to register an instance.

Is Init_stack really a 3rd possiblitity to do registring ?


--
Simon Strandgaard