2009-11-25 Jb Evain <[email protected]>
* Queue.cs (Enqueue): deal with the case where the tail
is off the array when deciding to enlarge the capacity.
in Test/System.Collections.Generic:
2009-11-25 Jb Evain <[email protected]>
* QueueTest.cs: add test for a specific combination of
calls that make the queue crash when enqueuing an item.
svn path=/trunk/mcs/; revision=146925
test for TrimExcess. Added tests for binary serialization.
* StackTest.cs: Removed usage of deprecated Assertion class. Added
test for TrimExcess. Added tests for binary serialization.
* Queue.cs: Fixed binary serialization, based on patch provided by
Lionel Cuir. Fixes TrimExcess to use SetCapacity, before it was not
updating _head which could lead to IndexOutOfRangeException.
* Stack.cs: Fixed binary serialization, based on patch provided by
Lionel Cuir. In Pop, clear entry from array to help GC.
svn path=/trunk/mcs/; revision=76069
* corlib_test.dll.sources,
corlib.dll.sources: generic Queue.cs and Stack.cs are now in System.
* System_test.dll.sources,
System.dll.sources: generic Queue.cs and Stack.cs are now in System.
* Queue.cs, Stack.cs: moved to System.dll
* QueueTest.cs, StackTest.cs: They are now in System.dll
svn path=/trunk/mcs/; revision=44484