mono.git
8 years agoRemove ChangeLog references from Makefile and .gitattribute
Alexander Köplinger [Fri, 29 Jan 2016 20:40:39 +0000 (21:40 +0100)]
Remove ChangeLog references from Makefile and .gitattribute

8 years agoRemove ChangeLog files from the repo
Alexander Köplinger [Fri, 29 Jan 2016 18:17:03 +0000 (19:17 +0100)]
Remove ChangeLog files from the repo

They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).

8 years ago[corlib] Improve CancellationTokenSource test
Alexander Köplinger [Fri, 29 Jan 2016 15:51:02 +0000 (16:51 +0100)]
[corlib] Improve CancellationTokenSource test

Get rid of the Thread.Sleep calls that are prone to timing issues.

8 years agoMerge pull request #2522 from ludovic-henry/test-socketresponder-task
monojenkins [Fri, 29 Jan 2016 14:50:15 +0000 (14:50 +0000)]
Merge pull request #2522 from ludovic-henry/test-socketresponder-task

[SocketResponder] Use Task instead of Thread + Use explicit delegate so it appears in stacktraces

8 years ago[System.ServiceModel.Internals] Add a missing .sources file for watchOS. Fixes #38145.
Rolf Bjarne Kvinge [Fri, 29 Jan 2016 11:21:04 +0000 (12:21 +0100)]
[System.ServiceModel.Internals] Add a missing .sources file for watchOS. Fixes #38145.

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

8 years agoMerge pull request #2448 from BrzVlad/feature-cprop-opt
Vlad Brezae [Fri, 29 Jan 2016 11:21:17 +0000 (11:21 +0000)]
Merge pull request #2448 from BrzVlad/feature-cprop-opt

[jit] Improve strength reduction handling within cprop

8 years agoMerge pull request #2531 from esdrubal/systemweb
Marcos Henrich [Fri, 29 Jan 2016 09:35:27 +0000 (09:35 +0000)]
Merge pull request #2531 from esdrubal/systemweb

[System.Web] HeadersCollection read only exception

8 years ago[llvmonly] Do a stack walk from mono_llvmonly_get_calling_assembly (), the runtime...
Zoltan Varga [Fri, 29 Jan 2016 04:19:25 +0000 (23:19 -0500)]
[llvmonly] Do a stack walk from mono_llvmonly_get_calling_assembly (), the runtime might support stack walks on some platforms.

8 years ago[runtime] Avoid an assert if a runtime compiled without DISABLE_COM is used with...
Zoltan Varga [Fri, 29 Jan 2016 04:18:51 +0000 (23:18 -0500)]
[runtime] Avoid an assert if a runtime compiled without DISABLE_COM is used with an mscorlib from the mobile_static profile.

8 years ago[llvmonly] Remove bind-to-runtime-version from the aot flag used to compile the assem...
Zoltan Varga [Fri, 29 Jan 2016 01:06:52 +0000 (20:06 -0500)]
[llvmonly] Remove bind-to-runtime-version from the aot flag used to compile the assemblies, it makes testing harder.

8 years ago[llvmonly] Allow any value for MONO_LLVMONLY not just TRUE.
Zoltan Varga [Fri, 29 Jan 2016 01:05:40 +0000 (20:05 -0500)]
[llvmonly] Allow any value for MONO_LLVMONLY not just TRUE.

8 years agoMerge pull request #2533 from vargaz/gshared-errors
Zoltan Varga [Thu, 28 Jan 2016 23:31:45 +0000 (18:31 -0500)]
Merge pull request #2533 from vargaz/gshared-errors

[jit] Add MonoError support for the generic sharing code.

8 years agoMerge pull request #2529 from lambdageek/monoerror-location
monojenkins [Thu, 28 Jan 2016 21:45:15 +0000 (21:45 +0000)]
Merge pull request #2529 from lambdageek/monoerror-location

[runtime] mono_error_assert_ok() include location

8 years ago[jit] Add MonoError support for the generic sharing code.
Zoltan Varga [Thu, 28 Jan 2016 20:48:48 +0000 (15:48 -0500)]
[jit] Add MonoError support for the generic sharing code.

8 years ago[jit] Move the raise version of mono_jit_compile_method () to metadata/.
Zoltan Varga [Thu, 28 Jan 2016 19:46:41 +0000 (14:46 -0500)]
[jit] Move the raise version of mono_jit_compile_method () to metadata/.

8 years agoMerge pull request #2525 from kumpera/embedding-api
Rodrigo Kumpera [Thu, 28 Jan 2016 19:22:09 +0000 (14:22 -0500)]
Merge pull request #2525 from kumpera/embedding-api

