mono.git
7 years agoMerge pull request #4503 from BrzVlad/fix-appdomain-unload
Vlad Brezae [Fri, 24 Mar 2017 14:21:30 +0000 (16:21 +0200)]
Merge pull request #4503 from BrzVlad/fix-appdomain-unload

[runtime] Fix abort issues

7 years agoA few fixes to the man page
Miguel de Icaza [Fri, 24 Mar 2017 14:01:01 +0000 (10:01 -0400)]
A few fixes to the man page

7 years ago[bcl] Add a finalizer to MemoryMappedFile.
Zoltan Varga [Thu, 23 Mar 2017 17:34:57 +0000 (13:34 -0400)]
[bcl] Add a finalizer to MemoryMappedFile.

7 years ago[System.Data] Update tests for mobile profiles
Marek Safar [Fri, 24 Mar 2017 13:15:14 +0000 (14:15 +0100)]
[System.Data] Update tests for mobile profiles

7 years ago[runtime] Don't reset abort exception in invoke wrapper
Vlad Brezae [Thu, 23 Mar 2017 22:17:30 +0000 (00:17 +0200)]
[runtime] Don't reset abort exception in invoke wrapper

It leads to missing self aborts on full-aot.

7 years ago[runtime] Improve debugging of thread interruptions
Vlad Brezae [Mon, 20 Mar 2017 23:34:49 +0000 (01:34 +0200)]
[runtime] Improve debugging of thread interruptions

7 years ago[runtime] Defer async requests during abort protected blocks
Vlad Brezae [Mon, 20 Mar 2017 23:00:17 +0000 (01:00 +0200)]
[runtime] Defer async requests during abort protected blocks

We avoid unnecessary checks for each interruption checkpoint.

7 years ago[runtime] Fix detecting abort at end of abort protected block
Vlad Brezae [Fri, 17 Mar 2017 21:45:50 +0000 (23:45 +0200)]
[runtime] Fix detecting abort at end of abort protected block

If we have a pending abort then we know we will have the thread_state set and the thread_interruption_requested bumped. We used to consume this request and set the MonoError with the exception. The problems with this is that not all callsites handle the passed MonoError and handling it means converting it back to a pending exception anyway. We just leave the interruption request untouched now.

If the cctor self aborts it means that we consumed the abort exception so we do need to call mono_thread_resume_interruption to reactivate it. We need to make sure that we still don't throw a TypeInitializationException if we had a self abort.

