mono.git
8 years agoMerge pull request #2732 from radical/asm_remap
monojenkins [Thu, 10 Mar 2016 04:00:18 +0000 (04:00 +0000)]
Merge pull request #2732 from radical/asm_remap

Do not remap framework assembly if it's version is higher than the ru…

…ntime version

Currently, assemblies like Microsoft.Build.Framework and
Microsoft.Build.Engine get remapped to the current runtime version, at
load time. This means that if an assembly references the above
assemblies with a version like `14.1.0.0`, then that would get remapped
to `4.0.0.0`. This is incorrect behavior and breaks msbuild. Instead,
now we do the remapping only if the requested version is lower than the
runtime version.

8 years agoMerge pull request #2741 from akoeplinger/acceptance-tests-split
Alexander Köplinger [Wed, 9 Mar 2016 22:42:27 +0000 (23:42 +0100)]
Merge pull request #2741 from akoeplinger/acceptance-tests-split

A few improvements to acceptance-tests

8 years agoMerge pull request #2743 from qmfrederik/fixes/complete-eventsource-3
Marek Safar [Wed, 9 Mar 2016 22:26:15 +0000 (23:26 +0100)]
Merge pull request #2743 from qmfrederik/fixes/complete-eventsource-3

System.Diagnostics.Tracing: Add EventListener and related classes

8 years ago[xbuild] Remove explicit warning level set when csproj does not have it and leave...
Marek Safar [Wed, 9 Mar 2016 22:17:49 +0000 (23:17 +0100)]
[xbuild] Remove explicit warning level set when csproj does not have it and leave the default to compiler

8 years agoDo not remap framework assembly if it's version is higher than the runtime version
Ankit Jain [Tue, 23 Feb 2016 21:03:48 +0000 (16:03 -0500)]
Do not remap framework assembly if it's version is higher than the runtime version

Currently, assemblies like Microsoft.Build.Framework and
Microsoft.Build.Engine get remapped to the current runtime version, at
load time. This means that if an assembly references the above
assemblies with a version like `14.1.0.0`, then that would get remapped
to `4.0.0.0`. This is incorrect behavior and breaks msbuild. Instead,
now we do the remapping only if the requested version is lower than the
runtime version.

@akoplinger: This will actually impact xbuild too right now because
we're defaulting to xbuild 14.0 in Mono 4.4 now so we'd see messages
like Mono: The request to load the assembly Microsoft.Build.Framework
v14.0.0.0 was remapped to v4.0.0.0 in the assembly loading log, which
will break in very subtle ways.

8 years agoBump ikdasm
Marek Safar [Wed, 9 Mar 2016 18:27:16 +0000 (19:27 +0100)]
Bump ikdasm

8 years agoSystem.Diagnostics.Tracing: Add EventListener and related classes
Frederik Carlier [Sun, 13 Dec 2015 14:53:30 +0000 (14:53 +0000)]
System.Diagnostics.Tracing: Add EventListener and related classes

8 years agoMerge pull request #2742 from mono/revert-2738-fixes/complete-eventsource-2
Marek Safar [Wed, 9 Mar 2016 17:58:29 +0000 (18:58 +0100)]
Merge pull request #2742 from mono/revert-2738-fixes/complete-eventsource-2

Revert "Add EventListener and EventListenerEventArgs to Mono"

8 years agoRevert "Add EventListener and EventListenerEventArgs to Mono"
Marek Safar [Wed, 9 Mar 2016 17:58:13 +0000 (18:58 +0100)]
Revert "Add EventListener and EventListenerEventArgs to Mono"

8 years ago[acceptance-tests] Better description in readme
Alexander Köplinger [Wed, 9 Mar 2016 17:33:59 +0000 (18:33 +0100)]
[acceptance-tests] Better description in readme

8 years agoMerge pull request #2738 from qmfrederik/fixes/complete-eventsource-2
Marek Safar [Wed, 9 Mar 2016 17:47:33 +0000 (18:47 +0100)]
Merge pull request #2738 from qmfrederik/fixes/complete-eventsource-2

Add EventListener and EventListenerEventArgs to Mono

8 years ago[acceptance-tests] Stop symlinking System.Console.dll facade
Alexander Köplinger [Wed, 9 Mar 2016 17:08:09 +0000 (18:08 +0100)]
[acceptance-tests] Stop symlinking System.Console.dll facade

