afrog33k / runsharp

Automatically exported from code.google.com/p/runsharp
MIT License
1 stars 1 forks source link

TypeInfo.CacheEntry destructor doesn't check for type in TypeInfo.cache #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Multiple CacheEntry objects created for the same type
2.The weak reference from cache dictionary is "lost" before the new
CacheEntry instance is created in GetCacheEntry(t)
3.All destructors for the same Type t on CacheEntry try to remove self from
cache. The later fails.

~CacheEntry()

should contain cache.ContainsKey(t) predicate.

---------------------------------------------
        if (cache.ContainsKey(t) && (cache[t].Target == this || cache[t].Target
== null))
                        cache.Remove(t);
                }
            }

Original issue reported on code.google.com by tomas.ag...@gmail.com on 19 Jan 2010 at 5:37

GoogleCodeExporter commented 9 years ago

Original comment by StefanSi...@gmail.com on 21 May 2010 at 3:47

GoogleCodeExporter commented 9 years ago
Issue 21 has been merged into this issue.

Original comment by StefanSi...@gmail.com on 22 Aug 2010 at 8:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 046d87743a.

Original comment by StefanSi...@gmail.com on 22 Aug 2010 at 9:10