Alexander Köplinger [Tue, 2 Feb 2016 13:29:46 +0000 (14:29 +0100)]
[binary-reference-assemblies] Make sure only .dll files are included in the wildcard
The wildcard `$(wildcard ../../../external/binary-reference-assemblies/v4.5/*)` would include the directory entry `../../../external/binary-reference-assemblies/v4.5/Facades/` which returns an error during "make dist".
Fixing this by including only the .dll files in the wildcards.
Alexander Köplinger [Tue, 2 Feb 2016 12:41:04 +0000 (13:41 +0100)]
[binary-reference-assemblies] Include 4.5 Facades in tarball
Martin Baulig [Mon, 1 Feb 2016 23:44:52 +0000 (00:44 +0100)]
[Mono.Security.Providers.OldTls]: Don't build on mobile.
(cherry picked from commit
f379b7df517b18cea025cb3f53e144bc0e851b9f)
Miguel de Icaza [Mon, 1 Feb 2016 22:54:27 +0000 (17:54 -0500)]
[Makefile] fix make dist on libgc
Zoltan Varga [Mon, 1 Feb 2016 22:44:55 +0000 (17:44 -0500)]
[jit] Avoid merging some bblocks which are not after each other when inlining since it can cause the bblock between them to be ignored later. Fixes #38250.
Zoltan Varga [Mon, 1 Feb 2016 22:44:01 +0000 (17:44 -0500)]
[amd64] Fix the stack alignment check.
monojenkins [Mon, 1 Feb 2016 22:35:22 +0000 (22:35 +0000)]
Merge pull request #2551 from ludovic-henry/coop-products
[coop] Add support for entering/exiting GC safe/unsafe region for products
Ludovic Henry [Mon, 1 Feb 2016 13:27:03 +0000 (13:27 +0000)]
[coop] Add support for entering/exiting GC safe/unsafe region for products
Ludovic Henry [Mon, 1 Feb 2016 13:11:44 +0000 (13:11 +0000)]
[coop] Ensure we exit blocking mode when invoking managed code
mono_runtime_invoke might be called by P/Invoked code, which is in blocking mode. Not switching back to running can lead to a crash when hitting a safepoint.
Zoltan Varga [Mon, 1 Feb 2016 19:51:23 +0000 (14:51 -0500)]
[arm] Fix a code generation problem when a virtual call is made with a large offset, the offset generation code would overwrite a source register. Fixes #27303.
Zoltan Varga [Mon, 1 Feb 2016 19:28:40 +0000 (14:28 -0500)]
[aot] Emit gsharedvt wrappers only in llvmonly mode.
Marek Safar [Mon, 1 Feb 2016 15:32:15 +0000 (16:32 +0100)]
[mcs] Filter out nested private types of forwarded types
monojenkins [Mon, 1 Feb 2016 13:16:41 +0000 (13:16 +0000)]
Merge pull request #2538 from ludovic-henry/fix-sgen-38012
[sgen] Fix register scanning on ARM
This bug would trigger a use after sweep in System.Threading.Tasks.Task.FinishContinuations:3621.
The issue would arise on ARM, as `MonoContext` and `ARCH_NUM_REGS` are defined as followed :
```
typedef struct {
mgreg_t pc;
mgreg_t regs [16];
double fregs [16];
mgreg_t cpsr;
} MonoContext;
\#define ARCH_NUM_REGS 14
```
As you can see, the MonoContext structure is bigger than 14 words, and it does not even covers the last 3 values of `regs`. By using pointer arithmetic, we ensure that we do not miss some parts of the `MonoContext` structure.
The observed behaviour in System.Threading.Tasks.Task.FinishContinuations would be that `continuationObject` would not be marked, and thus freed; `continuationObject` would still contains the pointer to the old location, meaning it wouldn't be null. We would then try to check its type via a call to the `as` operator. This would call the `isinst` IL opcode which would load `continuationObject->vtable->klass->supertypes [...]`, which would trigger a segfault, as `supertypes` would be null.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=38012
monojenkins [Mon, 1 Feb 2016 12:55:11 +0000 (12:55 +0000)]
Merge pull request #2541 from ludovic-henry/fix-coop-hang
[coop] Fix hang in ves_icall_System_Net_Dns_GetHostByName_internal
Marek Safar [Mon, 1 Feb 2016 11:47:43 +0000 (12:47 +0100)]
[binary-reference-assemblies] Install 4.5 api facades
Ludovic Henry [Fri, 29 Jan 2016 19:45:45 +0000 (19:45 +0000)]
[coop] Fix hang in ves_icall_System_Net_Dns_GetHostByName_internal
Zoltan Varga [Mon, 1 Feb 2016 08:04:39 +0000 (03:04 -0500)]
[llvm] Make mini-llvm-loader.c simpler by putting all the function pointers into a structure.
Zoltan Varga [Mon, 1 Feb 2016 05:03:39 +0000 (00:03 -0500)]
[amd64] Add support for float arguments/return values to the dyncall code.
Zoltan Varga [Mon, 1 Feb 2016 04:06:31 +0000 (23:06 -0500)]
Merge pull request #2547 from ermshiperete/Xamarin-33183
[SWF] Fix behavior when scrollbar values change in TreeView
Zoltan Varga [Mon, 1 Feb 2016 02:55:01 +0000 (21:55 -0500)]
[llvm] Remove the goto based error handling code, use explicit error checks and returns instead.
Alexander Köplinger [Mon, 1 Feb 2016 00:57:36 +0000 (01:57 +0100)]
[msvc] Update order.xml and csproj files
Alex Rønne Petersen [Sun, 31 Jan 2016 15:49:01 +0000 (16:49 +0100)]
Merge pull request #2546 from ermshiperete/libtoolize
Check for libtoolize rather than libtool
Marek Safar [Sat, 30 Jan 2016 19:13:55 +0000 (20:13 +0100)]
[mcs] Stop after fields initializers resolve errors
Zoltan Varga [Sun, 31 Jan 2016 05:22:19 +0000 (00:22 -0500)]
[runtime] Disable the constant-logical-operand warning.
Zoltan Varga [Sun, 31 Jan 2016 05:21:53 +0000 (00:21 -0500)]
[runtime] Make the MONO_CURRENT_ABI_ALIGNOF macros c++ safe.
Zoltan Varga [Sun, 31 Jan 2016 05:19:51 +0000 (00:19 -0500)]
[jit] Remove unused MONO_PATCH_INFO_MONITOR_ENTER/EXIT.
Marek Safar [Sat, 30 Jan 2016 19:13:08 +0000 (20:13 +0100)]
Merge pull request #2544 from ermshiperete/Xamarin-24641
[corlib] Fix handling of ignorable chars when using ordinal comparison
Neil Mayhew [Fri, 12 Jun 2015 20:03:21 +0000 (14:03 -0600)]
Check for libtoolize rather than libtool
Current Debian packaging puts libtool in its own package (libtool-bin)
leaving only libtoolize in the main package. The mono build process
uses libtoolize not libtool, so during autogen check for libtoolize
not libtool.
Damien Daspit [Mon, 24 Nov 2014 03:07:25 +0000 (10:07 +0700)]
[corlib] Fix handling of ignorable chars when using ordinal comparison
* recognizes ignorable characters when CompareOptions.Ordinal is
specified
* adds unit tests
* fixes bug 24641
Change-Id: I5102e7392fa54b5671c7f2536cb8778f847e9040
Damien Daspit [Tue, 18 Aug 2015 05:26:28 +0000 (12:26 +0700)]
[SWF] Fix behavior when scrollbar values change in TreeView
* only call EndEdit in scrollbar value changed handlers when currently
editing a node
* fix for bug 33183
Change-Id: I54407e00314f4bfbdc175e883199d3d1ef057911
Zoltan Varga [Fri, 29 Jan 2016 21:39:40 +0000 (16:39 -0500)]
[llvmonly] Fix stack trace calculation.
Zoltan Varga [Fri, 29 Jan 2016 21:23:23 +0000 (16:23 -0500)]
[amd64] Exclude the GSHAREDVT tests as well since they don't work yet.
Zoltan Varga [Fri, 29 Jan 2016 21:19:35 +0000 (16:19 -0500)]
[jit] Disable the DYNCALL tests on amd64 again, not all cases are supported right now.
Zoltan Varga [Fri, 29 Jan 2016 20:33:34 +0000 (15:33 -0500)]
[jit] Use mono_method_get_full_name () to print out method names in a few places.
Zoltan Varga [Fri, 29 Jan 2016 20:32:48 +0000 (15:32 -0500)]
[llvmonly] Fix the fallback to no_gsharedvt_in_wrapper, which was broken by the error handling changes.
Zoltan Varga [Fri, 29 Jan 2016 20:03:46 +0000 (15:03 -0500)]
[llvmonly] Catch all exceptions in mono_jit_exec () to avoid terminating the runtime with an unhelpful libc++ assertion.
Marek Safar [Fri, 29 Jan 2016 19:22:04 +0000 (20:22 +0100)]
[mcs] Rework naming convention of lifted state machine fields to include scope index. Fixes #32315 (1st part)
Ludovic Henry [Fri, 29 Jan 2016 18:11:34 +0000 (18:11 +0000)]
[sgen] Fix register scanning on ARM
This bug would trigger a use after sweep in System.Threading.Tasks.Task.FinishContinuations:3621.
The issue would arise on ARM, as `MonoContext` and `ARCH_NUM_REGS` are defined as followed :
```
typedef struct {
mgreg_t pc;
mgreg_t regs [16];
double fregs [16];
mgreg_t cpsr;
} MonoContext;
\#define ARCH_NUM_REGS 14
```
As you can see, the MonoContext structure is bigger than 14 words, and it does not even covers the last 3 values of `regs`. By using pointer arithmetic, we ensure that we do not miss some parts of the `MonoContext` structure.
The observed behaviour in System.Threading.Tasks.Task.FinishContinuations would be that `continuationObject` would not be marked, and thus freed; `continuationObject` would still contains the pointer to the old location, meaning it wouldn't be null. We would then try to check its type via a call to the `as` operator. This would call the `isinst` IL opcode which would load `continuationObject->vtable->klass->supertypes [...]`, which would trigger a segfault, as `supertypes` would be null.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=38012
Ludovic Henry [Fri, 29 Jan 2016 18:10:10 +0000 (18:10 +0000)]
[sgen] Abort with a message on failure to initialize binary protocol
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.
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
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
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
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
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.
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.
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.
Zoltan Varga [Fri, 29 Jan 2016 01:05:40 +0000 (20:05 -0500)]
[llvmonly] Allow any value for MONO_LLVMONLY not just TRUE.
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.
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
Zoltan Varga [Thu, 28 Jan 2016 20:48:48 +0000 (15:48 -0500)]
[jit] Add MonoError support for the generic sharing code.
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/.
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.
Zoltan Varga [Thu, 28 Jan 2016 18:16:24 +0000 (13:16 -0500)]
Merge pull request #2528 from vargaz/jit-errors2
Jit errors2
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
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
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
Aleksey Kliger [Thu, 28 Jan 2016 16:14:07 +0000 (11:14 -0500)]
[runtime] mono_error_assert_ok() include location
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.
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.
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 14:33:32 +0000 (15:33 +0100)]
[mono-api-html] Fix compiler warning.
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.
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.
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.
Rolf Bjarne Kvinge [Thu, 28 Jan 2016 13:49:29 +0000 (14:49 +0100)]
Merge branch 'mono-api-info-improvements'
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.
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.
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.
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.
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.
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.
Rolf Bjarne Kvinge [Wed, 27 Jan 2016 13:15:25 +0000 (14:15 +0100)]
[mono-api-info] Remove unused method.
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.
Marek Safar [Thu, 28 Jan 2016 13:19:18 +0000 (14:19 +0100)]
[xbuild] Set .net 4.5 target to 4.5 restricted api
Marek Safar [Thu, 28 Jan 2016 12:38:37 +0000 (13:38 +0100)]
[system] Add DeliveryFormat to SmtpSection. Fixes #37891
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.
Marek Safar [Thu, 28 Jan 2016 12:08:11 +0000 (13:08 +0100)]
[mcs] Implements null operator for dynamic expressions. Fixes #37801, #37824
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.
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
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.
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
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.
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.
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 :)
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…
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.
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.
Rodrigo Kumpera [Wed, 27 Jan 2016 23:11:59 +0000 (18:11 -0500)]
[api] GCC is much better at enforcing MONO_RT_EXTERNAL_ONLY.
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
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 ().
Zoltan Varga [Wed, 27 Jan 2016 22:47:38 +0000 (17:47 -0500)]
[runtime] Initialize the error fields in mono_error_set_exception_instance ().
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.
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.
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
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.
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.
Alexander Kyte [Wed, 27 Jan 2016 20:48:25 +0000 (15:48 -0500)]
[mobile_static] Don't use gsharedvt with llvmonly
Alexander Kyte [Wed, 27 Jan 2016 20:28:05 +0000 (15:28 -0500)]
[nunitlite] Documented console .config usage
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
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.