mono.git
9 years agoBump referencesource to disable CAS calls on System.Componentmodel.TypeDescriptor...
Sebastien Pouliot [Fri, 30 Jan 2015 00:58:45 +0000 (19:58 -0500)]
Bump referencesource to disable CAS calls on System.Componentmodel.TypeDescriptor [#26554]

9 years ago[mini] Fix Enum.HasFlag () intrinsic emitting a bad OP_LCEQ on 32-bit.
Alex Rønne Petersen [Thu, 29 Jan 2015 23:55:49 +0000 (00:55 +0100)]
[mini] Fix Enum.HasFlag () intrinsic emitting a bad OP_LCEQ on 32-bit.

9 years agoFix the dreg op the long_ccc instructions, those instructions return ints.
Zoltan Varga [Fri, 30 Jan 2015 00:09:36 +0000 (19:09 -0500)]
Fix the dreg op the long_ccc instructions, those instructions return ints.

9 years agoMerge pull request #1537 from evincarofautumn/color-binprot
Mark Probst [Thu, 29 Jan 2015 22:09:14 +0000 (14:09 -0800)]
Merge pull request #1537 from evincarofautumn/color-binprot

Add color mode to sgen-grep-binprot.

9 years ago[runtime] Add color mode to sgen-grep-binprot.
Jon Purdy [Thu, 29 Jan 2015 21:11:19 +0000 (13:11 -0800)]
[runtime] Add color mode to sgen-grep-binprot.

When searching for a pointer with '--color' or '-c', the field in a
protocol entry that matched will be highlighted; when searching for
multiple pointers, they will be highlighted in different colors
according to their order on the command line. When highlighting more
than six pointers, colors will be reused.

9 years ago[runtime] Fix incorrect labels in sgen-grep-binprot output.
Jon Purdy [Thu, 29 Jan 2015 20:50:10 +0000 (12:50 -0800)]
[runtime] Fix incorrect labels in sgen-grep-binprot output.

9 years agoAdd more detail
Miguel de Icaza [Thu, 29 Jan 2015 20:39:59 +0000 (15:39 -0500)]
Add more detail

9 years ago[lldb] Document and install the mono.py file for LLDB
Miguel de Icaza [Thu, 29 Jan 2015 20:33:37 +0000 (15:33 -0500)]
[lldb] Document and install the mono.py file for LLDB

9 years agoFix a warning.
Zoltan Varga [Thu, 29 Jan 2015 20:29:28 +0000 (15:29 -0500)]
Fix a warning.

9 years ago[mini] Fix decomposition of long opcodes in VolatileRead ()/VolatileWrite () intrinsics.
Alex Rønne Petersen [Thu, 29 Jan 2015 15:08:30 +0000 (16:08 +0100)]
[mini] Fix decomposition of long opcodes in VolatileRead ()/VolatileWrite () intrinsics.

9 years agoOptimize Enum.HasFlag () implementation and recognize it in the JIT.
Alex Rønne Petersen [Thu, 29 Jan 2015 00:17:14 +0000 (01:17 +0100)]
Optimize Enum.HasFlag () implementation and recognize it in the JIT.

The previous implementation did a ton of reflection and boxing making
it about 4x slower than it should be. This new (native) implementation
simply memcpy ()s the values out of the Enum objects and then does the
bitwise AND.

In addition, the JIT now recognizes this common IL pattern:

<push int or long ptr>
<push int or long>
box MyFlagsEnum
constrained. MyFlagsEnum
callvirt instace bool class [mscorlib] System.Enum::HasFlag (class [mscorlib] System.Enum)

This is generated from C# code such as:

MyFlagsEnum a = ..., b = ...;
a.HasFlag (b);

When the operand types of the `box` and `constrained.` instructions are
the same, we can skip all the slow stuff that HasFlag () normally does
and simply turn the whole thing into this IR:

<this> = loadi4_membase <this_ptr>
<temp> = int_and <this> <flag>
icompare <temp> <flag>
<result> = int_ceq

This is about 60x faster than the old HasFlag () without any JIT support
and about 15x faster than the new HasFlag () native implementation.

Also, added missing argument checks to HasFlag ().

9 years ago[build] Updated the class library MSBuild projects.
João Matos [Thu, 29 Jan 2015 17:01:11 +0000 (17:01 +0000)]
[build] Updated the class library MSBuild projects.

9 years agoMerge pull request #1536 from esdrubal/noreuse
Rodrigo Kumpera [Thu, 29 Jan 2015 16:15:05 +0000 (10:15 -0600)]
Merge pull request #1536 from esdrubal/noreuse

[runtime] MonoIO methods using SafeHandle now prevent handle reuse.

9 years ago[System.Core] Fixed interpreter build.
João Matos [Thu, 29 Jan 2015 16:11:29 +0000 (16:11 +0000)]
[System.Core] Fixed interpreter build.

9 years ago[FtpWebRequest] Add test for bug #26312, issue was fixed by bringing .NET's implement...
Miguel de Icaza [Thu, 29 Jan 2015 15:45:59 +0000 (10:45 -0500)]
[FtpWebRequest] Add test for bug #26312, issue was fixed by bringing .NET's implementation

9 years ago[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
Marcos Henrich [Thu, 29 Jan 2015 14:31:26 +0000 (14:31 +0000)]
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.

This reverts partially commit 753229c72dd9f2b63beb097700e350164b887c2.

Marshallers are not called for ICalls parameters so the change of ICalls parameters to SafeHandle did not prevents handle reuse.

To prevent handle reuse ICalls are no longer called directly.
Instead we call a method that receives a SafeHandle and wraps the ICall call with safeHandle.DangerousAddRef and safeHandle.DangerousReleaseRef.

This guarantees that the safe handle reference countererence does not reach zero before or while the ICall, thus avoiding the handle beeing released and possibly reused.

9 years ago[system.core] Fixes MT build
Marek Safar [Thu, 29 Jan 2015 14:54:28 +0000 (15:54 +0100)]
[system.core] Fixes MT build

9 years ago[symbolicate] Added tool README.
Marcos Henrich [Thu, 29 Jan 2015 13:11:56 +0000 (13:11 +0000)]
[symbolicate] Added tool README.

9 years ago[eglib] [io-layer] Have a single wrapper around getdtablesize. This removes the dupli...
Rodrigo Kumpera [Thu, 29 Jan 2015 01:27:17 +0000 (20:27 -0500)]
[eglib] [io-layer] Have a single wrapper around getdtablesize. This removes the duplicate on io-layer and exports the eglib one.

9 years ago[mdoc] More updates to expected test output.
Zoltan Varga [Thu, 29 Jan 2015 01:15:28 +0000 (20:15 -0500)]
[mdoc] More updates to expected test output.

9 years ago[mini] Prefer OP_ICEQ over OP_CEQ in i4 CAS intrinsics.
Alex Rønne Petersen [Thu, 29 Jan 2015 00:16:24 +0000 (01:16 +0100)]
[mini] Prefer OP_ICEQ over OP_CEQ in i4 CAS intrinsics.

9 years ago[arm64] Add tests for loading of sbyte/bool arguments passed on the stack.
Zoltan Varga [Wed, 28 Jan 2015 23:39:16 +0000 (18:39 -0500)]
[arm64] Add tests for loading of sbyte/bool arguments passed on the stack.

9 years ago[profiler] Report methods not found in async mode due to AOT.
Rodrigo Kumpera [Wed, 28 Jan 2015 23:15:21 +0000 (18:15 -0500)]
[profiler] Report methods not found in async mode due to AOT.

9 years ago[utils] Fix mono_dl_build_path termination logic.
Rodrigo Kumpera [Wed, 28 Jan 2015 23:09:07 +0000 (18:09 -0500)]
[utils] Fix mono_dl_build_path termination logic.

9 years ago[runtime] Fix appdomain loading event ordering.
Rodrigo Kumpera [Wed, 28 Jan 2015 21:34:19 +0000 (16:34 -0500)]
[runtime] Fix appdomain loading event ordering.

9 years agoPopulate the RequestingAssembly property of ResolveEventArgs
Kai Ruhnau [Tue, 27 Jan 2015 08:30:33 +0000 (09:30 +0100)]
Populate the RequestingAssembly property of ResolveEventArgs

9 years agoMerge pull request #1535 from StephenMcConnel/bug-26523
Zoltan Varga [Wed, 28 Jan 2015 22:54:38 +0000 (17:54 -0500)]
Merge pull request #1535 from StephenMcConnel/bug-26523

Fix the default behavior of ToolStripLayoutStyle.Table

9 years agoFix the default behavior of ToolStripLayoutStyle.Table
Stephen McConnel [Wed, 28 Jan 2015 22:52:40 +0000 (16:52 -0600)]
Fix the default behavior of ToolStripLayoutStyle.Table

This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26523.

9 years ago[mini] Add some missing atomic instructions to cpu-arm64.md.
Alex Rønne Petersen [Wed, 28 Jan 2015 22:48:04 +0000 (23:48 +0100)]
[mini] Add some missing atomic instructions to cpu-arm64.md.

9 years ago[runtime] Fix #26307 "Random crash due to threading issue in new threadpool heuristic...
Ludovic Henry [Wed, 28 Jan 2015 20:10:37 +0000 (15:10 -0500)]
[runtime] Fix #26307 "Random crash due to threading issue in new threadpool heuristics code"

By locking `threads_lock` before launching the thread, we guarantee that the thread is not going to remove itself from `threads` before we actually add it to `threads`.

9 years agoMerge pull request #1533 from jbevain/pdb2mdb-roslyn
Zoltan Varga [Wed, 28 Jan 2015 20:45:26 +0000 (15:45 -0500)]
Merge pull request #1533 from jbevain/pdb2mdb-roslyn

[pdb2mdb] Skip unknown pdb metadata

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[pdb2mdb] Skip unknown pdb metadata
Jb Evain [Wed, 28 Jan 2015 14:36:46 +0000 (15:36 +0100)]
[pdb2mdb] Skip unknown pdb metadata

This patch allows pdb2mdb to convert pdb files containing
metadata items emitted by the Roslyn compiler.

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.