Here, I find a clue:

////////
var ls = list (1,2);
var leak = ls;
var i: int;
forall i in 0 upto 20 do
ls = rev ls;
ls = ls + rev_map (fun (x:int)=>x+1) ls;
ls = ls + rev_map (fun (x:int)=>x-2) ls;
println$ len ls;
leak = copy ls;
//ls = rev ls;
//collect();
done;
///////////

This doesn't crash, btw .. but look at this:

~/felix>FLX_REPORT_COLLECTIONS=1 FLX_ALLOW_COLLECTION_ANYWHERE=1 
FLX_FREE_FACTOR=1.5 ./lr
[FLX_REPORT_COLLECTIONS] Collection report enabled
8
32
128
512
2048
8192
32768
131072
Actually collect
actually collected 185677 objects, still allocated 5543760 bytes
Actually collect
actually collected 1 objects, still allocated 9999984 bytes
Actually collect
actually collected 196606 objects, still allocated 10281432 bytes
Actually collect
actually collected 32769 objects, still allocated 14635704 bytes
Actually collect
actually collected 131072 objects, still allocated 18807840 bytes
524288
Actually collect
actually collected 196608 objects, still allocated 23493168 bytes
Actually collect
actually collected 1 objects, still allocated 35239728 bytes
Actually collect
actually collected 524287 objects, still allocated 40276704 bytes
Actually collect
actually collected 393216 objects, still allocated 50977872 bytes
Actually collect
actually collected 524288 objects, still allocated 63883896 bytes
2097152
Actually collect
actually collected 786432 objects, still allocated 76951488 bytes
Actually collect
actually collected 1 objects, still allocated 115427208 bytes
Actually collect
actually collected 2097151 objects, still allocated 122809200 bytes
Actually collect
actually collected 1048575 objects, still allocated 159048000 bytes
Actually collect

So .. can anyone see any reason why *1* object should be collected?
One? Just one???


--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to