Commit Graph
74 Commits
Author SHA1 Message Date
Marek Safar cfe97bf3a5 Share more common code 2013-02-27 22:58:31 +01:00
Marek Safar 7883a2dafd Clean up some static initializers 2012-10-03 12:19:55 +01:00
Marek Safar b1683b85d3 Remove some unused code 2012-02-24 13:14:08 +00:00
Rodrigo Kumpera d72794cced Reorder fields to improve object layout since the runtime can't do it for corlib types. 2011-05-23 01:13:09 -03:00
Sebastien Pouliot 314842bef5 Enable some code to be included in Moonlight's S.X.S.dll SDK assembly
* System.Collections/ArrayList.cs:
* System.Collections/Hashtable.cs:
	Do not include debugger-related attributes and some interfaces
	when compiled outside corlib

* System.Runtime.Serialization/ObjectIDGenerator.cs: Ensure this can be
compiled outside corlib (needed for ML S.X.S.dll where even internals
cannot be used)
2011-05-06 08:40:41 -04:00
Miguel de Icaza e6371e3437 2009-10-16 Miguel de Icaza <[email protected]>
* Jumbo patch to elimiante more dead code now that we have dropped
	pre-2.0 profiles.


svn path=/trunk/mcs/; revision=144303
2009-10-17 01:00:45 +00:00
Gonzalo Paniagua Javier 504df470a3 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* Hashtable.cs: MS (at least latest and greatest) does not always
	serialized the HashCodeProvider. Ignoring the error when the field
	is not found.


svn path=/trunk/mcs/; revision=143099
2009-10-01 01:40:51 +00:00
Marek Safar 410b1478f4 2009-09-24 Marek Safar <[email protected]>
* Queue.cs, DictionaryEntry.cs, Hashtable.cs,
	CollectionDebuggerView.cs, Stack.cs, ArrayList.cs: Add nicer debug
	view for tools which support it.


svn path=/trunk/mcs/; revision=142568
2009-09-24 11:15:24 +00:00
Marek Safar b9fa6f381a 2009-09-22 Marek Safar <[email protected]>
* Queue.cs, Hashtable.cs, SortedList.cs, Stack.cs, ArrayList.cs:
	Add DebuggerDisplay attribute.


svn path=/trunk/mcs/; revision=142438
2009-09-22 21:54:55 +00:00
Miguel de Icaza 9afb612299 More changes to eliminate mcs warnings
svn path=/trunk/mcs/; revision=111788
2008-08-28 05:13:03 +00:00
Miguel de Icaza 60ed38d858 Expose EqualityComparer in 2.0
svn path=/trunk/mcs/; revision=111787
2008-08-28 05:05:29 +00:00
Jb Evain f528f0aac6 2008-08-04 Jb Evain <[email protected]>
* Hashtable.cs: cleanup internal KeyMarker type for NET_2_1.


svn path=/trunk/mcs/; revision=109557
2008-08-04 13:00:32 +00:00
Jb Evain 958ff1d20e get Miguel's patch back in, without cloning the serialization info
svn path=/trunk/mcs/; revision=103996
2008-05-24 22:29:11 +00:00
Jb Evain 12d69617f9 reverting, somehow this breaks the linker
svn path=/trunk/mcs/; revision=103936
2008-05-23 17:42:19 +00:00
Miguel de Icaza a37b274a57 2008-05-23 Miguel de Icaza <[email protected]>
* Hashtable.cs: Implement a faster clone that does not use an
	enumerator to iterate over the values, this doubles the speed of
	Clone.

	The use of an internal constructor that builds from a Hashtable is
	done to avoid populating a Hashtable and then updating every field
	and structure with new data. 


svn path=/trunk/mcs/; revision=103926
2008-05-23 16:27:58 +00:00
Jb Evain 4a6b0bd6e4 share folks from System.Collections in both System and System.Xml
svn path=/branches/jb/ml2/mcs/; revision=99297
2008-03-29 17:08:50 +00:00
Jb Evain 232d3340e1 in System.Collections:
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
2007-11-06 16:48:36 +00:00
Zoltan Varga 7154fb99ce 2007-10-25 Zoltan Varga <[email protected]>
* Hashtable.cs: Put the hash values into a separate array to help the GC. Fixes
	#336069.

