mono.git
10 years agoMerge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
Marek Safar [Tue, 18 Feb 2014 10:42:47 +0000 (11:42 +0100)]
Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException

Add [Category ("NotWorking")] to failing test.

10 years agoAdd [Category ("NotWorking")] to failing test.
Blewzman [Tue, 18 Feb 2014 09:22:54 +0000 (10:22 +0100)]
Add [Category ("NotWorking")] to failing test.

10 years agoMerge pull request #898 from UCIS/patch-3
Alex Rønne Petersen [Tue, 18 Feb 2014 02:41:27 +0000 (03:41 +0100)]
Merge pull request #898 from UCIS/patch-3

Prevent exception in finalization of Form class

10 years agoMerge pull request #899 from UCIS/patch-4
Alex Rønne Petersen [Tue, 18 Feb 2014 02:41:02 +0000 (03:41 +0100)]
Merge pull request #899 from UCIS/patch-4

Fix error in ToolStripItem finalization

10 years ago[llvm] Disable the 'dse' optimization pass as it is buggy and causes #17616. Fixes...
Zoltan Varga [Mon, 17 Feb 2014 23:34:26 +0000 (18:34 -0500)]
[llvm] Disable the 'dse' optimization pass as it is buggy and causes #17616. Fixes #17616.

10 years ago[runtime] Add two variants of mono_gc_bzero and mono_gc_memmove. They better convey...
Rodrigo Kumpera [Mon, 17 Feb 2014 21:43:10 +0000 (16:43 -0500)]
[runtime] Add two variants of mono_gc_bzero and mono_gc_memmove. They better convey the behavior we need.

After reviewing all usage of mono_gc_bzero and mono_gc_memmove, I found that there are two usage patterns
we care for:

1)Aligned pointer, any size, have managed pointers.
This happens when directly dealing with managed objects like when cloning of boxing.
On this case, all pointers MUST be aligned.

2)Maybe aligned pointer, any size, might have managed pointers.
This happens for functions dealing with structs, specially around boxing and unboxing them.
Our data layout code ensures that structs with managed layout are aligned to at least a word.
This means that if the pointer is unaligned, no managed pointer can exists in the memory range
been processed.

Given those two scenarios, lets introduce two variants that enforce those constrains.

_aligned:
Pointers must be aligned, ensures atomicity of word copies;

_atomic:
If pointers are aligned, works like _aligned, otherwise it inherits the behavior of the
system memmove&memset.

The above split ensures we won't have to deal with any RISC unaligned load nonsense.

It also adds some sanity checks to code that must respect alignment.

We still need fast code for mono_gc_memmove_aligned and mono_gc_bzero_aligned.

We still need to verify if a version of memcpy version is needed. Maybe the extra
branch is not such a perf penalty.

10 years agoMerge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException
Marek Safar [Mon, 17 Feb 2014 16:56:55 +0000 (17:56 +0100)]
Merge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException

Add unit test for AggregateException.GetBaseException that works on .net but is broken on Mono.

10 years agoAdd unit test for AggregateException.GetBaseException that works on .net but is broke...
Blewzman [Mon, 17 Feb 2014 16:07:26 +0000 (17:07 +0100)]
Add unit test for AggregateException.GetBaseException that works on .net but is broken on Mono.

10 years ago[mcs] Add NamespaceExpression to avoid problems with error location for misused names...
Marek Safar [Mon, 17 Feb 2014 15:36:55 +0000 (16:36 +0100)]
[mcs] Add NamespaceExpression to avoid problems with error location for misused namespaces. Fixes #17803

10 years agoProperly preserve VPF registers in iOS. Fixes #17793.
Rolf Bjarne Kvinge [Mon, 17 Feb 2014 14:52:10 +0000 (15:52 +0100)]
Properly preserve VPF registers in iOS. Fixes #17793.

10 years ago[mcs] Add nested types handling to check whether types unify for some type parameter...
Marek Safar [Mon, 17 Feb 2014 10:12:35 +0000 (11:12 +0100)]
[mcs] Add nested types handling to check whether types unify for some type parameter substitutions. Fixes #17647