It should no longer be required after 6e81edfa241bedbb3971ca1e7aece82f31de54c1.

8 years ago[acceptance-tests] Split the test suites out of Makefile.am into own files
Alexander Köplinger [Wed, 9 Mar 2016 17:06:57 +0000 (18:06 +0100)]
[acceptance-tests] Split the test suites out of Makefile.am into own files

8 years ago[mcs] nameof operator can use static member. Fixes #39455
Marek Safar [Wed, 9 Mar 2016 16:56:00 +0000 (17:56 +0100)]
[mcs] nameof operator can use static member. Fixes #39455

8 years ago[llvm] Add beginnings of JIT support for LLVM > 3.9.
Zoltan Varga [Wed, 9 Mar 2016 15:58:59 +0000 (16:58 +0100)]
[llvm] Add beginnings of JIT support for LLVM > 3.9.

8 years ago[acceptance-tests] Move git "submodules" to acceptance-tests/external instead of...
Alexander Köplinger [Wed, 9 Mar 2016 15:54:09 +0000 (16:54 +0100)]
[acceptance-tests] Move git "submodules" to acceptance-tests/external instead of next to Mono repo

A few people told me it's surprising that acceptance-tests checks out repos into <mono repo>/../
and it can cause unwanted changes when a repo with the same name already exists there.

While this structure is used in several internal repos I agree for Mono it's better to keep
everything inside the repo itself.

8 years ago[aot] Fix a buffer overflow in the statistics code.
Zoltan Varga [Wed, 9 Mar 2016 15:22:46 +0000 (16:22 +0100)]
[aot] Fix a buffer overflow in the statistics code.

8 years ago[runtime] Remove some unused code.
Zoltan Varga [Wed, 9 Mar 2016 13:28:36 +0000 (14:28 +0100)]
[runtime] Remove some unused code.

8 years agoRemove #if NET_4_6
Frederik Carlier [Wed, 9 Mar 2016 08:05:38 +0000 (09:05 +0100)]
Remove #if NET_4_6

Remove conditional compilation statement as per PR feedback

8 years agoMerge pull request #2736 from xmcclure/more-trampolines
monojenkins [Wed, 9 Mar 2016 05:20:19 +0000 (05:20 +0000)]
Merge pull request #2736 from xmcclure/more-trampolines

Increase default number of aot-compile trampolines

The current defaults are not enough to successfully run
`make fullaotcheck` in mono/mini

8 years agoMerge pull request #2735 from xmcclure/early-lookup-addr
monojenkins [Wed, 9 Mar 2016 03:55:27 +0000 (03:55 +0000)]
Merge pull request #2735 from xmcclure/early-lookup-addr

Early ICALL_ADDR lookup on pinvoke to fix checked-build assert

The pinvoke implementation in the failure case was creating a managed
exception object while in blocking mode, a rules violation. This patch
puts a redundant lookup early so that any exceptions occur before
blocking mode is entered. (The "real" lookup is unchanged because the
current pattern is optimized well by the JIT.)

8 years agoMerge pull request #2731 from Phyyl/master
monojenkins [Wed, 9 Mar 2016 00:00:42 +0000 (00:00 +0000)]
Merge pull request #2731 from Phyyl/master

Remove throw statement in IPAddress.TryParse

In Microsoft's implementation, no exceptions are thrown in this particular method. See here for details: http://referencesource.microsoft.com/#System/net/System/Net/IPAddress.cs,54a3a3f536d5a22c

8 years agoMerge pull request #2674 from lambdageek/dev/monoerror-mono_field_get_value_object
monojenkins [Tue, 8 Mar 2016 22:20:43 +0000 (22:20 +0000)]
Merge pull request #2674 from lambdageek/dev/monoerror-mono_field_get_value_object

Use MonoError for mono_field_get_value_object

Mark it external only.  Runtime should use mono_field_get_value_object_checked.

8 years agoIncrease default number of aot-compile trampolines
Andi McClure [Tue, 8 Mar 2016 22:14:26 +0000 (17:14 -0500)]
Increase default number of aot-compile trampolines

The current defaults are not enough to successfully run
`make fullaotcheck` in mono/mini

8 years agoMerge pull request #2718 from lambdageek/dev/monoerror-sre
monojenkins [Tue, 8 Mar 2016 21:50:33 +0000 (21:50 +0000)]
Merge pull request #2718 from lambdageek/dev/monoerror-sre

