mono.git
7 years agoMerge pull request #3731 from lambdageek/dev-handles-gbmc
Aleksey Kliger (λgeek) [Fri, 7 Oct 2016 17:13:44 +0000 (13:13 -0400)]
Merge pull request #3731 from lambdageek/dev-handles-gbmc

[runtime] System.Configuration.InternalConfigurationHost:get_bundled_machine_config  needs HANDLES

7 years agoMerge pull request #3729 from ntherning/fix-failures-in-msbuild-tests-on-windows
Niklas Therning [Fri, 7 Oct 2016 17:08:01 +0000 (19:08 +0200)]
Merge pull request #3729 from ntherning/fix-failures-in-msbuild-tests-on-windows

Fix failures in MSBuild tests on Windows

7 years ago[runtime] Fix the blittable flag and the instance size for pointer types. Fixes ...
Zoltan Varga [Fri, 7 Oct 2016 15:37:19 +0000 (11:37 -0400)]
[runtime] Fix the blittable flag and the instance size for pointer types. Fixes #45131. (#3735)

7 years agoMerge pull request #3737 from akoeplinger/fix-babysitter
Alexander Köplinger [Fri, 7 Oct 2016 13:30:19 +0000 (15:30 +0200)]
Merge pull request #3737 from akoeplinger/fix-babysitter

[ci] Set the env var in a new subshell to fix babysitter processing

7 years agoFix failures in MSBuild tests on Windows
Niklas Therning [Thu, 6 Oct 2016 17:58:32 +0000 (19:58 +0200)]
Fix failures in MSBuild tests on Windows

7 years agoMerge pull request #3727 from henricm/fix-system-web-on-windows
Marek Safar [Fri, 7 Oct 2016 13:03:34 +0000 (15:03 +0200)]
Merge pull request #3727 from henricm/fix-system-web-on-windows

Fixes for System.Web to work on windows

7 years agoEnabling System.Web tests on Windows
Henric Müller [Fri, 7 Oct 2016 12:45:11 +0000 (14:45 +0200)]
Enabling System.Web tests on Windows

7 years agoCalling directly into Win API to get current process exe
Henric Müller [Thu, 6 Oct 2016 12:46:53 +0000 (14:46 +0200)]
Calling directly into Win API to get current process exe

On Windows the MonoToolsLocator tries to determine which mono.exe
to use by looking at the current process. Due to problems with
AppDomains and shadow copying (which happens in System.Web) we
could not use this approach. Instead we now call GetModuleFileName
directly using p-invoke to get the exe file of the running process.
This is only used when running on Windows.

7 years ago[System] Use default parsing rules for Uri.IsWellFormedUriString. Fixes #45129
Marek Safar [Fri, 7 Oct 2016 11:55:50 +0000 (13:55 +0200)]
[System] Use default parsing rules for Uri.IsWellFormedUriString. Fixes #45129

7 years ago[ci] Set the env var in a new subshell to fix babysitter processing
Alexander Köplinger [Fri, 7 Oct 2016 09:07:39 +0000 (11:07 +0200)]
[ci] Set the env var in a new subshell to fix babysitter processing

Setting the MONO_TLS_PROVIDER env var in the testing script makes it opaque to the
babysitter and other processing scripts. By setting it in a new subshell we can
ensure that the scripts see the whole invocation.

7 years agoMerge pull request #3730 from kumpera/async-reader-dispose-hardening
Rodrigo Kumpera [Thu, 6 Oct 2016 22:53:15 +0000 (18:53 -0400)]
Merge pull request #3730 from kumpera/async-reader-dispose-hardening

[System] Add some hardening when disposing a AsyncStreamReader as it will have things happening concurrently.

7 years agoMerge pull request #3660 from lambdageek/bug-42271
Aleksey Kliger (λgeek) [Thu, 6 Oct 2016 21:53:33 +0000 (17:53 -0400)]
Merge pull request #3660 from lambdageek/bug-42271

[coop] Switch to GC SAFE for backtrace() and backtrace_symbols()

7 years ago[runtime] give get_bundled_machine_config ves_icall_Class_Method-style names
Aleksey Kliger [Thu, 6 Oct 2016 20:58:46 +0000 (16:58 -0400)]
[runtime] give get_bundled_machine_config ves_icall_Class_Method-style names

