mono.git
9 years agoMerge pull request #1510 from BrzVlad/fix-file-map
Rodrigo Kumpera [Wed, 28 Jan 2015 20:18:19 +0000 (14:18 -0600)]
Merge pull request #1510 from BrzVlad/fix-file-map

Fix file map

9 years agoMerge pull request #1527 from ludovic-henry/master
Mark Probst [Wed, 28 Jan 2015 18:12:50 +0000 (10:12 -0800)]
Merge pull request #1527 from ludovic-henry/master

[runtime] Generate binary protocol functions and structure with macro

9 years ago[mini] Add atomic load/store instructions for float/double.
Alex Rønne Petersen [Wed, 28 Jan 2015 17:28:40 +0000 (18:28 +0100)]
[mini] Add atomic load/store instructions for float/double.

9 years ago[mini] Lower atomic load/store instruction sizes on ARM.
Alex Rønne Petersen [Wed, 28 Jan 2015 17:27:02 +0000 (18:27 +0100)]
[mini] Lower atomic load/store instruction sizes on ARM.

9 years ago[mini] Fix some warnings.
Alex Rønne Petersen [Wed, 28 Jan 2015 17:26:21 +0000 (18:26 +0100)]
[mini] Fix some warnings.

9 years ago[runtime] Fixed mono_dl_open_file to work in Android.
João Matos [Wed, 28 Jan 2015 17:03:33 +0000 (17:03 +0000)]
[runtime] Fixed mono_dl_open_file to work in Android.

9 years ago[runtime] Generate binary protocol functions and structure with macro
Ludovic Henry [Fri, 23 Jan 2015 16:25:51 +0000 (11:25 -0500)]
[runtime] Generate binary protocol functions and structure with macro

You just have to edit mono/metadata/sgen-protocol-def.h to generate a new binary protocol entry type

9 years ago[symbolicate] Added symbolicate.expected.
Marcos Henrich [Wed, 28 Jan 2015 16:24:43 +0000 (16:24 +0000)]
[symbolicate] Added symbolicate.expected.
The added file Test/symbolicate.expected contains the value that we expect to find in Test/out/symbolicate.out.
make check now uses Test/symbolicate.expected.

9 years ago[runtime] Duplicated instructions OP_IL_SEQ_POINT are now removed.
Marcos Henrich [Wed, 28 Jan 2015 16:17:04 +0000 (16:17 +0000)]
[runtime] Duplicated instructions OP_IL_SEQ_POINT are now removed.
Sequences of OP_IL_SEQ_POINT instructions are now reduced to only the instruction.
This removes about half of the generated sequence point instructions.

9 years ago[System.Core] More reference sources
Marek Safar [Wed, 28 Jan 2015 15:29:41 +0000 (16:29 +0100)]
[System.Core] More reference sources

9 years ago[corlib] Move Aes.cs to corlib
Marek Safar [Wed, 28 Jan 2015 14:35:57 +0000 (15:35 +0100)]
[corlib] Move Aes.cs to corlib

9 years ago[system.core] Profiles cleanup
Marek Safar [Wed, 28 Jan 2015 14:33:09 +0000 (15:33 +0100)]
[system.core] Profiles cleanup

9 years ago[corlib] Move TimeZoneInfo source files to assembly they are used
Marek Safar [Wed, 28 Jan 2015 12:36:55 +0000 (13:36 +0100)]
[corlib] Move TimeZoneInfo source files to assembly they are used

9 years ago[system.core] Cleanup TimeZoneInfo ifdefs
Marek Safar [Wed, 28 Jan 2015 12:32:54 +0000 (13:32 +0100)]
[system.core] Cleanup TimeZoneInfo ifdefs

9 years ago[msvc] Updated runtime project files.
João Matos [Wed, 28 Jan 2015 15:09:14 +0000 (15:09 +0000)]
[msvc] Updated runtime project files.

9 years ago[runtime] Windows build fixes.
João Matos [Wed, 28 Jan 2015 15:07:17 +0000 (15:07 +0000)]
[runtime] Windows build fixes.

9 years ago[mini] Fix a few cases where incorrect vreg types were being allocated for intrinsics.
Alex Rønne Petersen [Wed, 28 Jan 2015 13:34:37 +0000 (14:34 +0100)]
[mini] Fix a few cases where incorrect vreg types were being allocated for intrinsics.