[api] Add API kill switch.

8 years agoMerge pull request #2528 from vargaz/jit-errors2
Zoltan Varga [Thu, 28 Jan 2016 18:16:24 +0000 (13:16 -0500)]
Merge pull request #2528 from vargaz/jit-errors2

Jit errors2

8 years agoMerge pull request #2419 from esdrubal/xmlsubclassel
Marcos Henrich [Thu, 28 Jan 2016 17:57:15 +0000 (17:57 +0000)]
Merge pull request #2419 from esdrubal/xmlsubclassel

[System.Xml] Fix sub class serialization on lists

8 years ago[System.Web] HeadersCollection read only exception
Marcos Henrich [Thu, 28 Jan 2016 17:21:37 +0000 (17:21 +0000)]
[System.Web] HeadersCollection read only exception

In reference source HttpHeaderCollection [1] when Add, Set or Remove is
called and the collection is readonly a PlatformNotSupportedException is
thrown.

Mono HeadersCollection was throwing NotSupportedException and
Microsoft.Owin.Host.SystemWeb.OwinCallContext.RemoveAcceptEncoding was
not catching the exception because it was expecting
PlatformNotSupportedException.

Fixes #33809

[1] http://referencesource.microsoft.com/#System.Web/HttpHeaderCollection.cs,73

8 years ago[System.Web] Test HttpRequest.Headers Add/Set/Remove
Marcos Henrich [Thu, 28 Jan 2016 17:17:27 +0000 (17:17 +0000)]
[System.Web] Test HttpRequest.Headers Add/Set/Remove

In .NET while calling Add, Set or Remove of a HttpRequest read only
collection a PlatformNotSupportedException is thrown.

Covers #33809

8 years ago[runtime] mono_error_assert_ok() include location
Aleksey Kliger [Thu, 28 Jan 2016 16:14:07 +0000 (11:14 -0500)]
[runtime] mono_error_assert_ok() include location

8 years ago[metadata] Fix duplicate variable declaration in coree.c that breaks msvc
Alexander Köplinger [Thu, 28 Jan 2016 15:13:17 +0000 (16:13 +0100)]
[metadata] Fix duplicate variable declaration in coree.c that breaks msvc

A new 'error' variable was added in d7908572783b1a8f3b6f4b4685385a7becf0bab3 that clashes with the existing one.

8 years ago[mono-api-html] New interface members are only breaking if the interface existed.
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 14:55:33 +0000 (15:55 +0100)]
[mono-api-html] New interface members are only breaking if the interface existed.

8 years ago[mono-api-html] Fix compiler warning.
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 14:33:32 +0000 (15:33 +0100)]
[mono-api-html] Fix compiler warning.

8 years ago[mono-api-html] Make it possible to hide/show non-breaking changes in the html output.
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 14:14:13 +0000 (15:14 +0100)]
[mono-api-html] Make it possible to hide/show non-breaking changes in the html output.

We now add data-is-[non-]breaking attributes to the generated
html elements, and then use some javascript logic to show/hide
non-breaking elements (and the javascript also looks in the
container elements show/hide containers that have only
non-breaking descendants).

Also use css classes/styles to colorize.

8 years ago[mono-api-info] Add an is-override attribute to determine if a method is overriding...
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 12:13:25 +0000 (13:13 +0100)]
[mono-api-info] Add an is-override attribute to determine if a method is overriding another method.

8 years ago[xbuild] Use -api folder for 2.0/3.5/4.0 profiles as well
Alexander Köplinger [Thu, 28 Jan 2016 14:16:46 +0000 (15:16 +0100)]
[xbuild] Use -api folder for 2.0/3.5/4.0 profiles as well

Similar to e2a79ed88800493cb0444445a176d9c7febbfabe. Those profiles are only contract/reference assemblies since Mono 4.0.

8 years agoMerge branch 'mono-api-info-improvements'
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 13:49:29 +0000 (14:49 +0100)]
Merge branch 'mono-api-info-improvements'

8 years ago[mono-api-info] CreateAttributeMapping: don't create dictionaries unless there is...
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:47:09 +0000 (17:47 +0100)]
[mono-api-info] CreateAttributeMapping: don't create dictionaries unless there is something to put in them.

8 years ago[mono-api-info] Rework AttributeData to use a static method instead of creating an...
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:41:14 +0000 (17:41 +0100)]
[mono-api-info] Rework AttributeData to use a static method instead of creating an instance every time.