10 years agoMerge pull request #891 from DavidKarlas/listenerprefix
Marek Safar [Mon, 17 Feb 2014 10:12:04 +0000 (11:12 +0100)]
Merge pull request #891 from DavidKarlas/listenerprefix

HttpListener now listens on default ports if not specified instead of random

10 years ago[corlib] Throw CultureNotFoundException using invariant culture. Fixes #17690
Marek Safar [Sun, 16 Feb 2014 17:10:50 +0000 (18:10 +0100)]
[corlib] Throw CultureNotFoundException using invariant culture. Fixes #17690

10 years agoHttpListener now listens on default ports if not specified instead of random
David Karlaš [Sun, 16 Feb 2014 12:58:32 +0000 (04:58 -0800)]
HttpListener now listens on default ports if not specified instead of random

10 years agoRevert "[jit] Implement OP_CARD_TABLE_WBARRIER on ios."
Zoltan Varga [Thu, 13 Feb 2014 22:41:26 +0000 (23:41 +0100)]
Revert "[jit] Implement OP_CARD_TABLE_WBARRIER on ios."

This reverts commit b3f36681c72a6900cd5e9df9b593d555b351669f.

Revert this as it breaks mt.

10 years agoRevert "[jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f."
Zoltan Varga [Thu, 13 Feb 2014 22:40:31 +0000 (23:40 +0100)]
Revert "[jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f."

This reverts commit d50c836721f22df74a45185d51d0b9d37c370e33.

Revert this as d50c836721f22df74a45185d51d0b9d37c370e33 breaks mt.

10 years agoFixes commit a63d0009af9a85c1d52475a1a9bffda34302f0b0
Marek Safar [Fri, 14 Feb 2014 16:40:09 +0000 (17:40 +0100)]
Fixes commit a63d0009af9a85c1d52475a1a9bffda34302f0b0

10 years ago[corlib] Unicode numbers are not considers valid in number parsing. Fixes #17628
Marek Safar [Fri, 14 Feb 2014 16:36:26 +0000 (17:36 +0100)]
[corlib] Unicode numbers are not considers valid in number parsing. Fixes #17628

10 years ago[corlib] Fix warnings
Marek Safar [Fri, 14 Feb 2014 15:25:29 +0000 (16:25 +0100)]
[corlib] Fix warnings

10 years ago[corlib] Improve TimeSpan custom formatting. Fixes #17699
Marek Safar [Fri, 14 Feb 2014 10:54:42 +0000 (11:54 +0100)]
[corlib] Improve TimeSpan custom formatting. Fixes #17699

10 years agoFixed incomplete decompression bug in System.IO.Compression.DeflateStream.
Joao Matos [Thu, 13 Feb 2014 21:47:29 +0000 (16:47 -0500)]
Fixed incomplete decompression bug in System.IO.Compression.DeflateStream.

Call zlib's inflate() even if no data was read from the stream, there might still be some data left to process.

Originally reported by Eric Roller, as Xamarin bugzilla #17183.
https://bugzilla.xamarin.com/show_bug.cgi?id=17183

Reviewed by Rodrigo Kumpera.

10 years ago[corlib] Reset List enumerator current field. Fixes #17760
Marek Safar [Thu, 13 Feb 2014 21:26:13 +0000 (22:26 +0100)]
[corlib] Reset List enumerator current field. Fixes #17760

10 years agoFix typo
Marek Safar [Thu, 13 Feb 2014 21:13:30 +0000 (22:13 +0100)]
Fix typo

10 years ago[system] Fix valid sorted set operations which could cause underlying tree modification
Marek Safar [Thu, 13 Feb 2014 18:58:40 +0000 (19:58 +0100)]
[system] Fix valid sorted set operations which could cause underlying tree modification

10 years ago[mcs] Imported methods need to have SpecialName flag to be valid C# operators
Marek Safar [Thu, 13 Feb 2014 18:05:42 +0000 (19:05 +0100)]
[mcs] Imported methods need to have SpecialName flag to be valid C# operators

