Zoltan Varga [Wed, 3 Oct 2012 08:26:37 +0000 (10:26 +0200)]
Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer supported, see lists.gnu.org/archive/html/automake/2012-08/msg00087.html.
Rodrigo Kumpera [Tue, 2 Oct 2012 19:13:11 +0000 (15:13 -0400)]
Disable the type check on reference type array stores.
* method-to-ir.c (emit_array_store): We can avoid the type check
on stores to reference arrays as it turns out List<T> is not
covariant to its element type as I previously thought so.
Marek Safar [Tue, 2 Oct 2012 16:03:15 +0000 (17:03 +0100)]
Implement TaskFactory::FromAsync for calls completed synchronously.
Marek Safar [Tue, 2 Oct 2012 12:20:07 +0000 (13:20 +0100)]
Spped up array reverse
Marek Safar [Tue, 2 Oct 2012 08:46:16 +0000 (09:46 +0100)]
Fix array IStructuralEquatable.GetHashCode to use provided comparer.
Mark Probst [Tue, 2 Oct 2012 10:52:10 +0000 (12:52 +0200)]
[sgen] Fix race condition in mono_gc_weak_link_get ().
Rodrigo Kumpera [Mon, 1 Oct 2012 18:22:49 +0000 (14:22 -0400)]
Force List<T> accessors to be inlined.
* List.cs: Make sure indexers are always inlined. We use the 256 literal instead
of MethodImplOptions.AggressiveInlining since the later is only available on 4.5.
Rodrigo Kumpera [Mon, 1 Oct 2012 17:11:07 +0000 (13:11 -0400)]
List<T> accessors now use Array.Unsafe(Load|Store).
Rodrigo Kumpera [Mon, 1 Oct 2012 17:02:34 +0000 (13:02 -0400)]
Implement Array.UnsafeLoad and Array.UnsafeStore. Both functions ignores bounds check when possible.
* Array.cs: Add UnsafeLoad and UnsafeStore functions that don't perform bounds check.
The JIT will generate, when possible, direct a load/store. Right now the only case we can't
handle are stores to reference arrays.
Reference arrays are covariant on their element type which means that we must perform a runtime
type check on stores to preserve type safety. Since the type check is usually must more expensive
than the bounds check we simply ignore this for now.
The reasoning behind this decision was that given our initial target are corlib's collections and
they are too covariant to their element types they do need too a runtime type check on stores to ensure
correctness.
Rodrigo Kumpera [Mon, 1 Oct 2012 16:28:42 +0000 (12:28 -0400)]
Extract the array store code to separare function.
Zoltan Varga [Mon, 16 Apr 2012 12:22:31 +0000 (14:22 +0200)]
Revert "Disable wrapper generation code when DISABLE_JIT is defined."
This reverts commit
a6583c60c0c3814ca02bf2569c7a5e48b46377a7.
This doesn't work since emit_marshal () is used to compute the signatures of the wrappers themselves through the 'conv_arg_type' argument.
Marek Safar [Mon, 1 Oct 2012 17:41:03 +0000 (18:41 +0100)]
Update to the latest IKVM.Reflection
Marek Safar [Mon, 1 Oct 2012 16:44:00 +0000 (17:44 +0100)]
Make large float arrays emit faster
Marek Safar [Mon, 1 Oct 2012 12:17:54 +0000 (13:17 +0100)]
Remove commented code
Martin Baulig [Mon, 1 Oct 2012 12:47:49 +0000 (14:47 +0200)]
[WCF]: Fix WSDL import of methods with complex return types.
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/
12551090/monotouch-wcf-service-reference-cs-errors/
12669880
DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as
[OperationContract]
DateTime GetDate ();
as already being imported. This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.
I also added a new test case for this.
Zoltan Varga [Mon, 1 Oct 2012 13:02:03 +0000 (15:02 +0200)]
Avoid calling mono_jit_info_table_find () in is_ip_in_managed_allocator (). This leads to a small speedup, and works around #7564.
Marek Safar [Mon, 1 Oct 2012 12:14:47 +0000 (13:14 +0100)]
Speed up implicitly typed array inference. Fixes #7222
Zoltan Varga [Sun, 30 Sep 2012 01:53:49 +0000 (03:53 +0200)]
Fix a memory overwrite in the handling of some simd opcodes in the LLVM backend.
Zoltan Varga [Sun, 30 Sep 2012 01:17:26 +0000 (03:17 +0200)]
Remove the fconv_to_i test from iltests.il, it basically only works on x86.
Zoltan Varga [Sun, 30 Sep 2012 01:15:49 +0000 (03:15 +0200)]
Avoid copying the stack alignment area during tail calls on x86, if the caller method is frm LLVM, it might not have that area.
Zoltan Varga [Sun, 30 Sep 2012 01:14:38 +0000 (03:14 +0200)]
Fix dwarf register mapping on darwin/x86.
Zoltan Varga [Sat, 29 Sep 2012 23:16:09 +0000 (01:16 +0200)]
Disable OP_TLS_GET support in the LLVM backend on non-linux platforms.
Marek Safar [Sat, 29 Sep 2012 17:09:20 +0000 (10:09 -0700)]
Merge pull request #471 from antoniusriha/master
[System] Fix Uri.MakeRelativeUri on paths to higher level dir
Marek Safar [Sat, 29 Sep 2012 17:08:09 +0000 (10:08 -0700)]
Merge pull request #470 from clcrutch/SystemIcons
System.Drawing.SystemIcons.Shield
Antonius Riha [Sat, 29 Sep 2012 16:40:27 +0000 (18:40 +0200)]
[System] Fix Uri.MakeRelativeUri on paths to higher level dir
Given the test case when a relative path should be built from a lower
level dir to a higher level dir, the last bit from the "From-Path" is always
considered to be a file - even if it ends with "/". In contrast, .NET
considers paths ending with "/" as directories and therefore the
resulting path goes one level further up than the resulting path of the
mono implementation. This patch aims to fix that.
clcrutch [Sat, 29 Sep 2012 15:41:15 +0000 (08:41 -0700)]
Update mcs/class/System.Drawing/Assembly/ChangeLog
clcrutch [Sat, 29 Sep 2012 15:40:50 +0000 (08:40 -0700)]
Fixed System.Drawing/System.Drawing-net_4_5.csproj
clcrutch [Sat, 29 Sep 2012 15:39:58 +0000 (08:39 -0700)]
Fixed System.Drawing/System.Drawing-net_4_0.csproj
clcrutch [Sat, 29 Sep 2012 15:39:05 +0000 (08:39 -0700)]
Fixed System.Drawing/System.Drawing-net_2_0.csproj
clcrutch [Sat, 29 Sep 2012 15:36:00 +0000 (08:36 -0700)]
Fixed mcs/class/System.Drawing/ChangeLOg
Mark Probst [Sat, 29 Sep 2012 12:48:01 +0000 (14:48 +0200)]
[dtrace] Turns out "sweeped" is not a word.
Mark Probst [Sat, 29 Sep 2012 11:00:32 +0000 (13:00 +0200)]
[sgen] Flags bit field instead of individual args for OS alloc funcs.
Mark Probst [Sat, 29 Sep 2012 09:59:06 +0000 (11:59 +0200)]
[dtrace] Make pointers into user space uintptr_t instead of void*.
chris [Sat, 29 Sep 2012 03:35:48 +0000 (20:35 -0700)]
Added System.Drawing.SystemIcons.Shield to API to match .Net 2.0 SP1, 4.0, 4.5 API.
Chris [Sat, 29 Sep 2012 03:28:13 +0000 (20:28 -0700)]
Implemented System.Drawing.SystemIcons.Shield to match the .Net 2.0, 4.0, 4.5 API.
Zoltan Varga [Sat, 29 Sep 2012 00:36:59 +0000 (02:36 +0200)]
Fix a test name.
Zoltan Varga [Sat, 29 Sep 2012 00:21:02 +0000 (02:21 +0200)]
Fix some sign extension issues in the 2 dimensional array access implementation on 64 bit platforms. Fixes #7438.
Mark Probst [Fri, 28 Sep 2012 21:22:40 +0000 (23:22 +0200)]
Merge branch 'feature-dtrace'
Mark Probst [Sat, 22 Sep 2012 14:57:33 +0000 (16:57 +0200)]
[dtrace] Add G_UNLIKELY to all DTrace _ENABLED macros.
Mark Probst [Sat, 22 Sep 2012 10:40:35 +0000 (12:40 +0200)]
[dtrace] Probe for object moved, within or between heaps.
Mark Probst [Sat, 22 Sep 2012 14:32:48 +0000 (16:32 +0200)]
[dtrace] Pass namespace and class name to probes where appropriate.
Mark Probst [Sat, 22 Sep 2012 13:48:58 +0000 (15:48 +0200)]
[dtrace] Probes for large and pinned allocation.
Mark Probst [Sat, 22 Sep 2012 12:48:17 +0000 (14:48 +0200)]
[dtrace] Probe for pinning of objects.
Mark Probst [Sat, 22 Sep 2012 12:11:55 +0000 (14:11 +0200)]
[dtrace] Probe for major heap area sweep.
Mark Probst [Sat, 22 Sep 2012 10:53:41 +0000 (12:53 +0200)]
[dtrace] Probe for nursery fragment creation aka nursery sweep.
Mark Probst [Fri, 21 Sep 2012 17:54:21 +0000 (19:54 +0200)]
[dtrace] Probes for degraded and mature allocation.
Mark Probst [Fri, 21 Sep 2012 17:26:09 +0000 (19:26 +0200)]
[dtrace] Allocation of TLABs. Allocation of objects directly from nursery.
Mark Probst [Fri, 21 Sep 2012 16:55:08 +0000 (18:55 +0200)]
[dtrace] Remove our duplicates of DTrace probe defines.
Mark Probst [Fri, 21 Sep 2012 14:44:16 +0000 (16:44 +0200)]
[dtrace] Probes for taking/releasing the GC lock.
Mark Probst [Fri, 21 Sep 2012 12:34:41 +0000 (14:34 +0200)]
[dtrace] GC heap allocation probes for SGen.
These trigger whenever a segment of heap memory is allocated from the
OS, or freed to the OS again.
Mark Probst [Tue, 18 Sep 2012 18:16:20 +0000 (20:16 +0200)]
[dtrace] GC begin/end probes for SGen.
Marek Safar [Fri, 28 Sep 2012 18:23:19 +0000 (19:23 +0100)]
Better fix for invalid warning about missing documentation on partial parts.
Martin Baulig [Thu, 27 Sep 2012 01:59:18 +0000 (03:59 +0200)]
[#7424]: Fix regression in same-origin-check for Cookies.
Disable same-origin checks when the cookie does not have a domain
and we default to the Uri's hostname.
Sebastien Pouliot [Thu, 27 Sep 2012 00:36:50 +0000 (20:36 -0400)]
Fix CFB mode for Rijndael when data is not a multiple of block size
Martin Baulig [Thu, 27 Sep 2012 00:00:00 +0000 (02:00 +0200)]
[#7200]: WebRequest returns result in another thread.
This is a partial revertion of master commit #
9069d07, which was
backported into mono-2-10 in commit #
bfa23f8.
I only reverted the change in line 716, keeping the rest of the
commit in place.
Marek Safar [Wed, 26 Sep 2012 17:30:02 +0000 (18:30 +0100)]
Don't report missing documentation warning for partial parts. Fixes #7462
Marek Safar [Wed, 26 Sep 2012 17:11:24 +0000 (18:11 +0100)]
Upadte csproj files
Zoltan Varga [Wed, 26 Sep 2012 15:14:33 +0000 (17:14 +0200)]
Fix the computation of TLS reference bitmaps (#6755) properly by using a 'numbits' variable instead of the confusing 'max_bits' variable.
Marek Safar [Wed, 26 Sep 2012 07:29:33 +0000 (08:29 +0100)]
Fixes build
Marek Safar [Wed, 26 Sep 2012 07:26:55 +0000 (08:26 +0100)]
Add location for namespace token
Zoltan Varga [Tue, 25 Sep 2012 21:26:00 +0000 (23:26 +0200)]
Treat the [UnmanagedFunctionPointer] attribute the same as [MonoNativeFunctionWrapper]. Fixes #7385.
Zoltan Varga [Tue, 25 Sep 2012 21:09:48 +0000 (23:09 +0200)]
Avoid constructing custom attribute objects during AOT compilation.
Marek Safar [Tue, 25 Sep 2012 19:00:51 +0000 (20:00 +0100)]
Add incomplete namespace declaration to ast. Fixes #7436
Jeremie Laval [Tue, 25 Sep 2012 13:24:56 +0000 (14:24 +0100)]
[corlib] Fix a edge case of ConcurrentQueue dequeuing by retrying after we fix up things
Jeremie Laval [Tue, 25 Sep 2012 13:24:03 +0000 (14:24 +0100)]
[corlib] Remove usage of ObjectPool, we will depend on sgen being a better GC instead
Martin Baulig [Tue, 25 Sep 2012 00:02:58 +0000 (02:02 +0200)]
[#7299][Serialization]: Fixed and improved collection serialization.
* Implement "Interchangeable Collections" and Collection Interface Types.
(see http://msdn.microsoft.com/en-us/library/
aa347850.aspx)
* Add element type check for arrays.
* Identify custom collection types (must have a public parameterless
constructor and an "Add" method with the correct argument type) and
distinguish them from types which implement one or more of the
collection interfaces without being a custom collection type.
* Add some checks for [CollectionDataContract].
* Added some NUnit tests for that.
Jonathan Pryor [Mon, 24 Sep 2012 16:45:59 +0000 (12:45 -0400)]
[mdoc, .xsd] Allow the <returns/> element to contain <c/> elements.
It's frequently useful (and accidentally used) to have <c/> within
<returns/> blocks:
<returns>
<c>-1</c> at end of stream; otherwise the number of bytes read.
</returns>
Allow this to validate.
Jeremie Laval [Mon, 24 Sep 2012 15:28:49 +0000 (16:28 +0100)]
[corlib] Fix 4.0 build
Jeremie Laval [Mon, 24 Sep 2012 15:19:56 +0000 (16:19 +0100)]
[corlib] Fix build
Jeremie Laval [Mon, 24 Sep 2012 11:28:25 +0000 (12:28 +0100)]
[corlib] Honor LazyCancellation flag
Jeremie Laval [Mon, 24 Sep 2012 10:47:06 +0000 (11:47 +0100)]
[corlib] Honor HideScheduler flag
Jeremie Laval [Mon, 24 Sep 2012 10:21:45 +0000 (11:21 +0100)]
[corlib] Honor DenyChildAttach flag
Jeremie Laval [Mon, 24 Sep 2012 10:13:54 +0000 (11:13 +0100)]
[corlib] Add 4.5 values to TaskContinuationOptions
Jeremie Laval [Mon, 24 Sep 2012 10:11:46 +0000 (11:11 +0100)]
[corlib] Make Task.Run specify TaskScheduler.Default and fix Task.Run (Task<Task>)
Rodrigo Kumpera [Sun, 23 Sep 2012 02:04:39 +0000 (19:04 -0700)]
Merge pull request #464 from gregoryyoung/master
Fixes nasty issue with callbacks not happening.
Martin Baulig [Sat, 22 Sep 2012 00:16:17 +0000 (02:16 +0200)]
Only set Cookie.Port if Cookie.Version == 1.
Background:
* Cookie.Port's property setter sets Version to 1, thus forcing strict
RFC 2109 compliance. This is also what the .NET runtime does when
assigning this property.
* When parsing the result of a web request, .NET 4.5 only sets Cookie.Port
when the Set-Cookie: header contains "Version=1".
* Google Chrome does not check cookie ports at all.
Jérémie Laval [Fri, 21 Sep 2012 22:11:46 +0000 (23:11 +0100)]
[mdoc] <related /> is a mixed type
Jérémie Laval [Fri, 21 Sep 2012 21:59:33 +0000 (22:59 +0100)]
[mdoc] More schema fixes
Jérémie Laval [Fri, 21 Sep 2012 21:50:41 +0000 (22:50 +0100)]
[mdoc] Fix monodoc-ecma schema
Rolf Bjarne Kvinge [Thu, 20 Sep 2012 23:03:19 +0000 (01:03 +0200)]
Marshal sockaddrdl manually, since it contains a variable-length byte array. Fixes #7329.
Martin Baulig [Thu, 20 Sep 2012 04:32:08 +0000 (06:32 +0200)]
[#6041][WebServices]: Don't crash if an operation doesn't have <wsdl:output>.
Martin Baulig [Thu, 20 Sep 2012 03:37:21 +0000 (05:37 +0200)]
[#4511][WCF]: Fix DuplexClientBase channel initialization.
For duplex channels, the ClientRealProxy needs to support both
IClientChannel and IDuplexContextChannel.
Zoltan Varga [Wed, 19 Sep 2012 14:03:06 +0000 (16:03 +0200)]
Make seq_points clobber callee save registers on arm, since we can't save fp registers in MonoContext on linux/android. Fixes #6860.
Greg Young [Wed, 19 Sep 2012 13:29:16 +0000 (16:29 +0300)]
patch for async TCP sockets. without this change the callbacks will
occasionally not happen under load. This causes the async loop
to break in the calling TCP code. EX you call beginsend but
never get endsend
Martin Baulig [Wed, 19 Sep 2012 05:08:02 +0000 (07:08 +0200)]
[WCF] Fix relative endpoint addresses that start with a '/'.
For instance:
ServiceHost host = new ServiceHost (typeof (Foo), new Uri ("http://localhost/echo"));
var b = host.AddServiceEndpoint (typeof (Foo), new BasicHttpBinding (), "/b");
should resolve into 'http://localhost/echo/b'.
Martin Baulig [Wed, 19 Sep 2012 04:28:47 +0000 (06:28 +0200)]
[#1340][WCF]: Fix null reference when using invalid HTTP methods.
Martin Baulig [Wed, 19 Sep 2012 04:00:33 +0000 (06:00 +0200)]
[#7177][WCF]: Correctly handle derived FaultExceptions.
Zoltan Varga [Wed, 19 Sep 2012 01:37:26 +0000 (01:37 +0000)]
Save/restore fp registers in MonoContext on ios. Fixes #1949.
Jeffrey Stedfast [Tue, 18 Sep 2012 22:34:46 +0000 (18:34 -0400)]
[Mono.Debugger.Soft] Format the literal strings a bit nicer.
Jeffrey Stedfast [Tue, 18 Sep 2012 22:13:51 +0000 (18:13 -0400)]
[Mono.Debugger.Soft] Oops, need using System.Globalization
Jeffrey Stedfast [Tue, 18 Sep 2012 22:06:55 +0000 (18:06 -0400)]
[Mono.Debugger.Soft] Escape some unicode characters in literal strings
Fix for bug #6369
Martin Baulig [Tue, 18 Sep 2012 19:20:47 +0000 (21:20 +0200)]
[#5935][BinaryFormatter]: Fix serialization of generic arrays.
Marek Safar [Tue, 18 Sep 2012 09:22:48 +0000 (10:22 +0100)]
Fix rendering enum value which does not match any enum flags value (e.g. 0)
Martin Baulig [Tue, 18 Sep 2012 03:14:56 +0000 (05:14 +0200)]
[#6187][WCF]: Fix contract interface inheritance.
Martin Baulig [Tue, 18 Sep 2012 00:57:21 +0000 (02:57 +0200)]
[#6489][SoapFormatter]: Reset culture before raising events.
Marek Safar [Mon, 17 Sep 2012 22:05:47 +0000 (23:05 +0100)]
Simplify range check in list setter
Zoltan Varga [Mon, 17 Sep 2012 21:08:21 +0000 (23:08 +0200)]
Implement mono_arch_emit_inst_for_method () for LLVM.
Zoltan Varga [Mon, 17 Sep 2012 16:53:19 +0000 (18:53 +0200)]
Fix usage of vregs defined in EH regions in the LLVM backend. Fixes #7183.
Zoltan Varga [Mon, 17 Sep 2012 15:54:44 +0000 (17:54 +0200)]
Align the thumb_end symbol to 8 to avoid warnings by the apple linker.
Martin Baulig [Mon, 17 Sep 2012 15:27:36 +0000 (17:27 +0200)]
[#6515][WCF]: Enable custom headers for NET_2_1.
This allows
HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
request.Headers.Add ("Foo", "Bar");
OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);
The code was already there, but disabled for the NET_2_1 profile.