9 years ago[mini] Fix stack type for atomic intrinsics involving IntPtr.
Alex Rønne Petersen [Wed, 28 Jan 2015 13:24:04 +0000 (14:24 +0100)]
[mini] Fix stack type for atomic intrinsics involving IntPtr.

9 years ago[mono-api-html] Take arity into account when comparing methods.
Rolf Bjarne Kvinge [Wed, 28 Jan 2015 12:44:18 +0000 (13:44 +0100)]
[mono-api-html] Take arity into account when comparing methods.

Fixes a crash when there are two methods overloaded by arity:

System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[XElement] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2371
  at System.Linq.Enumerable.SingleOrDefault[XElement] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2445
  at Xamarin.ApiDiff.MemberComparer.Find (IEnumerable`1 target) [0x00019] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:72
  at Xamarin.ApiDiff.MemberComparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x0003c] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:83
  at Xamarin.ApiDiff.MemberComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x000a2] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:55
  at Xamarin.ApiDiff.ClassComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0005b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:210
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.ClassComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:67
  at Xamarin.ApiDiff.NamespaceComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0001a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:75
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.NamespaceComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:49
  at Xamarin.ApiDiff.AssemblyComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0002b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:70
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.AssemblyComparer.Compare () [0x0004a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:50
  at Xamarin.ApiDiff.Program.Main (System.String[] args) [0x00328] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ApiDiff.cs:164

9 years ago[mini] Recognize and optimize Thread.VolatileRead ()/VolatileWrite ().
Alex Rønne Petersen [Wed, 28 Jan 2015 12:30:57 +0000 (13:30 +0100)]
[mini] Recognize and optimize Thread.VolatileRead ()/VolatileWrite ().

9 years ago[mini] Recognize and optimize the new 4-parameter CAS overload.
Alex Rønne Petersen [Wed, 28 Jan 2015 10:56:04 +0000 (11:56 +0100)]
[mini] Recognize and optimize the new 4-parameter CAS overload.

9 years ago[corlib] Add a new generated test file to .gitignore.
Alex Rønne Petersen [Wed, 28 Jan 2015 10:43:13 +0000 (11:43 +0100)]
[corlib] Add a new generated test file to .gitignore.

9 years agoMissing bracket from 8b10cef3
Jo Shields [Wed, 28 Jan 2015 10:50:32 +0000 (10:50 +0000)]
Missing bracket from 8b10cef3

9 years ago[mdoc] update expected delegate exceptions
Marek Safar [Wed, 28 Jan 2015 09:06:48 +0000 (10:06 +0100)]
[mdoc] update expected delegate exceptions

9 years ago[amd64] Add 32bit fp codegen macros.
Zoltan Varga [Wed, 28 Jan 2015 01:25:33 +0000 (20:25 -0500)]
[amd64] Add 32bit fp codegen macros.

9 years ago[runtime] Cleanup networking init/shutdown code.
Rodrigo Kumpera [Tue, 27 Jan 2015 23:35:38 +0000 (18:35 -0500)]
[runtime] Cleanup networking init/shutdown code.

9 years ago[utils] Cleanup the dynamic loading code and split the platform specific code into...
Rodrigo Kumpera [Tue, 27 Jan 2015 22:58:19 +0000 (17:58 -0500)]
[utils] Cleanup the dynamic loading code and split the platform specific code into multiple files.

This makes the actual code much simpler to read and work with as we can clearly see what's done on each
target.

9 years agoMerge pull request #1530 from StephenMcConnel/bug-26478
Zoltan Varga [Tue, 27 Jan 2015 21:47:24 +0000 (16:47 -0500)]
Merge pull request #1530 from StephenMcConnel/bug-26478

Fix TextBox display to handle kerning fonts

9 years agoFix TextBox display to handle kerning fonts
Stephen McConnel [Tue, 27 Jan 2015 21:40:11 +0000 (15:40 -0600)]
Fix TextBox display to handle kerning fonts

Many fonts, including the default DejaVu Sans, use kerning between
certain character pairs.  This resulted in garbled or even invisible
display during typing of strings with a lot of kerning going on.  An
attempt is made to retain the current speed-optimized implementation
while using accurate, slower string width measurements when needed.
See https://bugzilla.xamarin.com/show_bug.cgi?id=26478 for details.

9 years ago[symbolicate] Makefile fixes.
Marcos Henrich [Tue, 27 Jan 2015 18:53:38 +0000 (18:53 +0000)]
[symbolicate] Makefile fixes.

9 years agoAdd tools/symbolicate to the build.
Zoltan Varga [Tue, 27 Jan 2015 18:49:21 +0000 (13:49 -0500)]
Add tools/symbolicate to the build.

9 years ago[corlib] Remove redundant checks from delegate::combine
Marek Safar [Tue, 27 Jan 2015 18:46:17 +0000 (19:46 +0100)]
[corlib] Remove redundant checks from delegate::combine

9 years ago[sdb] Avoid errors when a vtype method is invoked with the InvokeOptions.Virtual...
Zoltan Varga [Tue, 27 Jan 2015 18:09:59 +0000 (13:09 -0500)]
[sdb] Avoid errors when a vtype method is invoked with the InvokeOptions.Virtual flag set.

9 years ago[mcs] Fix type inference fixing to filter all candidates
Marek Safar [Tue, 27 Jan 2015 17:50:56 +0000 (18:50 +0100)]
[mcs] Fix type inference fixing to filter all candidates

9 years agoMerge pull request #1529 from alistair/xmlreader_read_to_next_sibling_bug
Atsushi Eno [Tue, 27 Jan 2015 17:04:26 +0000 (01:04 +0800)]
Merge pull request #1529 from alistair/xmlreader_read_to_next_sibling_bug

XmlReader.ReadToNextSibling(string) doesn't match .net behaviour

9 years agoRevert referencesource change from 9ac4b5b7a7062fd0b3d26e3bd0c9d426be904fc3
Marek Safar [Tue, 27 Jan 2015 16:58:07 +0000 (17:58 +0100)]
Revert referencesource change from 9ac4b5b7a7062fd0b3d26e3bd0c9d426be904fc3

9 years agoRevert to broken scope reference indexing
Marek Safar [Tue, 27 Jan 2015 16:57:33 +0000 (17:57 +0100)]
Revert to broken scope reference indexing

9 years ago[symbolicate] Added target check to Makefile.
Marcos Henrich [Tue, 27 Jan 2015 15:52:04 +0000 (15:52 +0000)]
[symbolicate] Added target check to Makefile.
Target check verifies that symbolicate is capable of returning a debug stacktrace from a release stackframe.

9 years agoUnit test for reproduction of XmlReader.ReadToNextSibling behaviour
Alistair Bush [Tue, 27 Jan 2015 15:17:52 +0000 (04:17 +1300)]
Unit test for reproduction of XmlReader.ReadToNextSibling behaviour

9 years agoUpdate ikvm
Marek Safar [Tue, 27 Jan 2015 15:07:09 +0000 (16:07 +0100)]
Update ikvm

9 years ago[runtime] Fixed MONO_STRUCT_OFFSET to work with non-cross builds.
João Matos [Tue, 27 Jan 2015 15:03:55 +0000 (15:03 +0000)]
[runtime] Fixed MONO_STRUCT_OFFSET to work with non-cross builds.

9 years ago[corlib] Switch to reference source System.Threading.SpinLock.
Alex Rønne Petersen [Tue, 27 Jan 2015 11:10:42 +0000 (12:10 +0100)]
[corlib] Switch to reference source System.Threading.SpinLock.

9 years ago[mini] Make intrinsic method signature checks more robust.
Alex Rønne Petersen [Tue, 27 Jan 2015 10:57:46 +0000 (11:57 +0100)]
[mini] Make intrinsic method signature checks more robust.

This is so we can avoid miscompiling things left and right
when new overloads are added. For example, before this patch,
we miscompiled the new 4-parameter CAS () overload.

9 years agotest_op_il_seq_point.sh now properly generates tmp files.
Marcos Henrich [Tue, 27 Jan 2015 10:59:14 +0000 (10:59 +0000)]
test_op_il_seq_point.sh now properly generates tmp files.

9 years agotest_op_il_seq_point.sh now calls mono with option --compile-all=1
Marcos Henrich [Tue, 27 Jan 2015 09:22:14 +0000 (09:22 +0000)]
test_op_il_seq_point.sh now calls mono with option --compile-all=1
Calling mono with flag --compile-all=1 avoids running the code and possible stdout problems and it also compiles every method.
As test_op_il_seq_point.sh now only compiles it is now capable of testing libraries and executables that are expecting parameters.

9 years ago[corlib] Wait for tasks to finish in some Tasks tests to prevent races between tests.
Zoltan Varga [Tue, 27 Jan 2015 00:59:06 +0000 (19:59 -0500)]
[corlib] Wait for tasks to finish in some Tasks tests to prevent races between tests.

9 years agoWhen map size is 0, use the aligned size of the file.
Vlad Brezae [Thu, 15 Jan 2015 23:56:17 +0000 (15:56 -0800)]
When map size is 0, use the aligned size of the file.

As MS does.

9 years agoFail on mappings that exceed the file size.
Vlad Brezae [Thu, 15 Jan 2015 23:52:44 +0000 (15:52 -0800)]
Fail on mappings that exceed the file size.

As MS does.

9 years agoFix handling of mappings over file size.
Vlad Brezae [Thu, 15 Jan 2015 21:59:45 +0000 (13:59 -0800)]
Fix handling of mappings over file size.

Add tests.

9 years agoFix truncation of newly created map files.
Vlad Brezae [Thu, 15 Jan 2015 01:56:25 +0000 (17:56 -0800)]
Fix truncation of newly created map files.

File truncation could skip due to the fact that st_size field is only initialized for already existing files.

9 years ago[sdb] Avoid errors when a static method is invoked with the InvokeOptions.Virtual...
Zoltan Varga [Mon, 26 Jan 2015 22:59:27 +0000 (17:59 -0500)]
[sdb] Avoid errors when a static method is invoked with the InvokeOptions.Virtual flag set.

9 years ago[runtime] Check for sigaction been present when trying to use signals.
Rodrigo Kumpera [Mon, 26 Jan 2015 21:30:34 +0000 (16:30 -0500)]
[runtime] Check for sigaction been present when trying to use signals.

9 years ago[utils] Explicitly check if the system has mincore instead of relying on mmap been...
Rodrigo Kumpera [Mon, 26 Jan 2015 21:29:51 +0000 (16:29 -0500)]
[utils] Explicitly check if the system has mincore instead of relying on mmap been present.

9 years ago[runtime] Add infrastructure code for getting/setting Thread.Priority.
Zoltan Varga [Mon, 26 Jan 2015 20:13:35 +0000 (15:13 -0500)]
[runtime] Add infrastructure code for getting/setting Thread.Priority.

9 years ago[runtime] Introduce MonoError into mono_metadata_parse_method_signature_full.
Rodrigo Kumpera [Mon, 26 Jan 2015 19:50:36 +0000 (14:50 -0500)]
[runtime] Introduce MonoError into mono_metadata_parse_method_signature_full.

9 years agoFix loader error <> MonoError interop.
Rodrigo Kumpera [Mon, 26 Jan 2015 19:26:04 +0000 (14:26 -0500)]
Fix loader error <> MonoError interop.

9 years ago[corlib] Report constructor ContainsGenericParameters by inspecting parent type....
Marek Safar [Mon, 26 Jan 2015 17:12:00 +0000 (18:12 +0100)]
[corlib] Report constructor ContainsGenericParameters by inspecting parent type. Fixes #26412

9 years agoUpdate reference sources to correctly fix #26375
Marek Safar [Mon, 26 Jan 2015 16:41:53 +0000 (17:41 +0100)]
Update reference sources to correctly fix #26375

9 years ago[runtime] Use MonoBoolean in icall signature, not gboolean.
Alex Rønne Petersen [Mon, 26 Jan 2015 16:14:11 +0000 (17:14 +0100)]
[runtime] Use MonoBoolean in icall signature, not gboolean.

9 years ago[runtime] Fixed the iOS build.
João Matos [Mon, 26 Jan 2015 14:34:45 +0000 (14:34 +0000)]
[runtime] Fixed the iOS build.

Failure caused by https://github.com/mono/mono/commit/2f1b464beb14a1b6b6099a03fc332493293bef35.

```
../../../../../mono/mono/utils/mono-proclib.c:104:8: error: use of undeclared identifier 'errno'
                        if (errno != ENOMEM)
                            ^
../../../../../mono/mono/utils/mono-proclib.c:104:17: error: use of undeclared identifier 'ENOMEM'
                        if (errno != ENOMEM)
```

9 years agoPartial revert of "Fixes mobile build"
João Matos [Mon, 26 Jan 2015 14:20:38 +0000 (14:20 +0000)]
Partial revert of "Fixes mobile build"

This reverts commit 4d3877d23ba88a772d2d4dacb380c02a15495e55.

We cannot remove this file as the build logic is expecting it since we override it from mono-extensions.

```System/Guid.cs(42,7): error CS0246: The type or namespace name `Crimson' could not be found. Are you missing an assembly reference?```

9 years agoRevert corlib changes from 268627a68bc080d62df2a68757d29e6363366598
Marek Safar [Mon, 26 Jan 2015 14:50:58 +0000 (15:50 +0100)]
Revert corlib changes from 268627a68bc080d62df2a68757d29e6363366598

9 years ago[mcs] Emit catch scope with correct start offset. Also fixes local variable scope...
Marek Safar [Mon, 26 Jan 2015 14:42:56 +0000 (15:42 +0100)]
[mcs] Emit catch scope with correct start offset. Also fixes local variable scope index reference. Fixes #25358

9 years agoFixup for 2644152b069e12d16f4911c3a1c3602e1b31e38d.
Alex Rønne Petersen [Mon, 26 Jan 2015 13:11:20 +0000 (14:11 +0100)]
Fixup for 2644152b069e12d16f4911c3a1c3602e1b31e38d.

Accidentally committed an incomplete patch.

9 years agoMerge pull request #1521 from esdrubal/fshandle
Marek Safar [Mon, 26 Jan 2015 12:46:05 +0000 (13:46 +0100)]
Merge pull request #1521 from esdrubal/fshandle

[corlib] FileStream now uses SafeFileHandle.

9 years ago[corlib] FileStream now uses SafeFileHandle.
Marcos Henrich [Fri, 23 Jan 2015 15:48:56 +0000 (15:48 +0000)]
[corlib] FileStream now uses SafeFileHandle.
FileStream now stores a SafeFileHandle instead of a IntPtr handle.
Added ObjectDisposedException to more methods.

9 years ago[corlib] Changed some MonoIO methods to use SafeHandle.
Marcos Henrich [Fri, 23 Jan 2015 15:44:22 +0000 (15:44 +0000)]
[corlib] Changed some MonoIO methods to use SafeHandle.

9 years ago[System] Fixed mobile build.
João Matos [Mon, 26 Jan 2015 12:02:14 +0000 (12:02 +0000)]
[System] Fixed mobile build.

9 years agoMerge pull request #1525 from akoeplinger/fix-dynamicdata-test
Jo Shields [Mon, 26 Jan 2015 10:31:36 +0000 (10:31 +0000)]
Merge pull request #1525 from akoeplinger/fix-dynamicdata-test

[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test

9 years agoRevert "[runtime] Fix getting main thread's stack size with musl."
Alex Rønne Petersen [Mon, 26 Jan 2015 06:11:51 +0000 (07:11 +0100)]
Revert "[runtime] Fix getting main thread's stack size with musl."

This reverts commit 67d84faecb6e8346d827cc19f4a8535ba3646e9d.

This is not enough on its own to fix sigaltstack support with musl.

9 years ago[runtime] Fix getting main thread's stack size with musl.
Alex Rønne Petersen [Sun, 25 Jan 2015 15:14:23 +0000 (16:14 +0100)]
[runtime] Fix getting main thread's stack size with musl.

See the code for an explanation of this mess.

9 years ago[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
Alexander Köplinger [Sun, 25 Jan 2015 14:05:16 +0000 (15:05 +0100)]
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test

It started failing when code from MS referencesource was imported.
I checked on MS.NET and the list of attributes is now the same on Mono
(except an additional __DynamicallyInvokableAttribute on MS.NET).

9 years ago[runtime] Fix build when using musl libc.
Alex Rønne Petersen [Sun, 25 Jan 2015 07:30:10 +0000 (08:30 +0100)]
[runtime] Fix build when using musl libc.

9 years agoMerge pull request #1522 from StephenMcConnel/bug-26258
Zoltan Varga [Sun, 25 Jan 2015 03:10:10 +0000 (22:10 -0500)]
Merge pull request #1522 from StephenMcConnel/bug-26258

Fix occasional rendering problem in TextBoxes

9 years ago[runtime] Avoid failures in Process.GetProcesses () when the number of processes...
Zoltan Varga [Sun, 25 Jan 2015 02:14:53 +0000 (21:14 -0500)]
[runtime] Avoid failures in Process.GetProcesses () when the number of processes is above 400. Fixes #26382.

9 years ago[runtime] Allow spaces after commas in generic instances passed in Type.GetType ...
Zoltan Varga [Sun, 25 Jan 2015 00:22:54 +0000 (19:22 -0500)]
[runtime] Allow spaces after commas in generic instances passed in Type.GetType (). Fixes #26384.

9 years ago[jit] Properly inflate method signatures used in CEE_NEWOBJ opcodes. Fixes #26346.
Zoltan Varga [Sun, 25 Jan 2015 00:11:07 +0000 (19:11 -0500)]
[jit] Properly inflate method signatures used in CEE_NEWOBJ opcodes. Fixes #26346.

9 years agoFixes mobile build
Marek Safar [Sat, 24 Jan 2015 08:24:53 +0000 (09:24 +0100)]
Fixes mobile build

9 years ago[mini] Fix setting stack type for some atomic instructions.
Alex Rønne Petersen [Sat, 24 Jan 2015 07:45:33 +0000 (08:45 +0100)]
[mini] Fix setting stack type for some atomic instructions.

Fixes some assertion failures introduced by 78141114e30e51362a7fd7f51d689af6858d367c.

9 years agoFix the build.
Zoltan Varga [Sat, 24 Jan 2015 01:13:05 +0000 (20:13 -0500)]
Fix the build.

9 years ago[mini] Implement OP_MEMORY_BARRIER on MIPS.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:16:24 +0000 (08:16 +0100)]
[mini] Implement OP_MEMORY_BARRIER on MIPS.

9 years ago[mini] Fix CAS atomic ordering under LLVM.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:14:18 +0000 (08:14 +0100)]
[mini] Fix CAS atomic ordering under LLVM.

AcquireRelease [0] and SequentiallyConsistent [1] are not equivalent.

[0] http://llvm.org/docs/Atomics.html#acquirerelease
[1] http://llvm.org/docs/Atomics.html#sequentiallyconsistent

9 years ago[mini] Add atomic load/store instruction definitions for ARM64.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:18:21 +0000 (08:18 +0100)]
[mini] Add atomic load/store instruction definitions for ARM64.

