mono.git
8 years agoMerge pull request #2137 from fplucas/patch-1
João Matos [Thu, 15 Oct 2015 14:36:00 +0000 (15:36 +0100)]
Merge pull request #2137 from fplucas/patch-1

Fixing the broken icon of centos-s390x

8 years agoFixing the broken icon of centos-s390x
Lucas [Thu, 15 Oct 2015 14:32:17 +0000 (11:32 -0300)]
Fixing the broken icon of centos-s390x

8 years agoMerge pull request #2134 from akoeplinger/bug-34334
Alexander Köplinger [Thu, 15 Oct 2015 13:44:04 +0000 (15:44 +0200)]
Merge pull request #2134 from akoeplinger/bug-34334

[interpreter] Implement comparing string values in (Not)EqualInstruction

8 years ago[runtime] Switch ARM backend use to use g_print instead of printf.
João Matos [Thu, 15 Oct 2015 13:34:53 +0000 (14:34 +0100)]
[runtime] Switch ARM backend use to use g_print instead of printf.

Sorry about the churn, the previous commit contained an unintended chunk.

8 years agoRevert "[runtime] Switch ARM backend use to use g_print instead of printf."
João Matos [Thu, 15 Oct 2015 13:26:19 +0000 (14:26 +0100)]
Revert "[runtime] Switch ARM backend use to use g_print instead of printf."

This reverts commit 8e9f93be24f2b8b744f9ad31292f3f74a5caf411.

8 years ago[runtime] Switch ARM backend use to use g_print instead of printf.
João Matos [Thu, 15 Oct 2015 13:24:10 +0000 (14:24 +0100)]
[runtime] Switch ARM backend use to use g_print instead of printf.

8 years ago[runtime] Simplify ARM mono_arch_flush_icache.
João Matos [Wed, 14 Oct 2015 16:50:00 +0000 (17:50 +0100)]
[runtime] Simplify ARM mono_arch_flush_icache.

We do not support compiling with older versions of GCC anymore so most of this should be just dead code.

8 years ago[amd64] Remove the special casing of TYPEDBYREF in the amd64 backend, its not needed.
Zoltan Varga [Thu, 15 Oct 2015 04:28:56 +0000 (00:28 -0400)]
[amd64] Remove the special casing of TYPEDBYREF in the amd64 backend, its not needed.

8 years ago[llvmonly] Call methods in the same assembly directly.
Zoltan Varga [Thu, 15 Oct 2015 02:11:21 +0000 (22:11 -0400)]
[llvmonly] Call methods in the same assembly directly.

8 years ago[llvmonly] Update comments.
Zoltan Varga [Thu, 15 Oct 2015 00:42:32 +0000 (20:42 -0400)]
[llvmonly] Update comments.

8 years ago[llvmonly] Use the PreserveAll calling convention for the init functions.
Zoltan Varga [Thu, 15 Oct 2015 00:42:06 +0000 (20:42 -0400)]
[llvmonly] Use the PreserveAll calling convention for the init functions.

8 years ago[llvmonly] Factor out the initialization code into separate helper functions to save...
Zoltan Varga [Thu, 15 Oct 2015 00:21:53 +0000 (20:21 -0400)]
[llvmonly] Factor out the initialization code into separate helper functions to save space.

8 years ago[ppdb] Check that PE file timestamp as well when matching assemblies and pdb files.
Zoltan Varga [Wed, 14 Oct 2015 23:49:34 +0000 (19:49 -0400)]
[ppdb] Check that PE file timestamp as well when matching assemblies and pdb files.

8 years agoRevert "[System]: WebConnection: improve chunked reads and async callbacks."
Martin Baulig [Wed, 14 Oct 2015 23:25:54 +0000 (19:25 -0400)]
Revert "[System]: WebConnection: improve chunked reads and async callbacks."

This reverts commit 9027f0ad28bf733ebb8ac9964c78c22853ca93c7.

8 years ago[System/TLS]: Switch to the new ChainValidationHelper.
Martin Baulig [Wed, 14 Oct 2015 20:22:05 +0000 (16:22 -0400)]
[System/TLS]: Switch to the new ChainValidationHelper.

* Removed Mono.Security.Protocol.Tls.ValidationResult, use
  Mono.Security.Interface instead.  This is an API breaking
  change, but you can fix your application by simply adding
  the new using directive.

  The rationale behind this is to avoid a dependency on the
  Mono.Security.Protocol.Tls namespace when building and
  related classes when building the new TLS stack.

