Jeffrey Stedfast [Thu, 25 Jul 2013 18:42:34 +0000 (14:42 -0400)]
Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets"
This reverts commit
03011419a4ff6426c9801651cf60a65f65202269.
Jonathan Pryor [Thu, 25 Jul 2013 15:34:03 +0000 (11:34 -0400)]
[System] Fix DnsTest.GetHostByName() test.
Test Case Failures:
1) MonoTests.System.Net.DnsTest.GetHostByName : Should raise a SocketException (assuming that 'www.unlikely.novell.com' does not exist)
at MonoTests.System.Net.DnsTest.GetHostByName () [0x00089] in /Users/jon/Development/mono-HEAD/mono/mcs/class/System/Test/System.Net/DnsTest.cs:212
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/jon/Development/mono-HEAD/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
As it happens, 'www.unlikely.novell.com' DOES exist:
$ ping www.unlikely.novell.com
PING www.unlikely.novell.com (199.101.28.20): 56 data bytes
64 bytes from 199.101.28.20: icmp_seq=0 ttl=57 time=29.399 ms
Apparently it's due to the "www." prefix; remove "www." and the site
isn't found, as expected:
$ ping unlikely.novell.com
ping: cannot resolve unlikely.novell.com: Unknown host
Update DnsTest.noneExistingSite so that the DnsTest.GetHostByName()
test passes.
Jonathan Pryor [Thu, 25 Jul 2013 15:24:30 +0000 (11:24 -0400)]
[System] Support FTP download where PWD starts with '\'.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13343
There are some Industrial Automation Hardware devices which return a
'\'-prefixed path to the FTP PWD command, which would break:
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.Parse (UriKind kind, System.String uriString)
at System.Uri.ParseUri (UriKind kind)
at System.Uri..ctor (System.String uriString, Boolean dontEscape)
at System.Uri..ctor (System.String uriString) [0x0000
at System.Net.FtpWebRequest.GetRemoteFolderPath (System.Uri uri)
at System.Net.FtpWebRequest.CWDAndSetFileName (System.Uri uri)
at System.Net.FtpWebRequest.ProcessMethod ()
at System.Net.FtpWebRequest.ProcessRequest ()
There was an error connecting to the FTP Server.
The problem was this statement:
Uri initial = new Uri ("ftp://dummy-host" + initial_path);
Since the FTP server was returning "\" to the PWD command,
`initial_path` was "\", and the above was equivalent to:
Uri initial = new Uri (@"ftp://dummy-host\");
This results in the UriFormatException.
The solution is to not assume that `initial_path` will start with '/',
and instead use UriBuilder.
Marek Safar [Thu, 25 Jul 2013 15:22:39 +0000 (17:22 +0200)]
Add *CachePolicy to mobile profile. Fixes #13466
Marek Safar [Thu, 25 Jul 2013 15:19:37 +0000 (17:19 +0200)]
Fixed string null constant conversion to object constant
Marek Safar [Thu, 25 Jul 2013 10:55:53 +0000 (03:55 -0700)]
Merge pull request #713 from alesliehughes/master
Add Some System.DirectoryServices.ActiveDirectory enums.
Zoltan Varga [Thu, 25 Jul 2013 10:33:56 +0000 (03:33 -0700)]
Merge pull request #711 from spicypixel/hotfix/appdomain-leak
Fix string leak when loading assemblies.
Zoltan Varga [Thu, 25 Jul 2013 10:31:16 +0000 (03:31 -0700)]
Merge pull request #712 from spicypixel/hotfix/trampoline-name-leak
Fix generic trampoline string leak.
Zoltan Varga [Thu, 25 Jul 2013 05:31:54 +0000 (07:31 +0200)]
Make some sdb tests more robust so they work again after the latest line number changes.
Aaron Oneal [Wed, 24 Jul 2013 23:17:26 +0000 (16:17 -0700)]
Fix additional string leaks when creating tramp_info.
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
Aaron Oneal [Wed, 24 Jul 2013 23:13:04 +0000 (16:13 -0700)]
Fix additional string leaks when creating tramp_info.
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
Aaron Oneal [Wed, 24 Jul 2013 22:47:46 +0000 (15:47 -0700)]
Fix generic trampoline string leak.
Generic trampolines were leaking strings because:
1. The mono_arch_create_generic_trampoline function uses mono_get_generic_trampoline_name which does strdup.
2. That string was passed into mono_tramp_info_create which did strdup again.
The fix is to free the string after passing it to mono_tramp_info_create.
Aaron Oneal [Wed, 24 Jul 2013 21:13:47 +0000 (14:13 -0700)]
Fix string leak when loading assemblies.
The mono_portability_find_file method allocates a new string but the private_file_needs_copying method was not freeing it which resulted in a leaked string when loading assemblies.
Zoltan Varga [Wed, 24 Jul 2013 20:46:16 +0000 (22:46 +0200)]
Continue single stepping if the same line reached in all cases. Factor out some code code. Fixes #13065.
Sebastien Pouliot [Wed, 24 Jul 2013 12:58:35 +0000 (08:58 -0400)]
Allow running System.ServiceModel.Web unit tests on the MOBILE profiles (using the same .sources file)
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:20:07 +0000 (20:20 +1000)]
Add enum SyncFromAllServersOptions
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:19:11 +0000 (20:19 +1000)]
Add enum SyncFromAllServersEvent
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:17:56 +0000 (20:17 +1000)]
Add enum SyncFromAllServersErrorCategory
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:15:50 +0000 (20:15 +1000)]
Add enum ReplicationSpan
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:14:51 +0000 (20:14 +1000)]
Add enum ReplicationOperationType
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:14:01 +0000 (20:14 +1000)]
Add enum NotificationStatus
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:11:20 +0000 (20:11 +1000)]
Add enum MinuteOfHour
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:08:19 +0000 (20:08 +1000)]
Add enum HourOfDay
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:05:07 +0000 (20:05 +1000)]
Add enum DirectoryContextType
Alistair Leslie-Hughes [Wed, 24 Jul 2013 10:00:09 +0000 (20:00 +1000)]
Add enum ActiveDirectoryTransportType.
Marek Safar [Wed, 24 Jul 2013 06:42:19 +0000 (23:42 -0700)]
Merge pull request #709 from alesliehughes/master
Correct TrySetApartmentstate tests
Alistair Leslie-Hughes [Wed, 24 Jul 2013 04:22:41 +0000 (14:22 +1000)]
Correct TrySetApartmentstate tests
License: This patch is under the MIT/X11 license.
Zoltan Varga [Wed, 24 Jul 2013 02:13:49 +0000 (04:13 +0200)]
Unify the different gsharedvt constrained call jit icalls into one.
Zoltan Varga [Tue, 23 Jul 2013 22:07:29 +0000 (00:07 +0200)]
Avoid calling valuetype methods with a signature which uses an explicit this argument, the JIT passes the implicit argument differently than an explicit one, leading to problems when the method returns another valuetype.
Zoltan Varga [Tue, 23 Jul 2013 16:08:16 +0000 (18:08 +0200)]
Revert "Generate the push/pop LMF code as IR on x86."
This reverts commit
5c85e41f84c22eff999e817272dad88ff4a2f8ee.
Revert this as it breaks a lot of tests.
Alex Rønne Petersen [Tue, 23 Jul 2013 14:10:49 +0000 (07:10 -0700)]
Merge pull request #697 from linquize/atom-bug
Atom bug
Alex Rønne Petersen [Tue, 23 Jul 2013 13:57:11 +0000 (15:57 +0200)]
Fix the mono-hwcap module to work in the MONO_CROSS_COMPILE case.
The Mini back ends still use the hwcap variables in this case, so we
can't exclude the files they are defined in. Instead, ifdef out the
actual hwcap logic in the MONO_CROSS_COMPILE case.
Sebastien Pouliot [Tue, 23 Jul 2013 13:03:45 +0000 (09:03 -0400)]
Do not include tests for AssociatedMetadataTypeTypeDescriptionProvider in MOBILE since the type is not available
Marek Safar [Tue, 23 Jul 2013 12:28:16 +0000 (14:28 +0200)]
Fix default content buffer max size
Zoltan Varga [Tue, 23 Jul 2013 03:30:51 +0000 (05:30 +0200)]
Avoid linking the LLVM runtime codegen libs into a cross-compiler runtime.
Linquize [Fri, 12 Jul 2013 13:33:45 +0000 (21:33 +0800)]
Atom10FeedFormatter should generate subtitle tag for Description property
Marek Safar [Mon, 22 Jul 2013 14:05:06 +0000 (16:05 +0200)]
Merge some nrefactory changes
Marek Safar [Mon, 22 Jul 2013 11:44:11 +0000 (13:44 +0200)]
Don't crash when metadata contains private top level type.
Marek Safar [Mon, 22 Jul 2013 06:21:47 +0000 (08:21 +0200)]
Adds async handling to binary:emitbranchable. Fixes #13362
Marek Safar [Sat, 20 Jul 2013 16:52:56 +0000 (18:52 +0200)]
Fixes duplicate error message
Marek Safar [Sat, 20 Jul 2013 16:15:00 +0000 (18:15 +0200)]
Add field target for automatic properties
Zoltan Varga [Mon, 22 Jul 2013 01:49:25 +0000 (03:49 +0200)]
Generate the push/pop LMF code as IR on x86.
Zoltan Varga [Mon, 22 Jul 2013 01:45:06 +0000 (03:45 +0200)]
Fix a problem in emit_pop_lmf (), it no longer needs to change the current bblock.
Zoltan Varga [Sun, 21 Jul 2013 23:48:24 +0000 (01:48 +0200)]
Get rid of the MONO_ARCH_ENABLE_LMF_IR define added by
0938c69a52654e02bbb8f0c2107183404516dec6, use flags in MonoCompile instead.
Rodrigo Kumpera [Sun, 21 Jul 2013 22:22:57 +0000 (18:22 -0400)]
Handle property with default values. Fix part of #13336.
Rodrigo Kumpera [Sun, 21 Jul 2013 19:21:29 +0000 (12:21 -0700)]
Merge pull request #600 from tr8dr/master
Fix for bug 9250 (critical bug for embedded mono)
Cameron Taggart [Sat, 20 Jul 2013 22:19:34 +0000 (17:19 -0500)]
fixes ctaggart/mono#2 cpuid() now compiles in VS 2012
Alex Rønne Petersen [Sun, 21 Jul 2013 17:56:06 +0000 (19:56 +0200)]
Fix a "mixed decls and code" warning.
i59 [Tue, 25 Jun 2013 13:30:18 +0000 (15:30 +0200)]
Added mono-mutex.h & c to libmonoutils.vcxproj
Signed-off-by: Alex Rønne Petersen <alexrp@xamarin.com>
i59 [Tue, 25 Jun 2013 13:32:37 +0000 (15:32 +0200)]
mono-mutex.c: Don't include sys/time.h on Windows;
Signed-off-by: Alex Rønne Petersen <alexrp@xamarin.com>
Alex Rønne Petersen [Sun, 21 Jul 2013 06:06:41 +0000 (23:06 -0700)]
Merge pull request #707 from LHCGreg/12752-windows_nul_isredirected
Improve detecting if a handle is a console on Windows.
Alex Rønne Petersen [Sun, 21 Jul 2013 05:59:19 +0000 (07:59 +0200)]
libgc: Use GCC atomics on ARM.
This is to ensure that if the runtime is compiled for e.g.
ARM v4 or v5, it will use the correct atomics on v6 and v7.
Zoltan Varga [Sat, 20 Jul 2013 15:32:11 +0000 (17:32 +0200)]
Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms.
Zoltan Varga [Sat, 20 Jul 2013 14:05:38 +0000 (16:05 +0200)]
Generate the push/pop LMF code as IR on architectures which support it. Currently only used on amd64.
Marek Safar [Sat, 20 Jul 2013 09:15:06 +0000 (11:15 +0200)]
Fix indexer member formating
Marek Safar [Sat, 20 Jul 2013 07:18:20 +0000 (09:18 +0200)]
Fixes failing tests
Marek Safar [Sat, 20 Jul 2013 07:05:53 +0000 (09:05 +0200)]
Schedule internal delay task on default scheduler only. Fixes #13318
Marek Safar [Sat, 20 Jul 2013 06:52:23 +0000 (08:52 +0200)]
Lazy initialization of type parameters expanded interfaces. Fixes #13324
Zoltan Varga [Sat, 20 Jul 2013 04:05:49 +0000 (06:05 +0200)]
Another attempt at fixing mono_atomic_load_acquire() on MSVC. Fixes #13340.
Alex Rønne Petersen [Fri, 19 Jul 2013 15:34:55 +0000 (17:34 +0200)]
Enable GCC atomics on mips.
Alex Rønne Petersen [Sat, 20 Jul 2013 00:47:32 +0000 (02:47 +0200)]
Enable GCC atomics on arm.
Alex Rønne Petersen [Sat, 20 Jul 2013 00:44:31 +0000 (02:44 +0200)]
Enable GCC atomics on ppc and ppc64.
Alex Rønne Petersen [Fri, 19 Jul 2013 01:20:14 +0000 (03:20 +0200)]
Enable GCC atomics on x86 and amd64.
Alex Rønne Petersen [Fri, 19 Jul 2013 01:19:38 +0000 (03:19 +0200)]
Use GCC atomics when USE_GCC_ATOMIC_OPS is defined.
We still prefer Windows.h functions when compiling for Windows, and
MSVC intrinsics for memory barriers when compiling with MSVC.
Alex Rønne Petersen [Fri, 19 Jul 2013 04:48:16 +0000 (06:48 +0200)]
PowerPC build fix in mono-hwcap-ppc.
Alex Rønne Petersen [Fri, 19 Jul 2013 00:09:30 +0000 (02:09 +0200)]
configure: Remove obsolete FIXME comment.
Alex Rønne Petersen [Thu, 18 Jul 2013 23:59:48 +0000 (01:59 +0200)]
Add a MONO_VERBOSE_HWCAP environment variable.
This causes detected hardware features to be printed to stdout.
Alex Rønne Petersen [Thu, 18 Jul 2013 23:42:39 +0000 (01:42 +0200)]
Remove now-unneeded mono_aot_only guard around mono_hwcap_init ().
We no longer use the code manager in any of the hwcap implementations,
so we don't need to disable the hwcap infrastructure in full-aot mode.
Alex Rønne Petersen [Thu, 18 Jul 2013 23:38:23 +0000 (01:38 +0200)]
Remove the JIT-ed CPUID hack from mono-hwcap-x86.
A proper workaround for the 32-bit PIC issue exists: Using xchg to
unclobber EBX which is used by the compiler. This means we can just
use inline assembly to issue the instruction, eliminating the hack
where we JIT-compiled a function to do the CPUID.
This patch also makes it so that we use MSVC's __cpuid intrinsic
on both 32-bit and 64-bit x86 since it's available on both.
Alex Rønne Petersen [Thu, 18 Jul 2013 22:43:25 +0000 (00:43 +0200)]
Check for sys/auxv.h and only use it if available.
Alex Rønne Petersen [Thu, 18 Jul 2013 22:38:32 +0000 (00:38 +0200)]
Make all Mini back ends use mono-hwcap for CPU feature detection.
Also some related cleanup as a result of this.
Zoltan Varga [Fri, 19 Jul 2013 18:53:16 +0000 (20:53 +0200)]
Remove the async hacks from the gsharedvt code, gsharedvt can now handle async methods, and the infrastructure methods they use.
Zoltan Varga [Fri, 19 Jul 2013 18:52:12 +0000 (20:52 +0200)]
Share byref arguments in runtime invoke signatures with int&. Remove the restrictions on sharing runtime invoke wrappers of valuetype instance methods, its not longer needed.
Zoltan Varga [Fri, 19 Jul 2013 15:55:11 +0000 (17:55 +0200)]
Properly null terminate strings in mono_dwarf_escape_path (). Fixes #13050.
Sebastien Pouliot [Fri, 19 Jul 2013 13:38:58 +0000 (09:38 -0400)]
Disable TestDisposeOnCallback for MONOTOUCH, the test does not really work as the state is null (and throws in a separate thread)
Zoltan Varga [Thu, 18 Jul 2013 17:44:58 +0000 (19:44 +0200)]
Avoid calling mono_domain_free () in a cross-compiler, it causes a GC, and the unwind infrastructure is not properly set up when cross-compiling.
Mark Probst [Thu, 18 Jul 2013 17:37:47 +0000 (10:37 -0700)]
Simplify emit_write_barrier().
We have two ways of passing in the value - by MonoInst* and by register.
Remove the second and always pass a MonoInst*.
Marek Safar [Thu, 18 Jul 2013 12:42:12 +0000 (14:42 +0200)]
Add nested partial types inside nested partial types to AST. Fixes #13316
Marek Safar [Thu, 18 Jul 2013 08:53:33 +0000 (10:53 +0200)]
Nested partial type inside generic class can have base type defined later than current type inflation happens. Fixes #13289
Marek Safar [Wed, 17 Jul 2013 15:14:55 +0000 (17:14 +0200)]
Don't try to match lifted equality operators on same reference types
Zoltan Varga [Thu, 18 Jul 2013 03:36:50 +0000 (05:36 +0200)]
Fix an overflow if MONO_ZERO_LEN_ARRAY is not 0. Fixes #13233.
Alex Rønne Petersen [Thu, 18 Jul 2013 02:15:32 +0000 (04:15 +0200)]
Add a mono_hwcap_init () call to parse_optimizations ().
This is necessary because we need hardware features to be
detected by the time we call mono_arch_cpu_optimizations ().
Alex Rønne Petersen [Thu, 18 Jul 2013 01:38:04 +0000 (03:38 +0200)]
Make mono_hwcap_init () only perform initialization if not already done.
This moves arch-specific initialization to mono_hwcap_arch_init ().
Mark Probst [Wed, 17 Jul 2013 23:26:46 +0000 (16:26 -0700)]
Weaken a race condition in object initialization.
It's still there in a different form, but it's not easy to fix.
Mark Probst [Wed, 17 Jul 2013 22:28:59 +0000 (15:28 -0700)]
[sgen] Binary protocol improvements.
Protocol domain unloads, and allow greping for vtable.
Zoltan Varga [Wed, 17 Jul 2013 21:54:16 +0000 (23:54 +0200)]
Add support for constrained calls with one ref parameter to gsharedvt, enought to support AsyncMethodBuilder methods.
Zoltan Varga [Wed, 17 Jul 2013 21:10:41 +0000 (23:10 +0200)]
Fix a warning.
Zoltan Varga [Wed, 17 Jul 2013 21:07:30 +0000 (23:07 +0200)]
Add support for a simple form of constrained calls to gsharedvt, enough to support AsyncMethodBuilder.Start ().
Zoltan Varga [Wed, 17 Jul 2013 00:58:13 +0000 (02:58 +0200)]
Fix a warning.
Rodrigo Kumpera [Wed, 17 Jul 2013 18:09:18 +0000 (11:09 -0700)]
Merge pull request #706 from elijahtaylor/fixdyncode
Fix nacl_dyncode include
Marek Safar [Wed, 17 Jul 2013 06:18:55 +0000 (23:18 -0700)]
Merge pull request #705 from alesliehughes/master
Allow TrySetApartmentState to set the same state multiple times.
Alistair Leslie-Hughes [Wed, 17 Jul 2013 05:22:54 +0000 (15:22 +1000)]
Allow TrySetApartmentState to set the same state multiple times.
License: This patch is under the MIT/X11 license.
Alex Rønne Petersen [Wed, 17 Jul 2013 02:59:23 +0000 (04:59 +0200)]
mono-hwcap: Add ARM version detection for iOS.
Zoltan Varga [Tue, 16 Jul 2013 21:45:10 +0000 (23:45 +0200)]
Avoid printing an extra newline when printing fp results while tracing.
Mark Probst [Thu, 11 Jul 2013 20:25:42 +0000 (13:25 -0700)]
Fix race conditions in finalizer/weak link staging.
Elijah Taylor [Tue, 16 Jul 2013 21:14:31 +0000 (14:14 -0700)]
Fix nacl_dyncode include
Zoltan Varga [Tue, 16 Jul 2013 16:54:14 +0000 (18:54 +0200)]
Fix MONO_GC_DEBUG=collect-before-allocs. mono_gc_alloc_obj_nolock () was not called for the majority of allocations.
Zoltan Varga [Tue, 16 Jul 2013 14:16:51 +0000 (16:16 +0200)]
Fix the dependencies of the corlib test suite so the test suite is not rebuilt every time.
Zoltan Varga [Mon, 15 Jul 2013 21:44:48 +0000 (23:44 +0200)]
Fix a crash in thread_suspend_func () if the thread has no tls set.
Marek Safar [Tue, 16 Jul 2013 08:13:07 +0000 (10:13 +0200)]
Remove redundant status capturing