Jérémie Laval [Mon, 29 Jul 2013 04:43:47 +0000 (00:43 -0400)]
[System] Add crude (for now) socket stealing of an HttpWebRequest.
HttpWebRequest is a very tricky piece of code when it comes to its socket, this patch is more like a hack to get something working out of it but it's definitely not the best option.
Jérémie Laval [Mon, 29 Jul 2013 04:42:42 +0000 (00:42 -0400)]
[System] Don't overwrite custom Connection header on HttpWebRequest
Alex Rønne Petersen [Mon, 29 Jul 2013 03:08:42 +0000 (05:08 +0200)]
Zoltan Varga [Mon, 29 Jul 2013 01:08:00 +0000 (03:08 +0200)]
Fix overflow checking in newarray with 64 bit array lengths. Fixes part of #13544.
Jonathan Pryor [Sun, 28 Jul 2013 14:17:38 +0000 (07:17 -0700)]
Merge pull request #701 from steffen-kiess/fix-11778
Fix Syscall.readlink() for non-ascii targets
Marek Safar [Sun, 28 Jul 2013 11:24:53 +0000 (04:24 -0700)]
Merge pull request #716 from alesliehughes/master
More System.DirectoryServices.ActiveDirectory classes
Alistair Leslie-Hughes [Sun, 28 Jul 2013 09:22:00 +0000 (19:22 +1000)]
Add class AttributeMetadataCollection
Alistair Leslie-Hughes [Sun, 28 Jul 2013 09:20:55 +0000 (19:20 +1000)]
Add class AttributeMetadata
Steffen Kieß [Sun, 28 Jul 2013 09:11:38 +0000 (11:11 +0200)]
Fix Syscall.readlink() for non-ascii targets
Syscall.readlink() currently returns an integer indicating the number of
bytes in the link. As buf contains chars, this value is useless if the
target contains non-ascii characters.
This commit creates a new overload which uses a byte array instead of a
StringBuilder and rewrites the old overload to return the number of chars
instead.
Fixes #11778 and #9611
Alistair Leslie-Hughes [Sun, 28 Jul 2013 08:39:04 +0000 (18:39 +1000)]
Add class ReadOnlyStringCollection
Zoltan Varga [Sun, 28 Jul 2013 07:40:32 +0000 (09:40 +0200)]
[sdb] Fix round tripping of vtypes with boxed fields. Fixes #12354.
Alistair Leslie-Hughes [Sun, 28 Jul 2013 07:09:03 +0000 (17:09 +1000)]
Add enum TrustDirection.cs
Alistair Leslie-Hughes [Sun, 28 Jul 2013 07:00:23 +0000 (17:00 +1000)]
Add class ReplicationNeighbor
Alistair Leslie-Hughes [Sun, 28 Jul 2013 06:51:34 +0000 (16:51 +1000)]
Add enum LocatorOptions
Alistair Leslie-Hughes [Sun, 28 Jul 2013 06:37:25 +0000 (16:37 +1000)]
Add enum ForestMode
Alistair Leslie-Hughes [Sun, 28 Jul 2013 06:21:13 +0000 (16:21 +1000)]
Add enum DomainMode.cs
Alistair Leslie-Hughes [Sun, 28 Jul 2013 06:10:17 +0000 (16:10 +1000)]
Add enum ActiveDirectoryRole
Zoltan Varga [Sun, 28 Jul 2013 00:52:51 +0000 (02:52 +0200)]
Add error handling to calls of mono_reflection_create_custom_attr_data_args (). Fixes part of #13435.
Zoltan Varga [Sat, 27 Jul 2013 21:55:17 +0000 (23:55 +0200)]
Remove #ifdefs from MonoTrampolineType, to prevent cross-compilation problems where the cross compiler and the target runtime have different defines. Also do a sanity check at aot load time.
Zoltan Varga [Sat, 27 Jul 2013 21:03:33 +0000 (23:03 +0200)]
Fix an assert in constrained_gsharedvt_call_setup (), mono_class_interface_offset () returns a -1 on failure, not 0.
Marek Safar [Sat, 27 Jul 2013 06:58:11 +0000 (08:58 +0200)]
Don't hide internal error exception when reported cannot show it.
Marek Safar [Fri, 26 Jul 2013 21:44:40 +0000 (23:44 +0200)]
Add clone for error expression. Fixes #13443
Marek Safar [Fri, 26 Jul 2013 21:22:49 +0000 (23:22 +0200)]
Less cascading errors
Marek Safar [Fri, 26 Jul 2013 21:15:39 +0000 (14:15 -0700)]
Merge pull request #714 from IDisposable/patch-2
Consistent use of ch to avoid array indexing more than once.
Zoltan Varga [Fri, 26 Jul 2013 21:04:36 +0000 (23:04 +0200)]
Add more extensive logging to sdb.
Marc Brooks [Fri, 26 Jul 2013 19:06:33 +0000 (14:06 -0500)]
Consistent use of ch to avoid array indexing more than once.
Replace the couple places where the string character array was being indexed twice in the same block instead of the character being cached locally. Cleanup formatting of the switch statements to follow conventions.
MIT licence
Alex Rønne Petersen [Fri, 26 Jul 2013 18:15:22 +0000 (20:15 +0200)]
Revert the use of mono_binary_search () in support/supportw.c.
This code can't depend on mono/utils and doesn't need the 'fixed'
implementation of bsearch () anyway since keys are never null.
Marek Safar [Fri, 26 Jul 2013 17:48:50 +0000 (19:48 +0200)]
Remove CultureInfo.CurrentCulture dependency from ordinal based string::EndsWith. Fixes #13509
Marek Safar [Fri, 26 Jul 2013 14:20:25 +0000 (16:20 +0200)]
Lift result of enum substraction when operation is lifted due to non-nullable enum type. Fixes #13454
Marek Safar [Fri, 26 Jul 2013 14:19:09 +0000 (16:19 +0200)]
Comment update
Alex Rønne Petersen [Fri, 26 Jul 2013 14:24:50 +0000 (16:24 +0200)]
Add a mono_binary_search () function.
This is a replacement for bsearch () because some platforms
have bogus asserts in their implementations.
Alex Rønne Petersen [Fri, 26 Jul 2013 14:23:51 +0000 (16:23 +0200)]
Fix a C# compiler error in the runtime test suite.
Alex Rønne Petersen [Fri, 26 Jul 2013 13:11:13 +0000 (15:11 +0200)]
Fix a warning in appdomain.c introduced by
76e8c8ba0f5dad4c154b9ab6dd969ef2eb0bec79.
Alex Rønne Petersen [Fri, 26 Jul 2013 12:26:11 +0000 (14:26 +0200)]
Mark inline assembly in mono-hwcap-s390x.c volatile.
Alex Rønne Petersen [Fri, 26 Jul 2013 12:21:45 +0000 (14:21 +0200)]
Fix up memory barriers on Windows.
1. The _ReadWriteBarrier intrinsic and friends do not actually issue
a CPU fence; they are purely for inhibiting the compiler in moving
loads and stores across the call. So when compiling with MSVC, we
also need to call MemoryBarrier from Windows.h to issue a fence.
Note that _ReadWriteBarrier is *not* implied by MemoryBarrier; both
are *really* needed.
2. On Cygwin, we only support GCC 3.x, so resort to inline assembly to
issue memory barriers. I would have liked to avoid this, but since
GCC 3.x doesn't provide __sync_synchronize and we aren't likely to
upgrade to 4.x anytime soon, this is the workaround for now.
Marek Safar [Fri, 26 Jul 2013 11:51:23 +0000 (13:51 +0200)]
Check promoted value type binary equality operations against null too. Fixes #13497
Marek Safar [Fri, 26 Jul 2013 08:30:48 +0000 (10:30 +0200)]
Ignore space separators in nowarn arguments. Fixes #13476
Marek Safar [Fri, 26 Jul 2013 07:49:56 +0000 (09:49 +0200)]
Marek Safar [Fri, 26 Jul 2013 07:44:17 +0000 (09:44 +0200)]
Show more info for missing indirect assembly references
Zoltan Varga [Fri, 26 Jul 2013 01:55:58 +0000 (03:55 +0200)]
Update msvc project files with newly added sgen files.
Zoltan Varga [Fri, 26 Jul 2013 00:01:47 +0000 (02:01 +0200)]
Add full-aot support for runtime invokes to array Get/Set methods.
Zoltan Varga [Thu, 25 Jul 2013 22:35:47 +0000 (00:35 +0200)]
Avoid an assert on android where seq points are not generated for wrappers.
Jeffrey Stedfast [Thu, 25 Jul 2013 20:19:26 +0000 (16:19 -0400)]
Revert "Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets""
This reverts commit
a4800b96b2e1e7e897048bf1e924081cc89a4794.
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