8 years ago[mono-api-info] Improve CleanupTypeName to not create 3 strings every time somethings...
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:39:45 +0000 (17:39 +0100)]
[mono-api-info] Improve CleanupTypeName to not create 3 strings every time somethings needs to change.

8 years ago[mono-api-info] First filter, then order, and use ordinal comparison.
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:38:40 +0000 (17:38 +0100)]
[mono-api-info] First filter, then order, and use ordinal comparison.

8 years ago[mono-api-info] Rework SkipAttribute to use ordinal string comparison, and no string...
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:37:11 +0000 (17:37 +0100)]
[mono-api-info] Rework SkipAttribute to use ordinal string comparison, and no string comparison unless needed.

8 years ago[mono-api-info] Use ordinal string comparison. It's much faster.
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 16:36:00 +0000 (17:36 +0100)]
[mono-api-info] Use ordinal string comparison. It's much faster.

8 years ago[mono-api-info] Remove unused method.
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 13:15:25 +0000 (14:15 +0100)]
[mono-api-info] Remove unused method.

8 years ago[mono-api-info] Use XmlWriter instead of XmlDocument to make this faster.
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 11:56:23 +0000 (12:56 +0100)]
[mono-api-info] Use XmlWriter instead of XmlDocument to make this faster.

Generating all the API references (in parallel) for Xamarin.iOS goes from
5.5s to 4.5s.

8 years ago[xbuild] Set .net 4.5 target to 4.5 restricted api
Marek Safar [Thu, 28 Jan 2016 13:19:18 +0000 (14:19 +0100)]
[xbuild] Set .net 4.5 target to 4.5 restricted api

8 years ago[system] Add DeliveryFormat to SmtpSection. Fixes #37891
Marek Safar [Thu, 28 Jan 2016 12:38:37 +0000 (13:38 +0100)]
[system] Add DeliveryFormat to SmtpSection. Fixes #37891

8 years ago[mono-api-info] Add support for writing output to a file specified using a command...
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 11:07:24 +0000 (12:07 +0100)]
[mono-api-info] Add support for writing output to a file specified using a command line argument.

8 years ago[mcs] Implements null operator for dynamic expressions. Fixes #37801, #37824
Marek Safar [Thu, 28 Jan 2016 12:08:11 +0000 (13:08 +0100)]
[mcs] Implements null operator for dynamic expressions. Fixes #37801, #37824

8 years ago[SocketResponder] Use Task instead of Thread
Ludovic Henry [Wed, 27 Jan 2016 16:09:22 +0000 (16:09 +0000)]
[SocketResponder] Use Task instead of Thread

This allow us catching and rethrowing the exception on the main thread, as well as making sure we wait for the Listen thread to finish in a timely manner.

8 years ago[SocketResponder] Start in constructor and Stop on Dispose
Ludovic Henry [Thu, 28 Jan 2016 10:50:34 +0000 (10:50 +0000)]
[SocketResponder] Start in constructor and Stop on Dispose

In conjuction with `using` we ensure that we Start and Stop the SocketResponder correctly, and everytime

8 years ago[Tests] Use explicit delegate so it appears in stacktraces
Ludovic Henry [Wed, 27 Jan 2016 16:08:18 +0000 (16:08 +0000)]
[Tests] Use explicit delegate so it appears in stacktraces

In case of exception in this callback, the name of the test method will appear in the stacktrace, making debugging way easier.

8 years agoMerge pull request #2497 from ludovic-henry/monoerror-mono_gsharedvt_constrained_call
Zoltan Varga [Thu, 28 Jan 2016 08:03:35 +0000 (03:03 -0500)]
Merge pull request #2497 from ludovic-henry/monoerror-mono_gsharedvt_constrained_call

[runtime] Use MonoError for mono_gsharedvt_constrained_call

8 years ago[System] Move HttpListenerResponse.GetStatusDescription to ease linking
Sebastien Pouliot [Thu, 28 Jan 2016 03:10:40 +0000 (22:10 -0500)]
[System] Move HttpListenerResponse.GetStatusDescription to ease linking

The use of HttpResponseMessage.ReasonPhrase means:

* marking the HttpListenerResponse.GetStatusDescription method;
* marking the HttpListenerResponse type;
* which implements IDisposable, so it's Dispose method is marked
* marking the Close method...

from there a metric ton of code gets recursively marked to the point
where the whole SSL/TLS server code gets inside the app.

To avoid this we move the GetStatusDescription to a different
type that won't bring the end of the civilized world so fast.

