Apparently on slow systems the items with 1sec expiration time are already removed from the cache by the time the #CS3 Assert() is hit, which caused the test to fail.
Increasing the expiration time by +2sec should hopefully fix this.
Commit licensed under MIT/X11.
- when MemoryCacheEntryPriorityQueue grows the timed items after a shrink
the value of the member variable heapSize is wrong allowing an out-of-
bounds exception which would normally be prevented by bounds tests
- A test case was added for the out-of-bounds exception
* MemoryCacheTest.cs, ObjectCacheTest.cs: added
* HostFileChangeMonitorTest.cs: added more tests.
2010-04-24 Marek Habersack <[email protected]>
* AppDomainTools.cs, AssertExtensions.cs, PokerChangeMonitor.cs,
PokerMemoryCache.cs, PokerObjectCache.cs,
TestNotificationSystem.cs: added
2010-04-24 Marek Habersack <[email protected]>
* ObjectCache.cs: implemented all the non-abstract methods.
* MemoryCacheContainer.cs, MemoryCacheEntry.cs,
MemoryCacheEntryChangeMonitor.cs,
MemoryCacheEntryPriorityQueue.cs,
MemoryCachePerformanceCounters.cs: added
* MemoryCache.cs: implemented physical memory size detection, item
expiration timer, indexer, reading of configuration values from
config files, cache memory limit calculation, the
AddOrGetExisting, Set, Get, Contains,
CreateCacheEntryChangeMonitor, Dispose, GetCacheItem, GetCount,
GetEnumerator, GetValues, Remove and Trim methods.
Implemented support for per-cpu item containers.
Modified parameters of several methods to match .NET 4.0 release.
* HostFileChangeMonitor.cs: implemented according to tests.
* Helpers.cs: added new properties, StringComparer and Is64bit
* FileChangeNotificationSystemEntry.cs: added
* FileChangeNotificationSystem.cs: implemented
* ChangeMonitor.cs: NotifyOnChanged now properly throws an
exception if it was called more than once.
* CacheEntryRemovedReason.cs: renamed from
CacheEntryRemoveReason.cs
* CacheEntryChangeMonitor.cs: renamed from CacheEntryMonitor.cs
2010-04-24 Marek Habersack <[email protected]>
* MemoryCacheSettingsCollection.cs: added and implemented methods
which appeared in .NET 4.0 final.
svn path=/trunk/mcs/; revision=156032