* Enable ChainValidationHelper in WebConnection, LegacySslStream
  and SslStream.

  The custom conditionals that were previously required for the
  mobile profiles are now gone as ChainValidationHelper already
  handles that internally.

* This is an internal API, the public front-end is
  Mono.Security.Interface.CertificateValidationHelper.

  CertificateValidationHelper can be used to access the system
  certificate validator on OS X and iOS; we do not compute the
  X509Chain on these platforms as it's not supported by the OS.

(cherry picked from commit 9713f35878dd90fe87423b5052b4f82ddc0b87f0)

8 years ago[llvmonly] Add more preinitialized got slots, refactor the code which emits them...
Zoltan Varga [Wed, 14 Oct 2015 21:54:34 +0000 (17:54 -0400)]
[llvmonly] Add more preinitialized got slots, refactor the code which emits them a little.

8 years ago[ppdb] Update to spec version v1.0. Fix decoding of line number info.
Zoltan Varga [Wed, 14 Oct 2015 20:25:29 +0000 (16:25 -0400)]
[ppdb] Update to spec version v1.0. Fix decoding of line number info.

8 years ago[ppdb] Update the code which checks whenever the assembly and the pdb files match...
Zoltan Varga [Wed, 14 Oct 2015 19:55:36 +0000 (15:55 -0400)]
[ppdb] Update the code which checks whenever the assembly and the pdb files match to spec v1.0.

8 years ago[System/TLS]: Add obsolete ChainValidationHelper.ctor(HttpWebRequest).
Martin Baulig [Wed, 14 Oct 2015 19:27:49 +0000 (15:27 -0400)]
[System/TLS]: Add obsolete ChainValidationHelper.ctor(HttpWebRequest).

This will be removed again laster, but allows us to do a two-step switch
by first switching to the new ChainValidationHelper, then switching to
MonoTlsProvider and friends.

(cherry picked from commit f2e98e82f04dbaa72e48c37d72407000c197fbcb)

8 years ago[System]: API cleanup; make MonoTlsStream.SelectClientCertificate() private static.
Martin Baulig [Wed, 14 Oct 2015 19:24:03 +0000 (15:24 -0400)]
[System]: API cleanup; make MonoTlsStream.SelectClientCertificate() private static.

(cherry picked from commit 8a79bdc2add36cb3da2834dc371499fd94d1737f)
(cherry picked from commit 13168150a77f722afee51df86ba029c91f21ee0c)

8 years ago[interpreter] Implement comparing string values in (Not)EqualInstruction
Alexander Köplinger [Wed, 14 Oct 2015 19:22:59 +0000 (21:22 +0200)]
[interpreter] Implement comparing string values in (Not)EqualInstruction

When comparing a string with null the other checks in the interpreter for type equality didn't catch this case
and this ultimately resulted in a NotImplementedException in EqualInstruction and NotEqualInstruction.

The fix is to handle the TypeCode.String case in those instructions.
We don't need to do it for CreateLifted() as that method only applies for Nullable<T> types which doesn't make sense for string.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=34334

8 years ago[System]: WebConnection: improve chunked reads and async callbacks.
Martin Baulig [Fri, 22 May 2015 03:11:14 +0000 (05:11 +0200)]
[System]: WebConnection: improve chunked reads and async callbacks.

Make sure we always complete the async operations on error and
also send callbacks outside the lock.

(cherry picked from commit 9027f0ad28bf733ebb8ac9964c78c22853ca93c7)

8 years agoFix the build.
Zoltan Varga [Wed, 14 Oct 2015 19:17:44 +0000 (15:17 -0400)]
Fix the build.

8 years ago[runtime] Fix the configure check for stdc++/c++.
Zoltan Varga [Wed, 14 Oct 2015 18:46:40 +0000 (14:46 -0400)]
[runtime] Fix the configure check for stdc++/c++.

8 years ago[aot] Fix the build when llvm is not enabled.
Zoltan Varga [Wed, 14 Oct 2015 17:08:21 +0000 (13:08 -0400)]
[aot] Fix the build when llvm is not enabled.

8 years ago[runtime] Reworked coop GC stack handling in platforms with restricted access to...
João Matos [Thu, 1 Oct 2015 16:38:38 +0000 (17:38 +0100)]
[runtime] Reworked coop GC stack handling in platforms with restricted access to register contexts.

8 years agoMerge pull request #2106 from lambdageek/dev/bug-29108-part1
João Matos [Wed, 14 Oct 2015 15:34:31 +0000 (16:34 +0100)]
Merge pull request #2106 from lambdageek/dev/bug-29108-part1

