Commit Graph
36 Commits
Author SHA1 Message Date
Alexander Köplinger 98513c62ec [System.Runtime.Caching] Fixed test that failed intermittently on slow systems
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.
2014-06-19 21:54:02 +02:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Alexis Christoforides 2d9b230c73 Merge pull request #971
+ trivial adjustments on test timers to prevent intermittent failures.
2014-04-28 17:13:42 -04:00
Alexis Christoforides 4c2a8ed3dd Extended test time for timer-sensitive tests. 2014-04-28 16:52:25 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Craig Minihan 3c759e3969 [Fix] Bugzilla #18213 - System.Runtime.Caching.MemoryCache doesn't honor SlidingExpiration 2014-03-26 17:32:01 -07:00
Craig Minihan 8218c4afa1 [Fix] Bugzilla #18235 - System.Runtime.Caching.MemoryCache doesn't order expirable items correctly
- BubbleUp() in MemoryCacheEntryPriorityQueue was not ordering correctly on item insert
- Added a test case
2014-03-15 13:57:50 -07:00
Craig Minihan d4ea35a94a [Fix] Bugzilla #18245 - System.Runtime.MemoryCache.GetValues() throws LockRecursionException with expired items
- GetValues() calls MemoryCacheContainer.GetEntry() which now gets an EnterUpgradeableReadLock needed by ExpireIfNeeded()
- Added a test case
2014-03-07 04:40:23 -08:00
Craig Minihan 58e399bb9b [Fix] Bugzilla #17897 - MemoryCacheEntryPriorityQueue throws out of bounds after shrink
- 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
2014-03-06 02:46:49 -08:00
Marek Safar c83e56292d [System.Runtime.Caching] Fix ambiguous method call 2014-02-21 09:27:30 +01:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Zachary Gramana f8d1e1c791 [Caching] Adds some checks for overflow and valid bounds on heap indexes. 2013-06-06 11:41:04 -04:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar f7763d0d78 Fix few more warnings 2012-02-17 12:37:26 +00:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
Marek Safar dd9b92a100 Install 4.0 profile as developers package and make 4.5 profile default gac target for 4.x 2011-09-26 12:08:01 +01:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Marek Habersack 23691dacd6 [system.runtime.caching] Do not test the invalid behavior 2011-01-04 10:22:22 +01:00
Marek Safar a1f9dbc5f6 Removed platform attributes 2010-11-08 19:29:47 +00:00
Marek Habersack 920a298158 2010-04-26 Marek Habersack <[email protected]>
* MemoryCacheTest.cs: added tests for LRU removal of entries.

2010-04-26  Marek Habersack  <[email protected]>

	* MemoryCacheLRU.cs: added

	* MemoryCacheContainer.cs: added LRU entry cache.

	* MemoryCache.cs: added option to emulate one CPU on SMP machines
	(for testing purposes) - "__MonoEmulateOneCPU"

svn path=/trunk/mcs/; revision=156125
2010-04-26 19:39:32 +00:00
Marek Habersack 972273ea96 2010-04-24 Marek Habersack <[email protected]>
* 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
2010-04-23 23:54:57 +00:00
Jb Evain 1cfe332670 fix run-test
svn path=/trunk/mcs/; revision=155051
2010-04-08 14:36:34 +00:00
Marek Habersack f8bd1d4492 Fixed invalid exception message
svn path=/trunk/mcs/; revision=154987
2010-04-07 20:12:58 +00:00
Marek Habersack fef71fcd0d WIP: build fixes
svn path=/trunk/mcs/; revision=154947
2010-04-07 13:14:02 +00:00
Marek Habersack df45652907 WIP: host file watching
svn path=/trunk/mcs/; revision=154946
2010-04-07 13:13:54 +00:00
Marek Habersack 7a8e2dc73e WIP: System.Runtime.Caching.Hosting added
svn path=/trunk/mcs/; revision=154945
2010-04-07 13:13:46 +00:00
Marek Habersack 6fb7e60a2a System.Runtime.Caching.Configuration stuff implemented
svn path=/trunk/mcs/; revision=154944
2010-04-07 13:13:38 +00:00
Marek Habersack 4d85da83fc All System.Runtime.Caching namespace classes added + partial implementation
svn path=/trunk/mcs/; revision=154943
2010-04-07 13:13:30 +00:00
Marek Habersack 8e76009f14 ChangeMonitor implemented
svn path=/trunk/mcs/; revision=154942
2010-04-07 13:13:22 +00:00
Marek Habersack 44d44d4be1 Beginnings of System.Runtime.Caching
svn path=/trunk/mcs/; revision=154941
2010-04-07 13:13:03 +00:00