Niklas Therning [Tue, 16 May 2017 17:36:18 +0000 (19:36 +0200)]
Merge pull request #4877 from ntherning/fix-file-handle-leak-in-mono_mmap_open_file-on-windows
Fixes a file handle leak in mono_mmap_open_file() on Windows
Niklas Therning [Tue, 16 May 2017 14:46:52 +0000 (16:46 +0200)]
Fixes a file handle leak in mono_mmap_open_file() on Windows. See
https://bugzilla.xamarin.com/show_bug.cgi?id=56493.
Mikayla Hutchinson [Tue, 16 May 2017 10:31:19 +0000 (06:31 -0400)]
[xbuild] Add web targets for 15.0 (#4868)
Alexander Köplinger [Tue, 16 May 2017 10:10:34 +0000 (12:10 +0200)]
[msvc] Remove order.xml (#4867)
It's a build artifact anyway since we check in the generated csproj's
so you don't really need the order.xml.
After the new platform-specific BCL changes went in it also started
containing stuff like `-r:./../../class/lib/net_4_x-linux/mscorlib.dll`
which makes it even less useful to have checked in as it'd get
changed when you build on OSX for example.
Ludovic Henry [Tue, 16 May 2017 02:19:34 +0000 (22:19 -0400)]
[threadpool] Fix alignment of ThreadPoolWorkerCounter (#4871)
It is accessed with a 64bits atomic operation, so it needs to be 64bits aligned, even on a 32bits platform. A CPU exception EXC_ARM_DA_ALIGN triggers on armv7 32bits.
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=56202
Vlad Brezae [Tue, 16 May 2017 00:22:50 +0000 (03:22 +0300)]
Merge pull request #4752 from BrzVlad/feature-dynamic-nrs
[sgen] Dynamic nursery sizing
Zoltan Varga [Mon, 15 May 2017 22:53:10 +0000 (18:53 -0400)]
Interp fixes (#4864)
* [interp] Add support for mkrefany,refanytype and refanyval.
* [interp] Avoid inlining empty methods marked with NoInlining.
* [interp] Fix the popping of arguments when inlining empty methods.
Frederik Carlier [Mon, 15 May 2017 19:10:01 +0000 (21:10 +0200)]
System.Drawing: Various netstandard1.6 compat fixes (#4863)
Minor fixes which make System.Drawing compatible with netstandard1.6:
- Use MemoryStream.ToArray instead of .GetBuffer
- Use RuntimeInformation.IsOSPlatform to determine the operating system
- Use Stream.Dispose instead of Stream.Close
- Disable serialization support for exceptions
- Don't use AppDomain
Jonathan Pryor [Mon, 15 May 2017 17:36:48 +0000 (13:36 -0400)]
[amd64] Make more inline functions in header static (#4869)
Related: commit
00c6a94a
When [Xamarin.Android attempts to build with mono/2017-04][0], the
build breaks when cross-linking Windows code via MXE due to the
presence of an undefined `inline`d function:
./.libs/libmini.a(libmini_la-tramp-amd64.o):…/xamarin-android/external/mono/mono/mini/tramp-amd64.c:746:
undefined reference to `mono_arch_unwindinfo_get_size'
Turn `mono_arch_unwindinfo_find_pc_rt_func_in_table()` and
`mono_arch_unwindinfo_get_size()` into `static inline` functions so
that they don't cause "undefined reference" linker errors.
Additionally, audit the rest of `mono` to ensure there aren't any
other `inline` functions that aren't `static`:
$ git grep '\<inline\>' mono | grep -v static | grep -E '(\.c|\.h):'
# ~50 matches, all of which are in comments or otherwise not relevant.
[0]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android/388/
Zoltan Varga [Mon, 15 May 2017 17:04:32 +0000 (13:04 -0400)]
[runtime] Remove ia64 backend, the Itanium architecture is dead. (#4859)
Rodrigo Kumpera [Mon, 15 May 2017 14:58:33 +0000 (07:58 -0700)]
Merge pull request #4851 from kumpera/handle_eloop_errno
[metadata] Handle ELOOP in mono_w32error_unix_to_win32.
Martin Baulig [Mon, 15 May 2017 14:39:19 +0000 (10:39 -0400)]
[System]: Update corefx/SR.cs in preparation of the upcoming HttpListener merge. (#4849)
Aleksey Kliger [Sat, 13 May 2017 01:24:49 +0000 (21:24 -0400)]
[sre] Don't leak coop handles in mono_dynimage_encode_typedef_or_ref_full
This function calls mono_class_get_ref_info which allocates a coop handle.
However it is called from an icall that wasn't converted to use coop handles
yet, so nothing was saving/restoring the handle stack mark, and consequently
the handles leak.
Jonathan Chambers [Fri, 12 May 2017 22:59:25 +0000 (18:59 -0400)]
Use handle macros to avoid leaking result of mono_type_get_object_handle
Bernhard Urban [Mon, 15 May 2017 12:11:30 +0000 (14:11 +0200)]
[interp] update ignore list for CI
monojenkins [Mon, 15 May 2017 12:23:05 +0000 (14:23 +0200)]
[msvc] Update csproj files (#4846)
Bernhard Urban [Mon, 15 May 2017 07:48:45 +0000 (09:48 +0200)]
[image] follow up fix for
62bc1b229ee0501b706f3ea39524180c0ae7fc26
otherwise we try to access `ignored_assemblies_names` out of bounds
Vlad Brezae [Wed, 26 Apr 2017 00:44:11 +0000 (03:44 +0300)]
[tests] Remove unreferenced bridge test targets
These were changed and renamed in a previous commit.
Vlad Brezae [Tue, 18 Apr 2017 16:45:26 +0000 (19:45 +0300)]
[sgen] Track down promoted size also with parallel minors
Vlad Brezae [Wed, 12 Apr 2017 22:20:07 +0000 (01:20 +0300)]
[sgen] Use the idle object ops for worker jobs
We had the object ops set in the job when allocating the job (typically by the main gc thread). When enqueueing jobs, we leave their ops NULL, and when the worker actually executes the job, it will use the idle object ops, which can get dynamically optimized over the work cycle.
Vlad Brezae [Wed, 12 Apr 2017 22:14:41 +0000 (01:14 +0300)]
[sgen] Don't execute jobs before actually starting the workers
It's counter intuitive and it might lead to races at some point.
Vlad Brezae [Fri, 7 Apr 2017 23:21:48 +0000 (02:21 +0300)]
[sgen] Resize nursery according also to pause times
Vlad Brezae [Wed, 5 Apr 2017 10:11:01 +0000 (13:11 +0300)]
[sgen] Dynamic nursery sizing
We attempt to have a nursery that is as large as possible, while keeping a relative limit to the heap size.
Vlad Brezae [Thu, 6 Apr 2017 23:25:02 +0000 (02:25 +0300)]
[sgen] Remove unused function
Vlad Brezae [Wed, 5 Apr 2017 22:18:27 +0000 (01:18 +0300)]
[sgen] Remove some redundancy with nursery section
Vlad Brezae [Mon, 3 Apr 2017 11:52:57 +0000 (14:52 +0300)]
[sgen] Kill USER_CONFIG
It is useless and confusing. We always support setting the nursery-size through MONO_GC_PARAMS.
Frederik Carlier [Mon, 15 May 2017 00:39:24 +0000 (02:39 +0200)]
System.Drawing: netstandard1.6 compatibility: String fixes (#4862)
- ImageFormatConverter uses string.Compare to compare extensions for known file types. It uses CultureInfo.InvariantCulture,
which is not available on netstandard1.6. Because all the extensions use ASCII-characters, StringCOmparsion.OrdinalIgnoreCase
can be used, which is equivalent.
- Replace ToLower (CultureInfo.InvariantCulture) with .ToLowerInvariant ()
Frederik Carlier [Mon, 15 May 2017 00:23:43 +0000 (02:23 +0200)]
[System.Drawing] NS1.6 compatibility: Use GetTypeInfo () where required (#4861)
* netstandard1.6 compatibility: Use GetTypeInfo () where required
A lot of methods have moved from Type to TypeInfo in netstandard1.6, add calls to GetTypeInfo ()
where required to support compiling System.Drawing on netstandard1.6
* Add missing using statement
Alexander Köplinger [Sat, 13 May 2017 15:26:35 +0000 (17:26 +0200)]
[csproj] Update generator to handle platform-specific assemblies (#4847)
After https://github.com/mono/mono/pull/4837 was merged the
csproj update bot started sending PRs which hardcoded net_4_x-linux
as the OutputPath.
Updated the csproj generator to detect this and use a variable
in the OutputPath instead. It'll autodetect based on the current OS
and can be overriden by passing /p:HostPlatform=foobar to msbuild.
Ideally we'd have configurations for each platform in the csproj since
in the future the file lists will be different but this is a first step.
Marek Safar [Sat, 13 May 2017 07:31:59 +0000 (09:31 +0200)]
[runtime] Remove System.ValueTuple from denied assemblies. It's not needed
anymore because we have reference assemblies and it didn't work for mobile tools (e.g. linker)
Alexander Köplinger [Sat, 13 May 2017 11:08:07 +0000 (13:08 +0200)]
[MacSDK] Whitelist mono32
Rodrigo Kumpera [Fri, 12 May 2017 22:34:52 +0000 (15:34 -0700)]
[metadata] Handle ELOOP in mono_w32error_unix_to_win32.
Vlad Brezae [Fri, 12 May 2017 19:43:35 +0000 (22:43 +0300)]
Merge pull request #4828 from BrzVlad/fix-windows-ci
[runtime] Fix windows ci
Martin Baulig [Fri, 12 May 2017 18:32:50 +0000 (14:32 -0400)]
[System]: Replace HttpListenerResponseHelper with HttpStatusDescription from CoreFX (#4833)
* [System]: Replace HttpListenerResponseHelper with HttpStatusDescription from CoreFX.
* Update common.sources
Jan-Joost Spanjers [Fri, 12 May 2017 14:44:40 +0000 (16:44 +0200)]
Include gmodule-win32-internals.h in tarball (#4843)
Martin Baulig [Fri, 12 May 2017 14:33:07 +0000 (10:33 -0400)]
[System]: Add HttpListenerBasicIdentity.platformnotsupported.cs for watch. (#4836)
Zoltan Varga [Fri, 12 May 2017 12:58:56 +0000 (08:58 -0400)]
Amd64 gsharedvt small sizes (#4841)
* [jit] Fix CPBLK for large sizes.
* [amd64] Fix the byref->byval passing of small arguments from gsharedvt methods, we were loading loading them as pointers, which meant the upper bits might contain garbage. Fixes #56247.
Alexander Köplinger [Fri, 12 May 2017 12:32:40 +0000 (14:32 +0200)]
Update API snapshot with recent API changes
Marek Safar [Thu, 11 May 2017 19:09:48 +0000 (21:09 +0200)]
Bump corefx
Zoltan Varga [Fri, 12 May 2017 00:21:51 +0000 (20:21 -0400)]
[jit] Fix CPBLK for large sizes.
vkargov [Fri, 12 May 2017 00:02:57 +0000 (17:02 -0700)]
Merge pull request #4327 from vkargov/vk-abcremedy
[runtime] Abcrem fixes.
Alexander Köplinger [Thu, 11 May 2017 23:36:05 +0000 (01:36 +0200)]
[Facades] Update with new typeforwarders/APIs (#4838)
Ludovic Henry [Thu, 11 May 2017 23:19:09 +0000 (19:19 -0400)]
[mcs] Add platform specific files (#4837)
* [mcs] Rework %-recursive target to explicitely list subdirectories
* [mcs] Rename PLATFORM to BUILD_PLATFORM
* [mcs] Add platform specific files
This is to support adding corefx platform specific files. To do that, we now support `mcs/class/corlib/linux_net_4_x_corlib.dll.sources` for example, on top of `mcs/class/corlib/net_4_x_corlib.dll.sources` and `mcs/class/corlib/corlib.dll.sources`.
The 3 platforms that are supported are: `linux`, `darwin` and `win32`.
* [mcs] Build cross-platform bcl in separate folder
Martin Baulig [Thu, 11 May 2017 20:20:38 +0000 (16:20 -0400)]
[System]: HttpListener.CreateSslStream() should always use passed-in callback. (#4835)
Alexander Köplinger [Thu, 11 May 2017 19:49:58 +0000 (21:49 +0200)]
Revert "[MacSDK] Include 'opt' as a PATH-available binary"
This reverts commit
47365cd54b69a869c50e39223ff64dc8e4fb8889.
We didn't do this in the private bockbuild and putting
'opt' from Mono into the PATH could be problematic.
This makes us consistent with the private bockbuild whitelist.
Jonathan Chambers [Thu, 11 May 2017 13:30:23 +0000 (09:30 -0400)]
Specify Encoding.UTF8 when marshaling native runtime string. If not, string constructor accesses Encoding.Default which causes infinite recursion on Windows for codepages supported via I18N. While trying to load I18N assemblies, assembly names are marshaled in managed code now hitting this code path. Fixes Xamarin bug 43988.
vkargov [Thu, 11 May 2017 16:33:41 +0000 (09:33 -0700)]
[jit] Keep unwind info in the domain's memory pool. (#4825)
Aleksey Kliger (λgeek) [Thu, 11 May 2017 14:33:02 +0000 (10:33 -0400)]
Merge pull request #4796 from lambdageek/dev-handles-may04
[runtime] Another batch of coop handles icalls
Alexander Köplinger [Wed, 10 May 2017 23:07:17 +0000 (01:07 +0200)]
[MacSDK] Port change to license.rtf from private bockbuild
https://github.com/xamarin/bockbuild/commit/
97d660778097b391151776a611494a545becd62c
Vlad Brezae [Wed, 10 May 2017 23:14:11 +0000 (02:14 +0300)]
[runtime] Don't consume exception if not allowed to
The thread_state indicates whether we have a pending exception that needs to be consumed (be it sync or async). Normally we check the state before calling mono_thread_execute_interruption, but make sure we don't consume an exception if the thread_state doesn't allow us to (we can have an abort requested but mono_thread_clear_interruption_requested can return FALSE if we are inside an abort protected block and shouldn't process it)
Vlad Brezae [Wed, 10 May 2017 22:38:33 +0000 (01:38 +0300)]
Merge pull request #4816 from BrzVlad/fix-remoting-exception
[remoting] Serialize exceptions between domains inside try/catch
Vlad Brezae [Wed, 10 May 2017 21:12:52 +0000 (00:12 +0300)]
[tests] Don't starve the main thread by doing GCs
Thread.Yield doesn't guarantee that the thread doing GCs won't do it excessively, leading to significant variances in test run time.
Decrease number of iterations since these tests can take around 1 min.
Rodrigo Kumpera [Wed, 10 May 2017 20:23:08 +0000 (13:23 -0700)]
Merge pull request #4818 from kumpera/unaligned-cleanup-2
Last bucket of cleanups before I land the actual code for unaligned.
Martin Baulig [Wed, 10 May 2017 19:43:57 +0000 (15:43 -0400)]
[System]: Add new 'common-networking.sources' and move stuff from 'common.sources'. (#4815)
* [System]: Add new 'common-networking.sources' and move stuff from 'common.sources'.
This moves all the networking-related sources which aren't supported on monotouch_watch
into a separate file, so we don't have to maintain a huge "Thing That Should Not Exist".
* Put back System.Net/NtlmClient.cs - we actually do need it.
* Add HttpListenerTimeoutManager.platformnotsupported.cs.
* Make it build.
Ludovic Henry [Wed, 10 May 2017 18:53:03 +0000 (14:53 -0400)]
[process] Disable tests that do not work on mobile (#4598)
monojenkins [Wed, 10 May 2017 16:31:46 +0000 (18:31 +0200)]
[msvc] Update csproj files (#4822)
Aleksey Kliger [Thu, 4 May 2017 14:16:20 +0000 (10:16 -0400)]
[security] Use coop handles for ves_icall_System_Security_Principal_WindowsIdentity_GetUserToken
Aleksey Kliger [Wed, 3 May 2017 19:35:38 +0000 (15:35 -0400)]
[security] Use coop handles for ves_icall_System_Security_Principal_WindowsIdentity_GetTokenName
Aleksey Kliger [Wed, 3 May 2017 19:17:35 +0000 (15:17 -0400)]
[security] Use coop handles for ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken
Refactor it into mono_security_principal_windows_identity_get_current_token ()
and then call that from ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken ()
Aleksey Kliger [Wed, 3 May 2017 18:53:15 +0000 (14:53 -0400)]
[runtime] Use coop handles for System.RuntimeMethodHandle.GetFunctionPointer
Aleksey Kliger [Wed, 3 May 2017 18:21:33 +0000 (14:21 -0400)]
[sre] Use coop handles for ModuleBuilder.set_wrappers_type
Aleksey Kliger [Wed, 3 May 2017 16:04:42 +0000 (12:04 -0400)]
[sre] Use coop handles for ModuleBuilder.GetRegisteredToken
- Fix typo in REFLECTION_EMIT_INIT/REFLECTION_EMIT_SAVE in
mono_dynamic_image_register_token
- Add mono_dynamic_image_get_registered_token ()
- N.B. locking change - ves_icall_ModuleBuilder_GetRegisteredToken used to take
the loader lock. Now it calls mono_dynamic_image_get_registered_token which
just takes the image lock.
Aleksey Kliger [Wed, 3 May 2017 15:17:35 +0000 (11:17 -0400)]
[runtime] Use coop handles for System.Environment.internalBroadcastSettingChange
Aleksey Kliger [Fri, 28 Apr 2017 19:14:35 +0000 (15:14 -0400)]
[locales] Use coop handles for System.Text.Normalization.load_normalization_resource
Aleksey Kliger [Fri, 28 Apr 2017 18:51:50 +0000 (14:51 -0400)]
[sre] Use coop handles for System.Reflection.Emit.EnumBuilder.setup_enum_type
Aleksey Kliger [Tue, 25 Apr 2017 22:43:32 +0000 (18:43 -0400)]
[sre] Use coop handles for System.Reflection.Emit.SignatureHelper.get_signature_local
Aleksey Kliger [Tue, 25 Apr 2017 21:26:44 +0000 (17:26 -0400)]
[sre] Use coop handles for System.Reflection.Emit.SignatureHelper.get_signature_field
Aleksey Kliger [Tue, 9 May 2017 21:56:03 +0000 (17:56 -0400)]
[loader] resolve symlinks when looking for an image in the loaded_images cache
Consider the old code (which just used mono_path_canonicalize)
Suppose foo.dll is a symlink to bar.dll
Suppose we've try to load foo.dll the first time:
do_mono_image_open is passed "foo.dll" it then sets image->name to "bar.dll"
which is then used by register_image to do a lookup and then inserts the
mapping from "bar.dll" to the new image (call it Image1).
Suppose we try to load foo.dll a second time:
we check for "foo.dll" in the loaded_images cache and get NULL.
So we call do_mono_image_open ("foo.dll", ...) again, and again image->name is
set to "bar.dll". (Call this Image2)
We call register_image again which looks up bar.dll and gets Image1. So it
increments the refcount for Image1 and unloads Image2 and so
mono_image_open_a_lot returns Image1.
With the new code:
The first time we try to load foo.dll everything is the same. The second time
we try to load foo.dll, we resolve the symlink from "foo.dll" to "bar.dll" in
mono_image_open_a_lot and return Image1 directly from loaded_images.
Rolf Bjarne Kvinge [Wed, 10 May 2017 14:52:01 +0000 (16:52 +0200)]
[System] Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime'. (#4820)
Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime' to avoid
these compiler-warnings when building xamarin-macios assemblies (which defines
the same types in the ObjCRuntime namespace, and to whom System.dll has an
InternalsVisibleTo attribute):
> xamarin-macios/src/build/watch/watch/Foundation/NSExtensionRequestHandling.g.cs(28,49): warning CS0436: The type `ObjCRuntime.INativeObject' conflicts with the imported type of same name'. Ignoring the imported type definition
> xamarin-macios/src/ObjCRuntime/INativeObject.cs(6,19): (Location of the symbol related to previous warning)
> xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.WatchOS/repl/System.dll (Location of the symbol related to previous warning)
Rodrigo Kumpera [Tue, 9 May 2017 23:47:38 +0000 (16:47 -0700)]
[mini] Cleanup usage of mini_emit_memcpy and bad values for alignment - align to 4 on 64bits is *bad*.
Rodrigo Kumpera [Tue, 9 May 2017 23:01:47 +0000 (16:01 -0700)]
[jit] CPBLK and INITBLK now use the funtions in memory-access.c
Rodrigo Kumpera [Tue, 9 May 2017 20:50:30 +0000 (13:50 -0700)]
[jit] Add mini_emit_memory_copy_bytes and mini_emit_memory_init_bytes to be used by cpblk and iniblk.
Rodrigo Kumpera [Tue, 9 May 2017 23:01:57 +0000 (19:01 -0400)]
Merge pull request #4781 from kumpera/unaligned-cleanup-1
First pass of cleanups to introduce a clear layer that deals with emiting load/stores.
Vlad Brezae [Tue, 9 May 2017 21:54:47 +0000 (00:54 +0300)]
[remoting] Serialize exceptions between domains inside try/catch
If a remote invoke in another domain throws an exception, the xdomain-dispatch wrapper will serialize the exception and pass it over to the calling domain so that it can be rethrown there. Serializing the exception object can itself throw an exception which we didn't properly catch, leading to unwinding to the caller domain without changing the domain state back and wreaking havoc.
If the serialization of the original exception throws a new exception, this new exception takes its place, being passed instead to the caller domain.
Marek Safar [Tue, 9 May 2017 15:52:43 +0000 (17:52 +0200)]
Bump corefx
Rodrigo Kumpera [Tue, 9 May 2017 20:51:11 +0000 (13:51 -0700)]
[runtime] Update msvc build scripts.
Zoltan Varga [Tue, 9 May 2017 19:36:22 +0000 (15:36 -0400)]
[jit] Allow inlining of methods with the AggressiveInlining flag even if they make calls. (#4811)
Zoltan Varga [Tue, 9 May 2017 18:33:26 +0000 (14:33 -0400)]
[jit] Mark bblocks making calls to the corlib ThrowHelper class as out of line. (#4812)
Marek Safar [Tue, 9 May 2017 17:14:51 +0000 (19:14 +0200)]
[System.Data] Update cas test category
Marek Safar [Tue, 9 May 2017 17:02:48 +0000 (19:02 +0200)]
[mcs] Conditional check on attribute type needs to check its base types too
monojenkins [Tue, 9 May 2017 16:58:10 +0000 (18:58 +0200)]
[msvc] Update csproj files (#4813)
Martin Baulig [Tue, 9 May 2017 15:22:19 +0000 (11:22 -0400)]
[System]: Remove 'SECURITY_DEP' conditional from HttpListener and related classes. (#4810)
Alexander Köplinger [Tue, 9 May 2017 12:28:10 +0000 (14:28 +0200)]
[tools] Add resx2sr to "build" profile (#4807)
Similar to
9635b9cea0515432fead4c370b0533db91861bfe we
can now break the dependency on WinForms from resx2sr.
This allows us to add it to the "build" profile
and clean up the Makefile.
Rodrigo Kumpera [Mon, 1 May 2017 23:36:33 +0000 (16:36 -0700)]
[jit] Add mini_emit_memory_store and use it for STOBJ.
Rodrigo Kumpera [Mon, 8 May 2017 23:11:58 +0000 (16:11 -0700)]
[jit] Fix identation.
Rodrigo Kumpera [Mon, 8 May 2017 23:11:45 +0000 (16:11 -0700)]
[jit] Use mini_emit_memory_load for ldind, ldobj and ldfld
Rodrigo Kumpera [Mon, 8 May 2017 23:09:28 +0000 (16:09 -0700)]
[jit] Add mini_emit_memory_load that is to be used to lower CIL memory loads.
Martin Baulig [Mon, 8 May 2017 22:33:08 +0000 (18:33 -0400)]
[System]: Add private '_internalLock' field to HttpListener. (#4809)
After switching to the CoreFx version, HttpListener.Mono.cs will remain,
so it needs to use the proper locking object.
Alexander Köplinger [Mon, 8 May 2017 22:08:05 +0000 (00:08 +0200)]
[bcl] Add API diff for monotouch/monodroid profiles (#4805)
This runs the API diff against the monotouch and monodroid
profiles in addition to net_4_x to help us catch mistakes that
only affect the mobile profiles.
To make updating the API snapshot in case of an intentional change
easier without needing to build those profiles locally I added
a way to download the diff as a .patch file. You can just download
the file from the API diff Jenkins generates and apply it locally.
Alexander Köplinger [Mon, 8 May 2017 22:07:45 +0000 (00:07 +0200)]
[bcl] Cleanup outdated csproj/sln files (#4806)
They were either replaced by the autogenerated csproj files
or just completely broken for years.
Zoltan Varga [Mon, 8 May 2017 21:34:06 +0000 (17:34 -0400)]
[sdb] Avoid printing out the ThreadAbortException used to abort the protocol receiver thread. (#4804)
Martin Baulig [Mon, 8 May 2017 20:27:04 +0000 (16:27 -0400)]
[System]: Make HttpListener partial and move Mono-specific bits into HttpListener.Mono.cs. (#4808)
* [System]: Make HttpListener partial and move Mono-specific bits into HttpListener.Mono.cs.
* Remove ancient EMBEDDED_IN_1_0 conditional.
* Remove unused using statements.
* HttpListener.CreateSslStream() now uses RemoteCertificateValidationCallback.
Martin Baulig [Mon, 8 May 2017 16:13:50 +0000 (12:13 -0400)]
[System]: Rename the internal class 'ChunkStream' into 'MonoChunkStream'. (#4803)
* [System]: Fully stub-out SslStream on platforms where it's not supported.
* Remove 'SECURITY_DEP' conditional from LocalCertificateSelectionCallback.
* Add the internal delegates and remove 'SECURITY_DEP' from SslStream.platformnotsupported.cs.
* In SslStream.cs, we now provide the full API when '!SECURITY_DEP' using the
PlatformNotSupportedException()-based implementation from SslStream.platformnotsupported.cs
* [System]: Rename the internal class 'ChunkStream' into 'MonoChunkStream'.
Our 'ChunkStream' is used by 'WebConnection', so it will stay after using
HttpListener from corefx.
Martin Baulig [Mon, 8 May 2017 16:12:08 +0000 (12:12 -0400)]
[System]: Fully stub-out SslStream on platforms where it's not supported (#4802)
* [System]: Fully stub-out SslStream on platforms where it's not supported.
* Remove 'SECURITY_DEP' conditional from LocalCertificateSelectionCallback.
* Add the internal delegates and remove 'SECURITY_DEP' from SslStream.platformnotsupported.cs.
* In SslStream.cs, we now provide the full API when '!SECURITY_DEP' using the
PlatformNotSupportedException()-based implementation from SslStream.platformnotsupported.cs
* Fix typo.
Rodrigo Kumpera [Mon, 8 May 2017 16:07:46 +0000 (12:07 -0400)]
Merge pull request #4799 from xmcclure/mingw-has-secure-api
Fix mingw/mxe build
Aleksey Kliger [Tue, 2 May 2017 20:44:33 +0000 (16:44 -0400)]
[mono-error] Always call TLE(string,string) constructor
if assembly name is NULL, mono_exception_from_name_two_strings_checked looks
for a TLE(string) constructor - which takes a message - which we immediately
overwrite.
So pass the empty string instead, which goes to the (Mono-specific)
TLE(string,string) constructor which intializes ClassName and AssemblyName
members of a TLE.
Aleksey Kliger [Mon, 1 May 2017 14:55:41 +0000 (10:55 -0400)]
[runtime] Fail classes that have a field with a bad underlying type
If a class T has a field e of enum type E, and E is either
incomplete (EnumBuilder that hasn't had CreateType called) or a broken class,
then mark T as failed.
Aleksey Kliger [Tue, 2 May 2017 20:42:58 +0000 (16:42 -0400)]
[test] Don't crash if incomplete enum type is a static field in a class
Andi McClure [Fri, 5 May 2017 17:29:18 +0000 (13:29 -0400)]
Fix mingw/mxe build
wcscat_s is not available on mingw unless a special symbol is defined. Add this symbol to exceptions-amd64.c
Zoltan Varga [Fri, 5 May 2017 12:28:36 +0000 (08:28 -0400)]
[jit] Fix
4c0df6de333fe18abb97fbc7ea8f6e77d92f5451, use __GNUC__ instead of GNUC.