[Mono-devel-list] Re: [Mono-patches] r46370 - in trunk/mcs/class/corlib: System.Collections.Generic Test/System.Collections.Generic

Ben Maurer bmaurer at ximian.com
Wed Jun 22 13:53:12 EDT 2005

On Wed, 2005-06-22 at 10:42 -0400, Raja R Harinath  wrote:
> 	(GetSlot): Use _hcp to compare keys.  Return the slot containing
> 	the key, rather than the index.  Avoid move-to-front heuristic
> 	when there's an enumerator coursing through the table.

There are probably races here. If one thread starts enumerating, another
thread reads, blah etc. IMHO, this optimization should be removed for

-- Ben

More information about the Mono-devel-list mailing list