mono.git
10 years ago[monodoc] Remove .config file when cleaning
Jérémie Laval [Thu, 6 Jun 2013 14:38:23 +0000 (10:38 -0400)]
[monodoc] Remove .config file when cleaning

10 years agoCheck class level type parameters used in explicit delegate parameters conversion...
Marek Safar [Thu, 6 Jun 2013 12:30:51 +0000 (14:30 +0200)]
Check class level type parameters used in explicit delegate parameters conversion. Fixes #12568

10 years agoCorrect encoding transformation flags for type arguments arrays without dynamic eleme...
Marek Safar [Thu, 6 Jun 2013 09:54:20 +0000 (11:54 +0200)]
Correct encoding transformation flags for type arguments arrays without dynamic element. Fixes #12572

10 years agoKeep hoisted this when lambda parent is async lambda. Fixes #12549
Marek Safar [Thu, 6 Jun 2013 08:50:44 +0000 (10:50 +0200)]
Keep hoisted this when lambda parent is async lambda. Fixes #12549

10 years ago[mdoc] Pass the right HelpSource as a hint to the renderer to avoid generating system...
Jérémie Laval [Wed, 5 Jun 2013 23:53:53 +0000 (19:53 -0400)]
[mdoc] Pass the right HelpSource as a hint to the renderer to avoid generating system-provided doc.

10 years agoRework the shutdown sequence so two initiations don't race each other.
Rodrigo Kumpera [Wed, 5 Jun 2013 23:27:45 +0000 (19:27 -0400)]
Rework the shutdown sequence so two initiations don't race each other.

This fixes a race condition where two threads could perform runtime shutdown
at the same time and either crash or hang. Now each initiation checks if they
won and take the proper action in such case.

A recurring problem was with the debugger, that would hang on shutdown if the
main thread started shutdown earlier. In this case the agent thread would
call into mono_threads_set_shutting_down, which in turn would do an ExitThread
since shutdown was in progress.

The agent thread would exit without signaling that it did complete, causing
the main thread to block waiting for it to do so.

* runtime.c (mono_runtime_shutdown): Rename it to mono_runtime_try_shutdown
and move threadpool cleanup to here. Some cleanup of the rest of the sequence
still left to do.

* icall.c (Environment.Exit): If we fail to start shutdown, just exit
the thread as someone else will finish the job. We can't suspend because if
this is called by regular shutdown we would be resumed and return to user code.

An alternative would be to detach and then suspend. Not sure on the merits.

* threads.c (mono_thread_manage): If we fail to start shutdown, suspend
as this is what the winner initiator wants us to do as it must be for
forced exit.

* debugger-agent.c (vm_commands): If we fail to start shutdown, return
from the function and let the agent thread finish and clean up.

* debugger-agent.c (debugger_thread): VM_EXIT commands now can return
if shutdown was externaly initiated and in such case we should break
the main loop and let the agent thread finish.

10 years agoMove mono_runtime_set_shutting_down and mono_runtime_is_shutting_down to runtime.c
Rodrigo Kumpera [Wed, 5 Jun 2013 21:46:10 +0000 (17:46 -0400)]
Move mono_runtime_set_shutting_down and mono_runtime_is_shutting_down to runtime.c

10 years agoDon't set shutting_down here as it is now done much earlier in the shutdown sequence.
Rodrigo Kumpera [Wed, 5 Jun 2013 21:43:44 +0000 (17:43 -0400)]
Don't set shutting_down here as it is now done much earlier in the shutdown sequence.

10 years agoKill unused func mono_threads_is_shutting_down.
Rodrigo Kumpera [Wed, 5 Jun 2013 21:35:20 +0000 (17:35 -0400)]
Kill unused func mono_threads_is_shutting_down.

10 years agoDetach the current thread as soon as possible when mono_gc_pthread_exit is called.
Rodrigo Kumpera [Wed, 5 Jun 2013 19:07:24 +0000 (15:07 -0400)]
Detach the current thread as soon as possible when mono_gc_pthread_exit is called.