7 years ago[AppleTls]: Use correct definition of `SecTrustResult`. (#4586)
Martin Baulig [Thu, 23 Mar 2017 20:29:47 +0000 (16:29 -0400)]
[AppleTls]: Use correct definition of `SecTrustResult`. (#4586)

* [AppleTls]: Use correct definition of `SecTrustResult`.

We need all the values in this enum because `SecTrustResult.Unspecified`
means success - which currently has an integer value of 4, not 0.

* Oops, make it build.

* Don't make it public.

* Revert whitespace change.

7 years agoBump version to 5.1.0
Andi McClure [Thu, 23 Mar 2017 20:29:06 +0000 (16:29 -0400)]
Bump version to 5.1.0

7 years agoAdd test for AutomaticDecompression behaviour
Filip Navara [Thu, 23 Mar 2017 11:36:58 +0000 (12:36 +0100)]
Add test for AutomaticDecompression behaviour

Test that HttpWebRequest.AutomaticDecompression actually performs the
decompression and that it removes the Content-Encoding header. Also fix
the value of Content-Encoding for other tests to follow the HTTP
specification.

7 years agoRemove Content-Encoding header after doing automatic decompression
Filip Navara [Thu, 23 Mar 2017 09:54:18 +0000 (10:54 +0100)]
Remove Content-Encoding header after doing automatic decompression

Match the .NET Framework behaviour by removing the Content-Encoding
header after doing automatic decompression.

7 years ago[msvc] Update csproj files
monojenkins [Thu, 23 Mar 2017 16:21:08 +0000 (16:21 +0000)]
[msvc] Update csproj files

7 years ago[reflection] Set correct reflected type in MonoMethod.get_base_method
Aleksey Kliger [Wed, 22 Mar 2017 19:08:59 +0000 (15:08 -0400)]
[reflection] Set correct reflected type in MonoMethod.get_base_method

It can be the case that we have two different System.MonoMethod objects that both
point to the same native MonoMethod* but have two different reflected types.
(For example if we call derivedType.GetMethod("f") where f is virtual and
derivedType corresponds to a class that did not override a base definition.  In
that case, the MonoMethod* corresponds to the parent type's f method, but the
reflected type is derivedType)

In this case, GetBaseDefinition will return the same MonoMethod* but the
reflected type of the result should be the base type, not the derived type.

7 years ago[tests] Additional tests of System.Reflection.MethodInfo.GetBaseDefinition
Aleksey Kliger [Wed, 22 Mar 2017 20:19:25 +0000 (16:19 -0400)]
[tests] Additional tests of System.Reflection.MethodInfo.GetBaseDefinition

7 years ago[threadpool-io] Ensure selector thread is running before waiting on it (#4572)
Ludovic Henry [Thu, 23 Mar 2017 14:09:33 +0000 (10:09 -0400)]
[threadpool-io] Ensure selector thread is running before waiting on it (#4572)

This could result in a unecessary wait on shutdown where the selector thread would have exited, and the finalizer thread would try to dispose a Socket, which would try to remove the socket from the IOSelector. This removal operation would wait on the selector thread to acknowledge the removal, but because the selector thread would have alreday exited, we would wait on an event that would never happen.

7 years ago[mkbundle] Use correctly link paths when loading assembly deps
Andoni Morales Alastruey [Thu, 20 Oct 2016 09:17:38 +0000 (11:17 +0200)]
[mkbundle] Use correctly link paths when loading assembly deps

7 years agoinvoke_array_extract_argument() will create objects and set them in the parameters...
Brian Raderman [Wed, 8 Mar 2017 19:13:02 +0000 (14:13 -0500)]
invoke_array_extract_argument() will create objects and set them in the parameters array when it detects a null parameter, but when we return a by-value parameter may no longer be null, which is an error.  This fix detects the change and sets the parameter back to null for by-value parameters before we return.

7 years agoOne brace missed
Adrian Cheng [Wed, 15 Mar 2017 12:57:53 +0000 (20:57 +0800)]
One brace missed

7 years agoClean unrelated changes left
Adrian Cheng [Wed, 15 Mar 2017 12:47:58 +0000 (20:47 +0800)]
Clean unrelated changes left

7 years agoTry hardly to fix the revert the style changes I made...
Adrian Cheng [Wed, 15 Mar 2017 12:40:34 +0000 (20:40 +0800)]
Try hardly to fix the revert the style changes I made...

7 years agoPut the spaces back before calling function and indexing to follow coding guidelins
Adrian Cheng [Wed, 15 Mar 2017 10:53:57 +0000 (18:53 +0800)]
Put  the spaces back before calling function and indexing to follow coding guidelins

7 years agoChange brace style to follow coding guidelines
Adrian Cheng [Wed, 15 Mar 2017 02:40:41 +0000 (10:40 +0800)]
Change brace style to follow coding guidelines

7 years agoReplace whitespaces to 8-spaces tabs
Adrian Cheng [Wed, 15 Mar 2017 02:32:46 +0000 (10:32 +0800)]
Replace whitespaces to 8-spaces tabs

7 years agoFix Bug #40969
Adrian Cheng [Tue, 14 Mar 2017 11:08:48 +0000 (19:08 +0800)]
Fix Bug #40969

7 years agoBump cecil
Marek Safar [Tue, 21 Mar 2017 18:24:58 +0000 (19:24 +0100)]
Bump cecil

7 years agocsharp: support command line arguments for scripts
Aaron Bockover [Wed, 22 Mar 2017 14:30:36 +0000 (10:30 -0400)]
csharp: support command line arguments for scripts

This adds a command line argument preprocessor that splits command line
arguments into two groups, delimited by the "standard" `--` "stop
processing" argument, or by the `-s` argument which can be used with
Unix shebang syntax (where the path of the file being executed will
be appended to the command line specified on the shebang line).

- anything before `--` or `-s` will be passed to mcs/csharp as usual
- anything after `--` or `-s` will _not_ be processed by mcs/csharp,
  and will be made available in an `Args` builtin, like `csi`

This _finally_ (after almost 10 years) allows `csharp` to be used for
proper script authoring!

Document the new arguments in the man page. Also remove references to
'gsharp' from the man page.

7 years ago[System.Data] Fixes tests build with mobile profiles
Marek Safar [Thu, 23 Mar 2017 09:14:56 +0000 (10:14 +0100)]
[System.Data] Fixes tests build with mobile profiles

7 years ago[System.Configuration] Refactor InitForConfiguration to be readable
Marek Safar [Wed, 22 Mar 2017 22:59:07 +0000 (23:59 +0100)]
[System.Configuration] Refactor InitForConfiguration to be readable

7 years ago[runtime] Fix missing abort during abort protected regions
Vlad Brezae [Fri, 17 Mar 2017 20:41:04 +0000 (22:41 +0200)]
[runtime] Fix missing abort during abort protected regions

When aborting a thread we set the thread's interruption request and we also increment the global interruption request. If we were trying to abort a thread when it is in an abort protected region, it will just set an interruption deferred and not do anything else (in async_abort_critical). When the thread exited the abort protected region, it was missing the abort request since we didn't increment the global interruption request.

Refactor thread_interruption_requested modifications, making sure we always bump it when requesting an interruption and decrease it when we clear an interruption.

7 years ago[runtime] Rework abort deferring
Vlad Brezae [Fri, 17 Mar 2017 13:05:10 +0000 (15:05 +0200)]
[runtime] Rework abort deferring

The problem with previous implementation was that we were not able to account for two pending exceptions at the same time, since when we execute an interruption request we clear all the state and there is no clear way to account for two exceptions at the same time. This means that, if we have a pending abort in a cctor, all exception handling inside the cctor will be broken (for the provided test case we were only throwing the cctor internal exception outside of it).

In order to fix this, we split into two types of interruptions SYNC and ASYNC (in order to separate mainly between abort and pending exceptions). Sync interruptions are interruptions requested by the thread itself (pending exceptions and self aborts) and they are processed as soon as possible. Async interruptions are requested by other threads (abort, interrupt, suspend) and we defer them as we were doing before (we have a deferred interruption if we have an async exception and abort block count is non zero).

7 years ago[xbuild] Copy csc/mcs GC settings to xbuild script
Marek Safar [Wed, 22 Mar 2017 16:45:33 +0000 (17:45 +0100)]
[xbuild] Copy csc/mcs GC settings to xbuild script

7 years agoAppleTls Support (#4470)
Chris Hamons [Wed, 22 Mar 2017 18:15:02 +0000 (13:15 -0500)]
AppleTls Support (#4470)

7 years ago[msvc] Update csproj files
monojenkins [Wed, 22 Mar 2017 16:30:36 +0000 (16:30 +0000)]
[msvc] Update csproj files

7 years ago[System.Data] Integration tests (#4538)
Egor Bogatov [Wed, 22 Mar 2017 12:51:57 +0000 (15:51 +0300)]
[System.Data] Integration tests (#4538)

7 years ago[System.Data] Fix bug-53217: use AddressFamily.InterNetworkV6 when needed
EgorBo [Wed, 15 Mar 2017 22:11:11 +0000 (01:11 +0300)]
[System.Data] Fix bug-53217: use AddressFamily.InterNetworkV6 when needed

7 years ago[runtime] Fix another typo in get_errno_from_g_file_error ().
Zoltan Varga [Wed, 22 Mar 2017 08:20:28 +0000 (04:20 -0400)]
[runtime] Fix another typo in get_errno_from_g_file_error ().

7 years ago[runtime] Fix a typo causing an assert in get_errno_from_g_file_error (). Fixes ...
Zoltan Varga [Wed, 22 Mar 2017 08:17:30 +0000 (04:17 -0400)]
[runtime] Fix a typo causing an assert in get_errno_from_g_file_error (). Fixes #53684.

7 years ago[msvc] Fixes Cecil project update
Marek Safar [Tue, 21 Mar 2017 22:24:51 +0000 (23:24 +0100)]
[msvc] Fixes Cecil project update

7 years ago[runtime] Add some documentation for the offsets stuff.
Zoltan Varga [Tue, 21 Mar 2017 20:46:08 +0000 (16:46 -0400)]
[runtime] Add some documentation for the offsets stuff.

7 years ago[msvc] Update csproj files
monojenkins [Tue, 21 Mar 2017 16:22:38 +0000 (16:22 +0000)]
[msvc] Update csproj files

7 years ago[ppdb] Avoid asserting on ppdb images without a guid heap.
Zoltan Varga [Tue, 21 Mar 2017 15:43:28 +0000 (11:43 -0400)]
[ppdb] Avoid asserting on ppdb images without a guid heap.

7 years ago[System.Web] Fix standalone-runner to return non-zero exit code on failure (#4562)
Alexander Köplinger [Tue, 21 Mar 2017 12:04:19 +0000 (13:04 +0100)]
[System.Web] Fix standalone-runner to return non-zero exit code on failure (#4562)

* [System.Web] Fix standalone-runner to return non-zero exit code on failure

We didn't notice that test runs with standalone-runner.exe failed
because it still exited with 0 in those cases.

Fixed that and the standalone tests that showed up as failed in
System.Web.Extensions (some differences likely from referencesource
code import).

* Fix replacement logic for Consts.cs.in to use Windows paths

7 years agoBump linker
Marek Safar [Tue, 21 Mar 2017 11:30:10 +0000 (12:30 +0100)]
Bump linker

7 years ago[System] Fix Process tests on watch
Marek Safar [Mon, 20 Mar 2017 22:57:31 +0000 (23:57 +0100)]
[System] Fix Process tests on watch

7 years ago[System.Core] Update mobile test
Marek Safar [Mon, 20 Mar 2017 22:03:29 +0000 (23:03 +0100)]
[System.Core] Update mobile test

7 years ago[runtime] Fix interruption deferring
Vlad Brezae [Wed, 15 Mar 2017 23:15:58 +0000 (01:15 +0200)]
[runtime] Fix interruption deferring

We were accidentally clearing the interruption deferred flag when exiting from nested abort protected regions.

7 years agoMerge pull request #4555 from alexanderkyte/finished_mangler
Alexander Kyte [Mon, 20 Mar 2017 18:52:42 +0000 (14:52 -0400)]
Merge pull request #4555 from alexanderkyte/finished_mangler

[runtime] Finish the AOT mangler

7 years ago[msvc] Update csproj files
monojenkins [Mon, 20 Mar 2017 16:36:02 +0000 (16:36 +0000)]
[msvc] Update csproj files

7 years agoMerge pull request #4554 from kumpera/cleanup-random-stuff
Rodrigo Kumpera [Mon, 20 Mar 2017 15:33:43 +0000 (08:33 -0700)]
Merge pull request #4554 from kumpera/cleanup-random-stuff

Remove debug spew plus fix the code from PR #4536

7 years ago[arm64] Fix the DISABLE_JIT build.
Zoltan Varga [Mon, 20 Mar 2017 11:46:40 +0000 (07:46 -0400)]
[arm64] Fix the DISABLE_JIT build.

7 years agoSystem.Security.Cryptography.X509Certificates enums from .NET Core.
Vladimir Kazakov [Sat, 18 Mar 2017 21:26:59 +0000 (23:26 +0200)]
System.Security.Cryptography.X509Certificates enums from .NET Core.

TrustStatus and X509SelectionFlag are missing from .NET Core (https://github.com/dotnet/corefx/issues/17194), hence TrustStatus was taken from .NET Framework and X509SelectionFlag was left untouched.

7 years ago[simd] Add some missing Vector<T> intrinsics. Add some code to print out missing...
Zoltan Varga [Mon, 20 Mar 2017 10:45:54 +0000 (06:45 -0400)]
[simd] Add some missing Vector<T> intrinsics. Add some code to print out missing intrinsics when running with -v -v. (#4560)

7 years ago[msvc] Update csproj files
monojenkins [Sun, 19 Mar 2017 16:34:37 +0000 (16:34 +0000)]
[msvc] Update csproj files

7 years ago[x86] Implement OP_EXPAND_I1 by lowering instead of directly to avoid register alloca...
Zoltan Varga [Mon, 20 Mar 2017 04:16:20 +0000 (00:16 -0400)]
[x86] Implement OP_EXPAND_I1 by lowering instead of directly to avoid register allocation problems. Increase stack size when simd types are used. (#4557)

7 years ago[interp] allocate storage for value types in runtime_invoke
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] allocate storage for value types in runtime_invoke

7 years ago[interp] treat GENERICINST properly on runtime_invoke return
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] treat GENERICINST properly on runtime_invoke return

7 years ago[interp] box IntPtr on return of runtime_invoke
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] box IntPtr on return of runtime_invoke

7 years ago[interp] add UnsafeMov intrinsic support
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] add UnsafeMov intrinsic support

7 years ago[interp] fix offset for starg_vt insn
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] fix offset for starg_vt insn

fixes an issue in TestDriver, thus enabling some more tests.

7 years ago[interp] remove register keyword hack.
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] remove register keyword hack.

we have 2017.

7 years ago[interp] call mono_thread_abort after an exception couldn't be handled
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] call mono_thread_abort after an exception couldn't be handled

7 years ago[interp] don't assert on stack walking if we don't find a frame
Bernhard Urban [Fri, 17 Mar 2017 16:02:02 +0000 (17:02 +0100)]
[interp] don't assert on stack walking if we don't find a frame

e.g. `is_running_protected_wrapper` doesn't necessarily find a matching frame.

7 years ago[lldb] update `monobt` so it understands interpreter frames.
Bernhard Urban [Fri, 17 Mar 2017 15:58:49 +0000 (16:58 +0100)]
[lldb] update `monobt` so it understands interpreter frames.

```
(lldb) monobt
* thread #1
  * frame #0: 0x00000001001b236e mono-sgen`interp_transform_call(td=0x00007fff5fbfd080, method=0x0000000100915a90, target_method=0x0000000000000000, domain=0x000000010090b741
    frame #1: 0x00000001001a1c2e mono-sgen`generate(method=0x0000000100915a90, rtm=0x000000010382ac70, is_bb_start="\x01", generic_context=0x0000000100915ad0) + 9454 at tran8
    transforming TestMonoAsyncGenerics::AsyncWithAwait || frame #2: 0x000000010019f553 mono-sgen`mono_interp_transform_method(runtime_method=0x000000010382ac70, context=0x004
    TestMonoAsyncGenerics::AsyncWithAwait @ 0  || frame #3: 0x000000010018a178 mono-sgen`ves_exec_method_with_context(frame=0x00007fff5fbfe290, context=0x00007fff5fbfe3a8) +9
    TestMonoAsyncGenerics::Main @ 12 "pop" || frame #4: 0x000000010018b4b1 mono-sgen`ves_exec_method_with_context(frame=0x00007fff5fbfe420, context=0x00007fff5fbfe3a8) + 5081
    frame #5: 0x0000000100189e43 mono-sgen`mono_interp_runtime_invoke(method=0x000000010090ce38, obj=0x0000000000000000, params=0x00007fff5fbfea40, exc=0x0000000000000000, e0
    frame #6: 0x00000001000164a2 mono-sgen`mono_jit_runtime_invoke(method=0x000000010090ce38, obj=0x0000000000000000, params=0x00007fff5fbfea40, exc=0x0000000000000000, erro1
    frame #7: 0x000000010038b2b5 mono-sgen`do_runtime_invoke(method=0x000000010090ce38, obj=0x0000000000000000, params=0x00007fff5fbfea40, exc=0x0000000000000000, error=0x002
    frame #8: 0x0000000100384e97 mono-sgen`mono_runtime_invoke_checked(method=0x000000010090ce38, obj=0x0000000000000000, params=0x00007fff5fbfea40, error=0x00007fff5fbfeb000
    frame #9: 0x000000010038f335 mono-sgen`do_exec_main_checked(method=0x000000010090ce38, args=0x00000001020003c8, error=0x00007fff5fbfeb00) + 197 at object.c:4672
    frame #10: 0x000000010038dd5c mono-sgen`mono_runtime_exec_main_checked(method=0x000000010090ce38, args=0x00000001020003c8, error=0x00007fff5fbfeb00) + 76 at object.c:4773
    frame #11: 0x000000010038ddbf mono-sgen`mono_runtime_run_main_checked(method=0x000000010090ce38, argc=1, argv=0x00007fff5fbfef68, error=0x00007fff5fbfeb00) + 79 at objec2
    frame #12: 0x00000001000d9a33 mono-sgen`mono_jit_exec(domain=0x000000010090b740, assembly=0x0000000100913610, argc=1, argv=0x00007fff5fbfef68) + 403 at driver.c:1029
    frame #13: 0x00000001000dd9da mono-sgen`main_thread_handler(user_data=0x00007fff5fbfeea0) + 538 at driver.c:1098
    frame #14: 0x00000001000dc21c mono-sgen`mono_main(argc=3, argv=0x00007fff5fbfef58) + 8636 at driver.c:2163
    frame #15: 0x0000000100001b9e mono-sgen`mono_main_with_options(argc=3, argv=0x00007fff5fbfef58) + 46 at main.c:45
    frame #16: 0x00000001000012dd mono-sgen`main(argc=3, argv=0x00007fff5fbfef58) + 77 at main.c:338
    frame #17: 0x00007fffc2e66255 libdyld.dylib`start + 1
    frame #18: 0x00007fffc2e66255 libdyld.dylib`start + 1
```

7 years ago[arm] Fix the DISABLE_JIT build.
Zoltan Varga [Fri, 17 Mar 2017 23:05:39 +0000 (19:05 -0400)]
[arm] Fix the DISABLE_JIT build.

7 years agoMake System.Drawing code compatible with .NET Core (#4548)
Frederik Carlier [Fri, 17 Mar 2017 22:30:35 +0000 (23:30 +0100)]
Make System.Drawing code compatible with .NET Core (#4548)

7 years ago[runtime] Finish AOT method name mangler
Alexander Kyte [Wed, 18 Jan 2017 15:50:40 +0000 (15:50 +0000)]
[runtime] Finish AOT method name mangler

7 years ago[runtime] Remove debug spew.
Rodrigo Kumpera [Fri, 17 Mar 2017 20:30:09 +0000 (13:30 -0700)]
[runtime] Remove debug spew.

7 years ago[runtime] Remove debug leftover and have mono_assembly_is_problematic_version actuall...
Rodrigo Kumpera [Fri, 17 Mar 2017 20:29:57 +0000 (13:29 -0700)]
[runtime] Remove debug leftover and have mono_assembly_is_problematic_version actually work.

7 years agoless allocation in Socket (#4516)
su21 [Fri, 17 Mar 2017 19:35:41 +0000 (03:35 +0800)]
less allocation in Socket (#4516)

* less allocation in Socket

avoid allocate `System.Threading.QueueUserWorkItemCallback` in `SocketAsyncResult.Complete`
avoid allocate `Task` and anonymous function in `Socket.QueueIOSelectorJob`

* update: fix race and use replace static field with in line lambda

* cleanup code

* QueueIOSelectorJob keep async, and provie a fastpath

* SocketAsyncResult: simplify callback code

* add missing line `IOSelect.Add(handle, job)`  :(

* fix typo

* fix compile error

7 years agoBump version number to 4.9.4 to support automated builders
Andi McClure [Fri, 17 Mar 2017 15:58:05 +0000 (11:58 -0400)]
Bump version number to 4.9.4 to support automated builders

7 years agoAdd support for xunit tests
Marek Safar [Sat, 11 Mar 2017 13:37:01 +0000 (14:37 +0100)]
Add support for xunit tests

7 years ago[System] Add back empty MonoTouch namespace
Marek Safar [Fri, 17 Mar 2017 13:07:38 +0000 (14:07 +0100)]
[System] Add back empty MonoTouch namespace

7 years agoMerge pull request #4542 from lateralusX/jlorenss/win-fix-unwind-tramp-reg-aot
Johan Lorensson [Fri, 17 Mar 2017 09:03:22 +0000 (10:03 +0100)]
Merge pull request #4542 from lateralusX/jlorenss/win-fix-unwind-tramp-reg-aot

mono_arch_unwindinfo_install_tramp_unwind_info can only be called for JIT:ed code.

7 years ago[jit] Remove support for the separate mono_lmf variable in the JIT, use the mono_lmf_...
Zoltan Varga [Fri, 17 Mar 2017 07:32:52 +0000 (03:32 -0400)]
[jit] Remove support for the separate mono_lmf variable in the JIT, use the mono_lmf_addr () variable instead. The former could be used to generate slighly faster code in managed-to-native wrappers, but its not worth all the complexity it caused. (#4549)

7 years agoRemove CAS attributes from System.Drawing (#4544)
Frederik Carlier [Thu, 16 Mar 2017 23:10:44 +0000 (00:10 +0100)]
Remove CAS attributes from System.Drawing (#4544)

7 years agoMerge pull request #4453 from lambdageek/bug-49721
Aleksey Kliger (λgeek) [Thu, 16 Mar 2017 23:09:00 +0000 (19:09 -0400)]
Merge pull request #4453 from lambdageek/bug-49721

[loader] Check strong name when loading from application base. (Fixes #49721)

7 years ago[x86] Disable the usage of mono_lmf on android as a workaround.
Zoltan Varga [Thu, 16 Mar 2017 23:06:36 +0000 (19:06 -0400)]
[x86] Disable the usage of mono_lmf on android as a workaround.

7 years ago[x86] Remove some incorrect code from method prologs which clobbers the return value.
Zoltan Varga [Thu, 16 Mar 2017 22:56:49 +0000 (18:56 -0400)]
[x86] Remove some incorrect code from method prologs which clobbers the return value.

7 years ago[corcompare] Fix support for BindableAtribute ctor that takes BindableSupport
Alexander Köplinger [Thu, 16 Mar 2017 21:22:35 +0000 (22:22 +0100)]
[corcompare] Fix support for BindableAtribute ctor that takes BindableSupport

7 years agoMove target for creating monolite package to Mono
Alexander Köplinger [Thu, 16 Mar 2017 19:02:21 +0000 (20:02 +0100)]
Move target for creating monolite package to Mono

7 years agoInclude Mono version in corlib version
Alexander Köplinger [Thu, 16 Mar 2017 20:15:32 +0000 (21:15 +0100)]
Include Mono version in corlib version

This makes it possible to version the runtime<->corlib interface
for each version branch independently and fixes the problem
of monolite getting overwritten by changes in different branches
when corlib version is still the same.

We're moving definition of the corlib version into configure.ac
so we can more easily bake the Mono version into it.

7 years agoMerge pull request #4536 from kumpera/block-rebind-of-banned-assemblies
Rodrigo Kumpera [Thu, 16 Mar 2017 19:23:10 +0000 (15:23 -0400)]
Merge pull request #4536 from kumpera/block-rebind-of-banned-assemblies

Reject rebinds that target one of the banned assemblies.

7 years ago[tests] Separate MONO_PATH directories by PLATFORM_PATH_SEPARATOR
Aleksey Kliger [Thu, 16 Mar 2017 17:20:18 +0000 (13:20 -0400)]
[tests] Separate MONO_PATH directories by PLATFORM_PATH_SEPARATOR

7 years ago[mono/tests] Add strong named assembly loading tests
Aleksey Kliger [Fri, 10 Mar 2017 15:50:51 +0000 (10:50 -0500)]
[mono/tests] Add strong named assembly loading tests

These tests place strong named assemblies on the MONO_PATH and into
MONO_GAC_PREFIX in various configurations and check that when a strong assembly
name  is specified: mono will ignore non-strong named assemblies that come
earlier in the search paths; mono will ignore strong named assemblies that have
the right filename and come earlier in the search path but have an incorrect
strong name.

7 years ago[tools] Dep check the downloads to avoid the mistake fixed by the previous commit.
Rodrigo Kumpera [Thu, 16 Mar 2017 17:26:22 +0000 (10:26 -0700)]
[tools] Dep check the downloads to avoid the mistake fixed by the  previous commit.

7 years ago[runtime] Update the banned version list to include SRDP and SVT.
Rodrigo Kumpera [Thu, 16 Mar 2017 17:25:32 +0000 (10:25 -0700)]
[runtime] Update the banned version list to include SRDP and SVT.

7 years ago[xbuild] Fix make dist broken by a350f8f0f470
Alexander Köplinger [Thu, 16 Mar 2017 16:16:58 +0000 (17:16 +0100)]
[xbuild] Fix make dist broken by a350f8f0f470

Wildcards aren't supported in EXTRA_DISTFILES and it wouldn't work
anyway since we need to enclose the paths with spaces in quotes.

7 years ago[WindowsBase] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:33 +0000 (17:21 +0100)]
[WindowsBase] Rename method parameters to match .NET contract

7 years ago[System.Xaml] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:31 +0000 (17:21 +0100)]
[System.Xaml] Rename method parameters to match .NET contract

7 years ago[System.Windows.Forms.DataVisualization] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:30 +0000 (17:21 +0100)]
[System.Windows.Forms.DataVisualization] Rename method parameters to match .NET contract

7 years ago[System.Web.Extensions] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:29 +0000 (17:21 +0100)]
[System.Web.Extensions] Rename method parameters to match .NET contract

7 years ago[System.Web.ApplicationServices] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:28 +0000 (17:21 +0100)]
[System.Web.ApplicationServices] Rename method parameters to match .NET contract

7 years ago[System.Web] Rename method parameters to match .NET contract
Alexander Köplinger [Thu, 16 Mar 2017 03:20:43 +0000 (04:20 +0100)]
[System.Web] Rename method parameters to match .NET contract

7 years ago[System.Transactions] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:26 +0000 (17:21 +0100)]
[System.Transactions] Rename method parameters to match .NET contract

7 years ago[System.ServiceModel.Web] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:25 +0000 (17:21 +0100)]
[System.ServiceModel.Web] Rename method parameters to match .NET contract

7 years ago[System.ServiceModel.Discovery] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:23 +0000 (17:21 +0100)]
[System.ServiceModel.Discovery] Rename method parameters to match .NET contract

7 years ago[System.ServiceModel] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:22 +0000 (17:21 +0100)]
[System.ServiceModel] Rename method parameters to match .NET contract

7 years ago[System.Security] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:21 +0000 (17:21 +0100)]
[System.Security] Rename method parameters to match .NET contract

7 years ago[System.Management] Rename method parameters to match .NET contract
Alexander Köplinger [Wed, 15 Mar 2017 16:21:20 +0000 (17:21 +0100)]
[System.Management] Rename method parameters to match .NET contract