ChangeLog 38 KB

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