[System.Reflection.Emit] Use MonoError in static functions

8 years agoFix an assert in checked-build GC mode
Andi McClure [Tue, 8 Mar 2016 21:44:49 +0000 (16:44 -0500)]
Fix an assert in checked-build GC mode

The pinvoke implementation in the failure case was creating a managed
exception object while in blocking mode, a rules violation. This patch
puts a redundant lookup early so that any exceptions occur before
blocking mode is entered. (The "real" lookup is unchanged because the
current pattern is optimized well by the JIT.)

8 years ago[runtime] Fix the support for coop in managed-native wrappers by finishing blocking...
Zoltan Varga [Tue, 8 Mar 2016 20:52:46 +0000 (21:52 +0100)]
[runtime] Fix the support for coop in managed-native wrappers by finishing blocking inside the try clause before converting the result, and only unblocking in the finally clause if we didn't unblock in the try clause.

8 years agoAdded null check in IPAddress.Parse
Phyyl [Tue, 8 Mar 2016 19:05:39 +0000 (14:05 -0500)]
Added null check in IPAddress.Parse
This check was previously handled in the IPAddress.TryParse method but, but the latter never throws anymore

8 years agoMerge branch 'master'
Frederik Carlier [Tue, 8 Mar 2016 18:41:40 +0000 (19:41 +0100)]
Merge branch 'master'

8 years ago[SRE] MonoError in mono_image_emit_manifest
Aleksey Kliger [Thu, 3 Mar 2016 21:20:15 +0000 (16:20 -0500)]
[SRE] MonoError in mono_image_emit_manifest

8 years ago[SRE] MonoError in mono_image_fill_export_table
Aleksey Kliger [Thu, 3 Mar 2016 21:09:18 +0000 (16:09 -0500)]
[SRE] MonoError in mono_image_fill_export_table

8 years ago[SRE] MonoError in mono_image_get_array_token
Aleksey Kliger [Thu, 3 Mar 2016 21:04:26 +0000 (16:04 -0500)]
[SRE] MonoError in mono_image_get_array_token

8 years ago[SRE] MonoError in mono_image_get_sighelper_token
Aleksey Kliger [Thu, 3 Mar 2016 20:53:10 +0000 (15:53 -0500)]
[SRE] MonoError in mono_image_get_sighelper_token

8 years ago[SRE] MonoError in mono_image_get_generic_field_token
Aleksey Kliger [Thu, 3 Mar 2016 20:44:30 +0000 (15:44 -0500)]
[SRE] MonoError in mono_image_get_generic_field_token

8 years ago[SRE] MonoError in add_custom_modifiers
Aleksey Kliger [Thu, 3 Mar 2016 20:36:52 +0000 (15:36 -0500)]
[SRE] MonoError in add_custom_modifiers

8 years ago[SRE] MonoError in create_generic_typespec
Aleksey Kliger [Thu, 3 Mar 2016 20:22:25 +0000 (15:22 -0500)]
[SRE] MonoError in create_generic_typespec

8 years ago[SRE] MonoError in mono_image_get_field_on_inst_token
Aleksey Kliger [Thu, 3 Mar 2016 19:50:40 +0000 (14:50 -0500)]
[SRE] MonoError in mono_image_get_field_on_inst_token

8 years ago[SRE] MonoError in encode_constraints
Aleksey Kliger [Thu, 3 Mar 2016 19:45:28 +0000 (14:45 -0500)]
[SRE] MonoError in encode_constraints

8 years ago[SRE] MonoError in mono_image_get_event_info
Aleksey Kliger [Thu, 3 Mar 2016 19:37:14 +0000 (14:37 -0500)]
[SRE] MonoError in mono_image_get_event_info

8 years ago[SRE] MonoError in property_encode_signature
Aleksey Kliger [Thu, 3 Mar 2016 19:35:40 +0000 (14:35 -0500)]
[SRE] MonoError in property_encode_signature

8 years ago[SRE] MonoError in mono_image_get_field_info
Aleksey Kliger [Thu, 3 Mar 2016 19:20:24 +0000 (14:20 -0500)]
[SRE] MonoError in mono_image_get_field_info

8 years ago[SRE] MonoError in encode_marshal_blob
Aleksey Kliger [Thu, 3 Mar 2016 19:03:54 +0000 (14:03 -0500)]
[SRE] MonoError in encode_marshal_blob

