jimmmeh / runsharp

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

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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 8 years ago

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

GoogleCodeExporter commented 8 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 8 years ago
This issue was closed by revision 046d87743a.

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