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
Marek Safar [Tue, 27 Jan 2015 16:58:07 +0000 (17:58 +0100)]
Marek Safar [Tue, 27 Jan 2015 16:57:33 +0000 (17:57 +0100)]
Revert to broken scope reference indexing
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.
Alistair Bush [Tue, 27 Jan 2015 15:17:52 +0000 (04:17 +1300)]
Unit test for reproduction of XmlReader.ReadToNextSibling behaviour
Marek Safar [Tue, 27 Jan 2015 15:07:09 +0000 (16:07 +0100)]
Update ikvm
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.
Alex Rønne Petersen [Tue, 27 Jan 2015 11:10:42 +0000 (12:10 +0100)]
[corlib] Switch to reference source System.Threading.SpinLock.
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.
Marcos Henrich [Tue, 27 Jan 2015 10:59:14 +0000 (10:59 +0000)]
test_op_il_seq_point.sh now properly generates tmp files.
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.
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.
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.
Rodrigo Kumpera [Mon, 26 Jan 2015 21:30:34 +0000 (16:30 -0500)]
[runtime] Check for sigaction been present when trying to use signals.
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.
Zoltan Varga [Mon, 26 Jan 2015 20:13:35 +0000 (15:13 -0500)]
[runtime] Add infrastructure code for getting/setting Thread.Priority.
Rodrigo Kumpera [Mon, 26 Jan 2015 19:50:36 +0000 (14:50 -0500)]
[runtime] Introduce MonoError into mono_metadata_parse_method_signature_full.
Rodrigo Kumpera [Mon, 26 Jan 2015 19:26:04 +0000 (14:26 -0500)]
Fix loader error <> MonoError interop.
Marek Safar [Mon, 26 Jan 2015 17:12:00 +0000 (18:12 +0100)]
[corlib] Report constructor ContainsGenericParameters by inspecting parent type. Fixes #26412
Marek Safar [Mon, 26 Jan 2015 16:41:53 +0000 (17:41 +0100)]
Update reference sources to correctly fix #26375
Alex Rønne Petersen [Mon, 26 Jan 2015 16:14:11 +0000 (17:14 +0100)]
[runtime] Use MonoBoolean in icall signature, not gboolean.
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)
```
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?```
Marek Safar [Mon, 26 Jan 2015 14:50:58 +0000 (15:50 +0100)]
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
Alex Rønne Petersen [Mon, 26 Jan 2015 13:11:20 +0000 (14:11 +0100)]
Fixup for
2644152b069e12d16f4911c3a1c3602e1b31e38d.
Accidentally committed an incomplete patch.
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.
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.
Marcos Henrich [Fri, 23 Jan 2015 15:44:22 +0000 (15:44 +0000)]
[corlib] Changed some MonoIO methods to use SafeHandle.
João Matos [Mon, 26 Jan 2015 12:02:14 +0000 (12:02 +0000)]
[System] Fixed mobile build.
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
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.
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.
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).
Alex Rønne Petersen [Sun, 25 Jan 2015 07:30:10 +0000 (08:30 +0100)]
[runtime] Fix build when using musl libc.
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
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.
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.
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.
Marek Safar [Sat, 24 Jan 2015 08:24:53 +0000 (09:24 +0100)]
Fixes mobile build
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.
Zoltan Varga [Sat, 24 Jan 2015 01:13:05 +0000 (20:13 -0500)]
Fix the build.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:16:24 +0000 (08:16 +0100)]
[mini] Implement OP_MEMORY_BARRIER on MIPS.
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
Alex Rønne Petersen [Thu, 22 Jan 2015 07:18:21 +0000 (08:18 +0100)]
[mini] Add atomic load/store instruction definitions for ARM64.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:58 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on ARM.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:35 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on x86.
Alex Rønne Petersen [Thu, 22 Jan 2015 07:17:08 +0000 (08:17 +0100)]
[mini] Implement atomic load/store instructions on AMD64.
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.
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).
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 ().
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.
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.
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.
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.
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);
```
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.
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.
Marek Safar [Fri, 23 Jan 2015 12:46:00 +0000 (13:46 +0100)]
[corlib] Add more tests
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.
Marek Safar [Fri, 23 Jan 2015 12:21:15 +0000 (13:21 +0100)]
Marek Safar [Fri, 23 Jan 2015 10:45:42 +0000 (11:45 +0100)]
[corlib] Increase timeout of failing test
Marcos Henrich [Thu, 15 Jan 2015 15:08:38 +0000 (15:08 +0000)]
[corlib] Added tests for FileStream SafeHandle.
Marek Safar [Fri, 23 Jan 2015 10:23:10 +0000 (11:23 +0100)]
[system] Implement Android specific domain name. Fixes #26305
Marek Safar [Fri, 23 Jan 2015 10:08:28 +0000 (11:08 +0100)]
[system] Fixes failing test
Marek Safar [Fri, 23 Jan 2015 09:42:06 +0000 (10:42 +0100)]
Revert "[corlib] StringBuilder from reference sourcers"
This reverts commit
ef6b35a0090fcd709cc30af2b4a778fe2bc9fcfc.
Marek Safar [Thu, 22 Jan 2015 21:04:55 +0000 (21:04 +0000)]
[corlib] StringBuilder from reference sourcers
Zoltan Varga [Thu, 22 Jan 2015 23:44:14 +0000 (18:44 -0500)]
[sdb] Move the checking of the various debugger attributes to one function to make it easier to add support for DebuggerStepperBoundaryAttribute.
Martin Baulig [Thu, 22 Jan 2015 22:09:15 +0000 (23:09 +0100)]
[System]: Add new internal Socket APIs.
Zoltan Varga [Thu, 22 Jan 2015 21:42:56 +0000 (16:42 -0500)]
[runtime] Add a preliminary mono support mode for lldb. Currently, pretty printing some runtime types is supported.
Zoltan Varga [Thu, 22 Jan 2015 21:01:40 +0000 (16:01 -0500)]
[runtime] Use the new one parameter ctor to create RuntimeWrappedException objects.
Marek Safar [Thu, 22 Jan 2015 20:55:08 +0000 (15:55 -0500)]
[corlib] Remove current timezone specific tests
Marek Safar [Thu, 22 Jan 2015 20:33:14 +0000 (21:33 +0100)]
[Microsoft.Build.BuildEngine] Update failing test
Martin Baulig [Thu, 22 Jan 2015 18:51:10 +0000 (19:51 +0100)]
Bring Internal.cs, Logging.cs and _LoggingObject.cs.
Martin Baulig [Thu, 22 Jan 2015 19:00:38 +0000 (20:00 +0100)]
Fix KeyContainerPermission.SetFlags().
Martin Baulig [Thu, 22 Jan 2015 18:48:19 +0000 (19:48 +0100)]
Make TraceSource.GetSupportedAttributes() "protected internal".
Martin Baulig [Thu, 22 Jan 2015 18:47:15 +0000 (19:47 +0100)]
The class needs to be called `FriendAccessAllowedAttribute'.
Mark Probst [Thu, 22 Jan 2015 19:04:00 +0000 (14:04 -0500)]
[sgen] MONO_GC_DEBUG options to not run finalizers.
Stephen McConnel [Thu, 22 Jan 2015 18:26:42 +0000 (12:26 -0600)]
Fix occasional rendering problem in TextBoxes
See https://bugzilla.xamarin.com/show_bug.cgi?id=26258 for details.
Zoltan Varga [Thu, 22 Jan 2015 17:27:03 +0000 (12:27 -0500)]
Fix the build.
Zoltan Varga [Thu, 22 Jan 2015 17:20:26 +0000 (12:20 -0500)]
[runtime] Make RuntimeWrappedExceptions work with the new reference source version of RuntimeWrappedException.
Martin Baulig [Thu, 22 Jan 2015 16:21:24 +0000 (17:21 +0100)]
Merge pull request #1156 from felfert/master
Fixed Bug #21135 - Deadlock in WebConnectionStream
Marek Safar [Thu, 22 Jan 2015 16:03:55 +0000 (17:03 +0100)]
[corlib] referencesources update
Crisdut [Fri, 19 Dec 2014 19:37:01 +0000 (17:37 -0200)]
Add unit test for the bug #1849
Crisdut [Fri, 19 Dec 2014 03:37:05 +0000 (01:37 -0200)]
Fix the bug #1849
Marek Safar [Thu, 22 Jan 2015 15:05:17 +0000 (16:05 +0100)]
Remove unused files
Marek Safar [Thu, 22 Jan 2015 10:06:55 +0000 (11:06 +0100)]
[corlib] Calendars from reference sources
Marek Safar [Wed, 21 Jan 2015 13:23:48 +0000 (14:23 +0100)]
[corlib] generic collections from reference sources
Marek Safar [Thu, 22 Jan 2015 10:33:04 +0000 (11:33 +0100)]
Merge pull request #1520 from madrang/SafeHandleFix
Small fix for SafeHandle Disposing
Neale Ferguson [Thu, 22 Jan 2015 10:12:17 +0000 (05:12 -0500)]
Add memory barrier support using BCR 14,0
Marc-Andre Ferland [Thu, 22 Jan 2015 06:55:01 +0000 (01:55 -0500)]
Small fix for SafeHandle Disposing
Zoltan Varga [Thu, 22 Jan 2015 04:08:47 +0000 (23:08 -0500)]
Merge pull request #1518 from akoeplinger/remove-only-net11-ifdef
[bcl] Remove ONLY_1_1 defines from class libs
Zoltan Varga [Wed, 21 Jan 2015 20:00:06 +0000 (15:00 -0500)]
[amd64] Fix r8->int conversions. Fixes #26219.
Zoltan Varga [Wed, 21 Jan 2015 18:48:02 +0000 (13:48 -0500)]
[arm64] Add a test for vtypebyref parameters in gsharedvt trampolines.
Zoltan Varga [Wed, 21 Jan 2015 17:53:56 +0000 (12:53 -0500)]
Merge pull request #1519 from akoeplinger/remove-net35-ifdef
[bcl] Remove NET_3_5 defines from class libs
Alexander Köplinger [Wed, 21 Jan 2015 16:53:15 +0000 (17:53 +0100)]
[bcl] Remove NET_3_5 defines from class libs
Alexander Köplinger [Wed, 21 Jan 2015 16:18:30 +0000 (17:18 +0100)]
[bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
João Matos [Wed, 21 Jan 2015 13:04:39 +0000 (13:04 +0000)]
[runtime] Fix sigsev signal handler Win32 build.
This was broken by: https://github.com/mono/mono/commit/
45704daf22d1cec17851ce011ee391137932c471
João Matos [Wed, 21 Jan 2015 12:27:39 +0000 (12:27 +0000)]
Merge pull request #1517 from akoeplinger/fix-network-test
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
Marek Safar [Wed, 21 Jan 2015 10:45:05 +0000 (11:45 +0100)]
[corlib] Contracts and CompilerServices from reference sources