svn path=/trunk/mcs/; revision=88233
2007-10-25 21:25:23 +00:00
Miguel de Icaza eebf4087dd Fix, SerializationInfo.GetValue might throw an error
svn path=/trunk/mcs/; revision=68055
2006-11-17 13:42:29 +00:00
Miguel de Icaza 1ded59163d Improved the MonoTODO messages, as these will be developer visible
2006-11-16  Miguel de Icaza  <[email protected]>

	* Hashtable.cs: Serialize EqualityComparer.


svn path=/trunk/mcs/; revision=67996
2006-11-16 13:33:32 +00:00
Miguel de Icaza 2da7bc41d2 2006-08-16 Miguel de Icaza <[email protected]>
* 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
2006-08-22 23:51:19 +00:00
Sebastien Pouliot 28c6cae779 2006-01-04 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Mark all inner classes as [Serializable] to match MS
	behaviour. Fix bug #76300.


svn path=/trunk/mcs/; revision=55081
2006-01-04 21:26:50 +00:00
Miguel de Icaza 5370ce3394 2005-09-29 Miguel de Icaza <[email protected]>
* 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
2005-09-30 02:15:04 +00:00
Zoltan Varga c09d655623 2005-09-05 Zoltan Varga <[email protected]>
* Hashtable.cs: Add new IEqualityComparer constructors for 2.0.

	* CaseInsensitiveHashCodeProvider.cs IHashCodeProvider.cs: Mark these
	as obsolete in 2.0.

svn path=/trunk/mcs/; revision=49484
2005-09-05 16:57:08 +00:00
Atsushi Eno 87d77899f2 2005-09-01 Atsushi Enomoto <[email protected]>
* Hashtable.cs : SyncHashtable.GetEnumerator() returned keys instead
	  of entries (DictionaryEntry). Fixed bug #75790.

	* HashtableTest.cs : testcase for #75790.


svn path=/trunk/mcs/; revision=49248
2005-09-01 06:24:42 +00:00
Martin Baulig 00d6ed169c Applied a patch from David Waite <[email protected]> containing some collection updates.
svn path=/trunk/mcs/; revision=46043
2005-06-15 14:10:38 +00:00
Zoltan Varga 3470ce092a 2005-06-06 Zoltan Varga <[email protected]>
* Hashtable.cs: Add some missing 2.0 attributes.

svn path=/trunk/mcs/; revision=45488
2005-06-06 14:13:37 +00:00
Sebastien Pouliot 80a0e22519 2005-05-22 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Renamed CER to Cer to match 2.0 beta2.


svn path=/trunk/mcs/; revision=44891
2005-05-22 15:20:04 +00:00
Zoltan Varga 2faa9773a9 2005-02-21 Zoltan Varga <[email protected]>
* Hashtable.cs: Add net 2.0 ReliabilityContractAttributes.

svn path=/trunk/mcs/; revision=41005
2005-02-21 16:11:57 +00:00
Ben Maurer 7284445dc3 * Hashtable.cs (get_Item): duplicate Find here, as we can
specialize a few things. This gives me 7% back.
	(Find) Use break rather than return -1. Saves a bit of code.
	

