Marek Safar [Wed, 19 Oct 2011 16:25:55 +0000 (17:25 +0100)]
Update mcs translations
Marek Safar [Wed, 19 Oct 2011 14:39:13 +0000 (15:39 +0100)]
Fix 4.5 conditional
Marek Safar [Wed, 19 Oct 2011 14:34:24 +0000 (15:34 +0100)]
Implement System.Threading.Volatile
Marek Safar [Wed, 19 Oct 2011 14:30:11 +0000 (15:30 +0100)]
Fix VolatileRead(uint&), VolatileWrite(uint&,uint) to use correct word size
Marek Safar [Wed, 19 Oct 2011 10:17:32 +0000 (11:17 +0100)]
Fix a race in underlying Task.Wait infrastructure
Sebastien Pouliot [Tue, 18 Oct 2011 19:49:24 +0000 (15:49 -0400)]
Ensure private key flow from the mono store into the X509Certificate2 instance. Patch from bug #1201
Rodrigo Kumpera [Tue, 23 Aug 2011 02:50:26 +0000 (23:50 -0300)]
Allow null strings to be sent to sdb. They are encoded as -1.
Zoltan Varga [Tue, 18 Oct 2011 18:57:55 +0000 (20:57 +0200)]
Bump sdb protocol version in the runtime.
Rodrigo Kumpera [Tue, 23 Aug 2011 13:01:24 +0000 (10:01 -0300)]
Add test for new sdb command.
Zoltan Varga [Mon, 17 Oct 2011 14:45:38 +0000 (16:45 +0200)]
Enable optional protocol logging in the sdb managed library. Based on a patch by Rodrigo.
Zoltan Varga [Mon, 17 Oct 2011 14:41:42 +0000 (16:41 +0200)]
Add TypeMirror.GetMethodsByName () method to speed up searching for a method with a specific name, frequently used by md. Based on a patch by Rodrigo.
Rodrigo Kumpera [Tue, 23 Aug 2011 03:33:27 +0000 (00:33 -0300)]
Extract mono_class_get_methods_by_name from ves_icall_Type_GetMethodsByName
Marek Safar [Tue, 18 Oct 2011 16:44:48 +0000 (17:44 +0100)]
Fix few races in ManualResetEventSlim and make it compatible with .net
Alan McGovern [Tue, 18 Oct 2011 10:07:44 +0000 (11:07 +0100)]
[WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
Alan McGovern [Mon, 17 Oct 2011 23:45:38 +0000 (00:45 +0100)]
[System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
Miguel de Icaza [Mon, 17 Oct 2011 21:06:20 +0000 (17:06 -0400)]
Fix for 1461: Microsoft's generated deserializer call CollapseWhitespace extensively
Marek Safar [Mon, 17 Oct 2011 16:06:34 +0000 (17:06 +0100)]
Compatibility fixes to CountdownEvent
Zoltan Varga [Mon, 17 Oct 2011 08:35:01 +0000 (10:35 +0200)]
Use Object_GetInfo () in VirtualMachine.GetObject () too to save one request
Marek Safar [Mon, 17 Oct 2011 13:27:20 +0000 (14:27 +0100)]
Don't run expensive WaitAll when there is nothing to wait for
Zoltan Varga [Mon, 17 Oct 2011 13:13:06 +0000 (15:13 +0200)]
Add locking to EventWaitHandle.Set/Reset to avoid crashes when another thread disposes the handle. Fixes #1499.
Rolf Bjarne Kvinge [Mon, 17 Oct 2011 10:23:18 +0000 (12:23 +0200)]
Add System.Numerics to the mobile profile.
Tom Hindle [Mon, 17 Oct 2011 11:05:54 +0000 (12:05 +0100)]
Apply patch from Stephen McConnel fix bug 677: DataGridView column header misbehavior and crash; also VirtualMode fix
Tom Hindle [Mon, 17 Oct 2011 10:50:01 +0000 (11:50 +0100)]
Apply patch from Stephen McConnel fix bug 919: Form.ShowDialog(null)
can crash with "Forms cannot own themselves or their owners."
Tom Hindle [Mon, 17 Oct 2011 10:41:28 +0000 (11:41 +0100)]
Apply patch from Stephen McConnel fix bug 867: Items in a disabled ListView disappear from view
Tom Hindle [Mon, 17 Oct 2011 10:33:31 +0000 (11:33 +0100)]
Apply patch from Stephen McConnel fix bug 1212: CheckBoxes do not show indeterminate state properly
Tom Hindle [Mon, 17 Oct 2011 10:19:55 +0000 (11:19 +0100)]
Apply patch from Stephen McConnel fix bug 586: potential crash in ToolStripItem.HandleClick()
Gonzalo Paniagua Javier [Mon, 17 Oct 2011 04:43:45 +0000 (00:43 -0400)]
Return the correct length for input streams
Marek Habersack [Sun, 16 Oct 2011 22:20:34 +0000 (00:20 +0200)]
Do not reference mscorlib explicitly in 4.5, mcs seems to do that despite /noconfig
This fixes ASP.NET/ASP.NET MVC applications using the 4.5 profile
Marek Habersack [Sun, 16 Oct 2011 22:03:12 +0000 (00:03 +0200)]
Unbreak System.Web tests in the 4.5 profile
Zoltan Varga [Sun, 16 Oct 2011 19:21:20 +0000 (21:21 +0200)]
Fix a warning
Miguel de Icaza [Sun, 16 Oct 2011 15:44:20 +0000 (11:44 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1210: Correctly propagate the Operation Context on async calls
The OperationContext is a [ThreadStatic] variable therefore when a REST call is
made asynchronously the worker thread will not see a context set and will not
expose any data through the context.
A possible solution (which I implemented in the attached patch) is for
ClientRealProxy to set the context in the channel prior to executing the call
(either sync or async). The ClientRuntimeChannel needs to then properly set and
reset the context in the worker thread.
Because WCF operations marked [OperationContract(AsyncPattern = true)] using
IAsyncResult only generate an outgoing call on End<OperationName> the
ClientRuntimeChannel.EndProcess must not reset the context as it's currently
doing. The context can only be reset after calling EndInvoke because the
request will be only generated at this point.
Miguel de Icaza [Sun, 16 Oct 2011 15:41:36 +0000 (11:41 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1209: Patch to correctly expose WebOperationContext.IncomingResponse
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.
After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
Miguel de Icaza [Sun, 16 Oct 2011 15:36:49 +0000 (11:36 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.
The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
Miguel de Icaza [Sun, 16 Oct 2011 15:36:12 +0000 (11:36 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.
Attached patch simply tests for null before copying values from Headers.
Miguel de Icaza [Sun, 16 Oct 2011 15:33:37 +0000 (11:33 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1205: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.
Attached patch simply tests for null before copying values from Headers.
Miguel de Icaza [Sun, 16 Oct 2011 15:31:56 +0000 (11:31 -0400)]
Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.
The attached patch does exactly that if a certificate has been configured.
Miguel de Icaza [Sun, 16 Oct 2011 15:28:59 +0000 (11:28 -0400)]
Fix bug 1203, relaxes the test for the protocol to allow https endpoints
Miguel de Icaza [Thu, 29 Sep 2011 14:33:11 +0000 (10:33 -0400)]
Add Terse syntax to C#, making the last semicolon optional
Gonzalo Paniagua Javier [Sun, 16 Oct 2011 05:59:22 +0000 (01:59 -0400)]
Fix race condition
Our synchronized Hashtable "set" method is not really locking...
Gonzalo Paniagua Javier [Sun, 16 Oct 2011 05:57:41 +0000 (01:57 -0400)]
Don't send the buffered request until GetResponse is called
Allows changing some header values after writing the request until the
call to (Begin)GetResponse()
Gonzalo Paniagua Javier [Sun, 16 Oct 2011 04:12:46 +0000 (00:12 -0400)]
Don't 404 when any of the hashes has a / in it
This fixes "random" problems getting resources served by
WebResource.axd.
Neale Ferguson [Sun, 16 Oct 2011 00:49:55 +0000 (20:49 -0400)]
Minor s390x fixes and update for memory barriers
Jérémie Laval [Sat, 15 Oct 2011 19:13:36 +0000 (21:13 +0200)]
Make ManualResetEventSlim Dispose/(Set,Reset) combo a bit safer. Add unit test.
Jérémie Laval [Sat, 15 Oct 2011 17:48:54 +0000 (19:48 +0200)]
Move files around
Jérémie Laval [Sat, 15 Oct 2011 17:41:27 +0000 (19:41 +0200)]
Remove need for a delegate instance in CountdownEvent and just apply the specific test everytime
Jérémie Laval [Sat, 15 Oct 2011 17:34:40 +0000 (19:34 +0200)]
First take at an updated Task.WaitAll
Jérémie Laval [Sat, 15 Oct 2011 17:27:06 +0000 (19:27 +0200)]
Update lastest two task unit tests
Jérémie Laval [Sat, 15 Oct 2011 17:26:37 +0000 (19:26 +0200)]
Fix ListPop
Jérémie Laval [Sat, 15 Oct 2011 14:35:01 +0000 (16:35 +0200)]
Insert the unregister call in the finally handler too
Jérémie Laval [Sat, 15 Oct 2011 13:33:53 +0000 (15:33 +0200)]
Clean event registration when wait is unsuccessful
Jérémie Laval [Sat, 15 Oct 2011 13:23:29 +0000 (15:23 +0200)]
Add unit test for when multiple wait are registered on a single task
Jérémie Laval [Sat, 15 Oct 2011 13:18:46 +0000 (15:18 +0200)]
Ensure there is no mutually exclusive TaskContinuationOptions parameters when registering continuations
Jérémie Laval [Sat, 15 Oct 2011 12:53:12 +0000 (14:53 +0200)]
Move CompletionContainer to use ConcurrentOrderedList to allows easier removal
Jérémie Laval [Sat, 15 Oct 2011 12:51:38 +0000 (14:51 +0200)]
Add a pop front operation to ConcurrentOrderedList
Jérémie Laval [Sat, 15 Oct 2011 12:51:04 +0000 (14:51 +0200)]
Remove schedWait event since it's not needed anymore by waiting code
Zoltan Varga [Fri, 14 Oct 2011 13:35:49 +0000 (15:35 +0200)]
Disable the error checking for MONO_GC_PARAMS in boehm, to avoid erroring out when sgen parameters are passed to it
Zoltan Varga [Fri, 14 Oct 2011 13:35:08 +0000 (15:35 +0200)]
Fix a crash with precise stack marking and dying threads
Jérémie Laval [Fri, 14 Oct 2011 12:50:04 +0000 (14:50 +0200)]
Update Wait and WaitAny with event disposal and single execution flow
Jérémie Laval [Fri, 14 Oct 2011 12:48:24 +0000 (14:48 +0200)]
Call correctly Dipose in CoutdownEvent
Jérémie Laval [Fri, 14 Oct 2011 12:47:49 +0000 (14:47 +0200)]
Update ManualResetEventSlim to handle disposal correctly
Zoltan Varga [Fri, 14 Oct 2011 12:49:34 +0000 (14:49 +0200)]
Change a g_warning to a DEBUG which can happen in normal use
Marek Safar [Fri, 14 Oct 2011 12:10:06 +0000 (13:10 +0100)]
Add more Task tests
Jérémie Laval [Fri, 14 Oct 2011 11:51:44 +0000 (13:51 +0200)]
Don't special casee adding a TaskCanceledException to the AggregateException list
Jérémie Laval [Fri, 14 Oct 2011 11:51:00 +0000 (13:51 +0200)]
Make IsCompleted property faster by doing only one comparison
Jérémie Laval [Fri, 14 Oct 2011 11:50:16 +0000 (13:50 +0200)]
Refactor Wait* task initial parameter checkup
Jérémie Laval [Fri, 14 Oct 2011 09:18:36 +0000 (11:18 +0200)]
Don't fallback to Wait in WaitAny so that undesirable exception aren't propagated
Jérémie Laval [Thu, 13 Oct 2011 20:14:29 +0000 (22:14 +0200)]
Remove SchedulerProxy
Jérémie Laval [Thu, 13 Oct 2011 20:11:45 +0000 (22:11 +0200)]
Fix compilation of Task unit tests for net_4_0
Jérémie Laval [Thu, 13 Oct 2011 20:09:00 +0000 (22:09 +0200)]
Cache watch usage
Jérémie Laval [Thu, 13 Oct 2011 20:04:18 +0000 (22:04 +0200)]
Fix stuff then went awry with the merge
Jérémie Laval [Thu, 13 Oct 2011 19:40:51 +0000 (21:40 +0200)]
Tune Marek's work on Task.WaitAny, Task.Wait and Task.WaitAll
Marek Safar [Thu, 13 Oct 2011 18:16:10 +0000 (19:16 +0100)]
Fix a race in Task.WaitAny
Marek Safar [Thu, 13 Oct 2011 16:32:55 +0000 (17:32 +0100)]
Fixes Task.WaitAny with further fixes to Task.Wait
Marek Safar [Wed, 12 Oct 2011 13:38:54 +0000 (14:38 +0100)]
CancellationTokenSource is no longer sealed
Zoltan Varga [Thu, 13 Oct 2011 06:15:36 +0000 (08:15 +0200)]
Fix a warning plus a typo
Zoltan Varga [Thu, 13 Oct 2011 06:14:11 +0000 (08:14 +0200)]
Fix an assert in sgen when mono_gc_set_current_thread_appdomain () is called from within sgen_thread_unregister (). Fixes pinvoke3.exe
Rolf Bjarne Kvinge [Wed, 12 Oct 2011 00:04:16 +0000 (02:04 +0200)]
Log profiler: Don't include major collections in ondemand mode.
David Evans [Thu, 13 Oct 2011 06:00:34 +0000 (08:00 +0200)]
Fix regression to System.Diagnostics.Process.PrivateMemorySize64 (). Fixes #1459
Gonzalo Paniagua Javier [Thu, 13 Oct 2011 03:17:20 +0000 (20:17 -0700)]
Merge pull request #180 from QuickJack/master
https://bugzilla.novell.com/show_bug.cgi?id=691291
Zoltan Varga [Wed, 12 Oct 2011 17:50:33 +0000 (19:50 +0200)]
Move generic sharing definitions to mini.h, define a proper enum for the gshared info types
Marek Safar [Wed, 12 Oct 2011 13:15:46 +0000 (14:15 +0100)]
Don't release temporary address too early. Fixes #1447
Marek Safar [Wed, 12 Oct 2011 12:22:14 +0000 (13:22 +0100)]
Add InfiniteTimeSpan
Marek Safar [Wed, 12 Oct 2011 11:29:38 +0000 (12:29 +0100)]
Reenable disabled test
Marek Safar [Wed, 12 Oct 2011 11:29:17 +0000 (12:29 +0100)]
Fix wrong conditional
Marek Safar [Wed, 12 Oct 2011 11:23:20 +0000 (12:23 +0100)]
Fix Task.WaitAll exception handling
Marek Safar [Tue, 11 Oct 2011 18:59:12 +0000 (19:59 +0100)]
Don't start cancelled task when using task factory. Fixes #1104
Zoltan Varga [Wed, 12 Oct 2011 05:19:30 +0000 (07:19 +0200)]
Fix a race in an sdb test
Marek Safar [Tue, 11 Oct 2011 17:45:37 +0000 (18:45 +0100)]
Throw cancellation exception when inspecting cancelled task's result
Marek Safar [Tue, 11 Oct 2011 16:24:52 +0000 (17:24 +0100)]
Partially fixes broken Task.Wait
Marek Safar [Tue, 11 Oct 2011 11:49:41 +0000 (12:49 +0100)]
Run task continuations when it's canceled
Marek Safar [Tue, 11 Oct 2011 11:14:58 +0000 (12:14 +0100)]
Fix last comment
Jérémie Laval [Tue, 11 Oct 2011 14:13:51 +0000 (16:13 +0200)]
[WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package
Rodrigo Kumpera [Tue, 11 Oct 2011 12:21:55 +0000 (09:21 -0300)]
Ensure proper ordering of hazard pointer reads.
* hazard-pointer.c (is_pointer_hazardous): Reads between the hazard
pointers of a given thread must be ordered since code such as the
liked-list-set that does centipede traversal needs it to be correct.
QuickJack [Tue, 11 Oct 2011 11:39:40 +0000 (14:39 +0300)]
Edited mcs/class/System/System.Net/WebRequest.cs via GitHub
QuickJack [Tue, 11 Oct 2011 11:27:32 +0000 (14:27 +0300)]
Edited mcs/class/System/System.Net/WebRequest.cs via GitHub
QuickJack [Tue, 11 Oct 2011 11:24:44 +0000 (14:24 +0300)]
Edited mcs/class/System/System.Net.Configuration/BypassElement.cs via GitHub
QuickJack [Tue, 11 Oct 2011 11:23:12 +0000 (14:23 +0300)]
Edited mcs/class/System/System.Net.Configuration/ProxyElement.cs via GitHub
Marek Safar [Tue, 11 Oct 2011 11:06:15 +0000 (12:06 +0100)]
Fix crash when resolving base type without being defined. Fixes #1388
Zoltan Varga [Tue, 11 Oct 2011 08:54:31 +0000 (10:54 +0200)]
Avoid asserts in sdb if a single step operation is started immediately after the VMStart event
Zoltan Varga [Tue, 11 Oct 2011 01:49:41 +0000 (03:49 +0200)]
Implement registration of new transports in the debugger agent.