[System.Runtime.Caching] Copied SRef.cs from .NET.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 15 Dec 2014 10:11:37 +0000 (10:11 +0000)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 9 Jan 2015 15:36:56 +0000 (15:36 +0000)
commitbcf7e6e797535b2acc679466dc5237cf84e4ca12
treeb8ed6980151a7792ad3fcf1248f7df2ac2b53ac9
parent04285d5ad2231357205c2fe4501b67aa14286343
[System.Runtime.Caching] Copied SRef.cs from .NET.
.NET was using this to retrieve the size of an object graph, by using special logic on its GC.
This version of SRef is not doing that, because Mono does not provide that kind of computation.
As the changes that the GC would require to support this are not trivial, SRef returns a wrong size for now.
Known problems:
   - CacheMemoryMonitor does not trim the cache when it reaches its memory size limit.
   - IMemoryCacheManager.UpdateCacheSize is called with incorrect size.
mcs/class/System.Runtime.Caching/ReferenceSources/SRef.cs [new file with mode: 0644]