8 years ago[runtime] Use MonoError in mono_jit_runtime_invoke () to return errors, the 'exc...
Zoltan Varga [Thu, 28 Jan 2016 03:06:47 +0000 (22:06 -0500)]
[runtime] Use MonoError in mono_jit_runtime_invoke () to return errors, the 'exc' parameter is still used to return the possible exception from the invoke call.

8 years ago[System.Web] Fix another wrong test assembly name
Alexander Köplinger [Thu, 28 Jan 2016 00:23:52 +0000 (01:23 +0100)]
[System.Web] Fix another wrong test assembly name

Didn't catch that one in 180e745ccee4a80c9641a2e70235387e74b9eddb as it hides itself pretty well :)

8 years agoMerge pull request #2527 from vargaz/jit-errors
Zoltan Varga [Thu, 28 Jan 2016 02:33:53 +0000 (21:33 -0500)]
Merge pull request #2527 from vargaz/jit-errors

[jit] Convert some of the error handling to use cfg->error instead of…

8 years ago[jit] Use mono_error_set_pending_exception () to throw exceptions from the trampoline...
Zoltan Varga [Thu, 28 Jan 2016 01:15:14 +0000 (20:15 -0500)]
[jit] Use mono_error_set_pending_exception () to throw exceptions from the trampoline code. This only works if the generic trampoline code checks for exceptions after the call to the C function.

8 years ago[jit] Use MonoError in mono_jit_compile_method () and the trampoline code.
Zoltan Varga [Thu, 28 Jan 2016 00:55:48 +0000 (19:55 -0500)]
[jit] Use MonoError in mono_jit_compile_method () and the trampoline code.

8 years ago[api] GCC is much better at enforcing MONO_RT_EXTERNAL_ONLY.
Rodrigo Kumpera [Wed, 27 Jan 2016 23:11:59 +0000 (18:11 -0500)]
[api] GCC is much better at enforcing MONO_RT_EXTERNAL_ONLY.

8 years agoMerge pull request #2526 from alexanderkyte/llvmonly_mobile_static_fixups
Alexander Köplinger [Wed, 27 Jan 2016 23:08:20 +0000 (00:08 +0100)]
Merge pull request #2526 from alexanderkyte/llvmonly_mobile_static_fixups

[mobile_static] Requested NunitLite comment and llvmonly configuration changes

8 years ago[jit] Pass a MonoError* instead of a MonoException** to mono_jit_compile_method_inner ().
Zoltan Varga [Wed, 27 Jan 2016 22:48:28 +0000 (17:48 -0500)]
[jit] Pass a MonoError* instead of a MonoException** to mono_jit_compile_method_inner ().

8 years ago[runtime] Initialize the error fields in mono_error_set_exception_instance ().
Zoltan Varga [Wed, 27 Jan 2016 22:47:38 +0000 (17:47 -0500)]
[runtime] Initialize the error fields in mono_error_set_exception_instance ().

8 years ago[bcl] Fix dll names and InternalsVisibleTo for test assemblies
Alexander Köplinger [Wed, 27 Jan 2016 21:11:35 +0000 (22:11 +0100)]
[bcl] Fix dll names and InternalsVisibleTo for test assemblies

The format of the test assembly name changed in 860334ff45a8d1c5886b8dbcfadaf28ac55b9393
from System.Web_test_net_4_x.dll to net_4_x_System.Web_test.dll.

This fixes all the places where the old name was used.

8 years ago[jit] Reduce the usage of the loader error more by converting it to a MonoError where...
Zoltan Varga [Wed, 27 Jan 2016 22:13:27 +0000 (17:13 -0500)]
[jit] Reduce the usage of the loader error more by converting it to a MonoError where it was detected.

8 years agoMerge pull request #2523 from akoeplinger/fix-profiler-test-reporting
Alexander Köplinger [Wed, 27 Jan 2016 21:21:49 +0000 (22:21 +0100)]
Merge pull request #2523 from akoeplinger/fix-profiler-test-reporting

[profiler] Fix test reporting success even though a test failed

8 years ago[jit] Convert some of the error handling to use cfg->error instead of cfg->exception_...
Zoltan Varga [Wed, 27 Jan 2016 21:01:41 +0000 (16:01 -0500)]
[jit] Convert some of the error handling to use cfg->error instead of cfg->exception_type.

8 years agoUse S390_SET to get addresses rather than the previous more convoluted method
Neale Ferguson [Wed, 27 Jan 2016 20:45:37 +0000 (15:45 -0500)]
Use S390_SET to get addresses rather than the previous more convoluted method

[jit] Add a new jit icall mono_interruption_checkpoint_from_trampoline () and use that instead of mono_thread_force_interruption_checkpoint () so the latter can go away eventually.