7 years ago[runtime] System.Configuration.InternalConfigurationHost:get_bundled_machine_config
Aleksey Kliger [Thu, 6 Oct 2016 20:35:55 +0000 (16:35 -0400)]
[runtime] System.Configuration.InternalConfigurationHost:get_bundled_machine_config
needs HANDLES

The method (which also goes by
System.Configuration.DefaultConfig:get_bundled_machine_config) was
converted to use coop handles earlier, but we missed this declaration.

7 years ago[System] Add some hardening when disposing a AsyncStreamReader as it will have things...
Rodrigo Kumpera [Thu, 6 Oct 2016 20:19:59 +0000 (13:19 -0700)]
[System] Add some hardening when disposing a AsyncStreamReader as it will have things happening concurrently.

7 years ago[SRE] Fixup the tokens in subtypes too. (#3721)
Zoltan Varga [Thu, 6 Oct 2016 20:12:23 +0000 (16:12 -0400)]
[SRE] Fixup the tokens in subtypes too. (#3721)

7 years agoMerge pull request #3725 from ntherning/fix-symbolicate-tests-stack-trace-diff-on...
Niklas Therning [Thu, 6 Oct 2016 18:04:32 +0000 (20:04 +0200)]
Merge pull request #3725 from ntherning/fix-symbolicate-tests-stack-trace-diff-on-windows

Fix symbolicate tests stack trace diff on Windows

7 years ago[mempool] Fix indentation in mono_backtrace ()
Aleksey Kliger [Wed, 28 Sep 2016 15:45:18 +0000 (11:45 -0400)]
[mempool] Fix indentation in mono_backtrace ()

7 years ago[coop] Switch to GC SAFE for backtrace() and backtrace_symbols()
Aleksey Kliger [Tue, 27 Sep 2016 21:42:46 +0000 (17:42 -0400)]
[coop] Switch to GC SAFE for backtrace() and backtrace_symbols()

Fixes [#42271](https://bugzilla.xamarin.com/show_bug.cgi?id=42271)

7 years ago[corlib] Add ValueTuple
Marek Safar [Thu, 6 Oct 2016 13:10:09 +0000 (15:10 +0200)]
[corlib] Add ValueTuple

7 years agoFix symbolicate tests stack trace diff on Windows
Niklas Therning [Thu, 6 Oct 2016 12:22:49 +0000 (14:22 +0200)]
Fix symbolicate tests stack trace diff on Windows

The symbolicate tests compare stack traces generated by the mono-symbolicate
tool against expected stack traces. The expected stack trace files have been
preprocessed to remove absolute paths and the Makefile does the same with the
output from the tool. However, the preprocessing doesn't take different
directory separator characters into account. This patch adds a 'tr' command to
the Makefile which converts \ -> / before the absolute paths are filtered out
from the actual output from the tool to make the comparison succeed on Windows
as well.

7 years agoIgnoring CR in WebControls tests
Henric Müller [Thu, 6 Oct 2016 09:20:28 +0000 (11:20 +0200)]
Ignoring CR in WebControls tests

7 years agoMerge pull request #3707 from lateralusX/jlorenss/win-api-family-support-libmonoutils
Johan Lorensson [Thu, 6 Oct 2016 07:07:41 +0000 (09:07 +0200)]
Merge pull request #3707 from lateralusX/jlorenss/win-api-family-support-libmonoutils

Build libmonoutils under none desktop Windows API family.

7 years agoMerge pull request #3720 from ntherning/fix-monodoc-tests-on-windows
Niklas Therning [Thu, 6 Oct 2016 06:40:30 +0000 (08:40 +0200)]
Merge pull request #3720 from ntherning/fix-monodoc-tests-on-windows

Fix monodoc tests on Windows

7 years agoFix a typo.
Zoltan Varga [Wed, 5 Oct 2016 21:59:17 +0000 (17:59 -0400)]
Fix a typo.

7 years agoMerge pull request #3714 from kumpera/fix_process_stream_dispose
Rodrigo Kumpera [Wed, 5 Oct 2016 21:54:41 +0000 (14:54 -0700)]
Merge pull request #3714 from kumpera/fix_process_stream_dispose

[System] Fix Process::Dispose resource leak due to RS import.

7 years ago[System] Dispose all streams in Process::Close if they were not exposed to the user...
Rodrigo Kumpera [Wed, 5 Oct 2016 21:51:01 +0000 (14:51 -0700)]
[System] Dispose all streams in Process::Close if they were not exposed to the user. Fixes a RS import regression.

RS takes the stance that redirected streams should not be closed by the Process class because they might
be referenced from the outside.

That would be ok if it was true. If you use Process::BeginOutputReadLine, the output stream becomes inaccessible
with no way to dispose them by any mean but GC.Collect. You get an exception when accessing Process::StandardOutput
once async reading starts.

This change addresses the case where the streams are not accessible. This is tracked by the *StreamReadMode variables
that are set on stream getters or Begin*ReadLine.

7 years ago[System.Net.Http] Wrap certain exceptions into HttpRequestException. Fixes #44978
Marek Safar [Wed, 5 Oct 2016 15:55:33 +0000 (17:55 +0200)]
[System.Net.Http] Wrap certain exceptions into HttpRequestException. Fixes #44978

7 years agoMerge pull request #3684 from lambdageek/dev-monoerror-poolbox
Aleksey Kliger (λgeek) [Wed, 5 Oct 2016 15:09:49 +0000 (11:09 -0400)]
Merge pull request #3684 from lambdageek/dev-monoerror-poolbox

[runtime] Use boxed MonoError for class failure.

7 years agoFix monodoc tests on Windows
Niklas Therning [Wed, 5 Oct 2016 14:36:48 +0000 (16:36 +0200)]
Fix monodoc tests on Windows

These tests are sensitive to differences in line endings between Windows and
other platforms. This patch changes the diff commands used on Windows to
ignore changes in whitespaces at end of lines.

7 years agoMerge pull request #3692 from lateralusX/jlorenss/win-api-family-support-libmono
Johan Lorensson [Wed, 5 Oct 2016 14:10:10 +0000 (16:10 +0200)]
Merge pull request #3692 from lateralusX/jlorenss/win-api-family-support-libmono

Build libmono under none desktop Windows API family.

7 years ago[mcs] Don't report version mismatch error for FX assemblies
Marek Safar [Wed, 5 Oct 2016 13:02:14 +0000 (15:02 +0200)]
[mcs] Don't report version mismatch error for FX assemblies

7 years agoMerge pull request #3709 from rolfbjarne/linker-mark-nested-types
Alexander Köplinger [Wed, 5 Oct 2016 11:51:00 +0000 (13:51 +0200)]
Merge pull request #3709 from rolfbjarne/linker-mark-nested-types

[linker] We need to mark nested types even if the declaring type isn't marked.

7 years ago[ci] Test System.dll with both the legacy and btls TLS provider
Alexander Köplinger [Wed, 5 Oct 2016 11:19:06 +0000 (13:19 +0200)]
[ci] Test System.dll with both the legacy and btls TLS provider

7 years ago[BTLS]: Certificate cleanups and fixes. (#3706)
Martin Baulig [Wed, 5 Oct 2016 11:05:24 +0000 (13:05 +0200)]
[BTLS]: Certificate cleanups and fixes. (#3706)

* [BTLS]: Allow fallback to MX.X509Certificate in X509CertificateImplBtls.

* [BTLS]: Fix X509Certificate2.MonoCertificate.

* X509Certificate2Impl.FallbackImpl: make abstract.

* X509Helper2.GetMonoCertificate(): new internal helper method.

* X509Certificate2.MonoCertificate: use X509Helper2.GetMonoCertificate().
  This is only used by X509ChainImplMono; we should investigate whether we
  could implement the missing APIs in BTLS.

* [BTLS]: Fully implement X509CertificateImplBtls.Import() and use correct semantics.

.NET's X509Certificate2.Import() uses several implicit fallbacks which we previously
did not handle in BTLS.

* you may provide a (unused) password when importing an unencrypted PKCS#8.

* when using null as password, it will attempt to use string.Empty if importing
  without password fails.

* [BTLS]: Implement X509CertificateImplBtls.PrivateKey.

* [BTLS]: Implement X509CertificateImplBtls.Export().

* [BTLS]: Implement X509CertificateImplBtls.Verify().

* [BTLS]: Fix X500DistinguishedName quoting.

* MonoBtlsUtils: don't quote special chars in UTF-16 strings.

* X500DistinguishedName: don't decode raw data when passed in a name.

* [ci] Test System.dll with both the legacy and btls TLS provider

* [ci] Only run the additional btls System.dll test run on OSX for now

Otherwise we might run it on platforms where btls isn't supported yet and get errors.

(cherry picked from commit 9638ee9ece023eb96f314de64624bf37ce4b7faf)

7 years ago[System.Net.Htpp] Add test for large content range headers
Marek Safar [Wed, 5 Oct 2016 08:18:09 +0000 (10:18 +0200)]
[System.Net.Htpp] Add test for large content range headers

7 years agoNowdays Content-Range From could be much more than 2147483647
Cinerar [Tue, 4 Oct 2016 21:35:24 +0000 (00:35 +0300)]
Nowdays Content-Range From  could be much more than 2147483647

7 years agoMerge pull request #3705 from BrzVlad/fix-sgen-internal-alloc
Vlad Brezae [Wed, 5 Oct 2016 00:30:26 +0000 (03:30 +0300)]
Merge pull request #3705 from BrzVlad/fix-sgen-internal-alloc

[sgen] Fix block size computation for allocation size

7 years agoMerge pull request #3697 from directhex/fix-make-dist-missing-basic.exe
Alexander Köplinger [Tue, 4 Oct 2016 23:23:36 +0000 (01:23 +0200)]
Merge pull request #3697 from directhex/fix-make-dist-missing-basic.exe

When basic.exe isn't in DISTFILES, it gets excluded from `make dist`

7 years agoMerge pull request #3711 from akoeplinger/fix-fullaot-tests
Alexander Köplinger [Tue, 4 Oct 2016 22:55:07 +0000 (00:55 +0200)]
Merge pull request #3711 from akoeplinger/fix-fullaot-tests

Fix two test failures in the FullAOT Jenkins job

7 years ago[runtime] Don't do logging from a signal handler. It's not signal safe.
Rodrigo Kumpera [Tue, 4 Oct 2016 22:53:36 +0000 (15:53 -0700)]
[runtime] Don't do logging from a signal handler. It's not signal safe.

I found this while trying to MONO_LOG_LEVEL=debug an process way bug and the removed log statements
would hang mono in a matter of seconds.

7 years ago[MonoError] Don't overwrite computed TypeLoadException message with empty string
Aleksey Kliger [Mon, 26 Sep 2016 20:07:48 +0000 (16:07 -0400)]
[MonoError] Don't overwrite computed TypeLoadException message with empty string

Fixes [#44729](https://bugzilla.xamarin.com/show_bug.cgi?id=44729).

7 years ago[loader] Add descriptive error messages to class failure.
Aleksey Kliger [Mon, 3 Oct 2016 22:08:02 +0000 (18:08 -0400)]
[loader] Add descriptive error messages to class failure.

In cases where a class fails to load due to a related class failure,
extract the message from the related failure.

7 years ago[runtime] Change how class failure is represented.
Aleksey Kliger [Fri, 30 Sep 2016 20:29:29 +0000 (16:29 -0400)]
[runtime] Change how class failure is represented.

Use a single bit MonoClass::has_failure to represent whether a class has
failed.  Store detailed error message in MONO_CLASS_PROP_EXCEPTION_DATA property
in the MonoImage of the class.

7 years agoFix two test failures in the FullAOT Jenkins job
Alexander Köplinger [Tue, 4 Oct 2016 20:23:16 +0000 (22:23 +0200)]
Fix two test failures in the FullAOT Jenkins job

Disable WebOperationsContextTest.Current like on monotouch, it relies on dynamic code generation.
The namedmutex-destroy-race.cs runtime test doesn't work on mobile_static since we don't have named Mutexes.

7 years agoAdd mono-package-runtime to EXTRA_DIST
Alexander Köplinger [Tue, 4 Oct 2016 18:25:53 +0000 (20:25 +0200)]
Add mono-package-runtime to EXTRA_DIST

The file was added in 15b6ef60e45bb978203b57da4b956aa1d1f86f3c

7 years ago[corlib] Enable more RuntimeHelpers tests
Marek Safar [Tue, 4 Oct 2016 16:53:23 +0000 (18:53 +0200)]
[corlib] Enable more RuntimeHelpers tests

7 years ago[linker] We don't need to mark nested types more than once.
Rolf Bjarne Kvinge [Tue, 4 Oct 2016 16:52:26 +0000 (18:52 +0200)]
[linker] We don't need to mark nested types more than once.

7 years agoMerge pull request #3693 from rolfbjarne/watchos-simplify-http-message-handler-selection
Alexander Köplinger [Tue, 4 Oct 2016 16:39:18 +0000 (18:39 +0200)]
Merge pull request #3693 from rolfbjarne/watchos-simplify-http-message-handler-selection

[System.Net.Http] Simplify default http message handler for watchOS since there's only one valid value.

7 years agoMerge pull request #3704 from rolfbjarne/watchos-servicepointmanager
Alexander Köplinger [Tue, 4 Oct 2016 16:35:48 +0000 (18:35 +0200)]
Merge pull request #3704 from rolfbjarne/watchos-servicepointmanager

[System] Add back a few ServicePointManager properties that can be used by multiple networking stacks.

7 years ago[linker] We need to mark nested types even if the declaring type isn't marked.
Rolf Bjarne Kvinge [Tue, 4 Oct 2016 14:38:08 +0000 (16:38 +0200)]
[linker] We need to mark nested types even if the declaring type isn't marked.

7 years ago[loader] Make mono_class_get_failure static in class.c
Aleksey Kliger [Fri, 30 Sep 2016 20:15:26 +0000 (16:15 -0400)]
[loader] Make mono_class_get_failure static in class.c

7 years ago[loader] Add mono_class_set_type_load_failure ()
Aleksey Kliger [Fri, 30 Sep 2016 19:54:19 +0000 (15:54 -0400)]
[loader] Add mono_class_set_type_load_failure ()

- Hide mono_class_set_failure as a static function in class.c
- Use a MonoErrorBoxed to represent a MONO_EXCEPTION_TYPE_LOAD.

7 years ago[loader] Use MonoErrorBoxed for mono_class_set_failure (..., MONO_EXCEPTION_INVALID_P...
Aleksey Kliger [Fri, 30 Sep 2016 19:50:13 +0000 (15:50 -0400)]
[loader] Use MonoErrorBoxed for mono_class_set_failure (..., MONO_EXCEPTION_INVALID_PROGRAM, ...)

Use a MonoErrorBoxed to represent an invalid program class failure.

7 years ago[MonoError] add mono_error_vset_type_load_class function
Aleksey Kliger [Fri, 30 Sep 2016 19:46:12 +0000 (15:46 -0400)]
[MonoError] add mono_error_vset_type_load_class function

A variant of mono_error_set_type_load_class that takes a va_list
argument instead of varargs.

7 years ago[MonoError] Add MonoErrorBoxed for mempool-stored errors.
Aleksey Kliger [Thu, 29 Sep 2016 21:15:48 +0000 (17:15 -0400)]
[MonoError] Add MonoErrorBoxed for mempool-stored errors.

The usual MonoError is suitable as a short-lived stack-allocated error
with a lifetime confined to a function call.
Internally it performs allocations using g_malloc/g_free.

The MonoErrorBoxed is a mempool-allocated error whose lifetime is tied
to the lifetime of a MonoImage.

We provide two operations:

1. MonoErrorBoxed* mono_error_box (MonoError *ierror, MonoImage *image);

  Creates a new boxed error in the given mempool from MonoError.
  It does not alter ierror, so you still have to clean it up with
  mono_error_cleanup or mono_error_convert_to_exception or another such function.

2.   gboolean mono_error_set_from_boxed (MonoError *oerror, MonoErrorBoxed *from_box);

  Sets the error condition in the oerror from the contents of the given
  boxed error.  Does not alter the boxed error, so it can be used in a
  future call to mono_error_set_from_boxed as needed.  The oerror
  should've been previously initialized with mono_error_init, as usual.

7 years ago[sgen] Fix block size computation for allocation size
Vlad Brezae [Tue, 4 Oct 2016 11:47:51 +0000 (14:47 +0300)]
[sgen] Fix block size computation for allocation size

The block size for a slot size is the minimum block size that can fit two slots. Make sure the computation accounts for the fact that even though a slot size might fit twice in the block, it still has to be allocated at aligned addresses, so it can end up using a higher block size.

Fixes 44922.

7 years agoMerge pull request #3686 from lambdageek/dev-format-printf
Aleksey Kliger (λgeek) [Tue, 4 Oct 2016 14:05:33 +0000 (10:05 -0400)]
Merge pull request #3686 from lambdageek/dev-format-printf

Add MONO_ATTR_FORMAT_PRINTF macro

7 years agoBuild libmono under none desktop Windows API family.
lateralusX [Tue, 4 Oct 2016 13:36:00 +0000 (15:36 +0200)]
Build libmono under none desktop Windows API family.

Initial work to build libmono under none desktop Windows API families.

7 years agoBuild libmonoutils under none desktop Windows API family.
lateralusX [Tue, 4 Oct 2016 12:45:43 +0000 (14:45 +0200)]
Build libmonoutils under none desktop Windows API family.

Initial work to build libmonoutils under none desktop Windows API families.

7 years agoAdd EXTRA_DIST listing all the files from btls
Jo Shields [Tue, 4 Oct 2016 09:49:46 +0000 (10:49 +0100)]
Add EXTRA_DIST listing all the files from btls

Apparently there's no way to get CMake to just spit out its own uncached variables, so we can't do this programatically.

7 years agoRemove useless BTLS_DEPS variable
Jo Shields [Tue, 4 Oct 2016 09:48:07 +0000 (10:48 +0100)]
Remove useless BTLS_DEPS variable

7 years ago[System] Add back a few ServicePointManager properties that can be used by multiple...
Rolf Bjarne Kvinge [Tue, 4 Oct 2016 08:37:45 +0000 (10:37 +0200)]
[System] Add back a few ServicePointManager properties that can be used by multiple networking stacks.

7 years agoMerge pull request #3695 from ludovic-henry/fix-thread-test
Niklas Therning [Tue, 4 Oct 2016 08:35:14 +0000 (10:35 +0200)]
Merge pull request #3695 from ludovic-henry/fix-thread-test

[tests] Fix p/invoke test on windows

7 years ago[sdb] Avoid adding the first file name in the debug info to the list of file names...
Zoltan Varga [Tue, 4 Oct 2016 03:10:31 +0000 (23:10 -0400)]
[sdb] Avoid adding the first file name in the debug info to the list of file names if a method has no seq points. Fixes #44982. (#3696)

7 years agoMerge pull request #3700 from alexrp/profiler-c9-fixes
Alex Rønne Petersen [Tue, 4 Oct 2016 02:58:37 +0000 (04:58 +0200)]
Merge pull request #3700 from alexrp/profiler-c9-fixes

[profiler] Fix a regression that caused all buffers to have a zero thread ID.

7 years ago[profiler] Use macro constants instead of passing a bunch of bools.
Alex Rønne Petersen [Tue, 4 Oct 2016 02:28:26 +0000 (04:28 +0200)]
[profiler] Use macro constants instead of passing a bunch of bools.

7 years ago[profiler] Update a stale comment.
Alex Rønne Petersen [Tue, 4 Oct 2016 02:06:30 +0000 (04:06 +0200)]
[profiler] Update a stale comment.

7 years ago[profiler] Add some asserts.
Alex Rønne Petersen [Tue, 4 Oct 2016 02:06:21 +0000 (04:06 +0200)]
[profiler] Add some asserts.

7 years ago[profiler] Simplify send_log_unsafe ().
Alex Rønne Petersen [Tue, 4 Oct 2016 02:04:21 +0000 (04:04 +0200)]
[profiler] Simplify send_log_unsafe ().

7 years ago[profiler] Fix a regression that caused all buffers to have a zero thread ID.
Alex Rønne Petersen [Fri, 16 Sep 2016 20:53:38 +0000 (22:53 +0200)]
[profiler] Fix a regression that caused all buffers to have a zero thread ID.

This was introduced in 928b840dad3c9cc1c39c3fe5820bf8394ae9b66b.

7 years ago[SRE] Remove more dead code.
Zoltan Varga [Tue, 4 Oct 2016 02:00:31 +0000 (22:00 -0400)]
[SRE] Remove more dead code.

7 years ago[SRE] Remove more unused icall declarations.
Zoltan Varga [Tue, 4 Oct 2016 01:17:25 +0000 (21:17 -0400)]
[SRE] Remove more unused icall declarations.

7 years ago[SRE] Remove more unused icalls.
Zoltan Varga [Tue, 4 Oct 2016 00:45:28 +0000 (20:45 -0400)]
[SRE] Remove more unused icalls.

7 years ago[btls] Add missing icall definition for mono_btls_x509_revoked_get_revocation_date
Alexander Köplinger [Tue, 4 Oct 2016 00:36:56 +0000 (02:36 +0200)]
[btls] Add missing icall definition for mono_btls_x509_revoked_get_revocation_date

7 years ago[SRE] Small code cleanup.
Zoltan Varga [Tue, 4 Oct 2016 00:16:10 +0000 (20:16 -0400)]
[SRE] Small code cleanup.

7 years ago[SRE] Remove unused icall from inside a DISABLE_REFLECTION_EMIT block.
Zoltan Varga [Mon, 3 Oct 2016 23:33:55 +0000 (19:33 -0400)]
[SRE] Remove unused icall from inside a DISABLE_REFLECTION_EMIT block.

7 years agoMerge pull request #3698 from alexrp/profiler-c9-fixes
Alex Rønne Petersen [Mon, 3 Oct 2016 22:12:34 +0000 (00:12 +0200)]
Merge pull request #3698 from alexrp/profiler-c9-fixes

More C9 profiler fixes

7 years ago[SRE] Delay the creation of the MonoClass for dynamic types until CreateType () is...
Zoltan Varga [Mon, 3 Oct 2016 21:04:34 +0000 (17:04 -0400)]
[SRE] Delay the creation of the MonoClass for dynamic types until CreateType () is called. Remove some icalls. (#3687)

7 years ago[tests] Fix thread-native-exit test on windows
Ludovic Henry [Mon, 3 Oct 2016 17:19:25 +0000 (19:19 +0200)]
[tests] Fix thread-native-exit test on windows

7 years ago[metadata]: Unconditionally enable ves_icall_Mono_Btls_Provider_IsSupported().
Martin Baulig [Mon, 3 Oct 2016 19:59:51 +0000 (21:59 +0200)]
[metadata]: Unconditionally enable ves_icall_Mono_Btls_Provider_IsSupported().

The MonoBtlsProvider.IsSupported() icalls ves_icall_Mono_Btls_Provider_IsSupported()
needs to be available whether BTLS is available or not because it is used at
runtime to decide whether or not to enable BTLS.

(cherry picked from commit 7b2a96fbd372ad74c2595b473c00ac7e1ed9ca67)

7 years ago[profiler] Fix BYTE_SIZE macro conflict on OS X.
Alex Rønne Petersen [Mon, 3 Oct 2016 20:02:46 +0000 (22:02 +0200)]
[profiler] Fix BYTE_SIZE macro conflict on OS X.

7 years ago[profiler] Fix PROF_TLS_FREE () on pthread TLS systems.
Alex Rønne Petersen [Mon, 3 Oct 2016 19:53:59 +0000 (21:53 +0200)]
[profiler] Fix PROF_TLS_FREE () on pthread TLS systems.

7 years ago[profiler] Fix the build on Android (missing fcntl.h include).
Rodrigo Kumpera [Mon, 3 Oct 2016 19:47:18 +0000 (21:47 +0200)]
[profiler] Fix the build on Android (missing fcntl.h include).

7 years agoOops, actually correctly revert that commit.
Martin Baulig [Mon, 3 Oct 2016 19:21:36 +0000 (21:21 +0200)]
Oops, actually correctly revert that commit.

(cherry picked from commit 04379d5d73838d12f772ac99cae4360dbd5d8c7a)

7 years ago[System]: Temporarily switch the default TLS provider back to "legacy".
Martin Baulig [Mon, 3 Oct 2016 19:12:18 +0000 (21:12 +0200)]
[System]: Temporarily switch the default TLS provider back to "legacy".

Also revert the Jenkins commit in c462f4e6032cd70d692461f09b295671d380eef8.

(cherry picked from commit cd1b0b8edf43ee61dc87ebc7edbc44f7d56204b5)

7 years agoWhen basic.exe isn't in DISTFILES, it gets excluded from `make dist`
Jo Shields [Mon, 3 Oct 2016 19:08:17 +0000 (20:08 +0100)]
When basic.exe isn't in DISTFILES, it gets excluded from `make dist`

7 years ago[Mono.Debugger.Soft] Move TypeLoadClass types to new file to improve testing
Marek Safar [Mon, 3 Oct 2016 16:19:36 +0000 (18:19 +0200)]
[Mono.Debugger.Soft] Move TypeLoadClass types to new file to improve testing

7 years ago[System.Net.Http] Simplify default http message handler for watchOS since there's...
Rolf Bjarne Kvinge [Mon, 3 Oct 2016 16:21:40 +0000 (18:21 +0200)]
[System.Net.Http] Simplify default http message handler for watchOS since there's only one valid value.

7 years ago[ci] Temporarily switch back to legacy TLS provider
Alexander Köplinger [Mon, 3 Oct 2016 15:10:49 +0000 (17:10 +0200)]
[ci] Temporarily switch back to legacy TLS provider

7 years ago[Mono.Debugger.Soft] Tweak ClassLocalReflection test
Marek Safar [Mon, 3 Oct 2016 14:09:59 +0000 (16:09 +0200)]
[Mono.Debugger.Soft] Tweak ClassLocalReflection test

7 years agoMerge pull request #3691 from ntherning/enable-tests-in-pr-builds-on-windows
Niklas Therning [Mon, 3 Oct 2016 12:56:26 +0000 (14:56 +0200)]
Merge pull request #3691 from ntherning/enable-tests-in-pr-builds-on-windows

Enable tests in Windows PR builds

7 years ago[System*] Throw a PlatformNotSupported exception when using the managed networking...
Rolf Bjarne Kvinge [Mon, 3 Oct 2016 11:00:16 +0000 (13:00 +0200)]
[System*] Throw a PlatformNotSupported exception when using the managed networking stack on watchOS. (#3683)

* [System.Data] System.Data.SqlClient is not supported in watchOS.

System.Data.SqlClient is not supported in watchOS, because it depends on a
working managed networking stack, which we don't have on watchOS.

* [System] Throw PlatformNotSupportedExceptions in the networking stack for watchOS.

* [System] Don't reference/build Mono.Security.dll when building for watchOS.

This means we can't build Mono.Data.Tds.dll either, since it uses
Mono.Security.dll extensively. In any case Mono.Data.Tds.dll is useless
without a working networking stack, and since it's a Mono-only dll (i.e. not
part of netstandard or facades), just remove the entire assembly from the
watchOS profile.

System.Security.dll uses Mono.Security.dll as well, but the required classes
are available inside mscorlib.dll (as internal classes), so just open up
mscorlib internals to System.Security.dll.

* [System] Update tests after API change for watchOS.

* [System.Data] Update tests after API change in watchOS.

* Revert "Fix build break from 81fb20737f810def6dde88d87a1b2f23cdb736c3"

This reverts commit f4475ff01358f8490e7cd0878e8b39bed2a0def7.

* Fix missing trailing newline in monotouch_watch_System.dll.sources

It breaks the build on Linux if the newline is missing.

7 years agoEnable tests in Windows PR builds
Niklas Therning [Mon, 3 Oct 2016 09:10:42 +0000 (11:10 +0200)]
Enable tests in Windows PR builds

Also run the test suite in Windows PR builds. We disable all the test suites
in Windows PR builds that are known to fail.

7 years ago[System] Server property of HttpWebResponse should never be null
Marek Safar [Mon, 3 Oct 2016 07:37:47 +0000 (09:37 +0200)]
[System] Server property of HttpWebResponse should never be null

7 years ago[btls] Fix i386 build on Linux by setting -arch on Darwin only
Alexander Köplinger [Sun, 2 Oct 2016 22:33:15 +0000 (00:33 +0200)]
[btls] Fix i386 build on Linux by setting -arch on Darwin only

The -arch option is an Apple extension, it caused failures on i386 Linux: "unrecognized command line option '-arch'"

7 years agoMerge pull request #3689 from alexrp/profiler-c9-fixes
Alex Rønne Petersen [Sun, 2 Oct 2016 19:59:26 +0000 (21:59 +0200)]
Merge pull request #3689 from alexrp/profiler-c9-fixes

Profiler fixes for Cycle 9 (#2)

7 years ago[profiler] Fix GC finalize object end event not getting invoked.
Alex Rønne Petersen [Sun, 2 Oct 2016 19:55:29 +0000 (21:55 +0200)]
[profiler] Fix GC finalize object end event not getting invoked.

7 years agoRevert "[domain] Report domain unloads to the profiler when finalizing the domain."
Alex Rønne Petersen [Sun, 2 Oct 2016 19:53:09 +0000 (21:53 +0200)]
Revert "[domain] Report domain unloads to the profiler when finalizing the domain."

This reverts commit c8b20290808563f89d29b22d2fe35eb906cfe725.

This caused ordering problems with app domain events: https://bugzilla.xamarin.com/show_bug.cgi?id=44552

Conflicts:

mono/metadata/gc.c

7 years agoMerge pull request #3688 from alexrp/profiler-c9-fixes
Alex Rønne Petersen [Sun, 2 Oct 2016 19:10:58 +0000 (21:10 +0200)]
Merge pull request #3688 from alexrp/profiler-c9-fixes

Profiler fixes for Cycle 9