GetCallingAssembly() skip past reflection. Fix #29108 - part 1

8 years agoTest that Assembly.GetCallingAssembly() skips MethodBase.Invoke()
Aleksey Kliger [Mon, 5 Oct 2015 15:28:42 +0000 (11:28 -0400)]
Test that Assembly.GetCallingAssembly() skips MethodBase.Invoke()

8 years agoGetCallingAssembly() skip past reflection. Fix #29108 - part 1
Aleksey Kliger [Fri, 2 Oct 2015 18:01:28 +0000 (14:01 -0400)]
GetCallingAssembly() skip past reflection. Fix #29108 - part 1

8 years ago[runtime] Workaround signal() configure check in Android.
João Matos [Wed, 14 Oct 2015 14:17:57 +0000 (15:17 +0100)]
[runtime] Workaround signal() configure check in Android.

So, I broke this on Android back in https://github.com/mono/mono/commit/d3726dcde9ef373157cd533ce8091cdde89dfa8e.

Turns out signal() is defined inline in Android:

static __inline__ __sighandler_t signal(int s, __sighandler_t f)
{
    return bsd_signal(s,f);
}

So we need to hardcode the define in case we're on an Android platform.

Fixes BclTests on Android:

I/mono-stdout( 1200): UnixSignalTest
F/        ( 1200): signal() is not supported by this platform
F/libc    ( 1200): Fatal signal 6 (SIGABRT) at 0x000004b0 (code=-6), thread 1215 (Instrumentation)

8 years ago[llvmonly] Fix the build.
Zoltan Varga [Wed, 14 Oct 2015 05:54:01 +0000 (01:54 -0400)]
[llvmonly] Fix the build.

8 years ago[aot] Rework the handling of preinitialized got slots, instead of hardcoding their...
Zoltan Varga [Wed, 14 Oct 2015 05:44:58 +0000 (01:44 -0400)]
[aot] Rework the handling of preinitialized got slots, instead of hardcoding their offsets into the code, initialize them the same way the other got slots are initialized, by decoding a MonoJumpInfo structure for them, and resolving them using mono_resolve_patch_target ().

8 years ago[mscorlib] DateTime, DateTimeOffset, bring Unix time APIs from CoreCLR
Miguel de Icaza [Wed, 14 Oct 2015 03:05:24 +0000 (23:05 -0400)]
[mscorlib] DateTime, DateTimeOffset, bring Unix time APIs from CoreCLR

8 years ago[llvmonly] Skip initalization of methods if they only reference shared got entries.
Zoltan Varga [Wed, 14 Oct 2015 02:07:11 +0000 (22:07 -0400)]
[llvmonly] Skip initalization of methods if they only reference shared got entries.

8 years ago[llvmonly] Emit initialization code for a method only if it uses got slots or its...
Zoltan Varga [Wed, 14 Oct 2015 01:14:24 +0000 (21:14 -0400)]
[llvmonly] Emit initialization code for a method only if it uses got slots or its type has a cctor.

8 years ago[process] Wait for process completion before waiting for stdout/stderr
Ludovic Henry [Tue, 13 Oct 2015 18:24:05 +0000 (14:24 -0400)]
[process] Wait for process completion before waiting for stdout/stderr

This fixes a race condition between the calls to Start and
BeginOutputReadLine/BeginErrorReadLine. This was triggered by the fact
that the call to WaitForExit (in StartBackgroundWaitForExit called by
Start_noshell) could be faster that the call to
BeginOutputReadLine/BeginErrorReadLine, leading to a null async_output,
which would make the WaitForExit call not wait for the output to finish.
This could make the call to Exited happen before a call to
OutputDataReceived/ErrorDataReceived.

To trigger this issue more reliably, you can simply add a sleep at the
beginning of AddInput in ProcessAsyncReader.

8 years ago[runtime] Link against the same c++ standard library as used by llvm.
Zoltan Varga [Wed, 14 Oct 2015 00:32:39 +0000 (20:32 -0400)]
[runtime] Link against the same c++ standard library as used by llvm.

8 years agoRemove another MARTIN_FIXME.
Martin Baulig [Tue, 13 Oct 2015 21:32:27 +0000 (17:32 -0400)]
Remove another MARTIN_FIXME.

(cherry picked from commit 9737322c86939f1b5e0da085697bddb7827cc06d)

8 years ago[System]: Remove two MARTIN_FIXME's.
Martin Baulig [Tue, 13 Oct 2015 21:25:17 +0000 (17:25 -0400)]
[System]: Remove two MARTIN_FIXME's.