8 years ago[mobile_static] Don't use gsharedvt with llvmonly
Alexander Kyte [Wed, 27 Jan 2016 20:48:25 +0000 (15:48 -0500)]
[mobile_static] Don't use gsharedvt with llvmonly

8 years ago[nunitlite] Documented console .config usage
Alexander Kyte [Wed, 27 Jan 2016 20:28:05 +0000 (15:28 -0500)]
[nunitlite] Documented console .config usage

8 years agoMerge pull request #2432 from alexanderkyte/compile_corlib_with_aot
Alexander Kyte [Wed, 27 Jan 2016 20:10:56 +0000 (15:10 -0500)]
Merge pull request #2432 from alexanderkyte/compile_corlib_with_aot

[aot/bcl] Compile the BCL with AOT

8 years ago[aot/bcl] Add Makefile configuration to build the bcl with aot, use it in mobile_static.
Alexander Kyte [Wed, 13 Jan 2016 23:13:51 +0000 (18:13 -0500)]
[aot/bcl] Add Makefile configuration to build the bcl with aot, use it in mobile_static.

8 years agoMerge pull request #2431 from alexanderkyte/tests_with_excludes
Alexander Kyte [Wed, 27 Jan 2016 20:09:29 +0000 (15:09 -0500)]
Merge pull request #2431 from alexanderkyte/tests_with_excludes

[mcs] Fix .sources/.excludes for tests, exclude corlib monotouch-excluded tests on mobile_static

8 years ago[api] Mark external Only: mono_get_method, mono_get_method_full and mono_get_method_c...
Rodrigo Kumpera [Wed, 27 Jan 2016 20:03:26 +0000 (15:03 -0500)]
[api] Mark external Only: mono_get_method, mono_get_method_full and mono_get_method_constrained.

8 years ago[build] Add MONO_RT_EXTERNAL_ONLY macro to the public API.
Rodrigo Kumpera [Wed, 27 Jan 2016 19:55:47 +0000 (14:55 -0500)]
[build] Add MONO_RT_EXTERNAL_ONLY macro to the public API.

This macro should be used to decorate functions that are part of the public API but the runtime is
not supposed to call.

This is to allow us to keep them around but not go crazy with commit reintroducing their usage.

8 years ago[profiler] Fix test reporting success even though a test failed
Alexander Köplinger [Wed, 27 Jan 2016 19:15:44 +0000 (20:15 +0100)]
[profiler] Fix test reporting success even though a test failed

I noticed this in https://jenkins.mono-project.com/job/test-mono-pull-request-armhf/1715/ which reported success in the "profiler" test step,
even though the step actually reported errors:

```
MONO_PATH=/media/ssd/jenkins/workspace/test-mono-pull-request-armhf/mcs/class/lib/net_4_x perl ./ptestrunner.pl ../..
Checking test-alloc.exe with report ...
Checking test-busy.exe with report ...
Checking test-busy.exe with report,sample ...
Error: Missing thread Finalizer.
Error: Missing thread Main.
Error: Wrong loaded images 2.
Error: Not enough compiled method.
Error: Not enough compiled code.
Error: Missing thread BusyHelper.
Total errors: 6
Checking test-monitor.exe with report ...
Checking test-excleave.exe with report ...
Checking test-heapshot.exe with report,heapshot ...
Checking test-heapshot.exe with heapshot,output=-traces.mlpd ...
Checking test-traces.exe with output=-traces.mlpd ...
Checking test-traces.exe with nocalls,output=-traces.mlpd ...
make[1]: Leaving directory `/media/ssd/jenkins/workspace/test-mono-pull-request-armhf/mono/profiler'
make: Leaving directory `/media/ssd/jenkins/workspace/test-mono-pull-request-armhf/mono/profiler'
++ bc
+++ date +%s
++ echo 1453874768 - 1453874741
+ echo -e '*** end(27): profiler: \e[42mPassed\e[0m'
*** end(27): profiler: Passed
```

The culprit is that ptestrunner.pl checks whether $total_errors is non-zero to determin the process exit code.
This is wrong, as $total_errors is cleared before each test so unless the last test fails the exit code would always be zero.

Introduced a new $global_errors variable which is only incremented and never cleared to fix this.

8 years agoRevert "[runtime] Use explicit loop checking to remove depth limitation of sequence...
Zoltan Varga [Wed, 27 Jan 2016 18:46:42 +0000 (13:46 -0500)]
Revert "[runtime] Use explicit loop checking to remove depth limitation of sequence point search."

This reverts commit 23ce21ede0d26d2815c670a11e6d870506b91dd0.

