Re: Lua GC Problems

2007-10-13 Thread chromatic
On Saturday 13 October 2007 18:18:30 chromatic wrote: > However, the node member of a Hash isn't an array: > > typedef struct Node { > PMC *key; > PMC *val; > struct Node *next; /* for chaining */ > } Node; > > typedef struct Hash { > Node *node; > int size; > Node *firstf

Lua GC Problems

2007-10-13 Thread chromatic
I've been digging into the Lua on Parrot source code to try to find out why there are GC problems (partly to fix them, partly so I can profile Lua programs and speed up the system). I ran into something suspicious in the LuaTable PMC. It uses a custom function to mark all contained keys and va