9 years ago[mini] Implement atomic load/store instructions on ARM.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:58 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on ARM.

9 years ago[mini] Implement atomic load/store instructions on x86.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:35 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on x86.

9 years ago[mini] Implement atomic load/store instructions on AMD64.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:08 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on AMD64.

9 years ago[mini] Implement atomic load/store opcodes in the LLVM backend.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:13:00 +0000 (08:13 +0100)]
[mini] Implement atomic load/store opcodes in the LLVM backend.

Requires a newer Mono LLVM fork and is only enabled on MONO_API_VERSION >= 4.

9 years ago[mini] Add new atomic load/store opcodes with acq/rel/seq semantics.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:06:14 +0000 (08:06 +0100)]
[mini] Add new atomic load/store opcodes with acq/rel/seq semantics.

These are emitted by recognizing Interlocked and Volatile methods. They allow
us to generate more efficient instruction sequences on certain architectures
(e.g. ARM64 which has specialized load-acquire and store-release instructions).

9 years ago[mini] Also match Interlocked.Exchange<T> () in mono_method_to_ir ().
Alex Rønne Petersen [Thu, 22 Jan 2015 06:55:19 +0000 (07:55 +0100)]
[mini] Also match Interlocked.Exchange<T> () in mono_method_to_ir ().