8 years ago[SRE] MonoError in field_encode_signature
Aleksey Kliger [Thu, 3 Mar 2016 18:56:07 +0000 (13:56 -0500)]
[SRE] MonoError in field_encode_signature

8 years ago[SRE] MonoError in method_encode_clauses
Aleksey Kliger [Thu, 3 Mar 2016 18:40:38 +0000 (13:40 -0500)]
[SRE] MonoError in method_encode_clauses

8 years ago[SRE] MonoError in encode_locals
Aleksey Kliger [Thu, 3 Mar 2016 17:26:38 +0000 (12:26 -0500)]
[SRE] MonoError in encode_locals

8 years ago[SRE] MonoError in encode_reflection_type and encode_custom_modifiers
Aleksey Kliger [Wed, 2 Mar 2016 23:09:34 +0000 (18:09 -0500)]
[SRE] MonoError in encode_reflection_type and encode_custom_modifiers

8 years agoMerge pull request #2706 from ludovic-henry/fix-unhandledexception
monojenkins [Tue, 8 Mar 2016 16:25:25 +0000 (16:25 +0000)]
Merge pull request #2706 from ludovic-henry/fix-unhandledexception

[runtime] Set exit code on unhandled exception even if a managed handler is present

In case we would add a AppDomain.CurrentDomain.UnhandledException callback, we would not exit the VM in case of unhandled exception.
This goes against the expected behaviour, as we should indeed call these managed callbacks in all cases, but they should not stop the VM from exiting.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39077

8 years agoMerge pull request #2634 from ludovic-henry/coop-fix-managed-to-native
monojenkins [Tue, 8 Mar 2016 16:25:20 +0000 (16:25 +0000)]
Merge pull request #2634 from ludovic-henry/coop-fix-managed-to-native

[coop] Fix managed-to-native wrapper

8 years ago[runtime] Use MonoError in mono_field_get_value_object
Aleksey Kliger [Wed, 24 Feb 2016 21:11:52 +0000 (16:11 -0500)]
[runtime] Use MonoError in mono_field_get_value_object

Mark it external only.  Runtime should use mono_field_get_value_object_checked.

8 years agoEmbedded API. Fix method signature match failure for generic types with multiple...
Jonathan Mitchell [Sun, 6 Mar 2016 18:09:55 +0000 (18:09 +0000)]
Embedded API. Fix method signature match failure for generic types with multiple type parameters.

Details are on the list.
http://mono.1490590.n4.nabble.com/Re-Embedded-API-ctor-method-signature-query-mono-td4667551.html

Robert Jordan said:

It looks like a bug in mono_method_desc_new ():

https://github.com/mono/mono/blob/master/mono/metadata/debug-helpers.c#L378

The function is treating

.ctor(System.Func`2<string, string>)

like a method with 2 arguments:

arg0 = System.Func`2<string
arg1 = string>

This is obviously wrong :)

The function is then storing the (wrong) argument count
for optimization purposes, and the comparison of methods
is starting to fail.

8 years agoMerge pull request #2707 from lambdageek/dev/monoerror-mono_image_load_module_dynamic
monojenkins [Tue, 8 Mar 2016 15:10:37 +0000 (15:10 +0000)]
Merge pull request #2707 from lambdageek/dev/monoerror-mono_image_load_module_dynamic

[sre] Propagate MonoError in mono_image_load_module_dynamic

8 years agoUpdated TryParse_IpString_Null for IPAddress tests
Philippe Paré [Tue, 8 Mar 2016 14:20:03 +0000 (09:20 -0500)]
Updated TryParse_IpString_Null for IPAddress tests

Now reflects the new behaviour in IPAddress class, not throwing any exceptions in the TryParse method

8 years agoRemove throw statement in IPAddress.TryParse
Philippe Paré [Tue, 8 Mar 2016 13:18:33 +0000 (08:18 -0500)]
Remove throw statement in IPAddress.TryParse

In Microsoft's implementation, no exceptions are thrown in this particular method. See here for details: http://referencesource.microsoft.com/#System/net/System/Net/IPAddress.cs,54a3a3f536d5a22c

