From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-07-09T06:05:54+09:00 Subject: Re: rb_gc() and scan stack On Thu, 03 Jul 2003 03:48:41 +0900, nobu.nokad wrote: > At Thu, 3 Jul 2003 01:00:35 +0900, Simon Strandgaard wrote: >> What confuses me is that 'G' is right-most in step 1-6. >> And that 'G' is left-most in step 7a. >> This seems odd to me, Is this really correct behavier ? > > It *was* correct. To be accurate, nothing shouldn't be marked > in step 2 through 6. But rb_gc_mark_locations(), which marks > stack, swaps its arguments when they are out of order. So > garbages would possibly be marked. "swaps its arguments"... I oversaw this. About 5 minuts I just realized this, browsing 'gc.c' :-) Thanks Nobu. -- Simon Strandgaard