Revert this as it is non-linear and can take a lot of time for complicated cfg structures.

8 years agoMerge pull request #2520 from kumpera/loader-error-cleanup5
Rodrigo Kumpera [Wed, 27 Jan 2016 18:38:13 +0000 (13:38 -0500)]
Merge pull request #2520 from kumpera/loader-error-cleanup5

[mono-error] Another round of loader-error

8 years agoMerge pull request #2521 from akoeplinger/fix-sockettest-endconnect-error
monojenkins [Wed, 27 Jan 2016 16:15:23 +0000 (16:15 +0000)]
Merge pull request #2521 from akoeplinger/fix-sockettest-endconnect-error

[System] Fix error in new BeginConnectToIPV4EndPointUsingDualModelSocket test

It was added with 78c758494a04132c0965f8af82dd7370da5f4af1. The test fails on Jenkins:

```
Test Case Failures:
1) MonoTests.System.Net.Sockets.SocketTest.BeginConnectToIPV4EndPointUsingDualModelSocket : System.InvalidOperationException : EndConnect can only be called once per asynchronous operation
at System.Net.Sockets.Socket.ValidateEndIAsyncResult (IAsyncResult ares, System.String methodName, System.String argName) [0x0004a] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/System.Net.Sockets/Socket.cs:3412
at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x00006] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/System.Net.Sockets/Socket.cs:1584
at MonoTests.System.Net.Sockets.SocketTest.BeginConnectToIPV4EndPointUsingDualModelSocket () [0x0005d] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs:4365
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/corlib/System.Reflection/MonoMethod.cs:295
```

The reason is that BCCallback already calls EndConnect() so we need to remove it and just wait for the callback in the test itself.

@monojenkins merge

8 years ago[mcs] Reset null operator barrier in parenthesis expression
Marek Safar [Wed, 27 Jan 2016 15:56:31 +0000 (16:56 +0100)]
[mcs] Reset null operator barrier in parenthesis expression

8 years agoFix serialization under XM 4.5 Target Framework
Chris Hamons [Wed, 27 Jan 2016 14:51:24 +0000 (08:51 -0600)]
Fix serialization under XM 4.5 Target Framework

- System.Configuration.ConfigurationErrorsException: Failed to load configuration section for dataContractSerializer
- Fixes #36401 #38064

8 years ago[System] Fix error in new BeginConnectToIPV4EndPointUsingDualModelSocket test
Alexander Köplinger [Wed, 27 Jan 2016 14:34:52 +0000 (15:34 +0100)]
[System] Fix error in new BeginConnectToIPV4EndPointUsingDualModelSocket test

It was added with 78c758494a04132c0965f8af82dd7370da5f4af1. The test fails on Jenkins:

```
Test Case Failures:
1) MonoTests.System.Net.Sockets.SocketTest.BeginConnectToIPV4EndPointUsingDualModelSocket : System.InvalidOperationException : EndConnect can only be called once per asynchronous operation
at System.Net.Sockets.Socket.ValidateEndIAsyncResult (IAsyncResult ares, System.String methodName, System.String argName) [0x0004a] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/System.Net.Sockets/Socket.cs:3412
at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x00006] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/System.Net.Sockets/Socket.cs:1584
at MonoTests.System.Net.Sockets.SocketTest.BeginConnectToIPV4EndPointUsingDualModelSocket () [0x0005d] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/System/Test/System.Net.Sockets/SocketTest.cs:4365
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /var/lib/jenkins/workspace/test-mono-mainline/label/debian-amd64/mcs/class/corlib/System.Reflection/MonoMethod.cs:295
```

The reason is that BCCallback already calls EndConnect() so we need to remove it and just wait for the callback in the test itself.

8 years ago[System.Runtime.Caching] Bump timeout in tests to make them more reliable
Alexander Köplinger [Wed, 27 Jan 2016 11:29:45 +0000 (12:29 +0100)]
[System.Runtime.Caching] Bump timeout in tests to make them more reliable

Failed on Jenkins on ARM today:

```
Tests run: 38, Failures: 1, Not run: 0, Time: 32.132 seconds

Test Case Failures:
1) MonoTests.System.Runtime.Caching.MemoryCacheTest.TimedExpiration :   #A4-4
  Expected: not null
  But was:  null

at MonoTests.System.Runtime.Caching.MemoryCacheTest.TimedExpiration () [0x002b6] in /media/ssd/jenkins/workspace/test-mono-mainline/label/debian-armel/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs:902
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /media/ssd/jenkins/workspace/test-mono-mainline/label/debian-armel/mcs/class/corlib/System.Reflection/MonoMethod.cs:295
```