10 years agoTests update
Marek Safar [Thu, 13 Feb 2014 17:05:24 +0000 (18:05 +0100)]
Tests update

10 years agoPut back and fix the SSL async patch.
Martin Baulig [Thu, 13 Feb 2014 15:10:12 +0000 (16:10 +0100)]
Put back and fix the SSL async patch.

Revert "Revert "Merge pull request #829 from symform/httpwebreq-async-ssl""

This reverts commit 56d9a057eb612124a6fa1566990d1002f699c744, which was a
revert of 35899c07fff7f7e4c6533364091bbac6ce86fdfd, thus putting 35889 back.

10 years ago[mcs] Lift any non-nullable operand under runtime binder for lifted binary operation
Marek Safar [Thu, 13 Feb 2014 15:33:00 +0000 (16:33 +0100)]
[mcs] Lift any non-nullable operand under runtime binder for lifted binary operation

10 years agoMerge pull request #897 from echampet/scanbuild
Rodrigo Kumpera [Thu, 13 Feb 2014 16:02:09 +0000 (11:02 -0500)]
Merge pull request #897 from echampet/scanbuild

Scanbuild

10 years ago[System]: Reset NTLM auth state when redirecting; distinguish host and proxy.
Martin Baulig [Thu, 13 Feb 2014 14:47:52 +0000 (15:47 +0100)]
[System]: Reset NTLM auth state when redirecting; distinguish host and proxy.

10 years agoRewrite and fix the web stack's connection reuse and idle logic.
Martin Baulig [Thu, 13 Feb 2014 12:17:57 +0000 (13:17 +0100)]
Rewrite and fix the web stack's connection reuse and idle logic.

* ServicePoint now uses an idle timer to close idle connections.

* WebConnectionGroup has been mostly rewritten to use a linked
  list of open connections and their idle times.

  This fixes both the problem that we were leaking sockets and
  that we were not reusing existing connections.

* ServicePoint now correctly keeps track of the number of open
  connections.

* ServicePointManager now uses the correct default idle time
  of 100 seconds (previously 15 minutes).

* WebConnection uses the new WebConnectionGroup's busy logic
  to correctly flag connections as busy / reusable.

10 years agoFix WebConnectionStream.CheckComplete() logic for chunked encoding.
Martin Baulig [Thu, 9 Jan 2014 14:23:53 +0000 (15:23 +0100)]
Fix WebConnectionStream.CheckComplete() logic for chunked encoding.

10 years ago[corlib] Fix the 4.5 test suite.
Rodrigo Kumpera [Thu, 13 Feb 2014 00:12:03 +0000 (19:12 -0500)]
[corlib] Fix the 4.5 test suite.

10 years ago[runtime] Initialize param_count under DISABLE_JIT
Rodrigo Kumpera [Thu, 13 Feb 2014 00:00:30 +0000 (19:00 -0500)]
[runtime] Initialize param_count under DISABLE_JIT

10 years ago[runtime] Don't abort on null module scope, there's nothing special to do there....
Rodrigo Kumpera [Wed, 12 Feb 2014 23:50:39 +0000 (18:50 -0500)]
[runtime] Don't abort on null module scope, there's nothing special to do there. Fixes #5835.

The defacto behavior of a null module scope is to resolve in the current image.

10 years ago[corlib] Remove obj_address debug helper, if anyone needs this, it can be done with...
Rodrigo Kumpera [Wed, 12 Feb 2014 20:02:24 +0000 (15:02 -0500)]
[corlib] Remove obj_address debug helper, if anyone needs this, it can be done with overlapping fields.

10 years ago[corlib] Fix 4.0 test suite compilation.
Rodrigo Kumpera [Wed, 12 Feb 2014 19:13:40 +0000 (14:13 -0500)]
[corlib] Fix 4.0 test suite compilation.

10 years agoAdd test for Bug #15572 from pull request #820
Miguel de Icaza [Wed, 12 Feb 2014 21:06:32 +0000 (16:06 -0500)]
Add test for Bug #15572 from pull request #820