8 years ago[mcs] Fixes codegen for lifted null bitwise operators with constant left side of...
Marek Safar [Tue, 8 Mar 2016 12:39:48 +0000 (13:39 +0100)]
[mcs] Fixes codegen for lifted null bitwise operators with constant left side of null value

8 years ago[tests] Add unhandled exception tests with AppDomain.UnhandledException managed handler
Ludovic Henry [Wed, 2 Mar 2016 14:37:01 +0000 (14:37 +0000)]
[tests] Add unhandled exception tests with AppDomain.UnhandledException managed handler

8 years ago[runtime] Set exit code on unhandled exception even if a managed handler is present
Ludovic Henry [Wed, 2 Mar 2016 13:12:13 +0000 (13:12 +0000)]
[runtime] Set exit code on unhandled exception even if a managed handler is present

In case we would add a AppDomain.CurrentDomain.UnhandledException callback, we would not exit the VM in case of unhandled exception.
This goes against the expected behaviour, as we should indeed call these managed callbacks in all cases, but they should not stop the VM from exiting.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39077

8 years agoMerge pull request #2708 from lambdageek/dev/monoerror-assorted-get_type
monojenkins [Tue, 8 Mar 2016 11:25:24 +0000 (11:25 +0000)]
Merge pull request #2708 from lambdageek/dev/monoerror-assorted-get_type

[reflection] MonoError for mono_reflection_{get_type_with_rootimage,type_from_name}

8 years agoMerge pull request #2668 from lambdageek/dev/monoerror-mono_security
monojenkins [Tue, 8 Mar 2016 11:20:58 +0000 (11:20 +0000)]
Merge pull request #2668 from lambdageek/dev/monoerror-mono_security

[runtime] MonoError cleanup in mono-security.c

Some easy MonoError cleanup in mono-security.c: use set_pending_exception, don't raise in helper functions, free memory on errors.

8 years agoMerge pull request #2670 from lambdageek/dev/monoerror-mono_runtime_object_init
monojenkins [Tue, 8 Mar 2016 11:20:52 +0000 (11:20 +0000)]
Merge pull request #2670 from lambdageek/dev/monoerror-mono_runtime_object_init

[runtime] Use MonoError in mono_runtime_object_init

Mark mono_runtime_object_init checked external only.  Runtime should use mono_runtime_object_init_checked.

8 years agoMerge pull request #2687 from lambdageek/dev/monoerror-mono_param_get_objects_internal
monojenkins [Tue, 8 Mar 2016 11:20:46 +0000 (11:20 +0000)]
Merge pull request #2687 from lambdageek/dev/monoerror-mono_param_get_objects_internal

[reflection] Use MonoError in mono_param_get_objects

8 years ago[runtime] Wrap mono_prepare_blocking and mono_finish_blocking in try { ... } finally...
Ludovic Henry [Tue, 16 Feb 2016 21:09:07 +0000 (21:09 +0000)]
[runtime] Wrap mono_prepare_blocking and mono_finish_blocking in try { ... } finally { ... } clause

This is to guarantee that even in the case an exception is thrown between both calls, we switch back and forth correctly from RUNNING to BLOCKING state.

8 years ago[runtime] Fix the emission of CEE_MONO_VTADDR opcodes, they need to be emitted right...
Zoltan Varga [Mon, 7 Mar 2016 20:25:23 +0000 (21:25 +0100)]
[runtime] Fix the emission of CEE_MONO_VTADDR opcodes, they need to be emitted right after native calls.

8 years ago[jit] Add a new ICALL_ADDR_CALL patch type which is only used on calls, since ICALL_A...
Zoltan Varga [Tue, 8 Mar 2016 05:27:43 +0000 (06:27 +0100)]
[jit] Add a new ICALL_ADDR_CALL patch type which is only used on calls, since ICALL_ADDR might be used without a call.

8 years ago[mcs] Null conditional operator is never suppose to work with await according to...
Marek Safar [Mon, 7 Mar 2016 20:00:08 +0000 (21:00 +0100)]
[mcs] Null conditional operator is never suppose to work with await according to current C# standard. Fixes #39266

8 years ago[reflection] Fix mono_reflection_type_get_handle when
Aleksey Kliger [Mon, 7 Mar 2016 18:58:01 +0000 (13:58 -0500)]
[reflection] Fix mono_reflection_type_get_handle when
DISABLE_REFLECTION_EMIT is set

Fixup of 20a111a215c2ad93ab77068d2e81e21c886b9846

