Alexander Köplinger [Wed, 14 Jun 2017 16:29:43 +0000 (18:29 +0200)]
[packaging] Fix prerequisite in Windows script
Frederik Carlier [Wed, 14 Jun 2017 16:20:07 +0000 (18:20 +0200)]
Use CoreFX sources for System.Drawing.Text (#5036)
Frederik Carlier [Wed, 14 Jun 2017 16:17:19 +0000 (18:17 +0200)]
Use CoreFX sources for System.Drawing.Imaging (#5035)
* Use CoreFX sources for System.Drawing.Imaging
* Bump API snapshot
Frederik Carlier [Wed, 14 Jun 2017 16:12:32 +0000 (18:12 +0200)]
Use source from CoreFX for System.Drawing.Drawing2D (#5034)
Alexander Köplinger [Wed, 14 Jun 2017 15:31:04 +0000 (17:31 +0200)]
[packaging] Remove msiexec prerequisite from Windows script
We're using lessmsi now.
Alexander Köplinger [Wed, 14 Jun 2017 14:29:29 +0000 (16:29 +0200)]
[packaging] Exit Windows packaging script on error
Also quote passed in mdk path.
Bernhard Urban [Fri, 9 Jun 2017 11:10:36 +0000 (13:10 +0200)]
[metadata] s/HAVE_ONLINE_VES/ENABLE_ILGEN/g
Bernhard Urban [Fri, 9 Jun 2017 11:10:36 +0000 (13:10 +0200)]
[configure] move HAVE_ONLINE_VES away from autotools to a header file
Alexander Köplinger [Tue, 13 Jun 2017 23:26:44 +0000 (01:26 +0200)]
Bump corefx
saraedum [Tue, 13 Jun 2017 23:42:22 +0000 (01:42 +0200)]
[Mono.Security] Fix typo in CryptographicException message
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=52621
Alexander Köplinger [Tue, 13 Jun 2017 22:45:58 +0000 (00:45 +0200)]
[MacSDK] Remove quotes in nuget wrapper script
None of the other wrapper scripts quote the Mono path and this
broke the Windows packaging script which extracts nuget from the
Mac package.
Bernhard Urban [Wed, 7 Jun 2017 21:07:34 +0000 (23:07 +0200)]
Revert "[exceptions] only do SIGSEGV related actions for SIGSEGVs in mono_handle_native_crash"
This reverts commit
a27bc024f1732edb6b1edddd96d6c90f4a2983f8.
We never want the crash handler to be recursive.
Bernhard Urban [Tue, 13 Jun 2017 19:56:52 +0000 (21:56 +0200)]
[aot] fix compilation for targets that do not set MONO_ARCH_HAVE_FULL_AOT_TRAMPOLINES (#5017)
Rodrigo Kumpera [Tue, 13 Jun 2017 19:53:46 +0000 (15:53 -0400)]
Merge pull request #5011 from kumpera/quiet-mode
Don't emit profiler events we don't need to.
Rodrigo Kumpera [Tue, 13 Jun 2017 19:53:31 +0000 (12:53 -0700)]
[profiler] Don't emit sync point on restart the world unless gc moves are enabled.
Rodrigo Kumpera [Mon, 12 Jun 2017 23:36:53 +0000 (16:36 -0700)]
[profiler] Add + prefix to file names to append the pid. This makes enabling it with env vars doable.
Marius Ungureanu [Tue, 13 Jun 2017 18:52:42 +0000 (21:52 +0300)]
Bump bockbuild (#5023)
Alexander Köplinger [Tue, 13 Jun 2017 16:07:47 +0000 (18:07 +0200)]
[ci] Get rid of remaining usages of WORKSPACE env var
Most of it was already removed in
ea519ada8c38cae67f56e27ca70d32923ce9f23a
Marek Safar [Tue, 13 Jun 2017 11:44:43 +0000 (13:44 +0200)]
Bump corefx
Alexander Köplinger [Tue, 13 Jun 2017 14:18:21 +0000 (16:18 +0200)]
[packaging] Fix path to wrapper.bat for Windows MSI
Vlad Brezae [Tue, 13 Jun 2017 11:14:47 +0000 (14:14 +0300)]
Merge pull request #5002 from BrzVlad/feature-sgen-modes
[sgen] SGen modes
Vlad Brezae [Tue, 13 Jun 2017 11:07:29 +0000 (14:07 +0300)]
Merge pull request #5021 from BrzVlad/fix-parallel-fixes
[sgen] Fix parallel fixes
Rodrigo Kumpera [Tue, 13 Jun 2017 05:08:28 +0000 (22:08 -0700)]
[profiler] Fix issue found by review.
Alexander Köplinger [Mon, 12 Jun 2017 20:44:55 +0000 (22:44 +0200)]
[packaging] Simplify Windows packaging scripts
We don't need to build in a separate checkout of mono anymore.
Also use .pkg passed in from upstream build.
Alexander Köplinger [Sat, 10 Jun 2017 00:34:30 +0000 (02:34 +0200)]
[packaging] Move Windows MSI scripts into repository
They lived in https://github.com/mono/release before, moving them
into the main repo allows us to version them more easily.
Note: I intend to do more cleanup on those scripts in the future,
this is just the first step.
Vlad Brezae [Thu, 8 Jun 2017 23:22:59 +0000 (02:22 +0300)]
[man] Add entries for sgen modes and new major/minor types
Vlad Brezae [Mon, 1 May 2017 20:56:34 +0000 (23:56 +0300)]
[sgen] Add sgen modes
Group gc params configurations into general gc modes. The default mode (SGEN_MODE_NONE) is what we've been using so far, meaning old default features. The other modes can include experimental features.
Rodrigo Kumpera [Mon, 12 Jun 2017 20:21:37 +0000 (13:21 -0700)]
[profiler] Remove heapshot request polling from all over the place and depend only on the finalizer callback.
We the profiler now emiting a lot less events by default, all the existing polling no longer makes sense as they won't matter in the common path.
Instead we make sure the finalization end callback is always installed and poll from it.
This introduces the risk of a heapdump never happening or experiencing long delays because there are either too many finalizers or one of them hung.
It's an acceptable risk.
Marek Safar [Mon, 12 Jun 2017 16:56:10 +0000 (18:56 +0200)]
[build] Bumps mcs bootstrap requirement
monojenkins [Mon, 12 Jun 2017 20:55:04 +0000 (21:55 +0100)]
[msvc] Update csproj files (#4898)
Rodrigo Kumpera [Fri, 9 Jun 2017 23:06:50 +0000 (16:06 -0700)]
[profiler] When using heapshot, don't collect roots when not doing a heapshot.
Rodrigo Kumpera [Fri, 9 Jun 2017 21:56:32 +0000 (14:56 -0700)]
[profiler] Don't emit sync points during GC if we don't need to.
Rodrigo Kumpera [Fri, 9 Jun 2017 21:09:29 +0000 (14:09 -0700)]
[profiler] Don't emit thread and gc events if they are not enabled.
Rodrigo Kumpera [Mon, 12 Jun 2017 17:07:24 +0000 (10:07 -0700)]
Merge pull request #4967 from kumpera/profiler-arg-cleanup
Rework profiler argument handling.
Marek Safar [Mon, 12 Jun 2017 13:58:03 +0000 (15:58 +0200)]
Bump corefx
Pablo Ruiz García [Sun, 11 Jun 2017 23:55:26 +0000 (01:55 +0200)]
Fix OpenMappedWebConfiguration throws: System.IndexOutOfRangeException, when using RazorGenerator under mono (#5013)
Alexander Köplinger [Sun, 11 Jun 2017 23:44:50 +0000 (01:44 +0200)]
Fix System.Numerics xunit tests and add them to CI (#5006)
* Fix System.Numerics xunit tests and add them to CI
Xunit.Extensions.NetCore.dll is available as a net46 version now
so we can just use it instead of building it from our buildtools fork.
This also allows us to remove the fork from our submodules.
We were missing running the System.Numerics xunit tests in CI,
this adds them so we catch breaks like these earlier.
* Skip tests on Windows, they seem to fail there
Marek Safar [Sun, 11 Jun 2017 07:51:44 +0000 (09:51 +0200)]
[mcs] C#7 type pattern matching
Zoltan Varga [Sat, 10 Jun 2017 03:53:39 +0000 (23:53 -0400)]
[sdb] Fix passing of nullable parameters in invokes. Fixes #57160. (#5012)
Vlad Brezae [Fri, 9 Jun 2017 22:50:20 +0000 (01:50 +0300)]
[sgen] Avoid using parallel minors for small nurseries
It is not effective and it can lead to regressions, due to the added synchronizations and work splitting.
Vlad Brezae [Fri, 9 Jun 2017 22:43:04 +0000 (01:43 +0300)]
[sgen] Disable parallel mode if not enough cores
Vlad Brezae [Fri, 9 Jun 2017 22:33:09 +0000 (01:33 +0300)]
[sgen] Use logical cpu count for number of workers
It actually leads to better performance. The downside is the creation of more sgen workers. This is currently capped at 8.
Rodrigo Kumpera [Fri, 9 Jun 2017 20:24:20 +0000 (13:24 -0700)]
Remove the mono-profiler- prefix from all source files in the profiler subdir.
Additionally, rename arg-parsing.c to log-args.c so it's clear it's part of the log profiler.
Rodrigo Kumpera [Fri, 9 Jun 2017 20:04:22 +0000 (13:04 -0700)]
[profiler]Use g_warning and remove bad usage() line
Rodrigo Kumpera [Fri, 9 Jun 2017 18:44:43 +0000 (14:44 -0400)]
Merge pull request #4998 from kumpera/fix_56684
[corlib] Don't pass RuntimeMethodHandle across domains. Fixes #56684
Aleksey Kliger (λgeek) [Fri, 9 Jun 2017 17:40:28 +0000 (13:40 -0400)]
Merge pull request #4997 from lambdageek/bug-57222
[sre] FieldBuilder:RuntimeResolve shouldn't lookup by name (Fixes #57222)
Marek Safar [Fri, 9 Jun 2017 11:54:24 +0000 (13:54 +0200)]
Bump corefx
Bernhard Urban [Wed, 7 Jun 2017 16:28:32 +0000 (18:28 +0200)]
[marshal] allocate dummy string always in root domain
otherwise it can happen that the dummy string is allocated in a
different domain, and when it's onloaded the GC root points to an
invalid object.
Rodrigo Kumpera [Thu, 8 Jun 2017 22:40:40 +0000 (15:40 -0700)]
Bunch of minor fixes.
Rodrigo Kumpera [Thu, 8 Jun 2017 22:37:43 +0000 (15:37 -0700)]
Remove env var.
Rodrigo Kumpera [Thu, 8 Jun 2017 22:36:06 +0000 (15:36 -0700)]
update usage, print warning on output:-FILENAME and add a TODO.
Rodrigo Kumpera [Thu, 8 Jun 2017 22:21:45 +0000 (15:21 -0700)]
Remove spurious header. Change from enum to bucket of defines.
Aleksey Kliger [Thu, 8 Jun 2017 21:44:54 +0000 (17:44 -0400)]
[test] Test SRE of a class with two methods with the same name.
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=57222
Although methods aren't affected by this bug, I added a regression test for
this case anyway in case the implementation changes.
Currently MethodBuilder.RuntimeResolve() goes through a different codepath - it
calls RuntimeType.GetMethod (MethodInfo) which calls into an icall which looks
for a method with a matching token rather than a matching name.
Rodrigo Kumpera [Thu, 8 Jun 2017 21:10:38 +0000 (14:10 -0700)]
[corlib] Don't pass RuntimeMethodHandle across domains. Fixes #56684
We can't pass RuntimeMethodHandle across AppDomains since that can lead to memory corruption.
The way this happens is that when Domain (A) passes a method handle (M) to Domain (B), (B) will get the reflection object for
which will add that MonoMethod to the per-domain reflection hashtable. This won't cause the assembly of (M) to be registered with (B).
When (A) is unloaded, it might be the only domain referencing the assembly of (M), cause it to unload resulting in (B) having a dangling
pointer to (M) on its reflection hashtable.
The fix is to serialize enough lookup data across the wire so we can do type/method lookup using reflection on the target domain.
It might be slower, but this only happens on some remoting slowpaths anyways.
Finally, we can't simply register the assembly of (M) into domain (B) as that list (MonoDomain::domain_assemblies) is used for type loading,
thus breaking the target domain in some scenarios.
Aleksey Kliger [Thu, 8 Jun 2017 19:56:30 +0000 (15:56 -0400)]
[sre] FieldBuilder:RuntimeResolve shouldn't lookup by name. (Fixes #57222)
RuntimeType:GetField (FieldInfo) looks up the field by name and attributes,
which doesn't work for SRE because it is legal to create multiple fields with
the same name and type and attributes. So lookup using the
RuntimeFieldHandle (aka MonoClassField*) instead.
Aleksey Kliger [Thu, 8 Jun 2017 20:11:14 +0000 (16:11 -0400)]
[test] Test SRE of a class with two fields with same name
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=57222
Aleksey Kliger (λgeek) [Thu, 8 Jun 2017 19:54:04 +0000 (15:54 -0400)]
Merge pull request #4995 from lambdageek/dev-monodis-show-field-tokens
[monodis] Document --show-tokens and show field tokens
Zoltan Varga [Thu, 8 Jun 2017 19:47:27 +0000 (15:47 -0400)]
[amd64] Fix a check in mono_emit_stack_alloc (). (#4985)
Aleksey Kliger [Thu, 8 Jun 2017 15:38:31 +0000 (11:38 -0400)]
[monodis] Show field tokens in --show-tokens mode
Aleksey Kliger [Thu, 8 Jun 2017 15:37:57 +0000 (11:37 -0400)]
[monodis] Print table name (when valid) in --show-tokens mode
Aleksey Kliger [Thu, 8 Jun 2017 15:36:45 +0000 (11:36 -0400)]
[monodis] Document --show-tokens
Niklas Therning [Thu, 8 Jun 2017 12:48:10 +0000 (14:48 +0200)]
Merge pull request #4994 from lewurm/interp-aot-mode-fix-windows
[win] set HAVE_ONLINE_VES
Bernhard Urban [Thu, 8 Jun 2017 09:50:19 +0000 (11:50 +0200)]
[win] set HAVE_ONLINE_VES
Bernhard Urban [Thu, 8 Jun 2017 07:02:14 +0000 (09:02 +0200)]
[interp] disable bug-45841-fpstack-exceptions.exe on CI
Bernhard Urban [Wed, 7 Jun 2017 21:54:55 +0000 (23:54 +0200)]
[interp] provide stub for icall_trampoline for x86 and ppc
keep the linker happy
Bernhard Urban [Wed, 7 Jun 2017 16:24:17 +0000 (18:24 +0200)]
[interp] root domain must be used for AOT'd wrappers used by interpreter
Bernhard Urban [Wed, 7 Jun 2017 16:24:17 +0000 (18:24 +0200)]
[interp aot] documentation
Bernhard Urban [Wed, 7 Jun 2017 16:24:17 +0000 (18:24 +0200)]
[marshal] some things are required in the interpreter despite DISABLE_JIT
Bernhard Urban [Wed, 7 Jun 2017 16:24:16 +0000 (18:24 +0200)]
[configure] introduce HAVE_ONLINE_VES
Bernhard Urban [Wed, 7 Jun 2017 16:24:16 +0000 (18:24 +0200)]
[interp] fix when DISABLE_JIT is set
Bernhard Urban [Wed, 7 Jun 2017 16:24:15 +0000 (18:24 +0200)]
[interp] add InterpMethodArguments struct to offset-tool
Bernhard Urban [Wed, 7 Jun 2017 16:24:15 +0000 (18:24 +0200)]
[interp] add MONO_AOT_MODE_INTERP
Bernhard Urban [Wed, 7 Jun 2017 16:24:14 +0000 (18:24 +0200)]
[interp] add --aot=interp, so we can run `mono --full-aot --interpreter`
vkargov [Wed, 7 Jun 2017 21:02:21 +0000 (14:02 -0700)]
[tests] Re-enable bug-45841-fpstack-exceptions.exe (#4927)
* [tests] Re-enable bug-45841-fpstack-exceptions.exe
* [tests] Pass correct parameters in bug-45841.
Marek Safar [Wed, 7 Jun 2017 16:00:00 +0000 (18:00 +0200)]
[mcs] Better detection of null operator inside conditional expression. Fixes #57232
Martin Baulig [Wed, 7 Jun 2017 15:54:25 +0000 (11:54 -0400)]
Cosmetic; remove [Category ("Martin")] from the test.
Martin Baulig [Wed, 7 Jun 2017 15:46:21 +0000 (11:46 -0400)]
[System]: Fix possible initialization issue in MonoTlsProviderFactory. (#4987)
* [Mono.Security]: Add test for MonoTlsProviderFactory.GetProvider ().
* [System]: Fix possible initialization issue in MonoTlsProviderFactory.
Martin Baulig [Wed, 7 Jun 2017 15:27:05 +0000 (11:27 -0400)]
[System]: Actually disable the keychain code and SecItemImport() on XI. (#4983)
Marek Safar [Wed, 7 Jun 2017 12:13:52 +0000 (14:13 +0200)]
[mcs] C#7 out variable declaration
Alexander Köplinger [Wed, 7 Jun 2017 12:08:27 +0000 (14:08 +0200)]
[MacSDK] Bump libgdiplus to latest (#4984)
We were using a very old commit of libgdiplus. This brings in
the latest changes.
Bernhard Urban [Tue, 6 Jun 2017 14:36:34 +0000 (16:36 +0200)]
[interp] factor out everything that allocates a MonoLMFExt on the stack in order to reduce stack pressure in the main interpreter loop
Bernhard Urban [Tue, 6 Jun 2017 14:36:34 +0000 (16:36 +0200)]
[interp] factor out MINT_JIT_CALL instruction from interpreter switch in order to reduce stack pressure
Vlad Brezae [Wed, 7 Jun 2017 09:58:54 +0000 (12:58 +0300)]
[sgen] Make sure workers process jobs only if they are running (#4974)
This simplifies logic and prevents serial context being used by multiple workers at the same time.
Frederik Carlier [Tue, 6 Jun 2017 17:25:02 +0000 (19:25 +0200)]
System.Drawing: Start consuming sources from corefx
Closes https://github.com/mono/mono/pull/4980
Alexander Köplinger [Tue, 6 Jun 2017 21:01:00 +0000 (23:01 +0200)]
[MacSDK] Update version number in msbuild.py
Bernhard Urban [Tue, 6 Jun 2017 17:53:16 +0000 (19:53 +0200)]
[mini] set MONO_ARCH_HAVE_INIT_LMF_EXT on architectures that implement mono_arch_init_lmf_ext
it worked before, because we relied on implicit linking
Bernhard Urban [Tue, 6 Jun 2017 16:47:08 +0000 (18:47 +0200)]
[mini] guard mono_arch_init_lmf_ext prototype properly
Bernhard Urban [Tue, 6 Jun 2017 16:45:59 +0000 (18:45 +0200)]
[arm] don't set MONO_ARCH_SOFT_DEBUG_SUPPORTED on android cross compiling
follow up fix for https://github.com/mono/mono/pull/4956
this breaks the cross compiler on windows for android:
```
[9:07:36] /bin/sh ../../libtool --tag=CC --mode=compile /Users/builder/android-toolchain/mxe/bin/i686-w64-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I/U sers/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini -I../.. -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE - DWIN32_THREADS -DFD_SETSIZE=1024 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno -cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Wno-format-zero-length -D__ARM_EABI__ -DARM_FPU_VFP=1 -DNO_UNALIGNED_ACCESS -I/User s/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono -I/Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/eglib/src -I../../eglib /src -I/Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/build-tools/mono-runtimes/obj/Release//llvm/installed-win32/usr/include -DNDEBUG -D__NO_CTYPE_INLINE -D_ GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DLLVM_API_VERSION=4 -O -I../arch/arm -fvisibility=hidden -DXAMARIN_PRODUCT_VERSION=0 -static -static-libgcc -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict- prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Wno-format-ze ro-length -mno-tls-direct-seg-refs -Werror-implicit-function-declaration -MT libmini_la-mini-arm-gsharedvt.lo -MD -MP -MF .deps/libmini_la-mini-arm-gsharedvt.Tpo -c -o libmin i_la-mini-arm-gsharedvt.lo `test -f 'mini-arm-gsharedvt.c' || echo '/Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/'`mini-arm-gsharedv t.c
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c: In function 'mono_arch_is_single_step_event ':
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7242:2: error: unknown type name 'siginfo_t'
[9:07:36] siginfo_t *sinfo = info;
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7248:11: error: request for member 'si_addr' in something not a structure or union
[9:07:36] if (sinfo->si_addr >= ss_trigger_page && (guint8*)sinfo->si_addr <= (guint8*)ss_trigger_page + 128)
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7248:57: error: request for member 'si_addr' in something not a structure or union
[9:07:36] if (sinfo->si_addr >= ss_trigger_page && (guint8*)sinfo->si_addr <= (guint8*)ss_trigger_page + 128)
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c: In function 'mono_arch_is_breakpoint_event' :
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7262:2: error: unknown type name 'siginfo_t'
[9:07:36] siginfo_t *sinfo = info;
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7267:11: error: request for member 'si_signo ' in something not a structure or union
[9:07:36] if (sinfo->si_signo == DBG_SIGNAL) {
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7269:12: error: request for member 'si_addr' in something not a structure or union
[9:07:36] if (sinfo->si_addr >= bp_trigger_page && (guint8*)sinfo->si_addr <= (guint8*)bp_trigger_page + 128)
[9:07:36] ^
[9:07:36] /Users/builder/data/lanes/5000/
ff452183/source/xamarin-android/external/mono/mono/mini/mini-arm.c:7269:58: error: request for member 'si_addr' in something not a structure or union
[9:07:36] if (sinfo->si_addr >= bp_trigger_page && (guint8*)sinfo->si_addr <= (guint8*)bp_trigger_page + 128)
```
Alexander Köplinger [Tue, 6 Jun 2017 16:36:50 +0000 (18:36 +0200)]
Bump API snapshot
Martin Baulig [Tue, 6 Jun 2017 15:46:29 +0000 (11:46 -0400)]
[System]: Correctly implement close and shutdown in SslStream. (#4969)
* [System]: Correctly implement close and shutdown in SslStream.
* Cleanup.
* Cosmetic.
* More ReferenceSources/SR2.cs into common.sources to make it build.
Marek Habersack [Tue, 6 Jun 2017 14:06:00 +0000 (16:06 +0200)]
Use correct path separator for satellite assemblies in cross builds (#4976)
When creating a bundle on Windows to run on Android, macOS/iOS or Linux we need
to use the target system's path separator when storing satellite assemblies in
the bundle instead of the host system's one. Failing to do so will embed (on
Windows) the satellite assemblies with paths like
fr_FR\myassembly.resources.dll
while at runtime Mono will try to look up the assembly by
fr_FR/myassembly.resources.dll
and fail to find it, obviously. The `--style` parameter is now consulted to see
what path separator character should be used.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=55603
Marek Safar [Tue, 6 Jun 2017 11:07:20 +0000 (13:07 +0200)]
Bump corefx
Alexander Köplinger [Tue, 6 Jun 2017 13:43:02 +0000 (15:43 +0200)]
[man] Remove mention of MONO_AOT_CACHE from mono.1
The env var was removed a long time ago in
b8766a812d64d819948e1b7c6482a6ac80d3b4eb
and was replaced by options to --aot. This came up in Gitter today.
ralovich [Mon, 5 Jun 2017 23:43:41 +0000 (19:43 -0400)]
implement Image.SetPropertyItem() method v4 (#1167)
This is thought to be fixing https://bugzilla.novell.com/show_bug.cgi?id=406307.
v4: state that my changes are licensed under MIT X11 license
Ludovic Henry [Mon, 5 Jun 2017 22:07:40 +0000 (18:07 -0400)]
[w32handle] Fix deadlock on SignalAndWait (#4973)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=57069
Aleksey Kliger (λgeek) [Mon, 5 Jun 2017 21:50:30 +0000 (17:50 -0400)]
Merge pull request #4962 from lambdageek/dev-handles-sockets
[w32socket] Use coop handles for many Socket icalls
Aleksey Kliger [Fri, 2 Jun 2017 19:16:31 +0000 (15:16 -0400)]
[w32socket] Use coop handles for System.Net.Sockets.Socket.cancel_blocking_socket_operation
Aleksey Kliger [Fri, 2 Jun 2017 20:11:42 +0000 (16:11 -0400)]
[coop handles] Add mono_internal_thread_handle_ptr () function
MonoInternalThreadHandle is not really needed - all MonoInternalThread
instances are supposed to be pinned. But for uniformity, the icall marshaller
makes handles anyway. This function lets us get back to a raw ptr.
Aleksey Kliger [Fri, 2 Jun 2017 19:03:38 +0000 (15:03 -0400)]
[runtime] typedef MonoThread MonoThreadObject
MonoThreadHandle is already taken. So define MonoThreadObject as an alias for
MonoThread and then make MonoThreadObjectHandle the coop handle type.
Aleksey Kliger [Tue, 30 May 2017 19:58:51 +0000 (15:58 -0400)]
[w32socket] Use coop handles for icalls in System.Net.Sockets.Socket
- Use coop handles for create_object_from_sockaddr
Eventually want to rewrite its callers to use
create_object_handle_from_sockaddr directly.
- Use coop handles for
- LocalEndPoint_internal
- RemoteEndPoint_internal
- inside create_sockaddr_from_object
Eventually callers should be updated to use create_sockaddr_form_handle
directly.
- Use coop handles for
- ReceiveFrom_internal
- Bind_internal
- Connect_internal
- SendTo_internal
- Remove dead code (create_object_from_sockaddr, create_sockaddr_from_object)
- Use coop handles for
- Receive_internal WSABUF[]
- Receive_internal byte[]
- Send_internal
- Send_array_internal
- SetSocketOption_internal
- GetSocketOption_arr_internal
- GetSocketOption_obj_internal
- IOControl_internal
- SendFile_internal
- Remove more dead code
- Use coop handles for
- Socket_internal
- Select_internal
- Trivial coop handles conversion for several icalls in System.Net.Sockets.Socket
None of these functions use managed objects, so just add a MonoError* argument.