ChangeLog 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. 2005-06-27 Raja R Harinath <[email protected]>
  2. Introduce some thread-safety by removing the modify-on-read
  3. move-to-front heuristic.
  4. * Dictionary.cs (_enumeratorGeneration, _enumerators): Remove.
  5. (Count): Add internal property set. Invalidate enumerators when
  6. Count is changed. Change all references of _usedSlots to Count.
  7. (this): Invalidate enumerators when the value of some slot is
  8. changed, even if the layout of the data-structure isn't modified.
  9. (DoHash): Remove null-key check. All codepaths leading to this
  10. function already have the check.
  11. (GetSlot): Remove move-to-front heuristic.
  12. (Remove): Update.
  13. 2005-06-24 Martin Baulig <[email protected]>
  14. * IDictionary.cs: Use the same type parameter names than on MS.
  15. * IDictionary.cs, Dictionary.cs: We don't need the `CLSCompliant'
  16. attribute here.
  17. 2005-06-23 Martin Baulig <[email protected]>
  18. * *.cs: Removed the `[ComVisible(false)]' attributes everywhere.
  19. 2005-06-22 Raja R Harinath <[email protected]>
  20. * Dictionary.cs (_generation, _enumeratorGeneration, _enumerators):
  21. New fields to implement fail-fast semantics. All code that
  22. modifies the table increment _generation.
  23. (GetSlot): Use _hcp to compare keys. Return the slot containing
  24. the key, rather than the index. Avoid move-to-front heuristic
  25. when there's an enumerator coursing through the table.
  26. (this, Add, TryGetValue, ContainsKey, Remove): Update to change.
  27. (Enumerator.Enumerator): Save the generation of the dictionary.
  28. (Enumerator.Dispose): Inform dictionary that the enumerator is no more.
  29. (Enumerator.MoveNext, Enumerator.VerifyState): Fail if the
  30. dictionary has been modified.
  31. 2005-06-20 David waite <[email protected]>
  32. * List.cs : substantial changes and optimizations
  33. (AddCollection, AddEnumerable): new internal specializations of AddRange
  34. (AsReadOnly): returns specific IList<T> to match ms.net 2.0b2 api.
  35. (Clear): reset size to zero on clear
  36. (ConvertAll): catch null converter, use Add to prevent OutOfBounds
  37. exception
  38. (FindAll, FindIndex, FindLast, FindLastIndex, RemoveAll, TrueForAll):
  39. check for null match
  40. (FindLastIndex): correct index parameters based on ms.net 2005b2 behavior
  41. (ForEach): catch null action
  42. (CheckIndex): new internal function similar to CheckRange for functions
  43. which only provide a starting index
  44. (InsertCollection, InsertEnumerable): new internal specializations of
  45. InsertRange
  46. (ReadOnlyList): removed, ReadOnlyCollection in
  47. System.Collections.ObjectModel is used instead now
  48. 2005-06-16 David Waite <[email protected]>
  49. * Dictionary.cs (EnumerationMode): Remove.
  50. (Enumerator): Remove return type flag - legacy return is expected to
  51. always return a DictionaryEntry
  52. (Enumerator): Make constructor internal, it is not public on ms.net
  53. beta 2
  54. (VerifyState): Added method to check state preconditions and throw
  55. appropriate exceptions.
  56. (KeyCollection,ValueCollection): Mark sealed to match ms.net beta 2
  57. (KeyCollection.Enumerator._hostEnumerator): make exact struct type,
  58. rather than boxing and using by interface
  59. (KeyCollection.Enumerator.Dispose): Call _hostEnumerator.Dispose.
  60. (ValueCollection.Enumerator._hostEnumerator): make exact struct type,
  61. rather than boxing and using by interface
  62. (ValueCollection.Enumerator.Dispose): Call _hostEnumerator.Dispose.
  63. * EqualityComparer.cs (DefaultComparer, IEquatableOfTEqualityComparer):
  64. Mark as serializable.
  65. 2005-06-16 Raja R Harinath <[email protected]>
  66. * Dictionary.cs (GetKeys, GetValues): Remove.
  67. (SetThreshold): New function to calculate the resize threshold.
  68. (CopyTo): Don't use foreach syntax.
  69. (ContainsValue): Likewise. Use default equality comparer of the
  70. value type.
  71. (GetObjectData): Use CopyTo to copy into temporary array. Don't
  72. save redundant _usedSlots and _threshold.
  73. (OnDeserialization): Rewrite.
  74. (ICollection<>.CopyTo): Forward to CopyTo.
  75. (Enumerator._nextIndex): Rename to from _index.
  76. (Enumerator._next, Enumerator.FixNext): Remove.
  77. (Enumerator.Current): Rewrite to avoid need for _next.
  78. (Enumerator.IEnumerator.Reset): Update.
  79. (KeyCollection): Is also IEnumerable<TKey> and IEnumerable.
  80. Update methods to conform to standard.
  81. (KeyCollection.GetEnumerator): Restore. Return the correct type.
  82. (KeyCollection.Enumerator): Rename from KeyEnumerator. Simple
  83. wrapper that forwards to Dictionary<,>.Enumerator.
  84. (ValueCollection): Likewise.
  85. 2005-06-12 David Waite <[email protected]>
  86. * IKeyComparer.cs: removed
  87. * KeyValuePair.cs: add same-style ToString as ms.net Beta2 impl,
  88. make Serializable, use correct field names.
  89. * Dictionary.cs: Miscelaneus clean-ups, added serialization
  90. support, use Hashtable prime functions
  91. 2005-06-12 Ben Maurer <[email protected]>
  92. * Comparer.cs, EqualityComparer.cs: Important performance hack:
  93. make sure that we don't box stuff and do reflection on every
  94. comparison. We use reflection at cctor time rather than on every
  95. request.
  96. 2005-06-09 Raja R Harinath <[email protected]>
  97. Simplify Enumerator.MoveNext to make it "obviously correct", rather
  98. than require subtle reasoning about the state of various variables.
  99. * Dictionary.cs (Enumerator._isValid): Remove. Replace all uses
  100. with "_current == null".
  101. (Enumerator._validNodeVisited): Remove.
  102. (Enumerator._next): New. Holds the the next position.
  103. (Enumerator.FixNest): New helper function that ensures that _next
  104. has the right value.
  105. (Enumerator.MoveNext): Simplify. Now, copies _next to _current
  106. and advances _next if possible.
  107. 2005-06-08 Martin Baulig <[email protected]>
  108. * Dictionary.cs (Dictionary.KeyEnumerator): Removed the public
  109. GetEnumerator() function since it's returning the wrong type.
  110. (Dictionary.ValueEnumerator): Likewise. Fix #75073.
  111. 2005-06-08 Ankit Jain <[email protected]>
  112. * Dictionary.cs (Dictionary<TKey, TValue>.MoveNext): Allow traversal of chain in last slot
  113. of the table. Fixes #75168.
  114. 2005-06-04 Ben Maurer <[email protected]>
  115. * *.cs: 2.0 api fixups
  116. 2005-05-26 Miguel de Icaza <[email protected]>
  117. * Dictionary.cs: Remove the `Hash' name from the Dictionary
  118. internal classes, make them public.
  119. 2005-05-26 Zoltan Varga <[email protected]>
  120. * Dictionary.cs: Fix a warning.
  121. * IDictionary.cs: Add missing TryGetValue method.
  122. 2005-05-19 Geoff Norton <[email protected]>
  123. * List.cs (Insert): Resize the array before the shift if needed
  124. 2005-05-18 Miguel de Icaza <[email protected]>
  125. * List.cs (GetRange): Implement.
  126. Do not do lazy loading of data. Not worth adding an
  127. extra check, and not worth the bugs.
  128. This decision wont be discussed until: a) a full List regression
  129. test suite exists and b) performance benchmarks are created. (b)
  130. depends on (a) or the argument wont even be heard.
  131. 2005-05-13 Atsushi Enomoto <[email protected]>
  132. * Queue.cs, Stack.cs: moved to System.dll
  133. 2005-05-06 Martin Baulig <[email protected]>
  134. * *.cs: Add CLSCompliant(true) where missing.
  135. 2005-05-06 Zoltan Varga <[email protected]>
  136. * *.cs: Remove CLSCompliant(false) attributes.
  137. 2005-05-05 Zoltan Varga <[email protected]>
  138. * List.cs: Applied patch from Mart Roosmaa ([email protected]).
  139. Fix Insert method. Fixes #74824.
  140. 2005-04-29 Martin Baulig <[email protected]>
  141. Reflect latest spec changes.
  142. * IEnumerable.cs (IEnumerable<T>): Implement IEnumerable.
  143. * IEnumerator.cs (IEnumerator<T>): Implement IEnumerator.
  144. 2005-04-29 Raja R Harinath <[email protected]>
  145. Remove FIXME.
  146. * Dictionary.cs (Slot<K,V>): Move to ...
  147. (Dictionary<K,V>.Slot): ... here.
  148. 2005-04-28 Martin Baulig <[email protected]>
  149. * Dictionary.cs, Queue.cs, Stack.cs, List.cs, Comparer.cs: Don't
  150. duplicate type parameters in the nested classes.
  151. 2005-04-20 Zoltan Varga <[email protected]>
  152. * List.cs: Fix ToArray () method. Fixes #74675.
  153. 2005-04-04 Raja R Harinath <[email protected]>
  154. * Dictionary.cs: Update to draft of Feb 27. Add some argument checks.
  155. (GetSlot): Don't throw KeyNotFoundException. Unify all list
  156. traversals in here. Move found key to head of chain, and return
  157. the index of the chain suitable for/containing the key.
  158. (Item, Add, Remove): Simplify, and remove FIXMEs.
  159. (Resize): Reuse linked list nodes from old table.
  160. (Dictionary.CopyTo, HashKeyCollection.CopyTo, HashValueCollection.CopyTo):
  161. Add some argument checks.
  162. 2005-04-02 Ben Maurer <[email protected]>
  163. * Dictionary.cs: Real impl.
  164. 2005-02-21 Martin Baulig <[email protected]>
  165. * IComparer.cs: Reverted the last change here, Equals() and
  166. GetHashCode() have been removed a long time ago.
  167. 2005-02-21 Kazuki Oikawa <[email protected]>
  168. * IComparer.cs, IDictionary.cs: Corrected the wrong declaration.
  169. 2005-02-11 Carlos Alberto Cortez <[email protected]>
  170. * List.cs: Added internal ReadOnlyCollection class,
  171. which is a wrapper for a read only IList<T> version of the List<T>.
  172. Used in AsReadOnly () method.
  173. 2005-02-07 Ben Maurer <[email protected]>
  174. * List.cs (CheckRange): Comparison error. Duh!
  175. (Shift): really deal with neg. delta. Also, adjust the `size'.
  176. Based on a patch from Marc Denty ([email protected]).
  177. Fixes #72258.
  178. 2005-01-29 Ben Maurer <[email protected]>
  179. * Queue.cs: `duh' bugs.
  180. 2004-12-27 Ben Maurer <[email protected]>
  181. * Stack.cs: Stupid bug fixes.
  182. * List.cs: My new (mostly untested ;-) impl of List
  183. <T>. Implements most of the API.
  184. 2004-12-26 Ben Maurer <[email protected]>
  185. * Queue.cs: New, non-linked-list based impl.
  186. 2004-11-29 Ben Maurer <[email protected]>
  187. * Comparer.cs: Update this class.
  188. 2004-11-25 Carlos Alberto Cortez <[email protected]>
  189. * List.cs: Enumerator changed to behave like the MS impl.
  190. 2004-11-25 Ben Maurer <[email protected]>
  191. * Stack.cs: New, list based impl. Waiting for some gmcs fixes.
  192. 2004-11-10 Martin Baulig <[email protected]>
  193. * IDictionary.cs (IDictionary): `IsReadOnly' and `Clear' are
  194. inherited from ICollection.
  195. 2004-09-20 Gert Driesen <[email protected]>
  196. * ReadOnlyCollection.cs: Moved to System assembly
  197. * Collection.cs: Moved to System assembly
  198. 2004-09-07 Carlos Alberto Cortez <[email protected]>
  199. * ReadOnlyCollection.cs: New file and changes to
  200. Collection.cs tu support it.
  201. 2004-09-05 Marek Safar <[email protected]>
  202. * Dictionary.cs: Added new file (no implementation).
  203. 2004-09-03 Carlos Alberto Cortez <[email protected]>
  204. * Collection.cs: Small improvements related to
  205. style, resizing, and type checking.
  206. 2004-09-01 Carlos Alberto Cortez <[email protected]>
  207. * Collection.cs: New file.
  208. 2004-08-04 Martin Baulig <[email protected]>
  209. * List.cs (List<T>.Enumerator): Made this a struct.
  210. (List<T>.GetEnumerator): The public method now returns the
  211. `Enumerator' struct.
  212. 2004-08-02 Martin Baulig <[email protected]>
  213. Started to do some API review.
  214. * ICollection.cs (ICollection<T>): Added IsReadOnly, Add, Clear,
  215. Contains and Remove.
  216. * IList.cs (IList<T>): Removed Add, Clear, Constains, Remove,
  217. IsReadOnly and IsFixedSize.
  218. 2004-08-02 Martin Baulig <[email protected]>
  219. * IList.cs (IList.Add): Changed return type to void.
  220. * List.cs (List.Add): Likewise.
  221. 2004-07-16 Martin Baulig <[email protected]>
  222. * IComparable.cs: Removed, it's in System.
  223. 2004-07-12 Duncan Mak <[email protected]>
  224. * KeyNotFoundException.cs: Added.
  225. 2004-06-18 Ben Maurer <[email protected]>
  226. * Comparer.cs: v2 impl. Some workarounds for gmcs are enabled.
  227. 2004-05-26 Sebastien Pouliot <[email protected]>
  228. * Queue.cs: Fixed possible integer overflow in CopyTo methods.
  229. * Stack.cs: Fixed possible integer overflow in CopyTo methods.
  230. 2004-03-13 Martin Baulig <[email protected]>
  231. * Stack.cs, Queue.cs, List.cs: Implement the non-generic interfaces.
  232. 2004-03-11 Martin Baulig <[email protected]>
  233. * List.cs: New file.
  234. 2004-03-11 Martin Baulig <[email protected]>
  235. * Stack.cs, Queue.cs: Just use `Node' for the nested class, not
  236. `Node<T>' (which would create another type parameter `T'
  237. overriding `T' from the outer class).
  238. 2004-02-23 Martin Baulig <[email protected]>
  239. * Stack.cs, Queue.cs: New files. Hmm, looks like I forgot to add
  240. them to CVS; they're already on my hard disk since December or so.
  241. 2003-12-08 Martin Baulig <[email protected]>
  242. * *.cs: require GENERICS.
  243. 2003-11-08 Ben Maurer <[email protected]>
  244. * *.cs: require NET_2_0 and GENERICS
  245. 2003-11-07 Ben Maurer <[email protected]>
  246. * IComparable.cs, IComparer.cs, IDictionary.cs, IKeyComparer.cs, KeyValuePair.cs
  247. Added.
  248. 2003-11-06 Martin Baulig <[email protected]>
  249. * ICollection.cs, IList.cs, IEnumerator.cs, IEnumerable.cs:
  250. Started to implement the System.Collections.Generic classes.