8 years ago[mcs] Remove test as it cannot reliably depend on process shutdown
Marek Safar [Mon, 7 Mar 2016 18:50:57 +0000 (19:50 +0100)]
[mcs] Remove test as it cannot reliably depend on process shutdown

8 years agoMerge pull request #2727 from akoeplinger/fix-system-testports
monojenkins [Sat, 5 Mar 2016 16:10:17 +0000 (16:10 +0000)]
Merge pull request #2727 from akoeplinger/fix-system-testports

[System] Fix more hardcoded test ports

A test failed on Jenkins today with "address already in use".
Opportunistically replaced a few more hardcoded test ports to avoid failures in the future.

@monojenkins merge

8 years ago[System/ServiceModel] Fix more hardcoded test ports
Alexander Köplinger [Sat, 5 Mar 2016 13:38:33 +0000 (14:38 +0100)]
[System/ServiceModel] Fix more hardcoded test ports

A test failed on Jenkins today with "address already in use".
Opportunistically replaced a few more hardcoded test ports to avoid failures in the future.

8 years ago[mcs] All returns with values from async block with finally need to be captured....
Marek Safar [Sat, 5 Mar 2016 10:28:36 +0000 (11:28 +0100)]
[mcs] All returns with values from async block with finally need to be captured. Fixes #39153

8 years ago[corlib] Enable the shim __ComObject for other profiles than mobile_static too
Alexander Köplinger [Fri, 4 Mar 2016 23:19:15 +0000 (00:19 +0100)]
[corlib] Enable the shim __ComObject for other profiles than mobile_static too

Otherwise they crash in a similar way during verification tests.

8 years ago[System] Switch DNS tests to a more stable domain/IP
Alexander Köplinger [Fri, 4 Mar 2016 23:09:13 +0000 (00:09 +0100)]
[System] Switch DNS tests to a more stable domain/IP

info.diku.dk stopped resolving today. Use Google's public DNS server instead which should be much more stable.

8 years ago[runtime] Compile arch before utils when INSTALL_MONOTOUCH is enabled
Alexander Köplinger [Fri, 4 Mar 2016 22:03:09 +0000 (23:03 +0100)]
[runtime] Compile arch before utils when INSTALL_MONOTOUCH is enabled

We'd run into an error before:

```
In file included from ../../mono/utils/mono-context.h:234:0,
                 from ../../mono/utils/mono-stack-unwinding.h:10,
                 from ../../mono/utils/mono-threads.h:14,
                 from mono-mmap.c:36:
../../mono/arch/arm/arm-codegen.h:936:41: fatal error: mono/arch/arm/arm_dpimacros.h: No such file or directory
```

This was done for the other cases in 637ee7cbaa03a1f576230eb8601c0c4fa7f93b36, but not when the monotouch
special case was added in cf754cdb634f2bdd5bc959cec66145372c301fba.

8 years agoMerge pull request #2714 from lambdageek/dev/monoerror-mono_reflection_type_get_handle
monojenkins [Fri, 4 Mar 2016 22:00:19 +0000 (22:00 +0000)]
Merge pull request #2714 from lambdageek/dev/monoerror-mono_reflection_type_get_handle

[reflection] MonoError for mono_reflection_type_get_handle

`mono_reflection_type_get_handle` is really a kind of normalization procedure that synthesizes real `MonoType`s from reflection's derived types such as `System.Reflection.Emit.ArrayType, ByRefType`, etc.  So we call it all over the place in System.Reflection.Emit runtime code.

That would all be fine, except that users are allowed to subclass `System.Type`, so we have to call the `UnderlyingSystemType()` method to get a real type.  Which means that an override can throw.  Which in coop mode means we have to thread around a `MonoError`.  So that's why this code is uglier.

But really this code is doing a lot of type inspection and high-level work that we should figure out how to migrate to managed.

8 years ago[bcl] Ensure all .sources files have newline at the end
Alexander Köplinger [Fri, 4 Mar 2016 20:48:09 +0000 (21:48 +0100)]
[bcl] Ensure all .sources files have newline at the end

It causes an issue with gensources.sh when using #include on Linux otherwise.

8 years ago[reflection] MonoError for mono_reflection_type_get_handle
Aleksey Kliger [Wed, 2 Mar 2016 15:19:32 +0000 (10:19 -0500)]
[reflection] MonoError for mono_reflection_type_get_handle

