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

[elk] Re: found bug related to GC crash



On Sat, Aug 07, 2004, martin rumori wrote:

> attached a patch which fixes a bug leading to crash the garbage
> collector.  in the elk-3.0 code it's apparently present, too.
> 
> the smallest type number assigned to the first defined type was by one
> too small: thus handing out T_Broken_Hart (with sc gc) oder freetype
> (gc-gen).

   This patch does not look right to me. builtin_types[] has a trailing
NULL value, whose index is (sizeof(builtin_types)-1)/sizeof(char*),
which is the value returned by the first call to Define_Type(). Could
you please check this again?

-- 
Sam.
-- 
This is the elk mailing-list, see http://sam.zoy.org/projects/elk/
Trouble unsubscribing? Please contact <sam@zoy.org>
List archives are at http://sam.zoy.org/projects/elk/threads.html