100ms could be too short, bumping the timeout should make it more reliable on the slower ARM machines.

8 years agoMerge pull request #2420 from stefansedich/master
Ludovic Henry [Wed, 27 Jan 2016 09:51:42 +0000 (09:51 +0000)]
Merge pull request #2420 from stefansedich/master

Handle automatically mapping IPv4 addresses to IPV6 for dual mode sockets, fixes #36192

8 years ago[runtime] Use mono_error_set_pending_exception () instead of mono_error_raise_excepti...
Zoltan Varga [Wed, 27 Jan 2016 06:02:58 +0000 (01:02 -0500)]
[runtime] Use mono_error_set_pending_exception () instead of mono_error_raise_exception () in icall.c.

8 years agoMerge pull request #2486 from ludovic-henry/monoerror-mono_type_get_object
monojenkins [Wed, 27 Jan 2016 04:45:23 +0000 (04:45 +0000)]
Merge pull request #2486 from ludovic-henry/monoerror-mono_type_get_object

[runtime] Use MonoError for mono_type_get_object

8 years agoMerge pull request #2519 from ludovic-henry/fix-array-jiticalls
monojenkins [Wed, 27 Jan 2016 04:05:23 +0000 (04:05 +0000)]
Merge pull request #2519 from ludovic-henry/fix-array-jiticalls

[array] Replace raise exception by pending exception in jit-icalls

The convention for jit-icalls is to set the pending exception, instead of raising it from native.

8 years ago[mono-error] The reflection code still festered with hidden deps for loader-error.
Rodrigo Kumpera [Wed, 27 Jan 2016 02:27:05 +0000 (21:27 -0500)]
[mono-error] The reflection code still festered with hidden deps for loader-error.

8 years ago[x86] Change the way exceptions are thrown from trampolines: instead of calling mono_...
Zoltan Varga [Wed, 27 Jan 2016 01:31:08 +0000 (20:31 -0500)]
[x86] Change the way exceptions are thrown from trampolines: instead of calling mono_thread_force_interruption_checkpoint (), which would throw the exception using mono_raise_exception (), obtain the exception, unwind to the parent frame, and throw the exception normally there by calling the throw exception trampoline.

8 years ago[jit] Fix error propagation when loading methods. Move more checks to rely on cfg...
Rodrigo Kumpera [Mon, 16 Nov 2015 05:22:56 +0000 (00:22 -0500)]
[jit] Fix error propagation when loading methods. Move more checks to rely on cfg->error.

8 years agoFix the build.
Zoltan Varga [Wed, 27 Jan 2016 00:43:20 +0000 (19:43 -0500)]
Fix the build.

8 years ago[jit] Use mono_set_pending_exception () in one jit icall.
Zoltan Varga [Wed, 27 Jan 2016 00:40:39 +0000 (19:40 -0500)]
[jit] Use mono_set_pending_exception () in one jit icall.

8 years ago[array] Replace raise exception by pending exception in jit-icalls
Ludovic Henry [Wed, 27 Jan 2016 00:35:43 +0000 (00:35 +0000)]
[array] Replace raise exception by pending exception in jit-icalls

The convention for jit-icalls is to set the pending exception, instead of raising it from native.

8 years ago[runtime] Use MonoError for mono_gsharedvt_constrained_call
Ludovic Henry [Fri, 22 Jan 2016 17:10:23 +0000 (17:10 +0000)]
[runtime] Use MonoError for mono_gsharedvt_constrained_call

8 years ago[runtime] Use MonoError for mono_type_get_object
Ludovic Henry [Thu, 21 Jan 2016 19:41:12 +0000 (19:41 +0000)]
[runtime] Use MonoError for mono_type_get_object

8 years ago[runtime] Get rid of mono_thread_force_interruption_checkpoint (), its not used anymore.
Zoltan Varga [Tue, 26 Jan 2016 22:53:23 +0000 (17:53 -0500)]
[runtime] Get rid of mono_thread_force_interruption_checkpoint (), its not used anymore.

8 years ago[jit] Add a new jit icall mono_interruption_checkpoint_from_trampoline () and use...
Zoltan Varga [Tue, 26 Jan 2016 22:49:01 +0000 (17:49 -0500)]
[jit] Add a new jit icall mono_interruption_checkpoint_from_trampoline () and use that instead of mono_thread_force_interruption_checkpoint () so the latter can go away eventually.

