Rodrigo Kumpera [Thu, 9 Jul 2015 13:33:52 +0000 (09:33 -0400)]
[utils] Add fallback TLS offset scanning to X86 and AMD64.
Rodrigo Kumpera [Fri, 10 Jul 2015 13:48:54 +0000 (09:48 -0400)]
Merge pull request #1922 from antonmes/master
Add TLS offset for pre-release OS X 10.11 on x86
João Matos [Fri, 10 Jul 2015 12:12:46 +0000 (13:12 +0100)]
Merge pull request #1924 from bosmacs/master
Add TLS offset for pre-release OS X 10.11 x86, as #1919 did for x64
Craig S. Bosma [Fri, 10 Jul 2015 11:56:23 +0000 (06:56 -0500)]
Add TLS offset for pre-release OS X 10.11 x86, as in #1919 for x64
Toxa [Fri, 10 Jul 2015 05:32:54 +0000 (08:32 +0300)]
Add TLS offset for pre-release OS X 10.11 on x86
Zoltan Varga [Thu, 9 Jul 2015 19:35:30 +0000 (15:35 -0400)]
[llvm] Remove the restriction on handlers without invokes, its not needed any more.
Zoltan Varga [Thu, 9 Jul 2015 19:32:53 +0000 (15:32 -0400)]
[jit] Fix a regression introduced by
ce567f4026d0b0c22469dbb54f6bf0f0de18b6f2. cfg->flags was initialized with a JitFlags value.
Zoltan Varga [Thu, 9 Jul 2015 19:22:54 +0000 (15:22 -0400)]
[llvm] Fix the handling of nested clauses.
Jonathan Pryor [Thu, 9 Jul 2015 16:26:26 +0000 (12:26 -0400)]
Merge pull request #1888 from joelmartinez/mdoc-flagsbug
[mdoc] Adds custom formatting for the `ObjCRuntime.Platform` enum.
Marek Safar [Thu, 9 Jul 2015 16:01:17 +0000 (18:01 +0200)]
Bump reference sources
Marek Safar [Thu, 9 Jul 2015 15:46:53 +0000 (17:46 +0200)]
[System.Net.Http] Reading ContentLength value actually set header property value. Fixes #30561
João Matos [Thu, 9 Jul 2015 00:19:07 +0000 (01:19 +0100)]
Merge pull request #1919 from bosmacs/master
Add TLS offset for pre-release OS X 10.11 on amd64
Craig S. Bosma [Thu, 9 Jul 2015 00:01:55 +0000 (19:01 -0500)]
Add TLS offset for pre-release OS X 10.11 on amd64
Zoltan Varga [Wed, 8 Jul 2015 21:09:08 +0000 (17:09 -0400)]
[sdb] Allow boxed vtypes as this when invoking vtype methods. Fixes #30023.
Joel Martinez [Fri, 19 Jun 2015 21:20:30 +0000 (17:20 -0400)]
[mdoc] Adds custom formatting for the `ObjCRuntime.Platform` enum.
This enum, which can be found in Xamarin's iOS and Mac products use a custom encoding
scheme which resulted in invalid values being shown when processed with mdoc. This patch
adds a special case to watch for this particular enumeration value, and decodes the data
correctly.
Additionally, the code that formats the values for flags enumerations was refactored. Future extensibility of this feature can now be done by simply implementing a new `FlagsFormatter`, and applying the proper logic in the `MakeAttributesValueString` function.
Zoltan Varga [Tue, 7 Jul 2015 22:32:21 +0000 (18:32 -0400)]
[llvm] Fix a problem introduced by the previous change.
Zoltan Varga [Tue, 7 Jul 2015 22:24:05 +0000 (18:24 -0400)]
[llvm] Refactor the aot code a bit.
Zoltan Varga [Tue, 7 Jul 2015 20:32:57 +0000 (16:32 -0400)]
[sdb] Allow invoking of valuetype ctors.
João Matos [Tue, 7 Jul 2015 18:53:50 +0000 (19:53 +0100)]
Merge pull request #1917 from rtollert/bump-nunit-4.5
Bump nunit from mono/2.0 to mono/4.5.
Richard Tollerton [Tue, 7 Jul 2015 17:17:04 +0000 (12:17 -0500)]
Bump nunit from mono/2.0 to mono/4.5.
Marek Safar [Tue, 7 Jul 2015 08:54:40 +0000 (10:54 +0200)]
Merge pull request #1914 from kasthack/master
[System.Web] Added missing HttpRequestBase, HttpRequestWrapper and HttpRequest methods + properties:
Zoltan Varga [Tue, 7 Jul 2015 02:01:31 +0000 (22:01 -0400)]
[aot] Fix static linking support when using llvm.
Zoltan Varga [Tue, 7 Jul 2015 00:54:33 +0000 (20:54 -0400)]
[aot] Handle already gsharedvt methods correctly in add_extra_method_with_depth ().
Zoltan Varga [Mon, 6 Jul 2015 23:51:04 +0000 (19:51 -0400)]
[gsharedvt] Handle gsharedvt methods correctly in check_method_sharing(). We need to pass mrgctx/vtable arguments for them since at runtime, the specific method called could be a non-gsharedvt method.
Ludovic Henry [Thu, 2 Jul 2015 20:51:18 +0000 (17:51 -0300)]
[runtime] Remove unused MonoDomain fields
Rodrigo Kumpera [Mon, 6 Jul 2015 19:36:56 +0000 (15:36 -0400)]
Merge pull request #1911 from ludovic-henry/threadpool-unhandled-exception
[threadpool-ms] Fix unhandled exception support
Zoltan Varga [Mon, 6 Jul 2015 19:01:13 +0000 (15:01 -0400)]
[aot] Mark the data arrays emitted using llvm as constant.
Jonathan Pryor [Mon, 6 Jul 2015 17:57:26 +0000 (13:57 -0400)]
[Mono.Posix] Allow building without [Obsolete] Mono.Posix.
For a future Xamarin.Android release, we'd like to include
Mono.Posix.dll for simple Unix interop support.
That said, since Mono.Posix has never been included with
Xamarin.Andorid before, this makes a perfect opportunity to remove
some [Obsolete] cruft within Mono.Posix.dll, namely the types within
the Mono.Posix namespace.
Unfortunately, simply not compiling the types within the Mono.Posix
directory doesn't result in compilable code, due to references to
types within the Mono.Posix namespace by other types, e.g.
Mono.Unix.PeerCred using Mono.Posix.PeerCredData.
Fix things so that the Mono.Posix sources can be omitted, allowing
compilation of an assembly with fewer [Obsolete] types.
This change shrinks the size of Mono.Posix.dll by ~10.5KB.
Marcos Henrich [Mon, 6 Jul 2015 10:50:16 +0000 (11:50 +0100)]
Merge pull request #1900 from esdrubal/cyclic-ref
[runtime] mono_class_from_name cyclic ref handling
Marcos Henrich [Mon, 6 Jul 2015 10:49:40 +0000 (11:49 +0100)]
Merge pull request #1906 from esdrubal/xbuild-CopyLocal-fix
[xbuild] Fixes copied TargetFramework assemblies.
João Matos [Mon, 6 Jul 2015 10:10:32 +0000 (11:10 +0100)]
Merge pull request #1913 from RavuAlHemio/bug31635
[Mono.Posix] Special-case UTF-32 in PtrToString. Fixes #31635.
kasthack [Mon, 6 Jul 2015 06:23:51 +0000 (09:23 +0300)]
Added missing HttpRequestBase, HttpRequestWrapper and HttpRequest methods + properties:
* HttpRequestBase:GetBufferedInputStream, GetBufferlessInputStream, InsertEntityBody, MapRawImageCoordinates, CurrentExecutionFilePathExtension, TimedOutToken
* HttpRequestWrapper: GetBufferedInputStream, GetBufferlessInputStream, MapRawImageCoordinates, TimedOutToken,
* Fixed MapPath parameter name(overridePath -> virtualPath)
* HttpRequest: GetBufferedInputStream, GetBufferlessInputStream(bool), MapRawImageCoordinates, TimedOutToken
Ondřej Hošek [Sat, 4 Jul 2015 00:05:30 +0000 (02:05 +0200)]
[Mono.Posix] Special-case UTF-32 in PtrToString. Fixes #31635.
Since UTF32Encoding returns 8 for GetMaxByteCount(1), PtrToString
expects 8 NUL bytes to stop scanning for the end of the string.
Since all the other UTF schemes are special-cased in
GetStringByteLength, do the same for UTF32Encoding.
Rodrigo Kumpera [Fri, 3 Jul 2015 18:32:04 +0000 (14:32 -0400)]
[jit] Add emulation r4 to u8 conversion. Fixes #31582.
Most targets, like arm and amd64 don't support fast float to ulong conversion.
Ludovic Henry [Thu, 2 Jul 2015 16:40:32 +0000 (13:40 -0300)]
[threadpool-ms] Fix unhandled exception support
Ludovic Henry [Thu, 2 Jul 2015 18:42:44 +0000 (15:42 -0300)]
[runtime] Fix cpu usage greater than 100% error
We simply relax the conditions as we do not need a very high precision.
Rodrigo Kumpera [Thu, 2 Jul 2015 18:03:15 +0000 (14:03 -0400)]
Merge pull request #1907 from alexanderkyte/slow_aot_startup_hash
[runtime] Speed up find_aot_method_in_module
Alexis Christoforides [Thu, 2 Jul 2015 14:04:44 +0000 (17:04 +0300)]
[referencesource] Keep Mono's old default provider type value for RSA.
The value isn't used for the managed crypto code and is still validfor CryptoAPI, but if it changes Mono can't find keypairs made with earlier versions. Fixes #31199
Marcos Henrich [Thu, 2 Jul 2015 14:06:16 +0000 (15:06 +0100)]
Merge pull request #1860 from saper/tz-fix
[corlib] Assume UTC if no $TZ set. Fixes #30698.
Marcos Henrich [Thu, 2 Jul 2015 09:53:40 +0000 (10:53 +0100)]
Bump reference sources
Ludovic Henry [Thu, 2 Jul 2015 01:30:00 +0000 (22:30 -0300)]
[threadpool-ms] Fix segfault when using sdb
Ludovic Henry [Wed, 1 Jul 2015 22:38:35 +0000 (19:38 -0300)]
[runtime] Ease debugging of cpu_usage out of bound bug
Alexander Kyte [Wed, 1 Jul 2015 20:17:34 +0000 (16:17 -0400)]
[runtime] Conversion of a printf to string append for performance
Alexander Kyte [Wed, 1 Jul 2015 20:15:09 +0000 (16:15 -0400)]
[runtime] Avoid repeated method hashing in find_aot_module
Alexander Kyte [Wed, 1 Jul 2015 20:18:50 +0000 (16:18 -0400)]
[runtime/tests] Added a stress test of find_aot_module.
Marcos Henrich [Fri, 26 Jun 2015 09:20:41 +0000 (10:20 +0100)]
[runtime] mono_class_from_name cyclic ref handling
The changes fix stack overflows caused while traversing images with
cyclic references.
Fixes #31396
Sebastien Pouliot [Wed, 1 Jul 2015 15:37:00 +0000 (11:37 -0400)]
[linker] Fix comparison of methods wrt generic parameters [#30488]
The check from [1] is fine when it's done once _or_ with an identical
target. However there's nothing to ensure (if done more than once) that
it's being used to represent the same thing every time.
That makes the code from [1] match methods like:
> System.IObservable`1<TResult> System.Reactive.Linq.IQueryLanguage::Repeat(TResult)
and
> System.IObservable`1<TSource> System.Reactive.Linq.QueryLanguage::Repeat(System.IObservable`1<TSource>)
where `TResult` is different in both checks.
This patch tracks what is used as the generic parameter (on first check)
and make sure it's identical if it's used again in the same signature.
Note: this is a very old bug (i.e. it's always been that way) but recent
changes to mono started to report such issues (a good thing) and, for AOT
compilation on XI, that resulted in MT3001 errors.
[1] https://github.com/mono/mono/blob/mono-3.10.0/mcs/tools/linker/Mono.Linker.Steps/TypeMapStep.cs#L250
Ludovic Henry [Tue, 21 Apr 2015 11:15:30 +0000 (12:15 +0100)]
[threadpool] Remove mono threadpool implementation
Marcos Henrich [Wed, 1 Jul 2015 14:33:51 +0000 (15:33 +0100)]
[xbuild] Fixes copied TargetFramework assemblies.
xbuild was copying TargetFramework assemblies when the builded project
had dependencies in a TargetFramework.
Doing so is not the msbuild behaviour and was causing bugs while
resolving Types at load time.
Fixes #28592 and #31396
Marek Safar [Wed, 1 Jul 2015 14:39:32 +0000 (16:39 +0200)]
[system] Don't throw ObjectDisposedException on cancelled async WebConnection. Fixes #31507
Ludovic Henry [Tue, 30 Jun 2015 20:24:59 +0000 (17:24 -0300)]
[threadpool-ms-io] Fix epoll
The socket would not be deleted with epoll_ctl (via epoll_reset_fd_at) when we would remove the state from threadpool_io.states. So when we would try to add it again, it would mark it as a new socket (as it wouldn't be present in threadpool_io.states), while it has not been deleted from epoll.
Rodrigo Kumpera [Tue, 30 Jun 2015 20:45:13 +0000 (16:45 -0400)]
[utils] Remove a duplicated check that was commited by accident.
Ludovic Henry [Tue, 30 Jun 2015 17:23:16 +0000 (14:23 -0300)]
[threadpool-ms-io] Fix compilation warning
Ludovic Henry [Tue, 30 Jun 2015 16:56:03 +0000 (13:56 -0300)]
[io-layer] Disable shared handles support by default
They are a very fragile part of the runtime, as they are not very well aken care of.
We simply disable it by default for now. If everything still works as expected, we will completely remove the code.
Marek Safar [Tue, 30 Jun 2015 09:49:53 +0000 (11:49 +0200)]
[mcs] Fixes name collision check for generic types within user namespaces. Fixes #30904
João Matos [Mon, 29 Jun 2015 22:44:19 +0000 (23:44 +0100)]
Merge pull request #1903 from vkargov/master
Fix the MinGW build.
Vladimir Kargov [Mon, 29 Jun 2015 21:15:11 +0000 (00:15 +0300)]
[runtime] Fix a crash on Windows during the cleanup phase caused by using a destroyed mutex.
Vladimir Kargov [Mon, 29 Jun 2015 21:12:08 +0000 (00:12 +0300)]
[runtime] Add condition variable definitions that are missing on MinGW.
Zoltan Varga [Sun, 28 Jun 2015 22:53:42 +0000 (18:53 -0400)]
Fix the build.
Neale Ferguson [Sun, 28 Jun 2015 19:55:12 +0000 (15:55 -0400)]
Fix and simplify float conversions
Zoltan Varga [Sun, 28 Jun 2015 14:31:23 +0000 (10:31 -0400)]
Merge pull request #1901 from oafasting/master
Removed obsolete flag '-no-cpp-precomp' from darwin $CPPFLAGS
Ole A. Sjo Fasting [Sun, 28 Jun 2015 11:58:49 +0000 (13:58 +0200)]
removed flag -no-cpp-precomp from darwin cppglags, so that build is possible on osx
Zoltan Varga [Sat, 27 Jun 2015 17:09:53 +0000 (13:09 -0400)]
Fix the build.
Zoltan Varga [Fri, 26 Jun 2015 19:06:58 +0000 (15:06 -0400)]
[aot] Emit AOT data structures using LLVM when using LLVM.
Miguel de Icaza [Fri, 26 Jun 2015 16:41:02 +0000 (12:41 -0400)]
Coverity: test if this is the way of silencing warnings
Zoltan Varga [Fri, 26 Jun 2015 15:59:07 +0000 (11:59 -0400)]
Fix the loadable llvm build.
Marek Safar [Fri, 26 Jun 2015 14:29:58 +0000 (16:29 +0200)]
[corlib] Fixes warning
Marek Safar [Fri, 26 Jun 2015 14:21:15 +0000 (16:21 +0200)]
[corlib] Chinese (Simplified) and its legacy version are not equal. Fixes #31398
Marek Safar [Fri, 26 Jun 2015 10:14:14 +0000 (12:14 +0200)]
[corlib] Bump WaitAll_TimeoutWithExceptionsAfter timeouts
Marek Safar [Fri, 26 Jun 2015 06:08:45 +0000 (08:08 +0200)]
[corlib] Add test for .net bug
Zoltan Varga [Fri, 26 Jun 2015 03:33:54 +0000 (23:33 -0400)]
[aot] Improve support for situations where mono_aot_get_method () etc. is passed an already gshared method.
Zoltan Varga [Fri, 26 Jun 2015 03:24:47 +0000 (23:24 -0400)]
[aot] Remove an unused field from MonoAotModule.
Zoltan Varga [Fri, 26 Jun 2015 03:08:33 +0000 (23:08 -0400)]
[aot] Encode the various aot tables into binary ourselves instead of relying on the assembler to do it, to make it easier to emit them using LLVM.
Zoltan Varga [Fri, 26 Jun 2015 02:48:41 +0000 (22:48 -0400)]
Fix the DISABLE_JIT build.
Zoltan Varga [Fri, 26 Jun 2015 02:24:00 +0000 (22:24 -0400)]
[aot] Clean up the naming of global symbols.
Zoltan Varga [Fri, 26 Jun 2015 01:47:40 +0000 (21:47 -0400)]
[aot] Reorganize the emission of the MonoAotFileInfo structure to make it easier to emit it as LLVM data.
Zoltan Varga [Fri, 26 Jun 2015 00:28:10 +0000 (20:28 -0400)]
[aot] Pass the aot method index to mini_method_compile ().
Zoltan Varga [Fri, 26 Jun 2015 00:07:08 +0000 (20:07 -0400)]
[aot] Get rid of the 'methods' symbol in aot images, its no longer used.
Sebastien Pouliot [Thu, 25 Jun 2015 22:43:12 +0000 (18:43 -0400)]
[mono.sqlite] Provide the full path to the library for iOS
Zoltan Varga [Thu, 25 Jun 2015 22:22:41 +0000 (18:22 -0400)]
Get rid of the of the usage of code offsets in aot-runtime.c, use method addresses instead.
Zoltan Varga [Thu, 25 Jun 2015 21:58:32 +0000 (17:58 -0400)]
[aot] Add support for running without a GOT for JITted code.
Zoltan Varga [Thu, 25 Jun 2015 20:52:07 +0000 (16:52 -0400)]
Fix the leaking of process streams when using RedirectStandardOutput etc., introduced by
3c47caca34e3c96aa43dc1009e285b7a79ee366c.
Zoltan Varga [Sat, 20 Jun 2015 02:39:45 +0000 (22:39 -0400)]
Refactor the IMT call handling code into a separate function so it can be called from outside the trampoline code.
Zoltan Varga [Sat, 20 Jun 2015 01:53:40 +0000 (21:53 -0400)]
Clean up the trampoline code a bit.
Zoltan Varga [Sat, 20 Jun 2015 00:52:23 +0000 (20:52 -0400)]
Clean up the imt trampoline code a bit.
Marek Safar [Thu, 25 Jun 2015 20:17:47 +0000 (22:17 +0200)]
[system.net.http] Convert default request headers to string values using correct separator. Fixes #31336
Zoltan Varga [Thu, 25 Jun 2015 20:14:34 +0000 (16:14 -0400)]
Merge pull request #1898 from alexanderkyte/debugger_variable_reflection
Fix TransparentProxy ObjectMirror value queries via debugger
Zoltan Varga [Thu, 25 Jun 2015 20:04:24 +0000 (16:04 -0400)]
Fix the compilation of the System tests.
Alexander Kyte [Thu, 25 Jun 2015 19:29:20 +0000 (15:29 -0400)]
[runtime] Handle TransparentProxies when getting object field values
Alexander Kyte [Thu, 25 Jun 2015 00:32:52 +0000 (20:32 -0400)]
[runtime] Added a test for the repro of being unable to reflect an instance variable.
Miguel de Icaza [Thu, 25 Jun 2015 17:56:54 +0000 (13:56 -0400)]
Attempts to locate the C# and VB compilers based on the location of mscorlib, does not assume they are on the path. Fixes #31369
Marek Safar [Thu, 25 Jun 2015 13:57:40 +0000 (15:57 +0200)]
[system] Disable external process redirect test on mobile
Rolf Bjarne Kvinge [Thu, 18 Jun 2015 18:09:13 +0000 (20:09 +0200)]
Add a monotouch_watch profile.
Rolf Bjarne Kvinge [Thu, 18 Jun 2015 18:08:53 +0000 (20:08 +0200)]
Support #include directives in external sources files.
Rolf Bjarne Kvinge [Wed, 17 Jun 2015 10:25:19 +0000 (12:25 +0200)]
Remove --with-[monotouch|xammac]=only from configure.
The Xamarin.iOS and Xamarin.Mac builds don't use these options,
so remove them to reduce unnecessary complexity.
Marek Safar [Thu, 25 Jun 2015 07:22:20 +0000 (09:22 +0200)]
[mcs] Add null operator propagation to probing expressions. Fixes #31289
Zoltan Varga [Thu, 25 Jun 2015 01:38:43 +0000 (21:38 -0400)]
[runtime] Use MONO_GENERIC_CONTEXT_USED_CLASS/METHOD constants to mini.h.
Zoltan Varga [Thu, 25 Jun 2015 01:36:13 +0000 (21:36 -0400)]
[runtime] Get rid of the MONO_GENERIC_SHARING env variable, its no longer needed.
Marek Safar [Wed, 24 Jun 2015 18:59:16 +0000 (20:59 +0200)]
[ilasm] Custom attributes syntax with typeref expression
Marek Safar [Wed, 24 Jun 2015 14:49:13 +0000 (16:49 +0200)]
[runtime] Update incorrect test (exposed by
f2039ff7201a53ae5e9e9be6ffffa885fb73c35b)