svn path=/trunk/mcs/; revision=38045
2004-12-21 19:10:43 +00:00
Ben Maurer 1e30148bfb 2004-12-21 Ben Maurer <[email protected]>
* 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
2004-12-21 18:54:07 +00:00
Ben Maurer b0f2cd6acb * Hashtable.cs (Find): Some minor optimizations here.
svn path=/trunk/mcs/; revision=38016
2004-12-21 03:07:59 +00:00
Ben Maurer d12836d6ae * Hashtable.cs: Remove GetImpl and inline it.
svn path=/trunk/mcs/; revision=38009
2004-12-21 00:22:57 +00:00
Ben Maurer 72d62fcf17 * Hashtable.cs (Find): Before calling KeyEquals, check to see if k
== 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
2004-12-20 23:01:29 +00:00
Ben Maurer 1fb732c551 2004-12-20 Ben Maurer <[email protected]>
* Hashtable.cs (Find): Make `i' a uint rather than an int. This
	avoids having a long compare.


svn path=/trunk/mcs/; revision=38000
2004-12-20 22:44:29 +00:00
Lluis Sanchez 51b4a2164f 2004-12-16 Lluis Sanchez Gual <[email protected]>
* 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
2004-12-20 18:23:22 +00:00
Lluis Sanchez a0390e9fd6 2004-12-16 Lluis Sanchez Gual <[email protected]>
* 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
2004-12-16 13:05:43 +00:00
Geoff Norton b287d431b5 Patch for bug #61802 (Approved by miguel)
svn path=/trunk/mcs/; revision=31389
2004-07-22 19:30:21 +00:00
Sebastien Pouliot 55b671bb85 2004-06-14 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Compare index and length in CopyTo only when length > 0.

svn path=/trunk/mcs/; revision=29538
2004-06-14 19:53:00 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot e2c9c8c0bf 2004-05-31 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Added ArgumentNullException in GetObjectData.

svn path=/trunk/mcs/; revision=28601
2004-06-01 00:44:10 +00:00
Sebastien Pouliot 06257093b5 2004-05-27 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Cloned synchronized Hashtables are now synchronized.

svn path=/trunk/mcs/; revision=28273
2004-05-27 14:46:50 +00:00
Lluis Sanchez 3a59ec0931 * Hashtable.cs: Renamed internal class to make serialization compatible
with MS.NET.

svn path=/trunk/mcs/; revision=27961
2004-05-24 11:20:08 +00:00
Gert Driesen 4dc6b21ef5 * Hashtable.cs: marked EnumeratorMode private
* SortedList.cs: marked EnumeratorMode private

svn path=/trunk/mcs/; revision=27020
2004-05-10 08:59:50 +00:00
Andreas N d2f65ad9d1 2004-05-01 Andreas Nahr <[email protected]>
* BitArray.cs: Fix parameter names
	* CaseInsensitiveHashCodeProvider.cs: Fix signature
	* DictionaryEntry.cs: Fix parameter names
	* Hashtable.cs: Fix signatures
	* SortedList.cs: Fix signatures

svn path=/trunk/mcs/; revision=26502
2004-05-01 10:23:55 +00:00
Ben Maurer a322a8c901 constify
svn path=/trunk/mcs/; revision=26353
2004-04-29 22:10:51 +00:00
David Sheldon 16fcacf230 2004-03-18 David Sheldon <[email protected]>
* Hashtable.cs: Serialise/Deserialise to two arrays of
   keys/values. This will match what MS.NET appears to be
   doing.

svn path=/trunk/mcs/; revision=24308
2004-03-18 23:25:35 +00:00
Lluis Sanchez 2351fc2ee8 * Hashtable.cs: Added serialization support to SynchedHashtable. This
fixes bug #52741.

svn path=/trunk/mcs/; revision=21991
2004-01-12 23:02:00 +00:00
Gonzalo Paniagua Javier 08fd92c968 2004-01-12 Gonzalo Paniagua Javier <[email protected]>
* Hashtable.cs: fix Clone. Closes bug #52740. Patch by Benjamin Jemlich
	([email protected]).

svn path=/trunk/mcs/; revision=21976
2004-01-12 10:31:20 +00:00
Gonzalo Paniagua Javier 153b8e21fb 2003-10-10 Gonzalo Paniagua Javier <[email protected]>
* System.Collections/Hashtable.cs:
	* Test/System.Collections/HashtableTest.cs: patch from Carlos A.
	Barcenilla ([email protected]) that includes some fixes for
	Hashtable + NUnit2 tests.

svn path=/trunk/mcs/; revision=18845
2003-10-10 03:24:41 +00:00