* sgen-gc.c (mono_gc_pthread_exit): Given the current thread is doomed, explicitly
detach before calling pthread_exit and thus reducing the chance of TLS cleanup issues.

10 years ago[monodoc] Ditto for fetching type node parents of subnodes.
Jérémie Laval [Wed, 5 Jun 2013 23:41:07 +0000 (19:41 -0400)]
[monodoc] Ditto for fetching type node parents of subnodes.

10 years ago[monodoc] Fix ecma traversal with unattached tree.
Jérémie Laval [Wed, 5 Jun 2013 23:04:04 +0000 (19:04 -0400)]
[monodoc] Fix ecma traversal with unattached tree.

Previously the code expected to stop at upper level node using the fact that their element starts with `root:/'. This element is attributed by RootNode when loading a complete tree. However tool like mdoc also loads tree unattached which doesn't create a standard `root:/` top-level root node hence causing the issue.

10 years agoBuild System.Net on mobile (type-forwarders for PCL).
Martin Baulig [Wed, 5 Jun 2013 21:08:25 +0000 (23:08 +0200)]
Build System.Net on mobile (type-forwarders for PCL).

10 years agoExclude the new System.IO.Directory unit test for iOS (no Mono.Unix)
Sebastien Pouliot [Wed, 5 Jun 2013 19:00:33 +0000 (15:00 -0400)]
Exclude the new System.IO.Directory unit test for iOS (no Mono.Unix)

10 years agoAdd monotouch_corlib.dll.sources (to simply include corlib.dll.sources) since library...
Sebastien Pouliot [Wed, 5 Jun 2013 17:44:33 +0000 (13:44 -0400)]
Add monotouch_corlib.dll.sources (to simply include corlib.dll.sources) since library.make change it's processing with its presence

10 years agoFix 2.0 build.
Rodrigo Kumpera [Wed, 5 Jun 2013 16:44:25 +0000 (12:44 -0400)]
Fix 2.0 build.

10 years ago[System.Core] Add AesCryptoServiceProvider to the MONODROID profile.
Jonathan Pryor [Tue, 4 Jun 2013 23:38:23 +0000 (19:38 -0400)]
[System.Core] Add AesCryptoServiceProvider to the MONODROID profile.

Context: System.Security.Cryptography/AesCryptoServiceProvider.cs

Add System.Security.Cryptography.AesCryptoServiceProvider to the
MONODROID profile.

This is needed so that Aes.Create() can work.

10 years agoMake sure the behavior between GetFiles and EnumerateFiles are the same regarding...
Rodrigo Kumpera [Tue, 4 Jun 2013 22:49:34 +0000 (18:49 -0400)]
Make sure the behavior between GetFiles and EnumerateFiles are the same regarding symlinks. Fixes BXC #12461

* Directory.cs: Only ignore symlinks when traversing subdirectories. This is the only case that it can result
in loops.

10 years agoFix a loader leak in mono_class_create_from_typedef.
Rodrigo Kumpera [Tue, 4 Jun 2013 21:41:03 +0000 (17:41 -0400)]
Fix a loader leak in mono_class_create_from_typedef.

11 years ago[ios] Remove the need to use reflection to call the StartWWAN method (by moving it...
Sebastien Pouliot [Tue, 4 Jun 2013 18:42:34 +0000 (14:42 -0400)]
[ios] Remove the need to use reflection to call the StartWWAN method (by moving it into libmonotouch)

11 years ago[PCL]: Set Facade Assemblies' version number to "4.0.0.0".
Martin Baulig [Tue, 4 Jun 2013 16:14:53 +0000 (18:14 +0200)]
[PCL]: Set Facade Assemblies' version number to "4.0.0.0".

11 years agoRe-enable a test for the MOBILE profile (by ensuring the required method is not remov...
Sebastien Pouliot [Tue, 4 Jun 2013 14:58:40 +0000 (10:58 -0400)]
Re-enable a test for the MOBILE profile (by ensuring the required method is not removed by the linker)

11 years agoImplement MethodMirror.MakeGenericMethod ().
Zoltan Varga [Tue, 4 Jun 2013 06:01:22 +0000 (08:01 +0200)]
Implement MethodMirror.MakeGenericMethod ().

11 years ago[corlib] Don't throw UnauthorizedAccessException from Path.GetTempFileName
Jonathan Pryor [Mon, 3 Jun 2013 20:54:11 +0000 (16:54 -0400)]
[corlib] Don't throw UnauthorizedAccessException from Path.GetTempFileName

The problem is sporadic mdoc test failures on Wrench/OS X:

Updating: Mono.DocTest.Widget/NestedClass/Double/Triple/Quadruple
mdoc: System.UnauthorizedAccessException: Access to the path '/var/folders/_g/y9v720_90l914yylrk7m903c0000gn/T/tmp20f71445.tmp' is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)
  at System.IO.Path.GetTempFileName () [0x00000] in <filename unknown>:0
  at Mono.Documentation.MdocFile.UpdateFile (System.String file, System.Action`1 creator) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.WriteFile (System.String filename, FileMode mode, System.Action`1 action) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.DoUpdateType2 (System.String message, System.Xml.XmlDocument basefile, Mono.Cecil.TypeDefinition type, System.String output, Boolean insertSince) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.DoUpdateType (Mono.Cecil.TypeDefinition type, System.String basepath, System.String dest) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.DoUpdateAssembly (Mono.Cecil.AssemblyDefinition assembly, System.Xml.XmlElement index_types, System.String source, System.String dest, System.Collections.Generic.HashSet`1 goodfiles) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.DoUpdateAssemblies (System.String source, System.String dest) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDocUpdater.Run (IEnumerable`1 args) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDoc.Run (System.String[] args) [0x00000] in <filename unknown>:0
  at Mono.Documentation.MDoc.Main (System.String[] args) [0x00000] in <filename unknown>:0

I'm not sure why we're getting UnauthorizedAccessException exceptions,
nor do I particularly care; Path.GetTempFileName() should not be
throwing UnauthorizedAccessException; only IOException is documented:

http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx

Update behavior to skip files that generate
UnauthorizedAccessException, and if we swallow short.MaxValue
exceptions wrap the UnauthorizedAccessException in an IOException so
that we conform to documented exceptional behavior.

11 years agoMerge pull request #653 from LogosBible/TimeSpan-TryParseExact
Marek Safar [Mon, 3 Jun 2013 16:12:47 +0000 (09:12 -0700)]
Merge pull request #653 from LogosBible/TimeSpan-TryParseExact

TimeSpan.TryParseExact should not try to parse null input.

11 years agoTimeSpan.TryParseExact should not try to parse null input.
Martin Potter [Mon, 3 Jun 2013 14:32:10 +0000 (07:32 -0700)]
TimeSpan.TryParseExact should not try to parse null input.

TimeSpan.TryParseExact would previously throw a NullReferenceException constructing the Parser when it accesses the Length property of the input string. Microsoft's implementation returns false when null is passed as the input string to parse.

11 years agoDisable partial sharing for now, it breaks some tests on mt.
Zoltan Varga [Mon, 3 Jun 2013 13:56:28 +0000 (15:56 +0200)]
Disable partial sharing for now, it breaks some tests on mt.

11 years agoa few more nunit test modernization.
Atsushi Eno [Mon, 3 Jun 2013 08:00:21 +0000 (17:00 +0900)]
a few more nunit test modernization.

11 years agoconvert some unit tests to modern style. (not really modern, just killing Assertion!)
Atsushi Eno [Mon, 3 Jun 2013 07:51:22 +0000 (16:51 +0900)]
convert some unit tests to modern style. (not really modern, just killing Assertion!)

11 years agoUse /proc/self/auxv for ARM feature detection when possible.
Alex Rønne Petersen [Sun, 2 Jun 2013 05:33:37 +0000 (07:33 +0200)]
Use /proc/self/auxv for ARM feature detection when possible.

This is generally preferable because it works in QEMU chroots and
the information is significantly easier to process.

We still need to keep the /proc/cpuinfo code around, however, as
Android does not always allow access to /proc/self/auxv...

This patch also enhances the MONO_CPU_ARCH environment variable
to support the various new features we support.

11 years agoUse MonoBoolean instead of gboolean as an icall return type.
Zoltan Varga [Mon, 3 Jun 2013 05:32:38 +0000 (07:32 +0200)]
Use MonoBoolean instead of gboolean as an icall return type.

11 years agoIgnore all cpu-*.h files in mono/mini.
Alex Rønne Petersen [Sun, 2 Jun 2013 17:05:50 +0000 (19:05 +0200)]
Ignore all cpu-*.h files in mono/mini.

11 years agoMerge pull request #651 from JoostK/patch-1
Marek Safar [Sun, 2 Jun 2013 16:53:20 +0000 (09:53 -0700)]
Merge pull request #651 from JoostK/patch-1

Shortcut open paren recognition for switch statements

11 years agoFix constrained gsharedvt calls on enums.
Zoltan Varga [Sun, 2 Jun 2013 09:49:59 +0000 (11:49 +0200)]
Fix constrained gsharedvt calls on enums.

11 years ago[sdb] Clear ss_invoke_addr when stopping single stepping so runtime invokes don't...
Zoltan Varga [Sun, 2 Jun 2013 04:36:29 +0000 (06:36 +0200)]
[sdb] Clear ss_invoke_addr when stopping single stepping so runtime invokes don't stop single stepping. Fixes #12509.

11 years agoGet rid of the NESTED_LIBGC_FLAGS configure variable, use the already existing CPPFLA...
Zoltan Varga [Sat, 1 Jun 2013 07:18:51 +0000 (09:18 +0200)]
Get rid of the NESTED_LIBGC_FLAGS configure variable, use the already existing CPPFLAGS_FOR_LIBGC instead.

11 years agoPass some defines in config.h instead of on the command line.
Zoltan Varga [Sat, 1 Jun 2013 07:14:29 +0000 (09:14 +0200)]
Pass some defines in config.h instead of on the command line.

11 years ago[sdb] Keep the exception object alive during debugger suspensions. Fixes #12494.
Zoltan Varga [Sat, 1 Jun 2013 05:04:46 +0000 (07:04 +0200)]
[sdb] Keep the exception object alive during debugger suspensions. Fixes #12494.

11 years agoShortcut open parent recognition for switch
Joost Koehoorn [Sat, 1 Jun 2013 01:48:15 +0000 (03:48 +0200)]
Shortcut open parent recognition for switch

11 years agoFix random unit test failures on the bots [#12493]
Sebastien Pouliot [Fri, 31 May 2013 19:44:29 +0000 (15:44 -0400)]
Fix random unit test failures on the bots [#12493]

11 years ago[Mono.Debugger.Soft] Updated closed/disconnected state when connection is force-closed
Jeffrey Stedfast [Fri, 31 May 2013 18:27:30 +0000 (14:27 -0400)]
[Mono.Debugger.Soft] Updated closed/disconnected state when connection is force-closed

11 years ago[mkbundle] do not require dos2unix (and sh) on Windows. Skip it if it does not exist.
Atsushi Eno [Fri, 31 May 2013 09:08:20 +0000 (18:08 +0900)]
[mkbundle] do not require dos2unix (and sh) on Windows. Skip it if it does not exist.

11 years agoMake all symbols visible for MonoTouch.
Rolf Bjarne Kvinge [Wed, 29 May 2013 23:46:13 +0000 (01:46 +0200)]
Make all symbols visible for MonoTouch.

MonoTouch may use a shared libmono with AOT-compiled assemblies,
and the AOT-compiled assemblies need to access internal symbols
from libmono. The monotouch runtime also uses a few internal
API.

So the easiest way to fix both these cases is to make everything
public for MonoTouch. The libmono used will always be in sync
with the AOT-compiled code, so ABI-breakage is not a concern.

11 years ago[System] Don't use System.Reflection.Emit if we're in a FullAOT runtime.
Rolf Bjarne Kvinge [Wed, 29 May 2013 23:44:09 +0000 (01:44 +0200)]
[System] Don't use System.Reflection.Emit if we're in a FullAOT runtime.

11 years agoImprove the reliability and error reporting of the TPL Dataflow test suite.
Rodrigo Kumpera [Thu, 30 May 2013 19:42:51 +0000 (15:42 -0400)]
Improve the reliability and error reporting of the TPL Dataflow test suite.

11 years agoRevert "Pass more defines in config.h instead of on the command line. Pass libgc...
Zoltan Varga [Thu, 30 May 2013 16:11:47 +0000 (18:11 +0200)]
Revert "Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only."

This reverts commit cff0ecb816fdd10419550b549137f48b5a14ff88.

Revert this as boehm-gc.c depends on the libgc defines.

11 years agoPass more defines in config.h instead of on the command line. Pass libgc defines...
Zoltan Varga [Thu, 30 May 2013 08:59:05 +0000 (10:59 +0200)]
Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only.

11 years agoDisable locking around archive accesses in libtool on darwin, it doesn't seem to...
Zoltan Varga [Thu, 30 May 2013 05:58:27 +0000 (07:58 +0200)]
Disable locking around archive accesses in libtool on darwin, it doesn't seem to be necessary and it slows down parallel builds.

11 years agoEnable dolt on ios builds.
Zoltan Varga [Thu, 30 May 2013 05:57:04 +0000 (07:57 +0200)]
Enable dolt on ios builds.

11 years agoRemove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen...
Zoltan Varga [Thu, 30 May 2013 03:15:18 +0000 (05:15 +0200)]
Remove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen.c file for sgen.

11 years agoFix a warning.
Zoltan Varga [Thu, 30 May 2013 03:13:43 +0000 (05:13 +0200)]
Fix a warning.

11 years agoAvoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working.
Zoltan Varga [Thu, 30 May 2013 03:13:33 +0000 (05:13 +0200)]
Avoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working.

11 years agoUse gsharedvt for some generic instances in full-aot mode to avoid code blowup.
Zoltan Varga [Wed, 29 May 2013 08:12:37 +0000 (10:12 +0200)]
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.

11 years agoMove the adding of unbox trampolines to mini_add_method_trampoline ().
Zoltan Varga [Thu, 30 May 2013 00:44:00 +0000 (02:44 +0200)]
Move the adding of unbox trampolines to mini_add_method_trampoline ().

11 years ago[ios] Allow some level of configuration when CryptoConfig is used (as a last resort...
Sebastien Pouliot [Wed, 29 May 2013 20:52:50 +0000 (16:52 -0400)]
[ios] Allow some level of configuration when CryptoConfig is used (as a last resort fallback)

11 years agoRemove MOBILE defines inside X509Chain tests
Sebastien Pouliot [Wed, 29 May 2013 18:54:53 +0000 (14:54 -0400)]
Remove MOBILE defines inside X509Chain tests

11 years ago[mdoc] Fix unit tests.
Jonathan Pryor [Wed, 29 May 2013 15:53:22 +0000 (11:53 -0400)]
[mdoc] Fix unit tests.

3d3fe6af (among other commits...) "broke" the `mdoc` unit tests, as it
did two things:

 1. It added a new codepath calling string.Format(), thus introducing
    a new set of exceptions.
 2. Due to an `mdoc` bug, (1) resulted in a stack overflow on OS X.

(1) demonstrates that the mdoc unit tests might be too brittle.

(2) was fixed in 04bf9ad.

The problem with 04bf9ad, though, is that it resulted in a gigantic
~212MB diff, because while the recursion was "fixed", we could still
process the same method multiple times, resulting in _lots_ of
duplication, e.g. System.String.get_Chars() would be repeated hundreds
of times for a given exception.

Improve the source reporting mechanism so that instead of a
List<MemberReference> we use a HashSet<MemberReference>, listing each
source location _once_ instead of repeating them.

The _formatting_ of the <exception/> element is also changed so that
each source location is on its own line, making it easier to read and
review the locations.

11 years agoUse a different function for emitting write barriers for gsharedvt types which can...
Zoltan Varga [Wed, 29 May 2013 14:26:56 +0000 (16:26 +0200)]
Use a different function for emitting write barriers for gsharedvt types which can handle reference types too. Fixes #12429.

11 years agoAvoid calling alloc wrappers directly, sgen does some initialization when the wrapper...
Zoltan Varga [Wed, 29 May 2013 14:26:02 +0000 (16:26 +0200)]
Avoid calling alloc wrappers directly, sgen does some initialization when the wrapper method is created.

11 years ago[mdoc] Fix export-msxdoc regression, updated expected output.
Jonathan Pryor [Wed, 29 May 2013 10:45:12 +0000 (06:45 -0400)]
[mdoc] Fix export-msxdoc regression, updated expected output.

Commit 44b2b4a8 completely broke `mdoc export-msxdoc` because
EcmaDoc.GetCref() was removed. Expected:

<member name="C:Mono.DocTest.DocAttribute(System.String)">

Actual:

<member name="Mono.DocTest.DocAttribute..ctor">

i.e. useless.

The fix: bring back GetCref(), this time within monodocs2slashdoc.cs.

Commit 0ad6ffde changed the HTML-generating stylesheet and moved some
@id attributes around, thus breaking the mdoc unit tests (expected
output likewise changed). Fix the monodoc XSLTs so that we don't emit
id="" attributes (id's with no value).

Update mdoc's expected output so that tests pass[*].

[*]: tests will NOT actually pass, as 04bf9add -- attempted fix for
an OS X stackoverflow caused by 3d3fe6af -- results in a gigantic
216MB diff because String.get_Chars() is repeated over and over and
over... The updated expected output in this commit is the "ideal"
update needed after locally reverting 3d3fe6af and 04bf9add.)

11 years agoEnable fixed tests
Marek Safar [Wed, 29 May 2013 09:04:17 +0000 (11:04 +0200)]
Enable fixed tests

11 years agoRun YieldAwaitable tests on default synchronization context. Fixes #12446
Marek Safar [Wed, 29 May 2013 09:02:00 +0000 (11:02 +0200)]
Run YieldAwaitable tests on default synchronization context. Fixes #12446

11 years agoRevert "Use gsharedvt for some generic instances in full-aot mode to avoid code blowup."
Zoltan Varga [Wed, 29 May 2013 08:51:12 +0000 (10:51 +0200)]
Revert "Use gsharedvt for some generic instances in full-aot mode to avoid code blowup."

This reverts commit 9f36e10b1b87e53335d3dbcea1e570b4d16ea0f4.

Revert this as it breaks some mt tests.

11 years agoUse gsharedvt for some generic instances in full-aot mode to avoid code blowup.
Zoltan Varga [Wed, 29 May 2013 08:12:37 +0000 (10:12 +0200)]
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.

11 years agoAdd support for constrained calls to Object.Equals to gsharedvt.
Zoltan Varga [Wed, 29 May 2013 07:53:42 +0000 (09:53 +0200)]
Add support for constrained calls to Object.Equals to gsharedvt.

11 years agoDisable some YieldAwaitable tests on MT.
Zoltan Varga [Wed, 29 May 2013 04:41:11 +0000 (06:41 +0200)]
Disable some YieldAwaitable tests on MT.

11 years agoChange code to more linker friendly ways to create MD5 and X509Chain and allow, for...
Sebastien Pouliot [Wed, 29 May 2013 01:09:06 +0000 (21:09 -0400)]
Change code to more linker friendly ways to create MD5 and X509Chain and allow, for iOS, the creation of X509Chain without requiring CryptoConfig

11 years agoRefactor the Mono.Security code to use more linker friendly ways to create hash algor...
Sebastien Pouliot [Wed, 29 May 2013 00:11:46 +0000 (20:11 -0400)]
Refactor the Mono.Security code to use more linker friendly ways to create hash algorithms

11 years agoAvoid direct recursion when computing the exceptions of a method.
Rodrigo Kumpera [Wed, 29 May 2013 00:03:52 +0000 (20:03 -0400)]
Avoid direct recursion when computing the exceptions of a method.

* exceptions.cs: When Filling the exceptions of a method make sure
to not recurse on the methods itself as this can lead to a stackoverflow.

11 years ago[ios] Add, as a last resort, the creation of the hash based on it's type name. Needed...
Sebastien Pouliot [Tue, 28 May 2013 23:35:12 +0000 (19:35 -0400)]
[ios] Add, as a last resort, the creation of the hash based on it's type name. Needed for some API (which provides it) and the associated unit tests

11 years agoUpdate failing mobile test
Marek Safar [Tue, 28 May 2013 18:34:32 +0000 (20:34 +0200)]
Update failing mobile test

11 years agoFix 2.0 corlib test suite.
Rodrigo Kumpera [Tue, 28 May 2013 18:00:09 +0000 (14:00 -0400)]
Fix 2.0 corlib test suite.

11 years agoOlder versions of iOS don't have pthread_mutexattr_setpolicy_np so dynamically look...
Rodrigo Kumpera [Tue, 28 May 2013 17:37:53 +0000 (13:37 -0400)]
Older versions of iOS don't have pthread_mutexattr_setpolicy_np so dynamically look up the function and fallback on failure. Fixes #12394

11 years agoFix support for dynamic methods in collect_method_images (). Fixes #12412.
Zoltan Varga [Tue, 28 May 2013 16:15:07 +0000 (18:15 +0200)]
Fix support for dynamic methods in collect_method_images (). Fixes #12412.

11 years agoKeep cancellation token for all running requests. Fixes #12349
Marek Safar [Tue, 28 May 2013 09:11:59 +0000 (11:11 +0200)]
Keep cancellation token for all running requests. Fixes #12349

11 years agoUpdated CryptoConvert.cs path
Marek Safar [Tue, 28 May 2013 09:10:44 +0000 (11:10 +0200)]
Updated CryptoConvert.cs path

11 years agoResolve unreachable block with correct flow settings. Fixes #12361
Marek Safar [Tue, 28 May 2013 09:08:07 +0000 (11:08 +0200)]
Resolve unreachable block with correct flow settings. Fixes #12361

11 years agoFix a reading of invalid memory error introduced by 3f3092b4776a554abcf13f698a488adf7...
Zoltan Varga [Tue, 28 May 2013 02:23:33 +0000 (04:23 +0200)]
Fix a reading of invalid memory error introduced by 3f3092b4776a554abcf13f698a488adf749bba57.

11 years agoMerge pull request #647 from knocte/aspnet_lru
Marek Habersack [Mon, 27 May 2013 20:36:05 +0000 (13:36 -0700)]
Merge pull request #647 from knocte/aspnet_lru

[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)

11 years ago[System.Web] Improve locking logic for WebConfigManager's sectionCache
Andres G. Aragoneses [Mon, 27 May 2013 20:27:33 +0000 (21:27 +0100)]
[System.Web] Improve locking logic for WebConfigManager's sectionCache

As suggested by Marek Habersack, instead of catching
SynchronizationLockException in the case that the lock wasn't
acquired, we now have a boolean that indicates if it was
acquired or not, so we can act on it on the finally{} block.

11 years agoBump ikvm to f66ae58 to recognize PCL Facade Assemblies.
Martin Baulig [Mon, 27 May 2013 18:03:31 +0000 (20:03 +0200)]
Bump ikvm to f66ae58 to recognize PCL Facade Assemblies.

11 years ago[xbuild]: Remove duplicates from 'TargetFrameworkDirectory'.
Martin Baulig [Mon, 27 May 2013 15:41:13 +0000 (17:41 +0200)]
[xbuild]: Remove duplicates from 'TargetFrameworkDirectory'.

11 years ago[WebConnection]: Fix incorrect end-of-stream with null callback.
Martin Baulig [Sat, 25 May 2013 15:44:28 +0000 (17:44 +0200)]
[WebConnection]: Fix incorrect end-of-stream with null callback.

This fixes #12355/#12395/#5904.

When EndRead() is called with a null "inner" IAsyncResult, then
we should not consider this as an end-of-stream condition.

This happens sometimes when using SSL and chunked encoding.

11 years agoAdd more argument checks to RegisterWaitForSingleObject
Marek Safar [Sat, 25 May 2013 08:21:56 +0000 (10:21 +0200)]
Add more argument checks to RegisterWaitForSingleObject

11 years agoMerge pull request #648 from DavidKarlas/defaultDependcyObject
Marek Safar [Sat, 25 May 2013 06:57:57 +0000 (23:57 -0700)]
Merge pull request #648 from DavidKarlas/defaultDependcyObject

DependencyObject default value

11 years agoforgot to add new source to .sources.
Atsushi Eno [Fri, 24 May 2013 23:02:46 +0000 (08:02 +0900)]
forgot to add new source to .sources.

11 years ago[xbuild]: Fix conditions for <ItemGroup> inside <Target>.
Martin Baulig [Fri, 24 May 2013 22:41:20 +0000 (00:41 +0200)]
[xbuild]: Fix conditions for <ItemGroup> inside <Target>.

11 years agoUse IKVM.Reflection to fully avoid reflection+mscorlib issues.
Atsushi Eno [Fri, 24 May 2013 22:09:05 +0000 (07:09 +0900)]
Use IKVM.Reflection to fully avoid reflection+mscorlib issues.

11 years agoMerge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/65d8d68...
Zoltan Varga [Fri, 24 May 2013 21:41:39 +0000 (23:41 +0200)]
Merge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/65d8d68e8c81cf6adb1076de7a9425c84cab86a3.

11 years ago[PCL]: Add missing type-forwarder for System.String to System.Runtime.
Martin Baulig [Fri, 24 May 2013 21:20:31 +0000 (23:20 +0200)]
[PCL]: Add missing type-forwarder for System.String to System.Runtime.

11 years ago[sdb] Fix race condition on test program that would cause a hang when running on...
Rodrigo Kumpera [Fri, 24 May 2013 19:47:37 +0000 (15:47 -0400)]
[sdb] Fix race condition on test program that would cause a hang when running on wrench.

11 years agothe previous change was #fail, the string constants were regarded as preprocessor...
Atsushi Eno [Fri, 24 May 2013 19:31:19 +0000 (04:31 +0900)]
the previous change was #fail, the string constants were regarded as preprocessor directives.

11 years agoadd include-less build for XamAndroid.
Atsushi Eno [Fri, 24 May 2013 19:28:19 +0000 (04:28 +0900)]
add include-less build for XamAndroid.

11 years agoPut back the tests, we were trying to track down the regressions
Miguel de Icaza [Fri, 24 May 2013 19:20:50 +0000 (15:20 -0400)]
Put back the tests, we were trying to track down the regressions

11 years agoDocument --break with generic methods
Miguel de Icaza [Wed, 8 May 2013 18:00:54 +0000 (14:00 -0400)]
Document --break with generic methods

11 years agoDependencyProperty of DependencyObject was trowing KeyNotFound exception instead...
David Karlaš [Fri, 24 May 2013 18:53:17 +0000 (20:53 +0200)]
DependencyProperty of DependencyObject was trowing KeyNotFound exception instead of default value

11 years ago[System.Drawing]: Disable more broken tests.
Martin Baulig [Fri, 24 May 2013 18:16:04 +0000 (20:16 +0200)]
[System.Drawing]: Disable more broken tests.

11 years agoRefactor the [D|R]SACryptoServiceProvider constructors so it's possible for the linke...
Sebastien Pouliot [Fri, 24 May 2013 14:30:45 +0000 (10:30 -0400)]
Refactor the [D|R]SACryptoServiceProvider constructors so it's possible for the linker to remove the dependency on the XML parser when CspParameters are not used (saves 42KB)

11 years agoAdd some missing MSBuild project model evaluation members.
Atsushi Eno [Fri, 24 May 2013 02:54:40 +0000 (11:54 +0900)]
Add some missing MSBuild project model evaluation members.

11 years agoAdd missing MSBuild Framework interface.
Atsushi Eno [Fri, 24 May 2013 02:24:26 +0000 (11:24 +0900)]
Add missing MSBuild Framework interface.