8 years agoMerge pull request #2704 from BrzVlad/fix-monitor-abort
Rodrigo Kumpera [Fri, 4 Mar 2016 19:49:33 +0000 (14:49 -0500)]
Merge pull request #2704 from BrzVlad/fix-monitor-abort

[runtime] Fix monitor abort

8 years agoFix filename casing in mobile_System.Data.dll.sources
Alexander Köplinger [Fri, 4 Mar 2016 19:35:19 +0000 (20:35 +0100)]
Fix filename casing in mobile_System.Data.dll.sources

It broke on Linux.

8 years agoMerge pull request #2722 from ludovic-henry/fix-39279-docker-cpu-count
monojenkins [Fri, 4 Mar 2016 18:00:30 +0000 (18:00 +0000)]
Merge pull request #2722 from ludovic-henry/fix-39279-docker-cpu-count

[utils] Get processor count from scheduler affinity if available

In case the user has set a scheduler CPU affinity, we should use it as the number of available CPU for the runtime. This is particularly important on docket which uses cgroups that set the container a cpu affinity, and by not using that, the runtime report the total number of CPU the machine has, and not the number of CPU the container has.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=39279

8 years agoMerge pull request #2700 from akoeplinger/monotouch-mobile-static
monojenkins [Fri, 4 Mar 2016 17:20:16 +0000 (17:20 +0000)]
Merge pull request #2700 from akoeplinger/monotouch-mobile-static

Enable building of monotouch/xammac profiles without mono-extensions and expose mobile_static in configure.ac

Relies on https://github.com/xamarin/mono-extensions/pull/17

This enables us to compile the monotouch, xammac and mobile_static profiles on public Jenkins without mono-extensions.

8 years agoMerge pull request #2723 from akoeplinger/fix-decimal-test-culture
monojenkins [Fri, 4 Mar 2016 16:30:31 +0000 (16:30 +0000)]
Merge pull request #2723 from akoeplinger/fix-decimal-test-culture

[corlib] Fix three decimal tests to not rely on current culture for formatting

They'd fail on cultures where "." is not the decimal separator before.

I've also reenabled them on mobile cause the workaround for #27269 is no longer necessary since all bots are now on Mono 4.0+.

@monojenkins merge

8 years agoMerge pull request #2719 from kumpera/aot_cctor_encoding_in_method_info
Rodrigo Kumpera [Fri, 4 Mar 2016 16:18:05 +0000 (11:18 -0500)]
Merge pull request #2719 from kumpera/aot_cctor_encoding_in_method_info

[runtime] Explicitly encode the need of running a cctor on method infos.

8 years agoAdd a shim __ComObject class to the mobile_static build
Alexander Köplinger [Wed, 2 Mar 2016 13:30:05 +0000 (14:30 +0100)]
Add a shim __ComObject class to the mobile_static build

We need this because when the runtime is built without --enable-minimal=com the runtime crashes
when trying to AOT because it tries to find the __ComObject (even though nothing in mobile_static
actually uses COM). With this shim we can AOT the mobile_static assemblies even with a "normal"
runtime.

8 years ago[corlib] Fix three decimal tests to not rely on current culture for formatting
Alexander Köplinger [Fri, 4 Mar 2016 14:53:25 +0000 (15:53 +0100)]
[corlib] Fix three decimal tests to not rely on current culture for formatting

They'd fail on cultures where "." is not the decimal separator before.

I've also reenabled them on mobile cause the workaround for #27269 is no longer necessary since all bots are now on Mono 4.0+.

8 years ago[corlib] Fixes build to using correct build profile dependency
Marek Safar [Fri, 4 Mar 2016 14:37:44 +0000 (15:37 +0100)]
[corlib] Fixes build to using correct build profile dependency

8 years ago[utils] Get processor count from scheduler affinity if available
Ludovic Henry [Fri, 4 Mar 2016 13:35:29 +0000 (13:35 +0000)]
[utils] Get processor count from scheduler affinity if available

In case the user has set a scheduler CPU affinity, we should use it as the number of available CPU for the runtime. This is particularly important on docket which uses cgroups that set the container a cpu affinity, and by not using that, the runtime report the total number of CPU the machine has, and not the number of CPU the container has.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=39279