9 years ago[mini] Memory barrier fixes, simplifications, and optimizations.
Alex Rønne Petersen [Thu, 22 Jan 2015 06:16:08 +0000 (07:16 +0100)]
[mini] Memory barrier fixes, simplifications, and optimizations.

* Barrier semantics is now specified as acquire, release, and sequentially
  consistent. This is in line with CIL/.NET semantics and also maps better to
  LLVM's fence types.
* Use the mfence instruction for memory barriers on AMD64 as it's smaller
  (and presumably also faster).
* We now emit specific barriers when using LLVM instead of always emitting
  sequentially consistent barriers.
* Barriers emitted for the CIL volatile prefix instruction are now more
  specific instead of always being sequentially consistent.
* Fixed emission of CEE_MONO_MEMORY_BARRIER in SGen's managed allocators. For
  some reason (that I haven't had time to look into), mono_mb_emit_op ()
  clobbers the barrier kind operand. This meant that in many cases we ended
  up not actually emitting any barriers because the switches in the backends
  didn't handle the clobbered values. mono_mb_emit_i4 () seems to work.
* Fixed handling of CEE_MONO_MEMORY_BARRIER in mono_method_to_ir (). Since it's
  a custom opcode, the opcode is actually 2 bytes long. Another source of
  barriers not actually being emitted.

9 years agoAdd an internal Interlocked.CompareExchange () icall overload needed by MS BCL.
Alex Rønne Petersen [Thu, 22 Jan 2015 06:04:13 +0000 (07:04 +0100)]
Add an internal Interlocked.CompareExchange () icall overload needed by MS BCL.

9 years agoBump referencesource to un-break Xamarin Studio.
Martin Baulig [Fri, 23 Jan 2015 23:36:55 +0000 (00:36 +0100)]
Bump referencesource to un-break Xamarin Studio.

See https://bugzilla.xamarin.com/show_bug.cgi?id=26375.

9 years ago[runtime] Get Mono's LLVM API version from the LLVM repo when cross compiling.
João Matos [Fri, 23 Jan 2015 16:46:11 +0000 (16:46 +0000)]
[runtime] Get Mono's LLVM API version from the LLVM repo when cross compiling.

The previous code was hardcoding Mono's LLVM API version which was less than ideal. The API has been bumped twice since without this being updated.

This depends on a recent Mono LLVM version, at least https://github.com/mono/llvm/commit/607aeaae423da73e6ddfe49af4741fa1bc5f9e78.

9 years ago[mini] Include signal.h in mini.c.
João Matos [Fri, 23 Jan 2015 16:40:42 +0000 (16:40 +0000)]
[mini] Include signal.h in mini.c.

This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd.

Error:

```
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6645:31: note: each undeclared identifier is reported only once for each function it appears in
/Users/joao/Dev/droid/mono/mono/mini/mini.c: In function 'mono_sigsegv_signal_handler':
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6704:31: error: 'SIGSEGV' undeclared (first use in this function)
   mono_handle_native_sigsegv (SIGSEGV, ctx, info);
```

9 years ago[runtime] Check for signal.h when targeting Win32.
João Matos [Fri, 23 Jan 2015 16:40:07 +0000 (16:40 +0000)]
[runtime] Check for signal.h when targeting Win32.

This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd.

9 years agoRevert "[System] Remove network interface operational status test."
Marek Safar [Fri, 23 Jan 2015 12:46:49 +0000 (13:46 +0100)]
Revert "[System] Remove network interface operational status test."

This reverts commit 519582150d1fdebd48863175fec759238531b751.

9 years ago[corlib] Add more tests
Marek Safar [Fri, 23 Jan 2015 12:46:00 +0000 (13:46 +0100)]
[corlib] Add more tests

9 years ago[System] Remove network interface operational status test.
João Matos [Fri, 23 Jan 2015 12:38:41 +0000 (12:38 +0000)]
[System] Remove network interface operational status test.

This test is proving to be problematic since the status of interfaces can be different on OSs.

9 years agoFixes 579084d1f760ebb0998d1e670bc4f8498a422213 commit
Marek Safar [Fri, 23 Jan 2015 12:21:15 +0000 (13:21 +0100)]
Fixes 579084d1f760ebb0998d1e670bc4f8498a422213 commit

9 years ago[corlib] Increase timeout of failing test
Marek Safar [Fri, 23 Jan 2015 10:45:42 +0000 (11:45 +0100)]
[corlib] Increase timeout of failing test