On 02/11/2011, at 6:21 PM, john skaller wrote: > > And so now a theory: nothing should be collected. There are no heap objects > floating around in this code .. except the judy array: > > var ds = JSLArray (); > > And this is the problem. The Judy array is on the STACK. So it isn't managed. > It should be on the heap, otherwise all those "new" strings it is storing > as values will be reaped. Exactly why this causes a problem is a mystery > however..
Ooops.. wrong .. I wasn't so dumb after all! d=build/release/tut/migration/mig-4-1.static.stdout Actually collect Scanning judySL array 0x100100e60->0x10030cff0 Scanning judySL array 0x100100e50->0x10030dcb0 Scanning judySL array 0x100100640->0x10030db50 actually collected 611893 objects, still allocated 52372 bytes Actually collect Scanning judySL array 0x100100e60->0x10030cff0 Scanning judySL array 0x100100e50->0x10030dcb0 Scanning judySL array 0x100100640->0x10030db50 actually collected 618089 objects, still allocated 110580 bytes Actually collect Scanning judySL array 0x100100e60->0x10030cff0 Scanning judySL array 0x100100e50->0x10030dcb0 Scanning judySL array 0x100100640->0x10030db50 actually collected 615178 objects, still allocated 157156 bytes Actually collect Scanning judySL array 0x100100e60->0x10030cff0 Scanning judySL array 0x100100e50->0x10030dcb0 Scanning judySL array 0x100100640->0x10030db50 actually collected 612940 objects, still allocated 192964 bytes d=build/release/tut/tutorial/tut-01.01-0 Segmentation fault -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language