Alex Rønne Petersen [Wed, 3 Jul 2013 12:48:27 +0000 (14:48 +0200)]
Remove a duplicate field in mono-threads.h breaking the build on some systems.
Zoltan Varga [Wed, 3 Jul 2013 01:43:58 +0000 (03:43 +0200)]
Fix the implementation of sext.i4/zext.i4 for LLVM. Fixes test_0_regress_11058 () on amd64.
Rodrigo Kumpera [Tue, 2 Jul 2013 22:50:36 +0000 (18:50 -0400)]
Add regression tests for the last 3 fixes.
Rodrigo Kumpera [Tue, 2 Jul 2013 22:20:18 +0000 (18:20 -0400)]
[runtime]Replace suspend safe locks with semaphores as darwin's implementation is not reliable.
* mono-threads.c: On OSX, suspend safe locks are subject to a race condition
where the lock is unlocked but a thread is blocked waiting for it.
Semaphores are significantly slower as they always transition to the kernel, but given
the two affected locks are taken very sporadically, there's nothing to worry here.
Rodrigo Kumpera [Mon, 1 Jul 2013 23:30:03 +0000 (19:30 -0400)]
Introduce MonoThreadInfo::inside_critical_region to avoid suspending threads that are
dealing with suspended threads. One cannot reliably suspend a thread in the middle
of inspecting another one without the risk of deadlocking.
It usually goes like this:
thread 2:
suspend thread 3, thread 3 is in the middle of some critical code.
thread 1:
suspend thread 2 while probing for state of 3;
try to suspend thread 3, fail to resume since it's on critical code.
Rodrigo Kumpera [Mon, 1 Jul 2013 22:49:11 +0000 (18:49 -0400)]
Suspend the world when cleaning up a domain as it's unsafe to walk the nursery with the world running.
Martin Baulig [Tue, 2 Jul 2013 21:10:28 +0000 (23:10 +0200)]
Don't create any .mdb's for the PCL Facade Assemblies.
Zoltan Varga [Tue, 2 Jul 2013 19:58:17 +0000 (21:58 +0200)]
Revert "Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727."
This reverts commit
afb16275b091bcde7f7ac8007f4e0e9d7edd52bf.
Revert this as it breaks tests in mini/.
Martin Baulig [Tue, 2 Jul 2013 19:12:51 +0000 (21:12 +0200)]
Revert "Add configure check for -Wno-tautological-compare when using clang."
This reverts commit
6015a30c7a3ba8d16740fbae7819585eb0b20d37.
Zoltan Varga [Tue, 2 Jul 2013 18:48:52 +0000 (20:48 +0200)]
Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727.
Martin Baulig [Tue, 2 Jul 2013 18:23:57 +0000 (20:23 +0200)]
Add configure check for -Wno-tautological-compare when using clang.
Zoltan Varga [Tue, 2 Jul 2013 17:07:57 +0000 (19:07 +0200)]
Put read-only data into a separate section on ios to work around #13005.
Martin Baulig [Tue, 2 Jul 2013 14:49:31 +0000 (07:49 -0700)]
Merge pull request #664 from symform/xbuild-AssignProjectConfiguration
Renamed target AssignProjectConfigurations to AssignProjectConfiguration...
Sebastien Pouliot [Tue, 2 Jul 2013 12:23:17 +0000 (08:23 -0400)]
Fix type lookup when SSL/TLS is not embedded into System.dll
Marek Safar [Tue, 2 Jul 2013 11:44:46 +0000 (13:44 +0200)]
Update csproj files
Alex Rønne Petersen [Tue, 2 Jul 2013 10:47:22 +0000 (03:47 -0700)]
Merge pull request #649 from DavidS/feature/implement-additional-reference-path
xbuild: use the AdditionalReferencePath items to locate assemblies
Alex Rønne Petersen [Tue, 2 Jul 2013 10:40:55 +0000 (03:40 -0700)]
Merge pull request #678 from jack-pappas/patch-5
Allow clang to compile sgen
Alex Rønne Petersen [Tue, 2 Jul 2013 10:29:11 +0000 (03:29 -0700)]
Merge pull request #572 from jack-pappas/sockets-ipproto
Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility.
Alex Rønne Petersen [Tue, 2 Jul 2013 09:18:47 +0000 (02:18 -0700)]
Merge pull request #679 from jack-pappas/patch-6
Enable sigaltstack and dtrace on FreeBSD
Marek Safar [Tue, 2 Jul 2013 08:31:59 +0000 (10:31 +0200)]
Do system.object type scan after all references are loaded. Fixes #12991
Jack Pappas [Tue, 2 Jul 2013 02:07:03 +0000 (22:07 -0400)]
Enable sigaltstack and dtrace on FreeBSD
Enable the use of sigaltstack and DTrace on FreeBSD. Note that while DTrace is enabled here (with `has_dtrace=yes`), the DTrace hooks will only be compiled into Mono when the FreeBSD kernel has been compiled with DTrace support.
Jack Pappas [Tue, 2 Jul 2013 01:58:45 +0000 (21:58 -0400)]
Allow clang to compile sgen
Clang has supported both the `__thread` and `tls_model` attributes (needed to compile the sgen GC) since Clang/LLVM 3.2.
When compiling Mono with clang, the check which sets `with_tls=pthread` causes `mono-sgen` to be compiled anyway, although with some improper configuration which causes it to crash immediately when run.
I also removed the check for clang which was causing the `HAVE_TLS_MODEL_ATTR` symbol not to be defined, as Clang has in fact supported `tls_model` for some time now.
I cloned the Mono repository today, applied these changes, and compiled Mono using the LLVM/Clang 3.4 nightly builds on both the 32- and 64-bit versions of Ubuntu 12.04 LTS. In both cases, Mono compiled without any problems at all. Running `make check` on both boxes yielded no errors, except that the `finalizer-exception.exe` test hung on the x64 build; it's unclear whether or not this is a bug which manifests itself when Mono is built with clang, or if it's just a general bug in Mono. Either way, it doesn't seem to affect anything else.
If there are any issues compiling Mono with clang on other platforms, these "global" checks for clang should still be removed, and new platform-specific checks added where necessary.
Zoltan Varga [Tue, 2 Jul 2013 00:28:07 +0000 (02:28 +0200)]
Update the LLVM backend to match https://github.com/mono/llvm/commit/
7e2ee51f8cad6ddeebdc66d8288cb21685422d42.
Zoltan Varga [Tue, 2 Jul 2013 00:10:53 +0000 (02:10 +0200)]
Fix a warning.
Zoltan Varga [Mon, 1 Jul 2013 22:58:52 +0000 (00:58 +0200)]
Fix the unwind info for r7 on arm in managed-to-native wrappers.
Sebastien Pouliot [Mon, 1 Jul 2013 20:21:04 +0000 (16:21 -0400)]
Allow the MONOTOUCH targetr to build its SSL/TLS support right inside System.dll and remove code duplication and non-required code paths.
Marek Safar [Mon, 1 Jul 2013 14:49:39 +0000 (16:49 +0200)]
Use directly captured this instead of parent reference for nested state machine inside another state machine without anonymous storey. Fixes #12762
Zoltan Varga [Mon, 1 Jul 2013 12:16:05 +0000 (14:16 +0200)]
Fix the DISABLE_EXECUTABLES build.
Marek Safar [Mon, 1 Jul 2013 10:11:13 +0000 (12:11 +0200)]
Fix removing of hoisted variable moved to another storey
Marek Safar [Sun, 30 Jun 2013 16:44:34 +0000 (18:44 +0200)]
Tweak tokenizer get_char.
Zoltan Varga [Sat, 29 Jun 2013 18:48:00 +0000 (20:48 +0200)]
Fix more thumb+clang problems.
Michael Hutchinson [Sat, 29 Jun 2013 09:26:41 +0000 (05:26 -0400)]
[Mono.Cairo] Don't log warnings during VM shutdown
Else it can explode pretty badly if the Console streams are
finalized before the Cairo objects.
Marek Safar [Sat, 29 Jun 2013 08:39:10 +0000 (10:39 +0200)]
Call correct ApplyToExtraTarget base override. Fixes #12949
Zoltan Varga [Sat, 29 Jun 2013 00:30:22 +0000 (02:30 +0200)]
Emit the thumb plt trampolines as binary since clang has trouble encoding the assembly.
Rodrigo Kumpera [Fri, 28 Jun 2013 21:03:10 +0000 (17:03 -0400)]
Remove debug spew from switch_gc.
Michael Hutchinson [Fri, 28 Jun 2013 23:22:13 +0000 (16:22 -0700)]
Merge pull request #642 from Ventero/CleanCopyLocal
[xbuild] Actually delete common files (CopyLocal) during Clean.
Michael Hutchinson [Fri, 28 Jun 2013 22:20:54 +0000 (18:20 -0400)]
[Mono.Debugger.Soft] More specific exception when not suspended
Marek Safar [Fri, 28 Jun 2013 16:48:18 +0000 (18:48 +0200)]
Fix generated generated code for implicit nullable conversions involving numeric binary promotion
Marek Safar [Fri, 28 Jun 2013 09:32:00 +0000 (11:32 +0200)]
Handle unicode line separators when parsing C# files
Rodrigo Kumpera [Fri, 28 Jun 2013 15:01:50 +0000 (11:01 -0400)]
Fix the build if -j4 is used.
Rodrigo Kumpera [Fri, 28 Jun 2013 14:48:03 +0000 (10:48 -0400)]
Cleanup automake warnings.
Rodrigo Kumpera [Fri, 28 Jun 2013 12:54:14 +0000 (08:54 -0400)]
Another go fighting autohell.
Marek Safar [Fri, 28 Jun 2013 09:21:47 +0000 (02:21 -0700)]
Merge pull request #676 from TalAloni/master
Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows
TalAloni [Fri, 28 Jun 2013 08:25:54 +0000 (11:25 +0300)]
Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows
Marek Safar [Fri, 28 Jun 2013 08:15:53 +0000 (10:15 +0200)]
Recover more from invalid throw statement. Fixes #12889
Marek Safar [Fri, 28 Jun 2013 07:30:36 +0000 (09:30 +0200)]
Better error candidate selection for anonymous methods
Zoltan Varga [Fri, 28 Jun 2013 00:24:37 +0000 (02:24 +0200)]
Add a missing case to mono_patch_info_hash ().
Rodrigo Kumpera [Thu, 27 Jun 2013 20:40:40 +0000 (16:40 -0400)]
Fix the build.
Rodrigo Kumpera [Thu, 27 Jun 2013 16:59:48 +0000 (12:59 -0400)]
[build]Fix make dist and use a symlink for mono.
Zoltan Varga [Thu, 27 Jun 2013 14:42:54 +0000 (16:42 +0200)]
Remove a pass from the llvm opt pipeline which is not a function pass.
Marek Safar [Thu, 27 Jun 2013 14:01:08 +0000 (16:01 +0200)]
Block task awaiter until task completes. Fixes #12745
Zoltan Varga [Thu, 27 Jun 2013 13:35:46 +0000 (15:35 +0200)]
Enable dolt on x64/osx.
Zoltan Varga [Thu, 27 Jun 2013 13:35:26 +0000 (15:35 +0200)]
Disable some warnings when using clang.
Zoltan Varga [Thu, 27 Jun 2013 13:35:03 +0000 (15:35 +0200)]
Fix returning uninitialized memory in get_pid_status_item ().
Marek Safar [Thu, 27 Jun 2013 12:03:19 +0000 (05:03 -0700)]
Merge pull request #671 from Blewzman/master
Fix SemaphoreSlim
Blewzman [Thu, 27 Jun 2013 11:33:50 +0000 (13:33 +0200)]
Fix SemaphoreSlim Constructor.
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=11598.
Marek Safar [Thu, 27 Jun 2013 09:50:24 +0000 (11:50 +0200)]
Fix NRE on invalid second attribute target
Marek Safar [Wed, 26 Jun 2013 18:39:46 +0000 (20:39 +0200)]
Fix source file name comments
Martin Baulig [Thu, 27 Jun 2013 04:12:33 +0000 (06:12 +0200)]
Rodrigo Kumpera [Thu, 27 Jun 2013 00:26:31 +0000 (20:26 -0400)]
Add regression test for #12898.
Rodrigo Kumpera [Thu, 27 Jun 2013 00:24:02 +0000 (20:24 -0400)]
[verifier] Verify if the catch type is valid under the method context. Fixes BXC #12898.
Sebastien Pouliot [Wed, 26 Jun 2013 23:56:14 +0000 (19:56 -0400)]
Do not throw, optionally, when facing an unknown OID. Fix mozroot facing an sha384ECDSA signed certificate)
Rodrigo Kumpera [Wed, 26 Jun 2013 22:43:32 +0000 (18:43 -0400)]
[sgen] Fix string size calculation in the string alloc wrapper.
It turns out copying the size calculation code from boehm's string wrapper
was a bad idea as it does it incorrectly. The whole runtime calculates it as
"sizeof (MonoString) + (len + 1) * 2" and not offsetof (MonoString, chars) + (len + 1) * 2".
This difference is 4 bytes on 64bits OSX and causes the world to crash.
It might be that we're over allocating here, but we must follow what everything else
expects us to do.
Rodrigo Kumpera [Wed, 26 Jun 2013 22:24:39 +0000 (18:24 -0400)]
[sgen] Fix NALLOC_DEBUG.
Rodrigo Kumpera [Wed, 26 Jun 2013 20:09:13 +0000 (16:09 -0400)]
Fix build due to boehm->sgen changes.
Rodrigo Kumpera [Wed, 26 Jun 2013 15:52:24 +0000 (11:52 -0400)]
Mono now defaults to sgen. We now ship a libmonoboehm for those that need it.
Rodrigo Kumpera [Wed, 26 Jun 2013 15:54:46 +0000 (11:54 -0400)]
Fix the build.
Zoltan Varga [Wed, 26 Jun 2013 17:22:05 +0000 (19:22 +0200)]
Don't make mono_tramp_info_create () assume ownership of its 'name' argument to avoid crashes if the caller passes in a static string.
Zoltan Varga [Wed, 26 Jun 2013 17:11:37 +0000 (19:11 +0200)]
Upgrade llvm backend to match https://github.com/mono/llvm/commit/
411ba3e5b299e841a9418d7fa18c48a2543248d2.
Zoltan Varga [Wed, 26 Jun 2013 17:05:40 +0000 (19:05 +0200)]
Fix the LLVM JIT.
Zoltan Varga [Wed, 26 Jun 2013 15:41:04 +0000 (17:41 +0200)]
Add some comments to the gsharedvt constrained call code.
Rodrigo Kumpera [Wed, 26 Jun 2013 15:00:10 +0000 (08:00 -0700)]
Merge pull request #670 from LogosBible/nostrndup
Don't try to detect strndup on OS X; it is only available on 10.7+.
Martin Potter [Wed, 26 Jun 2013 14:06:26 +0000 (07:06 -0700)]
Don't try to detect strndup on OS X; it is only available on 10.7+.
Marek Safar [Wed, 26 Jun 2013 13:32:25 +0000 (15:32 +0200)]
Mutate generic catch block type when needed. Fixes #12799
Marek Safar [Wed, 26 Jun 2013 12:42:24 +0000 (14:42 +0200)]
Fix order of capturing of this inside switch statement. Fixes #12544
Marek Safar [Wed, 26 Jun 2013 12:40:09 +0000 (14:40 +0200)]
Update test
Martin Baulig [Wed, 26 Jun 2013 11:28:04 +0000 (13:28 +0200)]
[System]: Make WebClient report an error when the download aborted prematurely.
On iOS, Stream.Read() returns 0 if you put the device to sleep while the
download is still running. We now work around that by checking whether the
file has been fully downloaded. Note that this only works if the server
included a Content-Length header.
Fixes #3924.
Marek Safar [Wed, 26 Jun 2013 08:57:01 +0000 (10:57 +0200)]
Rodrigo Kumpera [Wed, 26 Jun 2013 01:33:53 +0000 (18:33 -0700)]
Merge pull request #654 from alesliehughes/master
Implement two functions for supporting IDispatch.
Alistair Leslie-Hughes [Thu, 21 Mar 2013 00:40:20 +0000 (11:40 +1100)]
Implement cominterop_ccw_get_ids_of_names
License: This patch is under the MIT/X11 license.
Alistair Leslie-Hughes [Thu, 21 Mar 2013 00:27:33 +0000 (11:27 +1100)]
Implement cominterop_ccw_get_type_info_count
License: This patch is under the MIT/X11 license.
Zoltan Varga [Tue, 25 Jun 2013 23:55:17 +0000 (01:55 +0200)]
Implement proper osx aot tls support for amd64 too.
Martin Baulig [Tue, 25 Jun 2013 23:28:36 +0000 (01:28 +0200)]
[System]: Partially fix #12393.
Duncan Mak [Tue, 25 Jun 2013 22:04:53 +0000 (18:04 -0400)]
Bump version number to 3.1.0
Marek Safar [Tue, 25 Jun 2013 20:57:32 +0000 (22:57 +0200)]
Update verification data
Marek Safar [Tue, 25 Jun 2013 14:30:54 +0000 (16:30 +0200)]
Fix MethodImplOptions argument checks. Fixes #12638
Marek Safar [Tue, 25 Jun 2013 12:47:15 +0000 (14:47 +0200)]
Better crash reporting
Jonathan Pryor [Tue, 25 Jun 2013 19:19:01 +0000 (15:19 -0400)]
[System.Core/Android] Use correct comparison for timezone ids.
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=7953
The names within zoneinfo.idx are sorted ordinally, which is not the
default string comparison that Array.BinarySearch() uses.
Consequently, many timezones would not be found even though they were
present, including "Pacific/Auckland".
Use the correct string comparison so that names can be found.
Marek Safar [Tue, 25 Jun 2013 19:35:06 +0000 (12:35 -0700)]
Merge pull request #669 from LogosBible/Uri_TryCreate
Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out Uri)
Rodrigo Kumpera [Tue, 25 Jun 2013 18:22:48 +0000 (14:22 -0400)]
[corlib] Fix MethodInfo::ToString () to properly format generic structs. Fixes BXC #12856
Rodrigo Kumpera [Tue, 25 Jun 2013 15:44:44 +0000 (11:44 -0400)]
[aot]Clean the loader error after calling mini_method_compile to avoid poisoning further calls.
Zoltan Varga [Tue, 25 Jun 2013 15:53:57 +0000 (17:53 +0200)]
Add a workaround for an AOT crash in mt.
Grayson Hansard [Thu, 24 Jan 2013 23:04:03 +0000 (15:04 -0800)]
Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out bool)
Zoltan Varga [Tue, 25 Jun 2013 14:52:51 +0000 (16:52 +0200)]
Make the AOT compiler stats output a bit more compact.
Marek Safar [Tue, 25 Jun 2013 10:35:45 +0000 (12:35 +0200)]
Rewrite lifted binary operators to match C# spec more closely. Fixes #12608 and about 10 other issues.
Marek Safar [Sat, 22 Jun 2013 16:17:01 +0000 (18:17 +0200)]
Fix wrong MediaType comparison
Martin Baulig [Mon, 24 Jun 2013 22:18:43 +0000 (00:18 +0200)]
[System]: Stub out System.Net.WebSockets.ClientWebSocket.
Zoltan Varga [Mon, 24 Jun 2013 21:09:40 +0000 (23:09 +0200)]
Use --relocation-model=pic for llvm on ios.
Zoltan Varga [Mon, 24 Jun 2013 21:06:31 +0000 (23:06 +0200)]
Fix the build.
Zoltan Varga [Mon, 24 Jun 2013 20:33:08 +0000 (22:33 +0200)]
Store AOT method indexes in the Mono EH frame instead of method addresses, since the former needs no relocations.