So, after some investigation, it looks like you have run into a
'behavior' problem with Dictionaries.  There is no dereferencing or
destruction notification in Flash so the player tends to check things on
allocation.  That's why GC only happens when you allocate things.  It
appears that Dictionary does not clean up its values set until new items
are added to the Dictionary, and only at thresholds so it doesn't clean
on every add.  Your test case creates new Dictionaries, stuffs them and
leaves them.  Since they are not added to again, they do not clean up
their values set.  If you add about 10 things to the Dictionaries, you
should see them toss the old values from the set.  Adding 1 thing isn't
enough.

 

Hopefully the Player team will find time to address this issue in a
future release of the player.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of iiley
Sent: Wednesday, January 30, 2008 2:16 AM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

 

I'v posted a bug report at
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=17
<http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=17>


 

Thanks


-- 
iiley
AsWing http://www.aswing.org <http://www.aswing.org> 
Personal http://www.iiley.com <http://www.iiley.com>  

 

Reply via email to