10 years agoAdd tests for bug #15574, pull request 819
Miguel de Icaza [Wed, 12 Feb 2014 20:39:18 +0000 (15:39 -0500)]
Add tests for bug #15574, pull request 819

10 years agoAdd tests for bug #15574, pull request 819
Miguel de Icaza [Wed, 12 Feb 2014 20:38:17 +0000 (15:38 -0500)]
Add tests for bug #15574, pull request 819

10 years agoMerge pull request #820 from brendanzagaeski/master
Miguel de Icaza [Wed, 12 Feb 2014 20:31:12 +0000 (15:31 -0500)]
Merge pull request #820 from brendanzagaeski/master

Bug 15572. Lookup KnownTypeCollection element types in MSSimpleNamespace

10 years agoMerge pull request #819 from brendanzagaeski/patch-1
Miguel de Icaza [Wed, 12 Feb 2014 20:30:30 +0000 (15:30 -0500)]
Merge pull request #819 from brendanzagaeski/patch-1

Bug 15574. XML deserialization recursion: add array type to known_types?

10 years agoMerge pull request #796 from alesliehughes/master
Miguel de Icaza [Wed, 12 Feb 2014 20:29:39 +0000 (15:29 -0500)]
Merge pull request #796 from alesliehughes/master

Support for DispIdAttribute in GetIdsOfNames

10 years agoMerge pull request #778 from cmorris98/master
Miguel de Icaza [Wed, 12 Feb 2014 20:25:59 +0000 (15:25 -0500)]
Merge pull request #778 from cmorris98/master

SqlBulkCopy Implementation

10 years agoMerge pull request #835 from HorstKakuschke/master
Miguel de Icaza [Wed, 12 Feb 2014 20:24:11 +0000 (15:24 -0500)]
Merge pull request #835 from HorstKakuschke/master

