2007-11-06 Jb Evain <[email protected]>
* Hashtable.cs: Don't compare user keys against the special removed
key. Fix#324761.
in Test/System.Collections:
2007-11-06 Jb Evain <[email protected]>
* HashtableTest.cs: Add test case for #324761.
svn path=/trunk/mcs/; revision=89004
reconstruct it if CurrentCulture changes.
* CaseInsensitiveHashCodeProviderTest.cs: Reworked test for Default
instance to pass on both Mono and MS. Added separate tests that
verify the specific Mono and MS behavior.
svn path=/trunk/mcs/; revision=81412
TextInfo if current culture is invariant. Remoted private ctor.
In Default, always construct new instance since the current culture
may change.
* CaseInsensitiveHashCodeProviderTest.cs: Improved test for
Default property to show the a new intance is constructed. Added test
for DefaultInvariant. Improved serialization tests. Added ctor test
for null CultureInfo. Code formatting.
* CultureInfoTest.cs: Fixed UseUserOverride tests to pass on systems
where invariant culture is default locale.
svn path=/trunk/mcs/; revision=81408
* Hashtable.cs (PutImpl): Do not access the table twice, only
once.
(TestPrime): optimize, take the sqrt out of the loop.
svn path=/trunk/mcs/; revision=64217
* ReadOnlyCollectionBase.cs (Count): Mark as virtual in
NET_2_0. Fixes#79033.
* ReadOnlyCollectionBaseTest.cs (TestZeroCountOnNew): Add test for
overriding Count in NET_2_0 for #79033.
svn path=/trunk/mcs/; revision=63516
* Comparer.cs : changed internal field from CultureInfo to
CompareInfo. This cosmetic change should fix bug #77701.
svn path=/trunk/mcs/; revision=59912
* SortedList.cs: Removed check for IComparable in ctor (fixed bug
#76750). Removed unused private method. Added more useful info (the
duplicate key) to an exception.
svn path=/trunk/mcs/; revision=54065
* CaseInsensitiveHashCodeProvider: Serialization is now compatible
with MS. Removes the last TODO for 1.1 in this namespace :-)
svn path=/trunk/mcs/; revision=54016
* Add ComVisible(true) to all the classes that needed it.
* Removed documentation from DictionaryBase.cs and moved it to
Monodoc.
* ArrayList.cs: Fixed signature for constructor, parameter names
are normative.
* CollectionBase.cs: Add a couple of missing methods.
svn path=/trunk/mcs/; revision=51018
* SortedList.cs : Even though the key/value pair being set are
identical to the existing one, it causes snapshot out of sync.
Fixed bug #59694.
* SortedListTest.cs : testcase for #59694.
svn path=/trunk/mcs/; revision=49241
* CollectionBase.cs: Lazily create the inner list. MS.NET does
it and we need to do the same for the sake of serialization
interoperability. Fixes bug #75575.
svn path=/trunk/mcs/; revision=47520
2005-06-23 Ben Maurer <[email protected]>
* Queue.cs: Use the enumerator rather than copy to in the
ctor. This makes us more compat with msft, for example, when
passing a bit array
* Stack.cs: ditto
In Test/System.Collections:
2005-06-23 Ben Maurer <[email protected]>
* QueueTest.cs, StackTest.cs: Test for #75369.
svn path=/trunk/mcs/; revision=46461
* Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.
* StackTest.cs : test for CopyTo() on an empty stack.
svn path=/trunk/mcs/; revision=44253
* Hashtable.cs (GetHash): Avoid a method call. Also, don't store
the this.hcpRef in a variable. This will create another register
which must be pushed on the stack. It is better to just reference
the variable again. hcpRef.GetHashCode (key) is the slow path
anyways, so an extra variable reference here doesn't hurt
(KeyEquals): ditto.
This gives me a few % back in a raw benchmark.
svn path=/trunk/mcs/; revision=38044
== key (ie, they are the same pointer). In many cases, this will
avoid two virtual calls. This gives me 1% on mcs bootstrap (!!!!)
svn path=/trunk/mcs/; revision=38001
* Hashtable.cs: Check for null serialization info in OnDeserialization.
A hashtable subclass can fully override the constructor, so
serializationInfo would be null in this case. Fixes bug #70698.
svn path=/trunk/mcs/; revision=37988
* Hashtable.cs: Add deserialized elements in OnDeserialization, since
when the serialization constructor is called, some of the elements
may not yet be fully deserialized. This fixes bug #70570.
svn path=/trunk/mcs/; revision=37830
is not invariant, avoid an icall on every character.
(This chopped off 15s on a testcase that 'mbas' originally took 1m35s.)
svn path=/trunk/mcs/; revision=34798