Andrei Alexandrescu Wrote:
> 
> I think GC.collect may simply evict the entire cache. The collection 
> cycle costs so much, the marginal cost of losing cached information is 
> lost in the noise.

Right.  The GC already has an LRU cache of size 1 (ie. LRU entry) for 
GC.sizeOf() and GC.query(), and these values are cleared on a collection by 
necessity, since pages can be repurposed if they're been completely emptied.

Reply via email to