mono.git
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 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 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

10 years ago[corlib] Better recovery when tasks run on broken scheduler
Marek Safar [Thu, 6 Feb 2014 08:22:47 +0000 (09:22 +0100)]
[corlib] Better recovery when tasks run on broken scheduler

10 years ago[corlib] Cleanup ThreadLocal output formatting.
Marek Safar [Wed, 5 Feb 2014 16:02:39 +0000 (17:02 +0100)]
[corlib] Cleanup ThreadLocal output formatting.

10 years ago[runtime] Fix the computation of AssemblyName.ProcessorArchitecture () to be compatib...
Zoltan Varga [Thu, 6 Feb 2014 10:58:31 +0000 (11:58 +0100)]
[runtime] Fix the computation of AssemblyName.ProcessorArchitecture () to be compatible with MS.NET. Fixes #17632.

10 years agoAdd types from the method header even for gshared methods.
Andrés G. Aragoneses [Thu, 6 Feb 2014 10:34:09 +0000 (11:34 +0100)]
Add types from the method header even for gshared methods.

10 years agoRevert "[aot] Applied patch from "Andrés G. Aragoneses" <knocte@gmail.com>: Add types...
Zoltan Varga [Thu, 6 Feb 2014 10:33:25 +0000 (11:33 +0100)]
Revert "[aot] Applied patch from "Andrés G. Aragoneses" <knocte@gmail.com>: Add types from the method header even for gshared methods."

This reverts commit 9231594314ab2d9d4b42ee1874882a72448788f1.

10 years agofix bug #16744 - null values on nullable value types were not handled in deserializer.
Atsushi Eno [Thu, 6 Feb 2014 08:11:30 +0000 (17:11 +0900)]
fix bug #16744 - null values on nullable value types were not handled in deserializer.

10 years ago[Mono.Data.Sqlite] Add SqliteFunction tests.
Rolf Bjarne Kvinge [Thu, 6 Feb 2014 01:16:42 +0000 (20:16 -0500)]
[Mono.Data.Sqlite] Add SqliteFunction tests.

10 years ago[Mono.Data.Sqlite] Add support for custom collation functions in MonoTouch.
Rolf Bjarne Kvinge [Thu, 6 Feb 2014 00:55:02 +0000 (19:55 -0500)]
[Mono.Data.Sqlite] Add support for custom collation functions in MonoTouch.

10 years ago[aot] Applied patch from "Andrés G. Aragoneses" <knocte@gmail.com>: Add types from...
Zoltan Varga [Wed, 5 Feb 2014 23:52:13 +0000 (00:52 +0100)]
[aot] Applied patch from "Andrés G. Aragoneses" <knocte@gmail.com>: Add types from the method header even for gshared methods.

10 years agoRevert "[aot] Add types from the method header even for gshared methods."
Zoltan Varga [Wed, 5 Feb 2014 23:51:31 +0000 (00:51 +0100)]
Revert "[aot] Add types from the method header even for gshared methods."

This reverts commit 70d7512ac84dcaf903b80f80b36aafe210337a9a.

10 years ago[aot] Add types from the method header even for gshared methods.
Zoltan Varga [Wed, 5 Feb 2014 23:33:08 +0000 (00:33 +0100)]
[aot] Add types from the method header even for gshared methods.

10 years ago[runtime] Fix the windows build.
Zoltan Varga [Wed, 5 Feb 2014 23:16:43 +0000 (00:16 +0100)]
[runtime] Fix the windows build.

10 years ago[arm] Increase the length of the endfinally instruction. Fixes #17589.
Zoltan Varga [Wed, 5 Feb 2014 16:37:03 +0000 (17:37 +0100)]
[arm] Increase the length of the endfinally instruction. Fixes #17589.

10 years ago[corlib] Path.Combine with variable arguments length where one is empty should give...
Marek Safar [Wed, 5 Feb 2014 15:14:13 +0000 (16:14 +0100)]
[corlib] Path.Combine with variable arguments length where one is empty should give same result as other Combine overloads