8 years ago[tools] Remove unused comment
Marek Safar [Fri, 4 Mar 2016 12:58:05 +0000 (13:58 +0100)]
[tools] Remove unused comment

8 years ago[lc] Remove Option.cs local copy
Marek Safar [Fri, 4 Mar 2016 12:43:45 +0000 (13:43 +0100)]
[lc] Remove Option.cs local copy

8 years ago[bcl] Redo referencesource resource string integration to not depend on mcs
Marek Safar [Fri, 4 Mar 2016 12:40:41 +0000 (13:40 +0100)]
[bcl] Redo referencesource resource string integration to not depend on mcs

8 years ago[corlib] Remove duplicate file entry
Marek Safar [Fri, 4 Mar 2016 10:15:13 +0000 (11:15 +0100)]
[corlib] Remove duplicate file entry

8 years ago[runtime] Explicitly encode the need of running a cctor on method infos.
Rodrigo Kumpera [Mon, 16 Nov 2015 05:22:56 +0000 (00:22 -0500)]
[runtime] Explicitly encode the need of running a cctor on method infos.

This removes the case where decode_klass_ref returning NULL would be ok.

8 years ago[aot] Rename init_llvm_method () to init_method () since it is used for all methods...
Zoltan Varga [Thu, 3 Mar 2016 21:58:40 +0000 (22:58 +0100)]
[aot] Rename init_llvm_method () to init_method () since it is used for all methods, not just llvm ones.

8 years ago[acceptance-tests] Work around an issue that caused Roslyn tests to stop working
Alexander Köplinger [Thu, 3 Mar 2016 21:08:07 +0000 (22:08 +0100)]
[acceptance-tests] Work around an issue that caused Roslyn tests to stop working

xplat MSBuild uses a wrong, to be removed regex that doesn't catch our recent profile names. Temporarily work around it for now.

8 years agoMerge pull request #2716 from BrzVlad/fix-tramp-jinfo
Vlad Brezae [Thu, 3 Mar 2016 14:56:47 +0000 (21:56 +0700)]
Merge pull request #2716 from BrzVlad/fix-tramp-jinfo

[aot] Set null uw_info for tramps without unwind info

8 years agoMerge pull request #2268 from kumpera/coreclr-testsuite-fixes-1
Rodrigo Kumpera [Thu, 3 Mar 2016 06:08:01 +0000 (01:08 -0500)]
Merge pull request #2268 from kumpera/coreclr-testsuite-fixes-1

First batch of bug fixes found in the CoreClr test suite.

8 years agoMerge pull request #2710 from akoeplinger/fix-typo
Rodrigo Kumpera [Thu, 3 Mar 2016 03:43:50 +0000 (22:43 -0500)]
Merge pull request #2710 from akoeplinger/fix-typo

[jit] Fix duplicated left-hand side in comparison

8 years ago[jit] Fix target_type_is_incompatible to type check byref enums correctly.
Rodrigo Kumpera [Mon, 16 Nov 2015 05:22:56 +0000 (00:22 -0500)]
[jit] Fix target_type_is_incompatible to type check byref enums correctly.

8 years agoMerge pull request #2709 from lewurm/jit-phase-typo
monojenkins [Wed, 2 Mar 2016 23:45:34 +0000 (23:45 +0000)]
Merge pull request #2709 from lewurm/jit-phase-typo

[jit] remove 'jit_' prefix in two phases in stats output

@monojenkins merge

8 years agoMerge pull request #2645 from alexrp/profiler-stability
Rodrigo Kumpera [Wed, 2 Mar 2016 20:33:07 +0000 (15:33 -0500)]
Merge pull request #2645 from alexrp/profiler-stability

Fix a crash in the MONO_LLS_FOREACH_SAFE macro

8 years ago[jit] Fix duplicated left-hand side in comparison
Alexander Köplinger [Wed, 2 Mar 2016 20:01:27 +0000 (21:01 +0100)]
[jit] Fix duplicated left-hand side in comparison

The typo introduced by 1a784475c04a7b371e53346bee032590f4f94853 caused the if to always be false,
because it would compare like if (true == MONO_EXCEPTION_FIELD_ACCESS).

8 years ago[jit] remove 'jit_' prefix in two phases in stats output
Bernhard Urban [Wed, 2 Mar 2016 18:24:44 +0000 (10:24 -0800)]
[jit] remove 'jit_' prefix in two phases in stats output