8 years ago[amd64] Change the way exceptions are thrown from trampolines: instead of calling...
Zoltan Varga [Tue, 26 Jan 2016 22:33:34 +0000 (17:33 -0500)]
[amd64] Change the way exceptions are thrown from trampolines: instead of calling mono_thread_force_interruption_checkpoint (), which would throw the exception using mono_raise_exception (), obtain the exception, unwind to the parent frame, and throw the exception normally there by calling the throw exception trampoline.

8 years ago[mono-error] Replace legacy calls to mono_get_method(_full) with _checked variant.
Rodrigo Kumpera [Fri, 6 Nov 2015 07:47:03 +0000 (02:47 -0500)]
[mono-error] Replace legacy calls to mono_get_method(_full) with _checked variant.

8 years ago[mono-error] Remove usage of a couple of legacy functions from monodis.
Rodrigo Kumpera [Fri, 6 Nov 2015 06:11:02 +0000 (01:11 -0500)]
[mono-error] Remove usage of a couple of legacy functions from monodis.

8 years ago[mono-error] Remove loader-error conversion for 3 functions that are not longer calle...
Rodrigo Kumpera [Fri, 6 Nov 2015 04:04:54 +0000 (23:04 -0500)]
[mono-error] Remove loader-error conversion for 3 functions that are not longer called by the runtime.

The following legacy functions are no longer used by the runtime and don't need loader-error conversion:
mono_method_get_signature_full
mono_method_get_signature
mono_field_from_token

May all that is unholy smite upon those attempting to use those functions again.

8 years agoMerge pull request #2517 from steffen-kiess/posix-socket-osx-test
Alexander Köplinger [Tue, 26 Jan 2016 21:06:56 +0000 (22:06 +0100)]
Merge pull request #2517 from steffen-kiess/posix-socket-osx-test

[Mono.Posix] Fix the SocketTest.ControlMsg() test on OSX

8 years agoMerge pull request #2500 from ludovic-henry/monoerror-mono_string_alloc
Rodrigo Kumpera [Tue, 26 Jan 2016 20:15:12 +0000 (15:15 -0500)]
Merge pull request #2500 from ludovic-henry/monoerror-mono_string_alloc

[runtime] Use MonoError for mono_string_alloc

8 years ago[runtime] Fix the computation of StackFrame.native_offset for managed-to-native wrappers.
Zoltan Varga [Tue, 26 Jan 2016 20:06:35 +0000 (15:06 -0500)]
[runtime] Fix the computation of StackFrame.native_offset for managed-to-native wrappers.

8 years ago[mkbundle] More Windows linking fixes, added "--custom-main" option
Alexis Christoforides [Fri, 22 Jan 2016 22:38:32 +0000 (17:38 -0500)]
[mkbundle] More Windows linking fixes, added "--custom-main" option

8 years agoMerge pull request #2513 from lambdageek/monoerror-RESOLVE_TYPE
Rodrigo Kumpera [Tue, 26 Jan 2016 19:42:49 +0000 (14:42 -0500)]
Merge pull request #2513 from lambdageek/monoerror-RESOLVE_TYPE

[runtime] Use MonoError for RESOLVE_TYPE

8 years agoMerge pull request #2508 from lambdageek/monoerror-check_array_for_usertypes
Rodrigo Kumpera [Tue, 26 Jan 2016 19:42:03 +0000 (14:42 -0500)]
Merge pull request #2508 from lambdageek/monoerror-check_array_for_usertypes

[runtime] Use MonoError for check_array_for_usertypes

8 years agoMerge pull request #2506 from lambdageek/monoerror-mono_reflection_type_resolve_user_...
Rodrigo Kumpera [Tue, 26 Jan 2016 19:39:48 +0000 (14:39 -0500)]
Merge pull request #2506 from lambdageek/monoerror-mono_reflection_type_resolve_user_types

[runtime] Use MonoError for mono_reflection_type_resolve_user_types

8 years agoMerge pull request #2516 from lambdageek/monoerror-exception_instance
monojenkins [Tue, 26 Jan 2016 19:15:17 +0000 (19:15 +0000)]
Merge pull request #2516 from lambdageek/monoerror-exception_instance

[runtime] Add MONO_ERROR_EXCEPTION_INSTANCE MonoError

This kind of MonoError can encapsulate a managed MonoException
object.  (For example as a result of mono_runtime_invoke ()).

Issues:

- [x] Memory leak correctness.
    `MonoError` already leaks memory if you simply swallow it without calling `mono_error_cleanup` or some function that calls it (for example `mono_error_raise_exception` or `mono_error_convert_to_exception`).
    Now if we have an encapsulated exception, we'll leak a GC handle unless cleanup happens.