10 years ago[corlib] Convert with incorrect provider type should still return value when possible
Marek Safar [Wed, 5 Feb 2014 14:44:50 +0000 (15:44 +0100)]
[corlib] Convert with incorrect provider type should still return value when possible

10 years ago[corlib] Use shared version of utf8 encoding in stream reader
Marek Safar [Wed, 5 Feb 2014 14:03:58 +0000 (15:03 +0100)]
[corlib] Use shared version of utf8 encoding in stream reader

10 years ago[corlib] Add nullable tests
Marek Safar [Wed, 5 Feb 2014 14:03:23 +0000 (15:03 +0100)]
[corlib] Add nullable tests

10 years ago[jit] Implement OP_CARD_TABLE_WBARRIER on ios.
Zoltan Varga [Wed, 5 Feb 2014 15:40:20 +0000 (16:40 +0100)]
[jit] Implement OP_CARD_TABLE_WBARRIER on ios.

10 years agoFlush changes in corlib expected results.
Rodrigo Kumpera [Wed, 5 Feb 2014 15:06:18 +0000 (10:06 -0500)]
Flush changes in corlib expected results.

10 years ago[corlib] Add more argument checks to ConcurrentStack
Marek Safar [Wed, 5 Feb 2014 13:09:11 +0000 (14:09 +0100)]
[corlib] Add more argument checks to ConcurrentStack

10 years ago[system] More SortedDictionary argument checks
Marek Safar [Wed, 5 Feb 2014 12:16:40 +0000 (13:16 +0100)]
[system] More SortedDictionary argument checks

10 years ago[system] Fix calls on empty linked list
Marek Safar [Wed, 5 Feb 2014 11:06:08 +0000 (12:06 +0100)]
[system] Fix calls on empty linked list

10 years ago[xbuild] Fix ResolveAssemblyReference verbosity
Michael Hutchinson [Tue, 4 Feb 2014 23:24:42 +0000 (18:24 -0500)]
[xbuild] Fix ResolveAssemblyReference verbosity

Always log search logger messages with low importance.

Missing non-primary references are a low priority message,
not a warning.

10 years ago[corlib] Implement parsing of complex double strings.
Marek Safar [Tue, 4 Feb 2014 16:39:35 +0000 (17:39 +0100)]
[corlib] Implement parsing of complex double strings.

10 years ago[corlib] Initialize null stream reader
Marek Safar [Tue, 4 Feb 2014 12:14:33 +0000 (13:14 +0100)]
[corlib] Initialize null stream reader

10 years ago[corlib] Add overflow checks to string padding
Marek Safar [Tue, 4 Feb 2014 11:40:33 +0000 (12:40 +0100)]
[corlib] Add overflow checks to string padding

10 years ago[jit] Avoid running class cctors during AOT when using the AggressiveInlining attribu...
Zoltan Varga [Tue, 4 Feb 2014 08:52:42 +0000 (09:52 +0100)]
[jit] Avoid running class cctors during AOT when using the AggressiveInlining attribute. Fixes #17558.

10 years ago[runtime] Fix a warning.
Zoltan Varga [Tue, 4 Feb 2014 06:05:34 +0000 (07:05 +0100)]
[runtime] Fix a warning.

10 years ago[corlib] The hashcode of an empty struct must be constant. Fixes #17577
Rodrigo Kumpera [Mon, 3 Feb 2014 23:08:53 +0000 (18:08 -0500)]
[corlib] The hashcode of an empty struct must be constant. Fixes #17577

10 years ago[corlib] Add overflow checks to functions that alloc memory and uses raw pointers.
Rodrigo Kumpera [Mon, 3 Feb 2014 22:36:39 +0000 (17:36 -0500)]
[corlib] Add overflow checks to functions that alloc memory and uses raw pointers.