This adds ChainValidationHelper to the build, but it's not
actually used yet.

(cherry picked from commit 214bf577d36808fc8ffc050027376c37b8920346)

8 years ago[System]: Add AndroidPlatform.TrustEvaluateSsl(X509Certificate2Collection...) overload.
Martin Baulig [Tue, 13 Oct 2015 22:51:15 +0000 (18:51 -0400)]
[System]: Add AndroidPlatform.TrustEvaluateSsl(X509Certificate2Collection...) overload.

(cherry picked from commit 34eefeb172055f10d8d6ca7b91cb719cfe812b64)

8 years ago[System]: Add OSX509Certificates.TrustEvaluateSsl(X509Certificate2Collection,string...
Martin Baulig [Tue, 13 Oct 2015 21:02:37 +0000 (17:02 -0400)]
[System]: Add OSX509Certificates.TrustEvaluateSsl(X509Certificate2Collection,string) overload.

When switching to Mono.Net.Security.ChainValidationHelper, we will use
X509Certificate2Collection instead of MSX.X509CertificateCollection; keep
both version for the moment.

(cherry picked from commit 1f004d8e7a8391785d4ae8fcb0270f9be9d522c8)

8 years ago[System]: Use 'ServerCertValidationCallback' in ServicePointManager.
Martin Baulig [Tue, 13 Oct 2015 15:35:06 +0000 (11:35 -0400)]
[System]: Use 'ServerCertValidationCallback' in ServicePointManager.

This is a new internal wrapper class defined in
external/referencesource/System/net/System/Net/ServicePointManager.cs

It wraps the RemoteCertificateValidationCallback, capturing the
current ExecutionContext.

(cherry picked from commit c1695a55dc9a55f6b344bfc4c91991bd1f04c046)

8 years agoPut back "[Mono.Security.Providers]: Add to the top-level build."
Martin Baulig [Mon, 12 Oct 2015 22:21:07 +0000 (18:21 -0400)]
Put back "[Mono.Security.Providers]: Add to the top-level build."

This reverts commit f05603553e04c853685a3dfd063e4bd6c38afcf2.

8 years ago[Mono.Security/build]: Add custom monodroid_Mono.Security.dll.sources.
Martin Baulig [Mon, 12 Oct 2015 22:06:43 +0000 (18:06 -0400)]
[Mono.Security/build]: Add custom monodroid_Mono.Security.dll.sources.

Includes everything from Mono.Security.dll.sources except for the
new Mono.Security.Interface APIs, which are built inside System.dll
on mobile.

(cherry picked from commit df1adee67802417381280c097f3f8f17bbd48f66)

8 years agoAdd tests for #34598
Miguel de Icaza [Tue, 13 Oct 2015 18:48:55 +0000 (14:48 -0400)]
Add tests for #34598

8 years agoMerge pull request #2130 from sandyarmstrong/mt-runtime-updates
Sandy Armstrong [Tue, 13 Oct 2015 17:45:34 +0000 (10:45 -0700)]
Merge pull request #2130 from sandyarmstrong/mt-runtime-updates

[corlib] Use same Console and Environment logic in monotouch_runtime

8 years ago[corlib] Use same Console and Environment logic in monotouch_runtime
Sandy Armstrong [Mon, 12 Oct 2015 17:55:03 +0000 (10:55 -0700)]
[corlib] Use same Console and Environment logic in monotouch_runtime

The `monotouch_runtime` profile is exclusively used for the monotouch
REPL assemblies used by Xamarin Sketches and Inspector. In those cases,
Console and Environment should behave just the same as in the
`monotouch` profile.

The only real difference between the two profiles should be the presence
of SRE in `monotouch_runtime`.

8 years agoMerge pull request #2121 from esdrubal/socketreuse
Marcos Henrich [Tue, 13 Oct 2015 10:11:20 +0000 (11:11 +0100)]
Merge pull request #2121 from esdrubal/socketreuse

[System] Added icall SupportsPortReuse.

8 years agoRevert "[Mono.Security.Providers]: Add to the top-level build."
Martin Baulig [Mon, 12 Oct 2015 21:54:14 +0000 (17:54 -0400)]
Revert "[Mono.Security.Providers]: Add to the top-level build."

This currently does not build for monodroid, so let's fix that first.

This reverts commit 8a47d504ccaa27fa420cd6d489d845c1b6152b95.

8 years ago[System]: Add HttpWebRequest.ServerCertificateValidationCallback.
Martin Baulig [Mon, 12 Oct 2015 21:27:01 +0000 (17:27 -0400)]
[System]: Add HttpWebRequest.ServerCertificateValidationCallback.

Add a new HttpWebRequest.ServerCertificateValidationCallback property
(new .NET 4.5 / 4.6 API, not enabled yet) and read-only internal
ServerCertValidationCallback accessor (defined in the referencesource's
ServicePointManager.cs).

(cherry picked from commit ea9ed03863c730831c6fac393ed4dad3a94fb149)

8 years ago[System]: Add new internal HttpWebRequest APIs for MonoTlsProvider / MonoTlsSettings.
Martin Baulig [Mon, 12 Oct 2015 21:22:34 +0000 (17:22 -0400)]
[System]: Add new internal HttpWebRequest APIs for MonoTlsProvider / MonoTlsSettings.

The new internal constructor allows a per-request MonoTlsProvider and
related MonoTlsSettings; also expose these as new internal properties.

(cherry picked from commit 31988df75077c11ed87c77ab34e5b77b5913a32b)

8 years ago[System]: Add internal ServicePoint.SetClientCertificate() and SetServerCertificate().
Martin Baulig [Mon, 12 Oct 2015 19:03:48 +0000 (15:03 -0400)]
[System]: Add internal ServicePoint.SetClientCertificate() and SetServerCertificate().

The old SetCertificates() will be removed when merging the rest of
the work-newtls changes.

(cherry picked from commit 815731f2b7fd2f7384b8e16fcaf33f54d5ab6cb1)

8 years ago[Mono.Security.Providers]: Add to the top-level build.
Martin Baulig [Fri, 9 Oct 2015 20:03:27 +0000 (16:03 -0400)]
[Mono.Security.Providers]: Add to the top-level build.

(cherry picked from commit 76db142479c87cc76cc33a29fc0599143171e834)

8 years ago[System] Add internal 'ServicePointManager.DisableStrongCrypto'.
Martin Baulig [Thu, 5 Feb 2015 05:49:06 +0000 (06:49 +0100)]
[System] Add internal 'ServicePointManager.DisableStrongCrypto'.

It's an internal API that's used by the referencesource.

(cherry picked from commit 7fbd50ab52fc4cdf2fa9282ecd9d286ac48d9ba8)
(cherry picked from commit eb2f282d6f5e87a60c65b03822c1182e249ffcd3)

8 years ago[corlib] Add new .NET 4.5 System.Diagnostics.EventSource and EventAttribute APIs.
Martin Baulig [Thu, 5 Feb 2015 05:05:45 +0000 (06:05 +0100)]
[corlib] Add new .NET 4.5 System.Diagnostics.EventSource and EventAttribute APIs.

(cherry picked from commit 7f098fb7424b78f0e1bbde592a9de71209dcc798)
(cherry picked from commit 6c804183131b9c72261de91947a7f32f3566f811)

8 years ago[System]: Make internals visible to Mono.Security.Providers.NewSystemSource.
Martin Baulig [Fri, 9 Oct 2015 19:49:18 +0000 (15:49 -0400)]
[System]: Make internals visible to Mono.Security.Providers.NewSystemSource.

(cherry picked from commit 6414856bf297d7fd58dbab07d96ff9835f8e5606)

8 years ago[sdb] Print more debug info when a seq point is not found.
Zoltan Varga [Mon, 12 Oct 2015 21:10:11 +0000 (17:10 -0400)]
[sdb] Print more debug info when a seq point is not found.

8 years ago[llvmonly] Simplify the handling of init_bb a bit.
Zoltan Varga [Mon, 12 Oct 2015 20:20:13 +0000 (16:20 -0400)]
[llvmonly] Simplify the handling of init_bb a bit.

8 years ago[System/TLS]: Add the new Mono.Security.Interface and Mono.Net.Security APIs to the...
Martin Baulig [Fri, 9 Oct 2015 18:31:02 +0000 (14:31 -0400)]
[System/TLS]: Add the new Mono.Security.Interface and Mono.Net.Security APIs to the build.

These should be considered internal APIs for the moment, even where the
classes are public (to avoid making internals visible).

(cherry picked from commit bec0257c97c511859409a2a3b2678cc980e3d30d)

8 years agoAdd MARTIN_FIXME conditionals to some of the newly added files in preparation to...
Martin Baulig [Fri, 9 Oct 2015 19:36:40 +0000 (15:36 -0400)]
Add MARTIN_FIXME conditionals to some of the newly added files in preparation to get them build.

(cherry picked from commit 73a79ac235cfcc85363780d2980b049817b3a720)
(cherry picked from commit 0d90e727e5ceae134c5a49930df66eba3a656720)
(cherry picked from commit d60284a02a553fbf0af18d40a3e1018f7d0aa0c9)

8 years ago[System]: Add the referencesource's ServicePointManager.cs.
Martin Baulig [Fri, 9 Oct 2015 19:21:13 +0000 (15:21 -0400)]
[System]: Add the referencesource's ServicePointManager.cs.

This picks up the internal 'ServerCertValidationCallback' class,
not the actual ServicePointManager implementation (we can't switch
to that yet).

(cherry picked from commit f5eeb5597adb31fe08011e15929f26ac07314d4d)

8 years ago[System]: Add internal RemoteCertValidationCallback and LocalCertSelectionCallback.
Martin Baulig [Fri, 9 Oct 2015 18:54:20 +0000 (14:54 -0400)]
[System]: Add internal RemoteCertValidationCallback and LocalCertSelectionCallback.

These two internal delegates are defined and used by the referencesource's SslStream
implementation; add them to our SslStream.cs version for compatibility.

(cherry picked from commit 0fbda4c3bdfc2a5c656aef18211f4171431ae1e6)

8 years ago[Mono.Security.Providers]: New internal libraries for the new TLS code.
Martin Baulig [Fri, 9 Oct 2015 18:10:51 +0000 (14:10 -0400)]
[Mono.Security.Providers]: New internal libraries for the new TLS code.

(cherry picked from commit 90a8836c8dc7be7056835cbe23091d611cef7ec5)

8 years ago[System/TLS]: Internal additions to some referencesource files.
Martin Baulig [Fri, 9 Oct 2015 18:08:05 +0000 (14:08 -0400)]
[System/TLS]: Internal additions to some referencesource files.

These won't be build in System.dll until we can switch to the new
TLS implementation.

(cherry picked from commit 39cd3ee44f2f2ba614b39dfaed790f919d07a5fc)

8 years ago[System/TLS]: Add the new Mono.Security.Interface and Mono.Net.Security code.
Martin Baulig [Fri, 9 Oct 2015 18:02:08 +0000 (14:02 -0400)]
[System/TLS]: Add the new Mono.Security.Interface and Mono.Net.Security code.

This is not enabled in the build yet; doing so still requires a few more tweaks.

(cherry picked from commit 8fbc5ba484dbda70f9f74524090b2cd720b46bde)

8 years ago[System/build]: Wrap ReferenceSources/Logging.cs with '!MONO_FEATURE_NEW_TLS'.
Martin Baulig [Fri, 9 Oct 2015 17:58:50 +0000 (13:58 -0400)]
[System/build]: Wrap ReferenceSources/Logging.cs with '!MONO_FEATURE_NEW_TLS'.

(cherry picked from commit 0eb51843e2e66c3350e10ce26d9ce35713fe5977)

8 years ago[System]: Add missing System.Net.SecurityProtocolType enum values.
Martin Baulig [Fri, 9 Oct 2015 17:55:15 +0000 (13:55 -0400)]
[System]: Add missing System.Net.SecurityProtocolType enum values.

(cherry picked from commit 0377d61060f071e3f3e2ece3c51156307921498c)

8 years ago[System/build]: Add two MONO_SECURITY_ALIAS and MONO_X509_ALIAS conditionals.
Martin Baulig [Fri, 9 Oct 2015 16:12:40 +0000 (12:12 -0400)]
[System/build]: Add two MONO_SECURITY_ALIAS and MONO_X509_ALIAS conditionals.

These should be used instead of MOBILE / MONOTOUCH / MONODROID to select
extern alias directives to make them work independently from the mobile profile.

* MONO_SECURITY_ALIAS: whether or not to use 'extern alias MonoSecurity'.

* MONO_X509_ALIAS: whether or not to use

    extern alias PrebuiltSystem;
    using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;

* MONO_FEATURE_NEW_TLS: ignore, this is not enabled in the default build.

(cherry picked from commit 48b95ec304769bdcdeb71e56093ed9d00b04ecbe)

8 years ago[System/build] Use the MOBILE_PROFILE conditional to define INSIDE_SYSTEM.
Martin Baulig [Fri, 9 Oct 2015 14:20:01 +0000 (10:20 -0400)]
[System/build] Use the MOBILE_PROFILE conditional to define INSIDE_SYSTEM.

(cherry picked from commit a3500da8707f64ef5e49cca87f4d732abb0e07ae)
(cherry picked from commit 5348243102b64d3eda98f8e8e129c48e6d507da0)

8 years ago[runtime] Fixed build error related to undeclared object offsets.
João Matos [Mon, 12 Oct 2015 18:28:24 +0000 (19:28 +0100)]
[runtime] Fixed build error related to undeclared object offsets.

In file included from /Users/joao/Dev/droid/mono/mono/metadata/marshal.c:26:0:
/Users/joao/Dev/droid/mono/mono/metadata/marshal.c: In function 'mono_marshal_get_delegate_invoke_internal':
/Users/joao/Dev/droid/mono/mono/metadata/abi-details.h:29:43: error: 'MONO_OFFSET_MonoDelegate_rgctx' undeclared (first use in this function)
 #define MONO_STRUCT_OFFSET(struct,field) (MONO_OFFSET_ ## struct ## _ ## field == -1, G_STRUCT_OFFSET (struct,field))

8 years ago[System]: Add ReferenceSources/Socket.cs to the mobile build.
Martin Baulig [Fri, 9 Oct 2015 18:32:24 +0000 (14:32 -0400)]
[System]: Add ReferenceSources/Socket.cs to the mobile build.

This fixes commit c74c64718d64ecc05ddec21d12313d840842a9c2; these
new internal APIs are required by the referencesource's version of
NetworkStream.

(cherry picked from commit 2905ed96d1fa339e37755604e24a1990a52ead1e)

8 years ago[System]: Use NetworkStream from the referencesource.
Martin Baulig [Fri, 9 Oct 2015 15:30:10 +0000 (11:30 -0400)]
[System]: Use NetworkStream from the referencesource.

8 years agoRevert "[runtime] Don't allocate domain-level static slots for special static fields."
Zoltan Varga [Mon, 12 Oct 2015 18:34:35 +0000 (14:34 -0400)]
Revert "[runtime] Don't allocate domain-level static slots for special static fields."

This reverts commit d2efa789ac432bbcc92483d8f6e0b17c3b23efff.

Revert this as it breaks on monodroid.

8 years agoRevert "[runtime] Optimize mono_class_field_is_special_static () a bit."
Zoltan Varga [Mon, 12 Oct 2015 18:34:17 +0000 (14:34 -0400)]
Revert "[runtime] Optimize mono_class_field_is_special_static () a bit."

This reverts commit 0686c213583a70bde97c8d04e0748e47416bfaf9.

Revert this as it breaks on monodroid.

8 years ago[ppdb] Update the image checking code, the guid in the ppdb file needs to be checked...
Zoltan Varga [Mon, 12 Oct 2015 18:23:28 +0000 (14:23 -0400)]
[ppdb] Update the image checking code, the guid in the ppdb file needs to be checked against the guid in the debug directory in the pe file. Not finished yet.

8 years ago[mcs] New test
Marek Safar [Mon, 12 Oct 2015 17:05:08 +0000 (19:05 +0200)]
[mcs] New test

8 years agoMerge pull request #2119 from lambdageek/dev/bug-17571
Marek Safar [Mon, 12 Oct 2015 17:02:50 +0000 (19:02 +0200)]
Merge pull request #2119 from lambdageek/dev/bug-17571

parser improvements for Type.GetType() and Assembly.GetType()

8 years ago[mcs] Special case null inside parenthesized expression. Fixes #34753
Marek Safar [Mon, 12 Oct 2015 16:58:27 +0000 (18:58 +0200)]
[mcs] Special case null inside parenthesized expression. Fixes #34753

8 years agoFix the cross compiler build by not including c headers into mini-llvm-cpp.h.
Zoltan Varga [Mon, 12 Oct 2015 16:15:12 +0000 (12:15 -0400)]
Fix the cross compiler build by not including c headers into mini-llvm-cpp.h.

8 years ago[mini/llvm] Fixed cross compilation build.
João Matos [Mon, 12 Oct 2015 15:47:20 +0000 (16:47 +0100)]
[mini/llvm] Fixed cross compilation build.

8 years ago[mini/llvm] Normalize includes.
João Matos [Mon, 12 Oct 2015 15:46:52 +0000 (16:46 +0100)]
[mini/llvm] Normalize includes.

8 years ago[System] Added icall SupportsPortReuse.
Marcos Henrich [Mon, 12 Oct 2015 15:45:37 +0000 (16:45 +0100)]
[System] Added icall SupportsPortReuse.

Linux kernels before 3.9 did not support port reuse.
Added private method System.Net.Sockets.Socket.SupportsPortReuse,
which returns true when the runtime is able to bind to the same address
and port multiple times.

8 years ago[system] Fix WebHeaderCollection values extraction for multi-header keys
Marek Safar [Mon, 12 Oct 2015 14:51:19 +0000 (16:51 +0200)]
[system] Fix WebHeaderCollection values extraction for multi-header keys

8 years ago[System.TypeSpec] make ModifierSpec an interface.
Aleksey Kliger [Mon, 12 Oct 2015 14:47:00 +0000 (10:47 -0400)]
[System.TypeSpec] make ModifierSpec an interface.

8 years ago[mcs] Improve error reporting from 51137702c64076f6f7af9a08c1bafc766f5cf6d2
Marek Safar [Mon, 12 Oct 2015 14:16:45 +0000 (16:16 +0200)]
[mcs] Improve error reporting from 51137702c64076f6f7af9a08c1bafc766f5cf6d2

8 years agoMerge pull request #2120 from mono/revert-2101-stack-coop-gc
João Matos [Mon, 12 Oct 2015 13:39:02 +0000 (14:39 +0100)]
Merge pull request #2120 from mono/revert-2101-stack-coop-gc

Revert "Reworked coop GC stack handling in platforms with restricted …

8 years agoRevert "Reworked coop GC stack handling in platforms with restricted access to regist...
João Matos [Mon, 12 Oct 2015 13:38:48 +0000 (14:38 +0100)]
Revert "Reworked coop GC stack handling in platforms with restricted access to register contexts."

8 years agoMerge pull request #2101 from tritao/stack-coop-gc
Rodrigo Kumpera [Mon, 12 Oct 2015 13:25:01 +0000 (09:25 -0400)]
Merge pull request #2101 from tritao/stack-coop-gc

Reworked coop GC stack handling in platforms with restricted access to register contexts.

8 years ago[mcs] Rename error test
Marek Safar [Sat, 10 Oct 2015 18:19:34 +0000 (20:19 +0200)]
[mcs] Rename error test

8 years ago[mcs] Report global attributes without target. Fixes #34724
Marek Safar [Sat, 10 Oct 2015 14:12:35 +0000 (16:12 +0200)]
[mcs] Report global attributes without target. Fixes #34724

8 years ago[mcs] Fixes typo
Marek Safar [Sat, 10 Oct 2015 14:07:26 +0000 (16:07 +0200)]
[mcs] Fixes typo

8 years ago[Apple] Disable environment access on Apple platforms that are not OSX.
Rodrigo Kumpera [Fri, 9 Oct 2015 19:54:48 +0000 (15:54 -0400)]
[Apple] Disable environment access on Apple platforms that are not OSX.

The two known ways to access the environment variables are no longer allowed Apple.

Until something blessed by them is found, we'll provide no way to list all the envvars
of the current process.

8 years agoFix the loaded llvm build.
Zoltan Varga [Fri, 9 Oct 2015 18:23:03 +0000 (14:23 -0400)]
Fix the loaded llvm build.

8 years ago[runtime] Fixed accidental whitespace change.
João Matos [Fri, 9 Oct 2015 16:11:45 +0000 (17:11 +0100)]
[runtime] Fixed accidental whitespace change.

8 years ago[runtime] Build fixes for builds with disabled LLVM.
João Matos [Fri, 9 Oct 2015 16:09:05 +0000 (17:09 +0100)]
[runtime] Build fixes for builds with disabled LLVM.

8 years ago[llvmonly] Fix the build.
Zoltan Varga [Fri, 9 Oct 2015 03:07:20 +0000 (23:07 -0400)]
[llvmonly] Fix the build.

8 years agoMerge remote-tracking branch 'origin/bitcode-premerge'
Zoltan Varga [Fri, 9 Oct 2015 02:57:00 +0000 (22:57 -0400)]
Merge remote-tracking branch 'origin/bitcode-premerge'

8 years agoFix regressions caused by the llvmonly changes so normal aot/full-aot works again.
Zoltan Varga [Fri, 9 Oct 2015 00:55:43 +0000 (20:55 -0400)]
Fix regressions caused by the llvmonly changes so normal aot/full-aot works again.

8 years agoAvoid passing the ex_tag around when throwing exceptions, simply throw a NULL value...
Zoltan Varga [Thu, 8 Oct 2015 20:35:42 +0000 (16:35 -0400)]
Avoid passing the ex_tag around when throwing exceptions, simply throw a NULL value of the same type caught by the landing pads in the generated code.

8 years agoAvoid installing an unhandled exception handler in every method.
Zoltan Varga [Thu, 8 Oct 2015 03:19:56 +0000 (23:19 -0400)]
Avoid installing an unhandled exception handler in every method.