mono.git
11 years agoAvoid a crash in SET_KEEPALIVE if the socket transport is not initialized.
Zoltan Varga [Thu, 16 Aug 2012 20:10:40 +0000 (22:10 +0200)]
Avoid a crash in SET_KEEPALIVE if the socket transport is not initialized.

11 years agoFix g_strsplit() when delimiter at end-of-string and at max_count.
Jonathan Pryor [Thu, 16 Aug 2012 19:10:38 +0000 (15:10 -0400)]
Fix g_strsplit() when delimiter at end-of-string and at max_count.

Suppose you want to split a `name=value` string:

char** kvp = g_strsplit ("name=value", "=", 2);
// kvp[0] is "name", kvp[1] is "value"

That works, but what if the string is "malformed" and missses a value?

char** kvp = g_strsplit ("name=", "=", 2);
// kvp[0] is "name", kvp[1] is "="

A value of "=" makes no sense here: values returned from
g_strsplit() shouldn't contain delimeter unless max_count is specified
and it's _within_ the last string; it's also not what GLib does.

What makes sense is a value of "" (the empty string), which IS what
GLib does (so it's compatible and sensible).

Fix g_strsplit() to use the empty string when the "rest" value would
otherwise be the delimiter.

11 years ago[System.Xml.Linq] Add error checking to the XElement constructors
Alan McGovern [Thu, 16 Aug 2012 14:23:17 +0000 (15:23 +0100)]
[System.Xml.Linq] Add error checking to the XElement constructors

Added matching tests.

11 years agoSearching for an attributes in probing mode should not report errors for other attrib...
Marek Safar [Thu, 16 Aug 2012 10:49:13 +0000 (12:49 +0200)]
Searching for an attributes in probing mode should not report errors for other attributes. Fixes #6529

11 years agoFix best params candidate rules for overloads with non-default arguments. Fixes ...
Marek Safar [Thu, 16 Aug 2012 08:28:11 +0000 (09:28 +0100)]
Fix best params candidate rules for overloads with non-default arguments. Fixes #6541

11 years agoInline AM_COND_IF for configure to work with ancient aclocal
Marek Safar [Thu, 16 Aug 2012 07:09:16 +0000 (08:09 +0100)]
Inline AM_COND_IF for configure to work with ancient aclocal

11 years agoFree the newly added assembly->remapped_tokens hashtable.
Zoltan Varga [Thu, 16 Aug 2012 00:47:15 +0000 (02:47 +0200)]
Free the newly added assembly->remapped_tokens hashtable.

11 years agoFree the newly added assembly->remapped_tokens hashtable.
Zoltan Varga [Thu, 16 Aug 2012 00:45:15 +0000 (02:45 +0200)]
Free the newly added assembly->remapped_tokens hashtable.

11 years agoHandle ConstructorBuilders in fixup_cattrs () correctly. Fixes #689533 (nemerle build).
Zoltan Varga [Thu, 16 Aug 2012 00:04:02 +0000 (02:04 +0200)]
Handle ConstructorBuilders in fixup_cattrs () correctly. Fixes #689533 (nemerle build).

11 years agoMerge pull request #430 from Nican/master
Marek Safar [Wed, 15 Aug 2012 12:41:52 +0000 (05:41 -0700)]
Merge pull request #430 from Nican/master

Infinite recursion with GetCurrentDirectory and security enabled

11 years agoFixed incorrect line spacing
Nican [Wed, 15 Aug 2012 05:35:03 +0000 (01:35 -0400)]
Fixed incorrect line spacing

11 years agoWhen enabling security with "mono_security_enable_core_clr" on a Windows machine...
Nican [Wed, 15 Aug 2012 05:31:09 +0000 (01:31 -0400)]
When enabling security with "mono_security_enable_core_clr" on a Windows machine, it causes an infinite recession when calling System.IO.Directory.GetCurrentDirectory.

The loop is happening between these calls:
https://github.com/mono/mono/blob/92d8961e0b244429d4d82176f4b33c8a4b3b064c/mcs/class/corlib/System.IO/Path.cs#L298
https://github.com/mono/mono/blob/3c39ac4586b4470703fb4af0208b5baf1de70e43/mcs/class/corlib/System.Security.Permissions/FileIOPermission.cs#L157
https://github.com/mono/mono/blob/9322e0d16b0edc054947279af34d3c7afb286c89/mcs/class/corlib/System.IO/Directory.cs#L248

Stack trace as follows:

The requested operation caused a stack overflow.  at (wrapper managed-to-native) System.IO.MonoIO:GetCurrentDirectory (System.IO.MonoIOError&)
  at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
  at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission.AddPathInternal (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission.AddPathList (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
  at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission.AddPathInternal (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission.AddPathList (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
  at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
...Snip...

11 years agoEmit AOT line number information on osx/ios too.
Zoltan Varga [Wed, 15 Aug 2012 04:47:28 +0000 (06:47 +0200)]
Emit AOT line number information on osx/ios too.

11 years agoRevert 4e5e52a29818b5342ec3b9f0b51c74970765c071, which was pull request 242, which...
Miguel de Icaza [Tue, 14 Aug 2012 21:00:31 +0000 (17:00 -0400)]
Revert 4e5e52a29818b5342ec3b9f0b51c74970765c071, which was pull request 242, which was novell bugzilla #689533

This patch miscompiled attributes like this:

                [EditorBrowsable (EditorBrowsableState.Advanced)]
                [Export ("init")]
                public  CAKeyFrameAnimation () : base (NSObjectFlag.Empty)
                {
                        if (IsDirectBinding) {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
                        } else {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
                        }
                }

In particular the [Export ("init")] method to be compiled like this:

    // method line 6274
    .method public hidebysig specialname rtspecialname
           instance default void '.ctor' ()  cil managed
    {
        .custom instance void class [System]System.ComponentModel.EditorBrowsableAttribute::'.ctor'(valuetype [System]System.ComponentModel.EditorBrowsableState) =  (01 00 02 00 00 00 00 00 ) // ........

        .custom instance void class MonoMac.CoreGraphics.CGImage::'.ctor'(int32, int32, int32, int32, int32, class MonoMac.CoreGraphics.CGColorSpace, valuetype MonoMac.CoreGraphics.CGImageAlphaInfo, class MonoMac.CoreGraphics.CGDataProvider, float32[], bool, valuetype MonoMac.CoreGraphics.CGColorRenderingIntent) =  (01 00 04 69 6E 69 74 00 00 ) // ...init..

Notice the "CGImage" attribtue instead of the ExportAttribute

11 years agoMerge pull request #429 from penberg/fixes/typo-in-mini-amd64
Zoltan Varga [Tue, 14 Aug 2012 20:45:50 +0000 (13:45 -0700)]
Merge pull request #429 from penberg/fixes/typo-in-mini-amd64

Fix 'caller saved' typo in mono_arch_allocate_vars()

11 years agoFix code indentation and formatting
Thomas Goldstein [Tue, 14 Aug 2012 19:58:54 +0000 (21:58 +0200)]
Fix code indentation and formatting

11 years agoFix 'caller saved' typo in mono_arch_allocate_vars()
Pekka Enberg [Tue, 14 Aug 2012 19:45:05 +0000 (22:45 +0300)]
Fix 'caller saved' typo in mono_arch_allocate_vars()

The reserved space is for 'callee-save' registers, not 'caller-save', as
shown by the check for 'AMD64_IS_CALLEE_SAVED_REG' in the loop next to
the comment.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
11 years agoSome gcc versions ICE when inlining code using computed gotos.
Rodrigo Kumpera [Tue, 14 Aug 2012 18:59:22 +0000 (15:59 -0300)]
Some gcc versions ICE when inlining code using computed gotos.

11 years agoSprinkle some inlining annotations magic to bring performance back to the 2.10 levels.
Rodrigo Kumpera [Mon, 13 Aug 2012 23:07:44 +0000 (20:07 -0300)]
Sprinkle some inlining annotations magic to bring performance back to the 2.10 levels.

* sgen-copy-object.h: For some reason gcc's inlining heuristics for serial_copy_object
from serial_scan_object reason not to inline it. This causes a 20% increase in nursery
scanning times.

Be explicit about inlining hints to make sure we get what we need.

11 years agoGive the minor copy functions different names under for each minor collector to make...
Rodrigo Kumpera [Mon, 13 Aug 2012 23:07:33 +0000 (20:07 -0300)]
Give the minor copy functions different names under for each minor collector to make profilers (Intruments) happy.

11 years agoFix monolite bootstrap
Marek Safar [Tue, 14 Aug 2012 08:31:47 +0000 (09:31 +0100)]
Fix monolite bootstrap

11 years agoMerge pull request #427 from knittl/toolstrip-dispose
Marek Safar [Tue, 14 Aug 2012 07:45:33 +0000 (00:45 -0700)]
Merge pull request #427 from knittl/toolstrip-dispose

Toolstrip dispose

11 years agoMerge pull request #426 from knittl/preferredwidth-minimumwidth
Marek Safar [Tue, 14 Aug 2012 07:44:24 +0000 (00:44 -0700)]
Merge pull request #426 from knittl/preferredwidth-minimumwidth

Return at least MinimumWidth instead of 0 in GetPreferredWidth

11 years agoReturn at least MinimumWidth instead of 0 in GetPreferredWidth
Daniel Knittl-Frank [Sun, 1 Apr 2012 20:08:10 +0000 (22:08 +0200)]
Return at least MinimumWidth instead of 0 in GetPreferredWidth

Otherwise we cannot use GetPreferredWidth as new Width, since this will
throw an Exception (ArgumentOutOfRange).
It's not a real fix, but it avoids crashes when using this method to
assign a new width for columns. Attached a MonoTODO to make this clear.

Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
11 years agoDo not calculate autosize of ToolStripItem when owner gets set to null
Daniel Knittl-Frank [Wed, 23 May 2012 16:15:26 +0000 (18:15 +0200)]
Do not calculate autosize of ToolStripItem when owner gets set to null

Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
11 years agoProperly dispose ToolStrip objects and child objects
Daniel Knittl-Frank [Wed, 23 May 2012 14:16:01 +0000 (16:16 +0200)]
Properly dispose ToolStrip objects and child objects

Check if `dispose' is actually set, and only then call Dispose on
children. This patch was written with the help of alan from #monodev
IRC.

Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
11 years agoDon't try to create fast property getters of properties of open types. Fixes #6034.
Zoltan Varga [Tue, 14 Aug 2012 02:56:41 +0000 (04:56 +0200)]
Don't try to create fast property getters of properties of open types. Fixes #6034.

11 years agoImplement batched method invokes in sdb.
Zoltan Varga [Mon, 13 Aug 2012 00:05:46 +0000 (02:05 +0200)]
Implement batched method invokes in sdb.

11 years agoAdd test cases from #6510
Sebastien Pouliot [Mon, 13 Aug 2012 15:16:45 +0000 (11:16 -0400)]
Add test cases from #6510

11 years agoPass SSL certificate chain, not just collection, to Mono.Android.dll
Jonathan Pryor [Mon, 13 Aug 2012 17:44:16 +0000 (13:44 -0400)]
Pass SSL certificate chain, not just collection, to Mono.Android.dll

Fixes BCL half of: https://bugzilla.xamarin.com/show_bug.cgi?id=6501

Today I learned that the SSL certificate collection (as held in
X509CertificateCollection) is a potentially unordered sequence of SSL
certificates, which not all versions of Android will validate.

The fix is to use the properly ordered SSL certificate chain (as held
in X509Chain), and have Android validate that.

11 years agoDon't build Mono.CompilerServices.SymbolWriter for monotouch (it cannot be used)
Marek Safar [Mon, 13 Aug 2012 15:59:33 +0000 (16:59 +0100)]
Don't build Mono.CompilerServices.SymbolWriter for monotouch (it cannot be used)

11 years agoAllow configure mono with any profile to be disabled
Marek Safar [Mon, 13 Aug 2012 15:33:38 +0000 (16:33 +0100)]
Allow configure mono with any profile to be disabled

11 years agoUpdate to the latest IKVM.Reflection
Marek Safar [Mon, 13 Aug 2012 10:44:51 +0000 (11:44 +0100)]
Update to the latest IKVM.Reflection

11 years agoRevert "Fixes 4010. After working with Microsoft SQL Server experts it turns out...
Marek Safar [Mon, 13 Aug 2012 09:55:23 +0000 (10:55 +0100)]
Revert "Fixes 4010. After working with Microsoft SQL Server experts it turns out we were able to drive so many packets to the server we were causing it grief. By increasing the packet level size this problem disappears."

This breaks .net compatibility and probably just hides underlying problem

This reverts commit 8c2640437118b31b8d2033ec1da4fe0aa0ed4c5a.

11 years agoRemove NET_2_0
Marek Safar [Mon, 13 Aug 2012 09:47:32 +0000 (10:47 +0100)]
Remove NET_2_0

11 years agoRevert "Don't use scheme if not an absolute URI"
Marek Safar [Mon, 13 Aug 2012 09:29:06 +0000 (10:29 +0100)]
Revert "Don't use scheme if not an absolute URI"

Breaks existing tests

This reverts commit cf497bf47ebb014236447557328391b5badb7e2c.

11 years agoFix a memory leak in the sdb connection code.
Zoltan Varga [Sun, 12 Aug 2012 21:30:36 +0000 (23:30 +0200)]
Fix a memory leak in the sdb connection code.

11 years agoFix a warning.
Zoltan Varga [Sat, 11 Aug 2012 15:26:53 +0000 (17:26 +0200)]
Fix a warning.

11 years agoMerge pull request #408 from strawd/master
Gonzalo Paniagua Javier [Sat, 11 Aug 2012 04:16:36 +0000 (21:16 -0700)]
Merge pull request #408 from strawd/master

Further fixes for compatibility with ASP.NET Web API

11 years agoFix a DNS test.
Zoltan Varga [Sat, 11 Aug 2012 00:20:21 +0000 (02:20 +0200)]
Fix a DNS test.

11 years agoAvoid a fixed port number in a test.
Zoltan Varga [Fri, 10 Aug 2012 23:19:44 +0000 (01:19 +0200)]
Avoid a fixed port number in a test.

11 years agoWrap potential exceptions (like #6425 NRE) inside an (expected) WebException
Sebastien Pouliot [Fri, 10 Aug 2012 20:53:38 +0000 (16:53 -0400)]
Wrap potential exceptions (like #6425 NRE) inside an (expected) WebException

11 years agoMerge pull request #414 from sesef/datagrid
Miguel de Icaza [Fri, 10 Aug 2012 19:36:32 +0000 (12:36 -0700)]
Merge pull request #414 from sesef/datagrid

Fix #3125

11 years agoMerge pull request #422 from ianbattersby/bz6389-InvalidSwitch
Miguel de Icaza [Fri, 10 Aug 2012 19:35:02 +0000 (12:35 -0700)]
Merge pull request #422 from ianbattersby/bz6389-InvalidSwitch

Fix for bz6389 - Absolute paths to project files cause error: 'MSBUILD00...

11 years agoFix failing test
Marek Safar [Fri, 10 Aug 2012 07:07:06 +0000 (08:07 +0100)]
Fix failing test

11 years agoMerge pull request #425 from enricosada/bug5230
Marek Safar [Fri, 10 Aug 2012 06:51:32 +0000 (23:51 -0700)]
Merge pull request #425 from enricosada/bug5230

Fix bug 5230

11 years agoMerge pull request #424 from enricosada/bug290
Marek Safar [Fri, 10 Aug 2012 06:50:24 +0000 (23:50 -0700)]
Merge pull request #424 from enricosada/bug290

Fix bug 290

11 years agoadd QueryStringConverter String <-> Enum
Enrico Sada [Thu, 9 Aug 2012 23:31:32 +0000 (01:31 +0200)]
add QueryStringConverter String <-> Enum

fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=5230

11 years agoServiceHost.Open should throw InvalidOperationException if service contract has zero...
Enrico Sada [Thu, 9 Aug 2012 20:53:36 +0000 (22:53 +0200)]
ServiceHost.Open should throw InvalidOperationException if service contract has zero operations

Fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=290

11 years agoBump version number to 2.11.4
Duncan Mak [Thu, 9 Aug 2012 21:04:38 +0000 (17:04 -0400)]
Bump version number to 2.11.4

11 years agoFixes 4010. After working with Microsoft SQL Server experts it turns out we were...
Neale Ferguson [Thu, 9 Aug 2012 16:12:53 +0000 (12:12 -0400)]
Fixes 4010. After working with Microsoft SQL Server experts it turns out we were able to drive so many packets to the server we were causing it grief. By increasing the packet level size this problem disappears.

11 years ago[Sqlite] Rework type mapping between sqllite and .net using sqlite's substring matchi...
Rolf Bjarne Kvinge [Thu, 9 Aug 2012 10:24:02 +0000 (12:24 +0200)]
[Sqlite] Rework type mapping between sqllite and .net using sqlite's substring matching. Hopefully this will fix #5577 for good.

11 years agoBump the debian submodule to the right revision again
Alan McGovern [Thu, 9 Aug 2012 10:35:59 +0000 (11:35 +0100)]
Bump the debian submodule to the right revision again

someone accidentally reverted it to an old commit.

11 years agoDon't throw NRE when custom formatter returns null
Marek Safar [Thu, 9 Aug 2012 09:51:03 +0000 (10:51 +0100)]
Don't throw NRE when custom formatter returns null

11 years agoFix 2.0 test only
Marek Safar [Thu, 9 Aug 2012 09:09:12 +0000 (10:09 +0100)]
Fix 2.0 test only

11 years agoImplement TypeConverter.ConvertTo cultureInfo support. Fixes #6322
Marek Safar [Thu, 9 Aug 2012 09:03:36 +0000 (10:03 +0100)]
Implement TypeConverter.ConvertTo cultureInfo support. Fixes #6322

11 years agoBetter type check
Marek Safar [Thu, 9 Aug 2012 07:50:27 +0000 (08:50 +0100)]
Better type check

11 years agoRemove DebuggerDisplay from nullable (it needs special debugger support)
Marek Safar [Wed, 8 Aug 2012 13:34:58 +0000 (14:34 +0100)]
Remove DebuggerDisplay from nullable (it needs special debugger support)

11 years agoRemove DebuggerDisplay from nullable (it needs special debugger support)
Marek Safar [Wed, 8 Aug 2012 13:34:58 +0000 (14:34 +0100)]
Remove DebuggerDisplay from nullable (it needs special debugger support)

11 years agoImplement genitive month name formating for reversed day-month formats. Fixes #6417
Marek Safar [Wed, 8 Aug 2012 13:22:13 +0000 (14:22 +0100)]
Implement genitive month name formating for reversed day-month formats. Fixes #6417

11 years agoMerge pull request #423 from desunit/master
Marek Safar [Wed, 8 Aug 2012 12:31:47 +0000 (05:31 -0700)]
Merge pull request #423 from desunit/master

XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s)

11 years ago- XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not...
Sergey Bogdanov [Wed, 8 Aug 2012 12:13:20 +0000 (15:13 +0300)]
- XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s)

11 years agoRemove unused decimal2string icall
Marek Safar [Wed, 8 Aug 2012 10:25:13 +0000 (11:25 +0100)]
Remove unused decimal2string icall

11 years agoFix parsing decimal zero values. Fixes #6444
Marek Safar [Wed, 8 Aug 2012 10:14:47 +0000 (11:14 +0100)]
Fix parsing decimal zero values. Fixes #6444

11 years agoUse faster lenght comparison
Marek Safar [Wed, 8 Aug 2012 10:12:45 +0000 (11:12 +0100)]
Use faster lenght comparison

11 years ago[corlib] Fixed performance regression in qsort() functions
Jeffrey Stedfast [Tue, 7 Aug 2012 23:06:50 +0000 (19:06 -0400)]
[corlib] Fixed performance regression in qsort() functions

Many thanks to Martin Potter who both discovered this performance
regression, providing a test case, and proposing this patch/solution.

If most of the keys have identical values as the pivot, the partitions
would become largely lopsided resulting in a worst-case scenario runtime.

We can avoid this worst-case scenario by keeping the partitions better
balanced. To do this, we can modify the "closing-in of the walls" loops
to allow items with keys identical to the pivot to be swapped to the
higher-order partition (the previous implementation would greedily
keep them in the low-order partition).

As an added bonus, this also allows us to remove the code that was needed
to keep track of the pivot index.

11 years agoFix for bz6389 - Absolute paths to project files cause error: 'MSBUILD0001: Unknown...
Ian Battersby [Tue, 7 Aug 2012 20:31:36 +0000 (21:31 +0100)]
Fix for bz6389 - Absolute paths to project files cause error: 'MSBUILD0001: Unknown switch'

11 years agoAdd note that UnixDirectoryInfo.Create() follows umask.
Jonathan Pryor [Tue, 7 Aug 2012 19:41:11 +0000 (15:41 -0400)]
Add note that UnixDirectoryInfo.Create() follows umask.

11 years agoCheck same name collision in different namespace containers. Fixes #6378
Marek Safar [Tue, 7 Aug 2012 17:26:11 +0000 (18:26 +0100)]
Check same name collision in different namespace containers. Fixes #6378

11 years ago[corlib] Fallback to Insertion Sort in the non-generic qsort()
Jeffrey Stedfast [Tue, 7 Aug 2012 16:17:16 +0000 (12:17 -0400)]
[corlib] Fallback to Insertion Sort in the non-generic qsort()

Many thanks to Martin Potter <martin.potter@logos.com> for taking
the time to implement this, crossing it off of the long TODO list!

11 years ago[corlib] Make all qsort() implementations completely non-recursive
Jeffrey Stedfast [Tue, 7 Aug 2012 16:03:24 +0000 (12:03 -0400)]
[corlib] Make all qsort() implementations completely non-recursive

This is a better fix for StackOverflowExceptions on large data sets.

11 years agoFix type inference with explicit non-generic types. Fixes #6421
Marek Safar [Tue, 7 Aug 2012 14:09:50 +0000 (15:09 +0100)]
Fix type inference with explicit non-generic types. Fixes #6421

11 years agoMerge pull request #420 from LogosBible/bug6405
Marek Safar [Tue, 7 Aug 2012 07:32:12 +0000 (00:32 -0700)]
Merge pull request #420 from LogosBible/bug6405

Bug #6405: If a CookieContainer is set, always use its cookies.

11 years ago[corlib] Modified Array.qsort*() to inline sorting of the larger partition
Jeffrey Stedfast [Mon, 6 Aug 2012 20:47:58 +0000 (16:47 -0400)]
[corlib] Modified Array.qsort*() to inline sorting of the larger partition

This prevents potential StackOverflowExceptions on really large data sets.

Partial fix for bug #6406

11 years agoMerge pull request #411 from Alkarex/patch-2
Atsushi Eno [Mon, 6 Aug 2012 20:29:09 +0000 (13:29 -0700)]
Merge pull request #411 from Alkarex/patch-2

Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/XsdDatatypeProv...

11 years agoUnit tests for Bug #6405
Martin Potter [Mon, 6 Aug 2012 19:00:39 +0000 (12:00 -0700)]
Unit tests for Bug #6405

Unit tests for https://bugzilla.xamarin.com/show_bug.cgi?id=6405

11 years agoMerge pull request #419 from LogosBible/bug6404
Marek Safar [Mon, 6 Aug 2012 15:17:53 +0000 (08:17 -0700)]
Merge pull request #419 from LogosBible/bug6404

Bug #6404: System.Text.Encoder only throws ArgumentOutOfRangeException when appropriate

11 years agoMerge pull request #418 from LogosBible/bug6403
Marek Safar [Mon, 6 Aug 2012 15:17:05 +0000 (08:17 -0700)]
Merge pull request #418 from LogosBible/bug6403

Bug #6403: Use MidpointRounding.AwayFromZero when rounding creating a TimeSpan.FromXXX.

11 years agoMerge pull request #416 from LogosBible/a29fd0668e4303d71acb46fb3acfa1f1d451d161
Marek Safar [Mon, 6 Aug 2012 15:14:49 +0000 (08:14 -0700)]
Merge pull request #416 from LogosBible/a29fd0668e4303d71acb46fb3acfa1f1d451d161

Fix for incorrect behavior of Guid.TryParse and Guid.TryParseExact. Bug Id: 6402

11 years agoIf a CookieContainer is set, always use its cookies.
Martin Potter [Wed, 1 Aug 2012 14:11:46 +0000 (07:11 -0700)]
If a CookieContainer is set, always use its cookies.

Previously, cookies from the WebHeaderCollection and CookieContainer were sent. This also fixes a bug with ServicePoint sending duplicate cookies when SendRequestHeaders is called more than once:

* WebConnection.InitConnection
* HttpWebRequest.SetWriteStream
* HttpWebRequest. SendRequestHeaders
* WebConnectionStream.WriteRequest
* HttpWebRequest.SendRequestHeaders

Replacing the cookie header value in the WebHeaderCollection with the cookies stored in the CookieContainer also matches the behavior of Microsoft's .NET implementation.

11 years agoUpdating System.Text.Encoder's Convert method bounds checking to be compliant with...
Martin Potter [Tue, 17 Jul 2012 15:33:51 +0000 (08:33 -0700)]
Updating System.Text.Encoder's Convert method bounds checking to be compliant with Microsoft's documentation. (msdn.microsoft.com/en-us/library/dh0797c4.aspx)

11 years agoUsing MidpointRounding.AwayFromZero for rounding the calculated number of Ticks when...
Martin Potter [Tue, 17 Jul 2012 15:34:58 +0000 (08:34 -0700)]
Using MidpointRounding.AwayFromZero for rounding the calculated number of Ticks when creating a TimeSpan.FromXXX.

11 years agoGuid.TryParse and Guid.TryParseExact should not throw exceptions.
Martin Potter [Mon, 6 Aug 2012 01:23:10 +0000 (18:23 -0700)]
Guid.TryParse and Guid.TryParseExact should not throw exceptions.

According to the MSDN documentation, http://msdn.microsoft.com/en-us/library/system.guid.tryparse.aspx and http://msdn.microsoft.com/en-us/library/system.guid.tryparseexact.aspx, Guid.TryParse and Guid.TryParseExact should "return false if input is null or not in a recognized format, and does not throw an exception."

11 years agoFix MethodMirror.GetCustomAttributes ().
Zoltan Varga [Sun, 5 Aug 2012 00:29:31 +0000 (20:29 -0400)]
Fix MethodMirror.GetCustomAttributes ().

11 years agoMerge pull request #415 from enricosada/bug6373
Marek Safar [Sat, 4 Aug 2012 22:55:58 +0000 (15:55 -0700)]
Merge pull request #415 from enricosada/bug6373

Use HashSet.Comparer for set methods with IEnumerable collection

11 years agoUse HashSet.Comparer for set methods with IEnumerable collection
Enrico Sada [Sat, 4 Aug 2012 17:06:19 +0000 (19:06 +0200)]
Use HashSet.Comparer for set methods with IEnumerable collection

fix bug 6373 ( https://bugzilla.xamarin.com/show_bug.cgi?id=6373 )

11 years agoFix typo
Marek Safar [Sat, 4 Aug 2012 15:34:57 +0000 (11:34 -0400)]
Fix typo

11 years agoConvert the argument of OP_INOT to int in the llvm backend. Fixes #6377.
Zoltan Varga [Fri, 3 Aug 2012 14:00:06 +0000 (10:00 -0400)]
Convert the argument of OP_INOT to int in the llvm backend. Fixes #6377.

11 years ago[Mono.Debugger.Soft] Implemented MethodMirror.GetCustomAttributes()
Jeffrey Stedfast [Fri, 3 Aug 2012 13:49:39 +0000 (09:49 -0400)]
[Mono.Debugger.Soft] Implemented MethodMirror.GetCustomAttributes()

11 years agoIncrease buffer length for full ast parser. Fixes #6276
Marek Safar [Thu, 2 Aug 2012 21:59:29 +0000 (17:59 -0400)]
Increase buffer length for full ast parser. Fixes #6276

11 years agohttps://bugzilla.xamarin.com/show_bug.cgi?id=3125
sesef [Thu, 2 Aug 2012 20:17:16 +0000 (22:17 +0200)]
https://bugzilla.xamarin.com/show_bug.cgi?id=3125

11 years agoFix failing test
Marek Safar [Thu, 2 Aug 2012 18:21:03 +0000 (19:21 +0100)]
Fix failing test

11 years agoDisable native trace collection and spew on desktop.
Rodrigo Kumpera [Thu, 2 Aug 2012 17:43:12 +0000 (13:43 -0400)]
Disable native trace collection and spew on desktop.

11 years agoMerge pull request #413 from AerisG222/http_capability_provider
Marek Safar [Thu, 2 Aug 2012 17:21:40 +0000 (10:21 -0700)]
Merge pull request #413 from AerisG222/http_capability_provider

http capability provider

11 years agoinitial implementation of http capability provider introduced in .net 4.0.
aerisg222 [Thu, 2 Aug 2012 16:49:26 +0000 (12:49 -0400)]
initial implementation of http capability provider introduced in .net 4.0.

11 years agoFixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs).
Paolo Molaro [Thu, 2 Aug 2012 16:10:23 +0000 (18:10 +0200)]
Fixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs).

11 years agoFix 2.0 attributeusage
Marek Safar [Wed, 1 Aug 2012 21:18:45 +0000 (22:18 +0100)]
Fix 2.0 attributeusage

11 years agoImplement support for DebuggerHiddenAttribute.
Zoltan Varga [Wed, 1 Aug 2012 19:32:14 +0000 (15:32 -0400)]
Implement support for DebuggerHiddenAttribute.

11 years agoPut the cas flags in MonoJitInfo into a separate structure to free up a free bits.
Zoltan Varga [Wed, 1 Aug 2012 19:25:27 +0000 (15:25 -0400)]
Put the cas flags in MonoJitInfo into a separate structure to free up a free bits.

11 years agoEnable IPv6 support under Android.
Jonathan Pryor [Tue, 31 Jul 2012 11:34:16 +0000 (07:34 -0400)]
Enable IPv6 support under Android.

Android now supports IPv6.

Reverts: 55a3c344