10 years ago[runtime] Applied patch from Frank Fuchs <fk.fuchs@googlemail.com>. Add win64 support...
Zoltan Varga [Mon, 3 Feb 2014 21:15:30 +0000 (22:15 +0100)]
[runtime] Applied patch from Frank Fuchs <fk.fuchs@googlemail.com>. Add win64 support to mono_threads_core_get_stack_bounds ().

10 years ago[runtime] Applied patch from Frank Fuchs <fk.fuchs@googlemail.com>. Fix the windows...
Zoltan Varga [Mon, 3 Feb 2014 21:11:57 +0000 (22:11 +0100)]
[runtime] Applied patch from Frank Fuchs <fk.fuchs@googlemail.com>. Fix the windows build.

10 years ago[corlib] Allow to use custom comparer when sorting null values.
Marek Safar [Mon, 3 Feb 2014 19:27:58 +0000 (20:27 +0100)]
[corlib] Allow to use custom comparer when sorting null values.

10 years ago[corlib] Clean up array binary search argument checks
Marek Safar [Mon, 3 Feb 2014 17:36:24 +0000 (18:36 +0100)]
[corlib] Clean up array binary search argument checks

10 years ago[corlib] Throw correct exception when array::copy elements don't match
Marek Safar [Mon, 3 Feb 2014 15:13:49 +0000 (16:13 +0100)]
[corlib] Throw correct exception when array::copy elements don't match

10 years agoMerge pull request #886 from dmpot/master
Marek Safar [Mon, 3 Feb 2014 08:40:56 +0000 (00:40 -0800)]
Merge pull request #886 from dmpot/master

[WindowsBase]: 6 fixes to Dispatcher

10 years agoDispatcher should process a higher-priority task
Dmitry Potapov [Sun, 2 Feb 2014 22:07:44 +0000 (02:07 +0400)]
Dispatcher should process a higher-priority task

When a higher-priority tasked appeared in the dispatcher queue, the
dispatcher stopped processing of the current queue but moved to a low
priority queue instead of processing the most high priority queue.

10 years agoInvalidOperationException in Dispatcher.RunFrame
Dmitry Potapov [Sun, 2 Feb 2014 21:57:20 +0000 (01:57 +0400)]
InvalidOperationException in Dispatcher.RunFrame

When a Dispatcher exits due to 'frame.Continue' being false, it does not
clear queue_bits. As result, the next run of the Dispatcher could try to
dequeue a non-existing dispatcher operation.

10 years agoDispatcher should stop if Continue is false
Dmitry Potapov [Sun, 2 Feb 2014 21:48:32 +0000 (01:48 +0400)]
Dispatcher should stop if Continue is false

If the dispatcher encounters that frame.Continue is false, it should return
immediately and do not try to execute anything. The unit test may be seen as
rather artificial, but the problem may happen in more realistic situations
when frames are unwound.

10 years agoDispatcher: Run() can be used more than once
Dmitry Potapov [Sun, 2 Feb 2014 21:41:42 +0000 (01:41 +0400)]
Dispatcher: Run() can be used more than once

When Run() was invoked a second time, main_execution_frame had the Continue
flag set to false. So it did not work correctly.

10 years ago[runtime] Simplify the io-layer threading code a bit more.
Zoltan Varga [Sun, 2 Feb 2014 21:36:28 +0000 (22:36 +0100)]
[runtime] Simplify the io-layer threading code a bit more.

10 years agoDispatcher.PushFrame: clean references before return
Dmitry Potapov [Sun, 2 Feb 2014 19:55:12 +0000 (23:55 +0400)]
Dispatcher.PushFrame: clean references before return

The dispatcher did not clean references before returning, therefore
the second call to Dispatcher.Run() failed.

10 years agoFix src and dest indexes in DispatcherOperation ctor
Dmitry Potapov [Sun, 2 Feb 2014 18:40:55 +0000 (22:40 +0400)]
Fix src and dest indexes in DispatcherOperation ctor

The source and the destination indexes are confused. The source index, which
is the second parameter, should be 0 and the destination index, which is the
fourth parameter, should be 1.