Fixes Xamarin Bug 16742:  XmlConvert.ToDateTime(string, XmlDateTimeSeria...

10 years ago[xbuild] Fix dependency in C# targets
Michael Hutchinson [Wed, 12 Feb 2014 19:02:45 +0000 (14:02 -0500)]
[xbuild] Fix dependency in C# targets

There was a typo in DependsOnTargets attribute of the
_AddCorlibReference target definition. It didn't break any
behaviour, since the target it depended on was always built
earlier in the build anyway, so it was really a sanity check.

However, it broke the tests for the new (unused) engine,
Microsoft.Build.dll, which checks for unexpected attributes.

10 years agoRevert "[jit] Align the stack in mono_arch_restore_context () on x86 since it might...
Zoltan Varga [Wed, 12 Feb 2014 19:10:50 +0000 (20:10 +0100)]
Revert "[jit] Align the stack in mono_arch_restore_context () on x86 since it might be unaligned if it was captured asynchronously."

This reverts commit 7798b94706e5552cd1abd80227631f3f9b1bfdad.

Revert this as it breaks debugging on android/x86 (#17410).

10 years ago[mscorlib] Path: fix GetFullPath (/../bin/bash) to return /bin/bash, not bin/bash...
Miguel de Icaza [Wed, 12 Feb 2014 18:19:31 +0000 (13:19 -0500)]
[mscorlib] Path: fix GetFullPath (/../bin/bash) to return /bin/bash, not bin/bash, fixes 17083

10 years ago[HttpListener] Only bind to the specified hosts (and support '*' as Any), fixes ...
Miguel de Icaza [Wed, 12 Feb 2014 17:07:22 +0000 (12:07 -0500)]
[HttpListener] Only bind to the specified hosts (and support '*' as Any), fixes #17204, #10818

10 years ago[xbuild] Fix 2.0 tests to handle mcs sdk argument
Michael Hutchinson [Wed, 12 Feb 2014 17:00:38 +0000 (12:00 -0500)]
[xbuild] Fix 2.0 tests to handle mcs sdk argument

10 years ago[Uri] Fix the ParserUser feature of UriParseComponents
Miguel de Icaza [Wed, 12 Feb 2014 16:08:12 +0000 (11:08 -0500)]
[Uri] Fix the ParserUser feature of UriParseComponents

The current implementation was wrong, did not bother with pct-encoding
(despite being listed in the comments) and did not use the actual set
of characters listed on the spec, instead of using a white-list, it
had its own incorrect black-list.

10 years ago#17636: Allow Int32.Parse with/AllowExponents to take negative exponents. This is...
Miguel de Icaza [Tue, 11 Feb 2014 23:07:39 +0000 (18:07 -0500)]
#17636: Allow Int32.Parse with/AllowExponents to take negative exponents.  This is a change in behavior from 2009, when we fixed this: Novell#542464, now we match .NET 4.5

10 years ago[DataAnnotation.Validator] Add support for nullable types, patch from lmarinucci...
Miguel de Icaza [Wed, 12 Feb 2014 03:02:25 +0000 (22:02 -0500)]
[DataAnnotation.Validator] Add support for nullable types, patch from lmarinucci@yahoo.com, fixes #17318

10 years agoWebRequest: Provide stub ImpersonationLevel
Miguel de Icaza [Wed, 12 Feb 2014 02:53:31 +0000 (21:53 -0500)]
WebRequest: Provide stub ImpersonationLevel

The old implementation threw an exception requesting that the method be implemented
in a derived class, but the method is not virtual, so it could have never been
implemented.

Since Mono does not support this, at least we keep the token around and avoid
throwing.

10 years agoFix error in ToolStripItem finalization
Ivo Smits [Tue, 11 Feb 2014 22:55:54 +0000 (23:55 +0100)]
Fix error in ToolStripItem finalization

The Dispose function in ToolStripItem should not remove itself from its owner during finalization. Finalization implies that the owner has also been garbage collected, and accessing it may result in undesirable behaviour. More specifically, the call to owner.Items.Remove ultimately may boil down to a call to GDI+ throwing an Exception like the following:

Program.UnhandledException: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
  at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics, System.String text, System.Drawing.Font font, System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000] in <filename unknown>:0
  at System.Drawing.Graphics.MeasureString (System.String text, System.Drawing.Font font, Int32 width, System.Drawing.StringFormat format) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:MeasureString (string,System.Drawing.Font,int,System.Drawing.StringFormat)
  at System.Windows.Forms.TextRenderer.MeasureTextInternal (IDeviceContext dc, System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags, Boolean useMeasureString) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextRenderer.MeasureText (System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.CalculateAutoSize () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.set_InternalOwner (System.Windows.Forms.ToolStrip value) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_InternalOwner (System.Windows.Forms.ToolStrip)
  at System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
  at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0

10 years ago[xbuild] Fix Tooltask.ToolPath behaviour to match .NET
Michael Hutchinson [Tue, 11 Feb 2014 21:46:28 +0000 (16:46 -0500)]
[xbuild] Fix Tooltask.ToolPath behaviour to match .NET

10 years ago[xbuild] Make ToolLocationHelper work better for 2.0/3.5
Michael Hutchinson [Tue, 11 Feb 2014 21:44:09 +0000 (16:44 -0500)]
[xbuild] Make ToolLocationHelper work better for 2.0/3.5

Mono keeps unversioned tools in the 4.5 directory, so look there
for 2.0. Additionally, most 3.5 tools are in the 2.0 directory.

10 years ago[xbuild] Fix typo that broke 2.0/3.5 targets
Michael Hutchinson [Tue, 11 Feb 2014 21:41:08 +0000 (16:41 -0500)]
[xbuild] Fix typo that broke 2.0/3.5 targets

10 years ago[xbuild] Fix mscorlib resolution for custom frameworks
Michael Hutchinson [Tue, 11 Feb 2014 19:30:53 +0000 (14:30 -0500)]
[xbuild] Fix mscorlib resolution for custom frameworks

Now that mcs supports multi-targeting, we can use the MSBuild 4.0+
system of finding mscorlib.dll in the target framework folders and
passing it to the compiler, along with the /nostdlib argument.

Like MSBuild, the old NoStdLib property can be set to true to disable
passing mscorlib.dll to the compiler, and the new NoCompilerStandardLib
property can be set to false to disable passing /nostdlib to the compiler.

This makes custom target frameworks work correctly without having to
override CscExe with a wrapper script.

10 years ago[mcs] Don't report any not applicable operator errors during constant folding.
Marek Safar [Tue, 11 Feb 2014 18:08:06 +0000 (19:08 +0100)]
[mcs] Don't report any not applicable operator errors during constant folding.

10 years ago[NTLM]: Add new 'NtmlSettings' class to hold the 'DefaultAuthLevel' property.
Martin Baulig [Tue, 11 Feb 2014 02:09:17 +0000 (03:09 +0100)]
[NTLM]: Add new 'NtmlSettings' class to hold the 'DefaultAuthLevel' property.

When the NTLM sources are compiled into System.dll, then we need to store the
configuration variables there and peek/poke it in Mono.Security.

10 years ago[system] Updates to WebUtility decoders and encoders
Marek Safar [Tue, 11 Feb 2014 15:47:38 +0000 (16:47 +0100)]
[system] Updates to WebUtility decoders and encoders

10 years ago[system.xml] Add more invalid argument checks
Marek Safar [Tue, 11 Feb 2014 10:34:21 +0000 (11:34 +0100)]
[system.xml] Add more invalid argument checks

10 years agoint a[0], malloc(0), memcpy(a,b,0), memcmp(c,d,0) doesn't make much sense
Etienne CHAMPETIER [Tue, 11 Feb 2014 12:39:22 +0000 (13:39 +0100)]
int a[0], malloc(0), memcpy(a,b,0), memcmp(c,d,0) doesn't make much sense

This remove a scan-build warning

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
10 years agofix typo in mono_counters_cleanup leading to a double free
Etienne CHAMPETIER [Tue, 11 Feb 2014 11:48:42 +0000 (12:48 +0100)]
fix typo in mono_counters_cleanup leading to a double free

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
10 years ago[arm] Use d0/d1 as fp scratch regs on non-hard float platforms. Hopefully fixes ...
Zoltan Varga [Mon, 10 Feb 2014 22:47:00 +0000 (23:47 +0100)]
[arm] Use d0/d1 as fp scratch regs on non-hard float platforms. Hopefully fixes #17597.

10 years ago[system.xml] Support more primitive types in XmlReader::ReadContentAs
Marek Safar [Mon, 10 Feb 2014 22:10:06 +0000 (23:10 +0100)]
[system.xml] Support more primitive types in XmlReader::ReadContentAs

10 years ago[runtime] Remove overly pessimistic test.
Mark Probst [Mon, 10 Feb 2014 21:34:50 +0000 (13:34 -0800)]
[runtime] Remove overly pessimistic test.

The test asserts that we can't allocate int arrays with 2G elements.
With SGen on 64 bits, however, we can, which is a feature, not
a bug.

10 years ago[sgen] new T[-1] must throw OverflowException, not OOM.
Mark Probst [Mon, 10 Feb 2014 21:33:10 +0000 (13:33 -0800)]
[sgen] new T[-1] must throw OverflowException, not OOM.

Fixes failure in mini/arrays.cs.

10 years ago[sgen] Hint OOM exception branch as not taken.
Mark Probst [Mon, 10 Feb 2014 20:45:11 +0000 (12:45 -0800)]
[sgen] Hint OOM exception branch as not taken.

10 years ago[sgen] Fix overflow occurring with large object allocations. Fixes #17590.
Mark Probst [Mon, 10 Feb 2014 19:17:31 +0000 (11:17 -0800)]
[sgen] Fix overflow occurring with large object allocations.  Fixes #17590.

10 years ago[corlib] Mark awaited task exception observed when GetResult does the wait
Marek Safar [Mon, 10 Feb 2014 19:08:29 +0000 (20:08 +0100)]
[corlib] Mark awaited task exception observed when GetResult does the wait

10 years agoRevert "Merge pull request #829 from symform/httpwebreq-async-ssl"
Marek Safar [Mon, 10 Feb 2014 17:48:03 +0000 (18:48 +0100)]
Revert "Merge pull request #829 from symform/httpwebreq-async-ssl"

This reverts commit 35899c07fff7f7e4c6533364091bbac6ce86fdfd, reversing
changes made to 80166fd02fadc470e40b59df0c8c65c19945ed21.

10 years agoMerge pull request #892 from initram/master
Marek Safar [Mon, 10 Feb 2014 07:21:31 +0000 (08:21 +0100)]
Merge pull request #892 from initram/master

Implemented Parse() and TryParse() for System.Numerics.BigInteger and DaysInYearBeforeMinSupportedYear for Calendars

10 years agoMerge pull request #895 from ranma42/fix-tuple-hash-codegen
Marek Safar [Mon, 10 Feb 2014 07:19:18 +0000 (08:19 +0100)]
Merge pull request #895 from ranma42/fix-tuple-hash-codegen

[corlib] Fix implementation of Tuple hash generator

10 years ago[corlib] Fix implementation of Tuple hash generator
Andrea Canciani [Sun, 9 Feb 2014 19:28:46 +0000 (20:28 +0100)]
[corlib] Fix implementation of Tuple hash generator

The Tuples.cs code generator dies with:

Unhandled Exception:
System.NotImplementedException: The requested feature is not implemented.
  at TupleGen.computeHash (Int32 destVar, Int32 start, Int32 count) [0x00000] in <filename unknown>:0
  at TupleGen.WriteHash (Int32 destVar, Int32 start, Int32 count) [0x00000] in <filename unknown>:0
  at TupleGen.Main () [0x00000] in <filename unknown>:0

This is caused by the incorrect definition of WriteHash(), which
instead of recursively calling itself is calling computeHash().

Thanks to Marek Safar for reporting the issue in
https://github.com/fsharp/fsharp/issues/188#issuecomment-34351850

10 years agoImplemented DaysInYearBeforeMinSupportedYear for all Calendars that should have it...
Martin Midtgaard [Sat, 8 Feb 2014 16:44:20 +0000 (17:44 +0100)]
Implemented DaysInYearBeforeMinSupportedYear for all Calendars that should have it in .Net 4.5

10 years agoCleanup and better comment.
Martin Midtgaard [Sat, 8 Feb 2014 15:34:16 +0000 (16:34 +0100)]
Cleanup and better comment.

10 years agoMerge remote-tracking branch 'upstream/master'
Martin Midtgaard [Sat, 8 Feb 2014 15:16:02 +0000 (16:16 +0100)]
Merge remote-tracking branch 'upstream/master'

10 years ago[jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f.
Zoltan Varga [Sat, 8 Feb 2014 10:29:35 +0000 (11:29 +0100)]
[jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f.

10 years ago[numerics] Fix type in Cosh
Marek Safar [Fri, 7 Feb 2014 22:45:12 +0000 (23:45 +0100)]
[numerics] Fix type in Cosh

10 years agoMerge pull request #829 from symform/httpwebreq-async-ssl
Sebastien Pouliot [Fri, 7 Feb 2014 21:48:05 +0000 (16:48 -0500)]
Merge pull request #829 from symform/httpwebreq-async-ssl

Convert blocking operations in HttpWebRequest and SslClientStream to non-blocking

10 years ago[corlib] Make primitive types smaller than int compare result compatible
Marek Safar [Fri, 7 Feb 2014 19:19:16 +0000 (20:19 +0100)]
[corlib] Make primitive types smaller than int compare result compatible

10 years ago[corlib] Fixes formatting of nested tuples
Marek Safar [Fri, 7 Feb 2014 19:17:14 +0000 (20:17 +0100)]
[corlib] Fixes formatting of nested tuples

10 years ago[corlib] Default comparer uses IComparable interface only
Marek Safar [Fri, 7 Feb 2014 19:07:45 +0000 (20:07 +0100)]
[corlib] Default comparer uses IComparable interface only

10 years agoMerge branch 'BigIntegerParse'
Martin Midtgaard [Fri, 7 Feb 2014 10:23:37 +0000 (11:23 +0100)]
Merge branch 'BigIntegerParse'

10 years agoImplemented overloaded versions of Parse and TryParse functions for BigInteger.
Martin Midtgaard [Fri, 7 Feb 2014 10:21:49 +0000 (11:21 +0100)]
Implemented overloaded versions of Parse and TryParse functions for BigInteger.

Implementation is heavily inspired by Int32.
Added unit tests for the new functions.

10 years agoFixes build
Marek Safar [Thu, 6 Feb 2014 21:36:50 +0000 (22:36 +0100)]
Fixes build

10 years ago[corlib] Update fixed test
Marek Safar [Thu, 6 Feb 2014 21:30:10 +0000 (22:30 +0100)]
[corlib] Update fixed test

10 years agoMerge pull request #889 from slluis/serializer-fix
Marek Safar [Thu, 6 Feb 2014 21:28:59 +0000 (22:28 +0100)]
Merge pull request #889 from slluis/serializer-fix

Fix serialization issue

10 years agoFix serialization issue
Lluis Sanchez [Thu, 6 Feb 2014 21:01:14 +0000 (22:01 +0100)]
Fix serialization issue

Fixes BXC 5667 - SerializationException: The object with ID 1 could
not be resolved

10 years ago[System] Fix process creation when UseShellExecute is set to false.
Rodrigo Kumpera [Thu, 6 Feb 2014 20:50:31 +0000 (15:50 -0500)]
[System] Fix process creation when UseShellExecute is set to false.

This fixes the behavior of process spawning when UseShellExecute is
set to true.

The right behavior is to return no process only when we used the system
launcher. So, spawning /bin/cat should behave in the same way independent
of how UseShellExecute is set.

10 years agoRevert "[runtime] Don't pass SEE_MASK_NOCLOSEPROCESS to ShellExecuteEx as we don...
Rodrigo Kumpera [Thu, 6 Feb 2014 20:23:10 +0000 (15:23 -0500)]
Revert "[runtime] Don't pass SEE_MASK_NOCLOSEPROCESS to ShellExecuteEx as we don't care for the launched process. Part 1/3 of Bug #16119."

This reverts commit 6c06d109952acb28a8198dcf85a6e8f4d4393985.

10 years ago[corlib] Harden CustomAttributeData::GetHashCode
Rodrigo Kumpera [Thu, 6 Feb 2014 14:42:16 +0000 (09:42 -0500)]
[corlib] Harden CustomAttributeData::GetHashCode

10 years ago[runtime] Put back ensure_synch_cs_set () which was removed in a157ac79e8f404f0eb9b26...
Zoltan Varga [Thu, 6 Feb 2014 19:08:05 +0000 (20:08 +0100)]
[runtime] Put back ensure_synch_cs_set () which was removed in a157ac79e8f404f0eb9b263f5de697f13528deec to work around some shutdown crashes.

10 years ago[mcs] Tests update
Marek Safar [Thu, 6 Feb 2014 15:57:18 +0000 (16:57 +0100)]
[mcs] Tests update

10 years ago[runtime] Filter out events with same name
Marek Safar [Thu, 6 Feb 2014 13:57:09 +0000 (14:57 +0100)]
[runtime] Filter out events with same name

10 years agoFixes build
Marek Safar [Thu, 6 Feb 2014 13:49:30 +0000 (14:49 +0100)]
Fixes build

10 years ago[corlib] Cleanup type ToString formatting.
Marek Safar [Thu, 6 Feb 2014 10:35:11 +0000 (11:35 +0100)]
[corlib] Cleanup type ToString formatting.

10 years ago[corlib] Fix some AssemblyName tests
Marek Safar [Thu, 6 Feb 2014 09:48:21 +0000 (10:48 +0100)]
[corlib] Fix some AssemblyName tests