Concerns about weak refs and weak maps.

felix felix8a at gmail.com
Fri Oct 29 12:18:07 PDT 2010


On 10/29/10 10:51, Brendan Eich wrote:
> On Oct 29, 2010, at 12:08 AM, Erik Corry wrote:
>
>> Let's be careful not to add things to the language that will limit
>> implementations from getting the sorts of modern GC implementations
>> that Java and .NET have.
>
>
> Yet don't Java and .NET have weak-keyed maps of some sort?

Java has WeakHashMap, which is a map of weak references to values, which 
can leak uncollectible garbage if you have a cycle of WeakHashMap 
entries holding references to objects that are not otherwise referenced.



More information about the es-discuss mailing list