ChangeLog 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123
  1. 2007-09-25 Dick Porter <[email protected]>
  2. * Thread.cs: Keep ManagedThreadId constant over the lifetime of a
  3. Thread. Patch from [email protected] fixing bugs 325367 and
  4. 325566.
  5. 2007-09-25 Jonathan Pobst <[email protected]>
  6. * SynchronizationContext.cs: Implement SetSynchronizationContext.
  7. 2007-09-06 Dick Porter <[email protected]>
  8. * Timer.cs: Only hold a WeakReference to the runner thread, to
  9. work around an issue when finalizing at shutdown or (I think)
  10. appdomain unload. (Basically, the Thread was being finalized
  11. first, but the Timer's finalizer was still trying to reference it
  12. subsequently.)
  13. 2007-08-10 Gert Driesen <[email protected]>
  14. * Thread.cs: Throw ThreadStateException when retrieving ApartmentState
  15. or IsBackground if thread is stopped. Fixes bug #81658.
  16. 2007-08-08 Zoltan Varga <[email protected]>
  17. * Thread.cs: Add a fixme.
  18. 2007-07-21 Miguel de Icaza <[email protected]>
  19. * WaitHandle.cs (Handle): It turns out that we should never create
  20. new SafeWaitHandles, as applications will assume that a
  21. SafeWaitHandle pulled from this will be the same after a Handle
  22. update (from Gert's test):
  23. AutoResetEvent are1 = new AutoResetEvent (false);
  24. AutoResetEvent are2 = new AutoResetEvent (false);
  25. SafeWaitHandle swh1 = are1.SafeWaitHandle;
  26. Console.WriteLine ("#A1:" + !swh1.IsClosed);
  27. Console.WriteLine ("#A2:" + !swh1.IsInvalid);
  28. IntPtr dummyHandle = (IntPtr) 2;
  29. are1.Handle = dummyHandle;
  30. Console.WriteLine ("#A3:" + (are1.Handle == dummyHandle));
  31. Console.WriteLine ("#A4:" + !swh1.IsClosed);
  32. Console.WriteLine ("#A5:" + !swh1.IsClosed);
  33. Console.WriteLine ("#A6:" + !swh1.IsInvalid);
  34. Console.WriteLine ("#A7:" + !are1.SafeWaitHandle.IsClosed);
  35. Console.WriteLine ("#A8:" +
  36. !are1.SafeWaitHandle.IsInvalid);
  37. We would return in A4, A5, A6 true, even when we have set the
  38. Handle ourselves.
  39. *
  40. 2007-07-18 Miguel de Icaza <[email protected]>
  41. * WaitHandle.cs (Handle): in the 2.0 profile, explicitly dispose
  42. the old SafeWaitHandle, do not wait for the finalizer to run;
  43. Take ownership of the handle; The docs did not say that
  44. assigning to this value would lead to a leak, the docs said that
  45. in the 1.0 and 1.1 profiles assigning to this property might lead
  46. to a leak. My mistake.
  47. Fixes: 82134
  48. 2007-07-09 Atsushi Enomoto <[email protected]>
  49. * LockCookie.cs, AsyncFlowControl.cs :
  50. added missing operator == and !=.
  51. 2007-05-22 Jonathan Chambers <[email protected]>
  52. * Thread.cs: Use & to check ThreadState rather than ==.
  53. Fixes AlbumSurfer regression.
  54. 2007-05-09 Jonathan Chambers <[email protected]>
  55. * Thread.cs: Implement ApartmentState related items.
  56. 2007-05-02 Dick Porter <[email protected]>
  57. * ReaderWriterLock.cs: ReaderWriterLock derives from
  58. CriticalFinalizerObject in the 2.0 profile
  59. 2007-05-01 Dick Porter <[email protected]>
  60. * ThreadState.cs:
  61. * AsyncFlowControl.cs:
  62. * Interlocked.cs:
  63. * RegisteredWaitHandle.cs:
  64. * TimerCallback.cs:
  65. * ThreadStateException.cs:
  66. * Monitor.cs:
  67. * ThreadStart.cs:
  68. * WaitOrTimerCallback.cs:
  69. * LockCookie.cs:
  70. * EventWaitHandle.cs:
  71. * WaitHandle.cs:
  72. * ThreadAbortException.cs:
  73. * ThreadPriority.cs:
  74. * ReaderWriterLock.cs:
  75. * NativeOverlapped.cs:
  76. * Mutex.cs:
  77. * Overlapped.cs:
  78. * ThreadPool.cs:
  79. * ApartmentState.cs:
  80. * EventResetMode.cs:
  81. * SynchronizationLockException.cs:
  82. * ManualResetEvent.cs:
  83. * WaitCallback.cs:
  84. * IOCompletionCallback.cs:
  85. * AutoResetEvent.cs:
  86. * AbandonedMutexException.cs:
  87. * SendOrPostCallback.cs:
  88. * ThreadInterruptedException.cs: Update to 2.0 profile
  89. Thu Apr 19 16:47:52 CEST 2007 Paolo Molaro <[email protected]>
  90. * ThreadPool.cs: patch from Robert Jordan to implement
  91. ThreadPool.SetMaxThreads.
  92. 2007-04-03 Alp Toker <[email protected]>
  93. * Monitor.cs: Class is static in 2.0.
  94. 2007-03-27 Dick Porter <[email protected]>
  95. * Mutex.cs: Throw ApplicationException if ReleaseMutex() fails.
  96. Fixes bug 79358.
  97. Tue Jan 23 17:43:50 CET 2007 Paolo Molaro <[email protected]>
  98. * Thread.cs: mark the GC-tracked field with UIntPtr.
  99. 2006-12-31 Miguel de Icaza <[email protected]>
  100. * ThreadPool.cs: Stub a method.
  101. 2006-12-11 Miguel de Icaza <[email protected]>
  102. * WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
  103. patterns instead of using directly the IntPtr Handle.
  104. Refactor the code to reuse as much as possible, and follow the new
  105. conventions where appropriate.
  106. 2006-11-07 Robert Jordan <[email protected]>
  107. * WaitHandle.cs: Don't assume Assembly.GetEntryAssembly () !=
  108. null. Fixes bug #79859.
  109. 2006-11-02 Dick Porter <[email protected]>
  110. * Thread.cs: Use the new Interrupt and SpinWait icalls.
  111. 2006-07-04 Atsushi Enomoto <[email protected]>
  112. * WaitHandle.cs : CheckArray() is also used in WaitAny(), so added
  113. extra argument to skip STAThread check.
  114. 2006-06-30 Duncan Mak <[email protected]>
  115. * WaitHandle.cs (CheckArray): Avoid using reflection unless we
  116. really need to.
  117. 2006-06-29 Duncan Mak <[email protected]>
  118. * WaitHandle.cs (CheckArray): Throw NotSupportedException if the
  119. current thread is marked with the STAThreadAttribute. Fixes bug
  120. #78455.
  121. 2006-05-05 Sebastien Pouliot <[email protected]>
  122. * ExecutionContext.cs: Don't capture the compressed stack unless the
  123. security manager is active (this wasn't ready to be called in
  124. production code).
  125. 2004-04-29 Atsushi Enomoto <[email protected]>
  126. * Timer.cs : avoid NullReferenceException when it is already disposed.
  127. Patch by [email protected]. Fixed bug #78208.
  128. 2004-04-28 Atsushi Enomoto <[email protected]>
  129. * SynchronizationContext.cs : use ThreadPool in Post(), as suggested
  130. by cl (bug #78139).
  131. 2004-04-04 Atsushi Enomoto <[email protected]>
  132. * Thread.cs : base class is CriticalFinalizerObject.
  133. * ThreadStartException.cs : no public constructors.
  134. Wed Mar 29 18:29:55 CEST 2006 Paolo Molaro <[email protected]>
  135. * Thread.cs: update for the runtime changes to culture caching.
  136. Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <[email protected]>
  137. * Thread.cs: updates for LocalDataStoreSlot: we use an array as
  138. storage for the slots now so that LocalDataStoreSlot objects an be
  139. garbage collected if the user doesn't keep a reference to them.
  140. 2006-02-09 Miguel de Icaza <[email protected]>
  141. * Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
  142. should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
  143. code already supported this.
  144. Removed also a LAMESPEC for missing argument checking in Wait with
  145. the int argument.
  146. Fixed the use of exceptions.
  147. 2005-12-23 Dick Porter <[email protected]>
  148. * EventWaitHandle.cs:
  149. * Mutex.cs: Implement OpenExisting
  150. * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
  151. 2.0. Add a "created" boolean out parameter to CreateEvent icall.
  152. * ManualResetEvent.cs:
  153. * AutoResetEvent.cs: Update CreateEvent icall signature (now has
  154. "created" boolean out parameter.)
  155. 2005-12-17 Dick Porter <[email protected]>
  156. * ThreadStartException.cs:
  157. * EventWaitHandle.cs:
  158. * EventResetMode.cs:
  159. * AbandonedMutexException.cs: New for 2.0 profile
  160. * ThreadState.cs:
  161. * Interlocked.cs:
  162. * RegisteredWaitHandle.cs:
  163. * Monitor.cs:
  164. * ThreadPriority.cs:
  165. * Mutex.cs:
  166. * ManualResetEvent.cs:
  167. * AutoResetEvent.cs: Updated for 2.0 profile
  168. 2005-11-23 Zoltan Varga <[email protected]>
  169. * Interlocked.cs: Add T:class constraint to the generic
  170. CompareExchange and Exchange methods.
  171. 2005-11-17 Zoltan Varga <[email protected]>
  172. * Interlocked.cs: Add generic CompareExchange and Exchange methods.
  173. 2005-11-17 Sebastien Pouliot <[email protected]>
  174. * WaitHandleCannotBeOpenedException.cs: New (2.0). Is required to
  175. compile the Semaphore tests (in System.dll).
  176. 2005-10-23 Marek Safar <[email protected]>
  177. * SynchronizationContext.cs: A few simple fixes.
  178. 2005-10-06 Sebastien Pouliot <[email protected]>
  179. * Thread.cs: Copy an existing IPrincipal to new threads. Fix bug
  180. #76332.
  181. 2005-10-06 Sebastien Pouliot <[email protected]>
  182. * Thread.cs: Added new attributes, [ReliabilityContract] for
  183. destructor and [Obsolete] for [Get|Set]CompressedStack, that were
  184. added in 2.0 RC.
  185. 2005-09-11 Zoltan Varga <[email protected]>
  186. * Thread.cs (MemoryBarrier): Make this an icall.
  187. 2005-09-10 Zoltan Varga <[email protected]>
  188. * Thread.cs (Interrupt): Make this throw a NotImplementedException.
  189. 2005-09-09 Martin Baulig <[email protected]>
  190. * Timer.cs (Timer.Runner.Start): Silently catch
  191. ObjectDisposedException and return; works around some race
  192. condition on thread abort.
  193. 2005-08-19 Dick Porter <[email protected]>
  194. * Thread.cs: Reserve 64 bits for the thread ID.
  195. 2005-07-19 Martin Baulig <[email protected]>
  196. * Timer.cs (Timer.Runner.Start): Fix a race condition which was
  197. causing a hang on exit int he debugger: check `!disposed' before
  198. `start_event.WaitOne ()' and again after it.
  199. 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
  200. * Thread.cs: check that the culture is valid for formatting
  201. (ie, (!neutral || invariant)).
  202. 2005-06-07 Sebastien Pouliot <[email protected]>
  203. * Thread.cs: Added _Thread interface (and members) and a few missing
  204. attributes (for both 1.1 and 2.0).
  205. 2005-06-06 Zoltan Varga <[email protected]>
  206. * Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.
  207. 2005-05-29 Sebastien Pouliot <[email protected]>
  208. * Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
  209. * Timeout.cs: This is a static class in 2.0 and ComVisible attribute.
  210. 2005-05-26 Ben Maurer <[email protected]>
  211. * Thread.cs: Use a static object for a lock rather than
  212. typeof(Thread).
  213. 2005-05-26 Sebastien Pouliot <[email protected]>
  214. * SynchronizationContext.cs: Re-introduced SendOrPost method as it's
  215. being used in System.Web.Services.
  216. 2005-05-26 Sebastien Pouliot <[email protected]>
  217. * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
  218. on the switcher structure anymore (which will be removed from the
  219. build).
  220. 2005-05-24 Sebastien Pouliot <[email protected]>
  221. * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
  222. 2005-05-20 Sebastien Pouliot <[email protected]>
  223. * AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
  224. required to get some methods from SecurityContext and ExecutionContext
  225. working.
  226. * CompressedStack.cs: Now includes the current CompressedStack in a new
  227. Capture.
  228. * ExecutionContext.cs: Includes more methods in NET_1_1 to enable
  229. ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
  230. stack propagation).
  231. * Thread.cs: Made ExecutionContext field accessible from the runtime.
  232. Added stack propagation when Thread.Start is called.
  233. * ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
  234. the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.
  235. 2005-05-19 Miguel de Icaza <[email protected]>
  236. * Thread.cs: REmove warnings.
  237. 2005-05-16 Gonzalo Paniagua Javier <[email protected]>
  238. * Thread.cs: first check for null, then set in_currentculture.
  239. 2005-05-12 Lluis Sanchez Gual <[email protected]>
  240. * Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
  241. Merged Thread_internal and Start_internal into a single icall, which
  242. does all work.
  243. 2005-05-11 Sebastien Pouliot <[email protected]>
  244. * CompressedStack.cs: Allow merging of an existing CompressedStack
  245. with the actual stack of the current Thread.
  246. * Thread.cs: GetCompressedStack and SetCompressedStack are public
  247. before 2.0 but couldn't be seen with mono-api-info because of it's
  248. LinkDemand for the ECMA public key. Removed unused CompressedStack
  249. private field (now part of the ExecutionContext).
  250. 2005-05-09 Sebastien Pouliot <[email protected]>
  251. * CompressedStack.cs: GetCompressedStack is public before 2.0 but
  252. couldn't be seen with mono-api-info because of it's LinkDemand for
  253. the ECMA public key. Stack capture occurs here if none exists on the
  254. current thread.
  255. 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
  256. * ReaderWriterLock.cs: fix random ApplicationException errors. Tested
  257. with the System.Web.Cache stress program. Patch by Eyal Alayuf
  258. (Mainsoft). Fixes 74598.
  259. 2005-04-28 Sebastien Pouliot <[email protected]>
  260. * Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
  261. GetCompressedStack and made SetCompressedStack available (as internal)
  262. before NET_2_0.
  263. 2005-04-28 Sebastien Pouliot <[email protected]>
  264. * AsyncFlowControl.cs: Updated wrt beta2.
  265. * ExecutionContext.cs: Updated wrt beta2. Class is now internal in
  266. NET_1_1 to allow the compressed stack propagation to other threads.
  267. * CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1
  268. to allow the compressed stack propagation to other threads.
  269. * ContextCallback.cs: Updated wrt beta2.
  270. * HostExecutionContext.cs: Updated wrt beta2.
  271. * HostExecutionContextManager.cs: Updated wrt beta2.
  272. * Thread.cs: Added internal property to get the ExecutionContext.
  273. 2005-04-19 Zoltan Varga <[email protected]>
  274. * Thread.cs: Add some unused fields.
  275. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  276. * ThreadPool.cs: BindHandle does nothing now.
  277. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  278. * Thread.cs: clear the Unstarted bit before calling Start_internal.
  279. Fixes bug #72738.
  280. 2005-04-04 Ben Maurer <[email protected]>
  281. * Thread.cs: Do argument checking for Current[UI]Culture to make
  282. the exception more clear for a null value being set.
  283. 2005-03-24 Sebastien Pouliot <[email protected]>
  284. * CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
  285. public key on GetCompressedStack method.
  286. * Mutex: Added LinkDemand for UnmanagedCode to create named (system
  287. wide) mutexes.
  288. * Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
  289. CompressedStack methods.
  290. * WaitHandle.cs: Added LinkDemand and InheritanceDemand for
  291. UnmanagedCode on set Handle property.
  292. 2005-03-10 Zoltan Varga <[email protected]>
  293. * Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.
  294. 2005-02-21 Zoltan Varga <[email protected]>
  295. * Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.
  296. 2005-02-20 Zoltan Varga <[email protected]>
  297. * Interlocked.cs: Applied patch from Luca Barbieri ([email protected]). Add NET 2.0 methods.
  298. Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <[email protected]>
  299. * Thread.cs: make the slothash a field in MonoThread.
  300. 2005-01-27 Sebastien Pouliot <[email protected]>
  301. * Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
  302. Unsafe pack. Added MonoTODO for missing security stack propagation.
  303. * Thread.cs: Add security checks for ControlThread.
  304. * ThreadPool.cs: Added declarative security checks.
  305. Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <[email protected]>
  306. * Thread.cs: implement stacksize and parameterized
  307. start functionality (requires matching runtime).
  308. 2005-01-12 Gonzalo Paniagua Javier <[email protected]>
  309. * ThreadAbortException.cs: added private serialization .ctor.
  310. 2004-12-20 Sebastien Pouliot <[email protected]>
  311. * CompressedStack.cs: Implemented most todo so it's usable for CAS.
  312. * CompressedStackSwitcher.cs: Implemented most todo.
  313. * Thread.cs: Implement support for getting/setting CompressedStack.
  314. 2004-12-15 Zoltan Varga <[email protected]>
  315. * Thread.cs: Change type of culture_info and ui_culture_info to
  316. IntPtr. Implement correct culture handling for the UI culture as
  317. well.
  318. 2004-12-14 Zoltan Varga <[email protected]>
  319. * Thread.cs: Optimize CurrentCulture to avoid initializing the
  320. serialization infrastructure in the common case when the culture is
  321. not set explicitly.
  322. 2004-12-06 Zoltan Varga <[email protected]>
  323. * Thread.cs: Add new fields 'serialized_culture_info{_len}'.
  324. * Thread.cs (CurrentCulture): Fix leaking of culture info objects
  325. across appdomains. Partially fixes #50049.
  326. 2004-12-05 Miguel de Icaza <[email protected]>
  327. * AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
  328. ObjectDisposedEvent, helped track the WebConnection destructor
  329. issue.
  330. 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
  331. * Timer.cs: don't invoke the callback twice when the timer changes.
  332. Fixes bug #66116.
  333. 2004-09-08 Marek Safar <[email protected]>
  334. * Interlocked.cs: Class is static in NET_2_0.
  335. 2004-09-04 Sebastien Pouliot <[email protected]>
  336. * Thread.cs: Changed an imperative security demand to declarative
  337. (unsupported) so it doesn't (for now) call the security runtime.
  338. 2004-08-20 Sebastien Pouliot <[email protected]>
  339. * Thread.cs: Added Fx 2.0 properties/methods/attributes.
  340. 2004-08-12 Sebastien Pouliot <[email protected]>
  341. * CompressedStackSwitcher.cs: Added missing [ComVisible] and
  342. [ReliabilityContract] attributes.
  343. * ExecutionContext.cs: Added missing [ComVisible] and
  344. [Serializable] attributes.
  345. * HostExecutionContext.cs: Added missing [ComVisible] attribute.
  346. * HostExecutionContextManager.cs: Added missing [ComVisible] and
  347. [ReliabilityContract] attributes.
  348. * HostExecutionContextSwitcher.cs: Added missing Equals and
  349. GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
  350. * ParameterizedThreadStart.cs: New delegate in NET_2_0.
  351. * SendOrPostCallback.cs: Added missing [ComVisible] attribute.
  352. * SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
  353. WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
  354. * SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
  355. [ReliabilityContract] attributes.
  356. 2004-08-08 Sebastien Pouliot <[email protected]>
  357. * HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
  358. * HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
  359. * HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
  360. 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
  361. * Timer.cs: don't invoke the callback if the period changes before the
  362. due time. Fixes bug #62421.
  363. 2004-07-27 Lluis Sanchez Gual <[email protected]>
  364. * ExecutionContext.cs, ExecutionContextSwitcher.cs,
  365. SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added
  366. 2.0 stubs.
  367. 2004-07-15 Dick Porter <[email protected]>
  368. * Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
  369. based on patch by Sbastien Robitaille
  370. ([email protected]). Also fix instances of
  371. lock(typeof(Thread)) to lock a private object instead.
  372. 2004-07-14 Sebastien Pouliot <[email protected]>
  373. * AsyncFlowControl.cs: New structure in Fx 2.0 required in
  374. System.Security namespace.
  375. * CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
  376. System.Security namespace.
  377. * ContextCallback.cs: New delegate in Fx 2.0 required in
  378. System.Security namespace.
  379. * CompressedStack.cs: Updated API for NET_2_0 profile.
  380. 2004-07-10 Lluis Sanchez Gual <[email protected]>
  381. * SendOrPostCallback.cs: New delegate.
  382. 2004-06-24 Dick Porter <[email protected]>
  383. * Mutex.cs: Implement the createdNew parameter
  384. 2004-06-15 Gert Driesen <[email protected]>
  385. * Thread.cs: changed return type of VolatileRead to UIntPtr
  386. * ThreadPool.cs: set return type of SetMinThreads to bool
  387. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  388. * Thread.cs: Added new fields to keep sync with MonoThread.
  389. Removed state changes in Sleep and Join. The state change is now done
  390. in the icall. For accessing to internal fields lock with synch_lock
  391. instead of this, which can be a source of deadlocks.
  392. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  393. * Timer.cs: Don't abort the thread if Dispose() is called from the runner
  394. thread.
  395. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  396. * Thread.cs:
  397. (CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
  398. the thread IPrincipal if we get it from the AppDomain.
  399. 2004-06-09 Gert Driesen <[email protected]>
  400. * CompressedStack.cs: Added finalizer to match public API of
  401. MS.NET
  402. 2004-05-19 Lluis Sanchez Gual <[email protected]>
  403. * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
  404. Added internal interruption_requested field.
  405. 2004-05-13 Sebastien Pouliot <[email protected]>
  406. * CompressedStack.cs: Added an internal constructor so a default one
  407. doesn't appear with corcompare.
  408. * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
  409. corcompare. Both throw a NotImplementedException.
  410. * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
  411. overloads) to please corcompare. All throw a NotImplementedException.
  412. 2004-05-12 Zoltan Varga <[email protected]>
  413. * CompressedStack.cs: New file.
  414. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  415. * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
  416. * Timer.cs: In Change, return false if the timer has been disposed.
  417. In Dispose, notify the WaitHandle.
  418. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  419. * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
  420. if the thread already has the lock. Added readyWaitingReaders variable to
  421. keep track of threads ready to get the reader lock.
  422. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  423. * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
  424. lock(this) when entering the rwlock to avoid a deadlock.
  425. * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
  426. is not empty (even if state==0).
  427. 2004-04-09 Zoltan Varga <[email protected]>
  428. * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
  429. #56728.
  430. 2004-04-08 Jackson Harper <[email protected]>
  431. * ReaderWriterLock.cs: Fix tyop
  432. 2004-04-08 Lluis Sanchez Gual <[email protected]>
  433. * ReaderWriterLock.cs: Changed some methods to private.
  434. * WaitHandle.cs: In Wait methods, release the synchronization context when
  435. exitContext is true.
  436. 2004-04-08 Gonzalo Paniagua Javier <[email protected]>
  437. * Timer.cs: call Abort on the Runner instance too.
  438. 2004-04-07 Jackson Harper <[email protected]>
  439. * Thread.cs: Use new culture info method for constructing the
  440. current culture.
  441. 2004-04-07 Lluis Sanchez Gual <[email protected]>
  442. * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
  443. AcquireReaderLock works like a call to AcquireWriterLock.
  444. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  445. * Monitor.cs: In Wait(), release the synchronization context when
  446. exitContext is true.
  447. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  448. * LockCookie.cs: Keep in this class the count of reader or writer locks
  449. for a thread, not only whether it has locks or not.
  450. * LockQueue.cs: Added property for checking if a thread is waiting in
  451. the queue. Wait now returns a boolean that set to false on timeout
  452. expiration.
  453. * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
  454. The main change is that now it keeps a reader lock count for each
  455. thread. This is needed since methods like ReleaseLock or
  456. UpgradeToWriterLock need to return a per-thread status in LockCookie.
  457. Also added support for recursive writer-lock requests.
  458. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  459. * ThreadAbortException.cs: use same HResult as MS.
  460. * Timer.cs: abort the running thread when disposing the Timer. This
  461. fixes NullRefs when finishing xsp.
  462. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  463. * NativeOverlapped.cs: added 2 new internal fields.
  464. * Overlapped.cs: implemented, but it's not used.
  465. * ThreadPool.cs: implemented BindHandle.
  466. 2004-03-08 Zoltan Varga <[email protected]>
  467. * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
  468. ([email protected]). Fix finalization problems during appdomain unload.
  469. 2004-02-23 Jackson Harper <[email protected]>
  470. * LockCookie.cs: Add some fields for restoring locks.
  471. * ReaderWriterLock.cs: Implement
  472. * LockQueue.cs: New File - used for queueing thread locks in
  473. ReaderWriterLock.
  474. 2004-02-19 Jackson Harper <[email protected]>
  475. * Monitor.cs: Fix spelleng.
  476. 2004-02-09 Zoltan Varga <[email protected]>
  477. * Thread.cs: Add fields added to unmanaged MonoThread here as well.
  478. Fixes random errors caused by memory corruption.
  479. 2004-02-06 Zoltan Varga <[email protected]>
  480. * Thread.cs: Store the thread name in unmanaged memory, since the
  481. thread object is shared between appdomains.
  482. 2004-02-05 Sebastien Pouliot <[email protected]>
  483. * Thread.cs: Implemented CurrentPrincipal.
  484. 2004-01-22 Gonzalo Paniagua Javier <[email protected]>
  485. * Thread.cs: delayed thread creation until Start is called. If we
  486. don't do that and Start() is not called, the thread is leaked. First
  487. step towards fixing bug #53078.
  488. 2003-12-02 Dick Porter <[email protected]>
  489. * Thread.cs: Throw InvalidOperationException if Thread.Name is
  490. already set.
  491. 2003-12-01 Dick Porter <[email protected]>
  492. * Thread.cs: Implement CurrentCulture and CurrentUICulture
  493. 2003-11-12 Miguel de Icaza <[email protected]>
  494. * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
  495. 2003-10-23 Lluis Sanchez Gual <[email protected]>
  496. * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
  497. methods. They are used in CrossAppDomainChannel to save and restore
  498. thread's local data when switching between domains.
  499. 2003-10-08 Gonzalo Paniagua Javier <[email protected]>
  500. * ManualResetEvent.cs: added check for disposed.
  501. * Thread.cs: no need to init this field.
  502. 2003-10-01 Zoltan Varga <[email protected]>
  503. * Thread.cs: Add locking to AllocateNamedDataSlot and
  504. FreeNamedDataSlot.
  505. Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <[email protected]>
  506. * Thread.cs: put all the fields at the start and add
  507. more fields needed by the runtime.
  508. 2003-08-14 Lluis Sanchez Gual <[email protected]>
  509. * Thread.cs: SetData() method: use Hashtable.Contains to check
  510. if a dataslot has been allocated (value could be null).
  511. 2003-07-23 Duncan Mak <[email protected]>
  512. * WaitHandle.cs (CheckDisposed): This method is not in the public
  513. API, mark it as 'internal'.
  514. 2003-07-01 Dick Porter <[email protected]>
  515. * Thread.cs: Throw an exception if thread creation failed.
  516. (Better than just blowing up later.)
  517. 2003-06-27 Dietmar Maurer <[email protected]>
  518. * ThreadPool.cs: use async delegate invoke.
  519. 2003-06-25 Dick Porter <[email protected]>
  520. * WaitHandle.cs: Default handle value should be InvalidHandle, not
  521. Zero.
  522. 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
  523. * ThreadPool.cs: correctly create a TimeSpan with provided the number of
  524. milliseconds.
  525. * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
  526. 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
  527. * WaitHandle.cs: checks and exceptions.
  528. 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
  529. * NativeEventCalls.cs: added CloseEvent_intenal.
  530. * WaitHandle.cs: call CloseEvent_internal when disposing.
  531. 2003-05-31 Gonzalo Paniagua Javier <[email protected]>
  532. * RegisteredWaitHandle.cs: check that the callback is not null before
  533. invoking.
  534. * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
  535. #43963). Queue the item before setting the handle. If there's a timeout,
  536. avoid trying to Dequeue, getting the exception et al, just continue the
  537. loop.
  538. Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
  539. * Monitor.cs: removed test_owner, the check is already done in the
  540. icall.
  541. Tue May 13 15:34:29 CEST 2003 Paolo Molaro <[email protected]>
  542. * Thread.cs: added missing field used by the runtime and
  543. a new field to support thread-static data.
  544. 2003-04-17 Pedro Mart?ez Juli? <[email protected]>
  545. * Timer.cs: Change the position of two lines because they were
  546. before the "if" that ensures the integrity. After this, the first of
  547. that two lines was producing a NullReferenceException.
  548. 2003-04-09 Dick Porter <[email protected]>
  549. * Thread.cs: Make sure a reference to the ThreadStart delegate is
  550. held. There's no telling how long it will be before
  551. Thread.Start() is called, and GC might destroy the delegate.
  552. Thread() and Start() need to be rewritten so that the runtime
  553. creates the new thread when Start() is called, which will simplify
  554. the code a great deal.
  555. 2003-03-20 Miguel de Icaza <[email protected]>
  556. * Thread.cs (CurrentCuluture): use the invaraint culture instead
  557. of "" for the current_culture setting.
  558. 2003-03-25 Zoltan Varga <[email protected]>
  559. * Thread.cs: Fix visibility of ResetAbort().
  560. 2003-03-18 Dick Porter <[email protected]>
  561. * Thread.cs: Keep the thread state updated in all the places that
  562. require it. (Suspend, Resume and Interrupt not handled yet)
  563. 2003-03-03 Lluis Sanchez Gual <[email protected]>
  564. * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
  565. in the runtime.
  566. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  567. * Thread.cs: implemented CurrentContext.
  568. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  569. * Thread.cs: made the thread_id for the current thread accesible through
  570. an internal property.
  571. 2003-02-17 Dick Porter <[email protected]>
  572. * Thread.cs: Added the Start semaphore field to the class. Update
  573. the thread state after Start() has returned, not before.
  574. 2003-02-13 Zoltan Varga <[email protected]>
  575. * Thread.cs (Sleep): Timeout.Infinite is a value argument.
  576. 2003-02-11 Dick Porter <[email protected]>
  577. * Monitor.cs: Infinite wait is Infinite, not 0 ms
  578. 2003-02-10 Gonzalo Paniagua Javier <[email protected]>
  579. * Thread.cs: fixed bug #37759.
  580. 2003-02-07 Patrik Torstensson
  581. * Timer.cs: Set the Background thread flag for the timer thread
  582. 2003-02-05 Patrik Torstensson
  583. * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
  584. 2003-02-04 Lluis Sanchez Gual <[email protected]>
  585. * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
  586. Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <[email protected]>
  587. * Thread.cs: delay-init datastorehash.
  588. 2003-01-10 Patrik Torstensson <[email protected]>
  589. * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
  590. model more equal to the MS one.
  591. 2002-12-10 Dick Porter <[email protected]>
  592. * Monitor.cs:
  593. * Thread.cs:
  594. * ThreadPool.cs:
  595. * Timer.cs:
  596. * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
  597. ms, not Milliseconds.
  598. 2002-12-07 Martin Baulig <[email protected]>
  599. * Timer.cs: Make it actually work; now it no longer sets your
  600. application on fire if you use a zero periode and Timer.Change()
  601. actually works.
  602. 2002-11-11 Gonzalo Paniagua Javier <[email protected]>
  603. * Timer.cs: implemented more stuff. It works now.
  604. 2002-10-25 Zoltan Varga <[email protected]>
  605. * Thread.cs: Implement GetDomain() and GetDomainID().
  606. 2002-10-24 Gonzalo Paniagua Javier <[email protected]>
  607. * ThreadPool.cs: now the monitor thread is not sleeping and checking if
  608. more worker threads needed. It waits on _DataInQueue. If (and only if)
  609. there's data in the queue it checks if more worker threads needed and
  610. then sleeps 0.5s before waiting for queued data again.
  611. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  612. * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
  613. 2002-09-11 Dick Porter <[email protected]>
  614. * Mutex.cs:
  615. * ManualResetEvent.cs:
  616. * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
  617. the private field
  618. * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
  619. method
  620. 2002-09-03 Dick Porter <[email protected]>
  621. * Thread.cs: Added thread ID field
  622. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  623. * WaitHandle.cs: IDisposable fixes.
  624. 2002-08-14 Dick Porter <[email protected]>
  625. * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
  626. for now.
  627. 2002-08-12 Dietmar Maurer <[email protected]>
  628. * ThreadAbortException.cs: impl. ExceptionState property.
  629. * Thread.cs: moved all instance variables to the start of the
  630. class. added support for Thread::Abort()
  631. 2002-04-30 Dick Porter <[email protected]>
  632. * Thread.cs: If LocalDataStoreSlot already has data set, remove it
  633. before adding a new one.
  634. Use the Thread object destructor to tell the runtime to close the
  635. thread handle.
  636. 2002-04-14 Patrik Torstensson <[email protected]>
  637. * Interlocked.cs: made all methods icalls.
  638. 2002-04-14 Gonzalo Paniagua Javier <[email protected]>
  639. * IOCompletionCallback.cs: added attributes to the delegate
  640. (CLSCompliant(false) and Serializable).
  641. 2002-04-14 Patrik Torstensson <[email protected]>
  642. * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
  643. the threadstate enum.
  644. * ThreadPool.cs: Now using the internal Isthreadpoolthread property
  645. * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
  646. 2002-04-14 Patrik Torstensson <[email protected]>
  647. * ThreadState.cs: Added enum for threadpool thread
  648. * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
  649. * Thread.cs: Added IsThreadPoolThread
  650. * ThreadPool.cs: Implementation of QueueUserWorkItem
  651. Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <[email protected]>
  652. * Thread.cs: implement CurrentCulture property needed by
  653. Convert.ChangeType() (used when compiling enums).
  654. 2002-01-23 Dick Porter <[email protected]>
  655. * ManualResetEvent.cs:
  656. * AutoResetEvent.cs: Fixed DOS line endings
  657. 2002-01-22 Veronica De Santis <[email protected]>
  658. * NativeEventCalls : Class that contains internal calls shared by Auto
  659. and Manual Reset Events
  660. * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
  661. * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
  662. 2002-01-16 Veronica De Santis <[email protected]>
  663. * WaitHandle.cs : Renamed handle to os_handle and make it protected
  664. instead of private.
  665. * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
  666. and the ReleaseMutex)
  667. 2002-01-15 Dick Porter <[email protected]>
  668. * WaitHandle.cs:
  669. * Thread.cs: Make the runtime's idea of infinite timeouts coincide
  670. with the class library's
  671. 2002-01-10 Dick Porter <[email protected]>
  672. * WaitHandle.cs: Added checks for too many handles and null
  673. handles in WaitAll() and WaitAny
  674. 2002-01-05 Ravi Pratap <[email protected]>
  675. * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
  676. decoration.
  677. * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
  678. Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
  679. 2001-12-11 Dick Porter <[email protected]>
  680. * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
  681. internal calls.
  682. 2001-11-26 Dick Porter <[email protected]>
  683. * Thread.cs: DataSlot uses a single system TLS slot, and a
  684. hashtable per thread. Some minor changes to reflect the new
  685. internal calls using the new IO library, and the newly-supported
  686. bool returns from internal calls.
  687. * Monitor.cs: Use bool returns from internal calls now they are
  688. supported by the runtime. Coalesce enter with the try_enter
  689. internal call.
  690. Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>
  691. * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
  692. 2001-10-03 Dick Porter <[email protected]>
  693. * Monitor.cs: Implemented all methods except the two Wait()
  694. methods that take boolean parameters
  695. 2001-09-28 Dick Porter <[email protected]>
  696. * Thread.cs: Implemented AllocateDataSlot(),
  697. AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
  698. GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
  699. and Start() to avoid a race condition. Added thread-safe state
  700. changing private operations.
  701. * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
  702. 2001-09-25 Dick Porter <[email protected]>
  703. * Thread.cs: Implement Join and timed Join, set correct state
  704. around Start, Join and Sleep calls, implement IsAlive and
  705. ThreadState properties.
  706. * ThreadState.cs (Threading): Added StopRequested,
  707. SuspendRequested, Suspended values
  708. 2001-09-23 Dick Porter <[email protected]>
  709. * Thread.cs: Implemented CurrentThread and Sleep (both versions)
  710. with internal calls, and Name.
  711. 2001-09-21 Dick Porter <[email protected]>
  712. * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
  713. with an internal call
  714. * WaitHandle.cs: Close calls Dispose(false)
  715. 2001-09-13 Dick Porter <[email protected]>
  716. * ApartmentState.cs (Threading): Set the correct enum values
  717. 2001-09-13 Dick Porter <[email protected]>
  718. * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
  719. Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
  720. Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
  721. RegisteredWaitHandle.cs, SynchronizationLockException.cs,
  722. Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
  723. ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
  724. Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
  725. WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
  726. stubs.
  727. 2001-07-18 Michael Lambert <[email protected]>
  728. * ThreadPriority.cs, ThreadState.cs: Add.