Jérémie Laval [Wed, 13 Mar 2013 14:25:46 +0000 (14:25 +0000)]
[monodoc] Handle global `root:' url
Marek Safar [Wed, 13 Mar 2013 11:02:18 +0000 (12:02 +0100)]
Resolve switch block without fake sections blocks. Fixes #10781
Martin Baulig [Wed, 13 Mar 2013 02:13:39 +0000 (22:13 -0400)]
Put back unsupported EventWaitHandle and Mutex constructors.
Martin Baulig [Wed, 13 Mar 2013 01:41:21 +0000 (21:41 -0400)]
Oops, fix the mobile build.
Mark Probst [Fri, 16 Nov 2012 22:45:08 +0000 (23:45 +0100)]
[sgen] Gather a histogram of layouts of scanned objects.
With this information we can implement more efficient GC descriptors.
Martin Baulig [Tue, 12 Mar 2013 22:29:38 +0000 (18:29 -0400)]
DataContractSerializer changes for .NET 4.5.
* Move System.Runtime.Serialization.Json from System.ServiceModel.Web.dll
into System.Runtime.Serialization.dll on the mobile profile.
* Add DataContractJsonSerializerSettings and DataContractSerializerSettings..
Martin Baulig [Tue, 12 Mar 2013 22:26:39 +0000 (18:26 -0400)]
Minor .NET 4.5 API fixes.
Martin Baulig [Tue, 12 Mar 2013 18:33:18 +0000 (14:33 -0400)]
Add System.WeakReference<T>.
Martin Baulig [Tue, 12 Mar 2013 19:28:35 +0000 (15:28 -0400)]
System.Threading.SemaphoreSlim.WaitAsync().
Martin Baulig [Tue, 12 Mar 2013 22:17:15 +0000 (18:17 -0400)]
System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting().
Martin Baulig [Wed, 13 Mar 2013 01:13:21 +0000 (21:13 -0400)]
Update aspnetwebstack to
e77b12e.
This is just the single commit:
https://github.com/mono/aspnetwebstack/commit/
e77b12e6cc5ed260a98447f609e887337e44e299
Zoltan Varga [Wed, 13 Mar 2013 00:52:22 +0000 (01:52 +0100)]
Fix some DISABLE_JIT problems.
Jonathan Pryor [Wed, 13 Mar 2013 00:03:53 +0000 (20:03 -0400)]
[mdoc] Build with -platform:x86
Works around: http://connect.microsoft.com/VisualStudio/feedback/details/635365
The problem is that 64-bit .NET has a bug:
RuntimeHelpers.InitializeArray() throws ArgumentException for certain
array creation constructs that mcs likes to emit. Cecil uses
RuntimeHelpers.InitializeArray() to get the data, which throws, and
everyone becomes very sad:
Running mdoc "update" "--debug" ...
mdoc: System.TypeInitializationException: The type initializer for 'Mono.Cecil.Metadata.TableHeap' threw an exception. ---> System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(Array array, RuntimeFieldHandle fldHandle)
at Mono.Cecil.Metadata.TableHeap..cctor()
--- End of inner exception stack trace ---
at Mono.Cecil.Metadata.TableHeap..ctor(Section section, UInt32 start, UInt32 size)
at Mono.Cecil.PE.ImageReader.ReadMetadataStream(Section section)
at Mono.Cecil.PE.ImageReader.ReadMetadata()
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
at Mono.Documentation.MDocUpdater.LoadAssembly(String name)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Mono.Documentation.MDocUpdater.Run(IEnumerable`1 args)
at Mono.Documentation.MDoc.Run(String[] args)
at Mono.Documentation.MDoc.Main(String[] args)
The "fix" is to not use the 64-bit runtime, and instead explicitly
require the 32-bit runtime by using -platform:x86.
Zoltan Varga [Tue, 12 Mar 2013 22:30:32 +0000 (23:30 +0100)]
Enable ContextTest on mt.
Rodrigo Kumpera [Tue, 12 Mar 2013 22:21:28 +0000 (18:21 -0400)]
Wrap MonoVTable::remote into a pair of accessors to make it easy to have code linked out.
Rodrigo Kumpera [Tue, 12 Mar 2013 22:07:03 +0000 (18:07 -0400)]
Wrap MonoClass::is_com_object into a pair of accessors to make it easy to have code linked out.
Martin Baulig [Tue, 12 Mar 2013 21:52:47 +0000 (17:52 -0400)]
Implement new .NET 4.5 Reflection APIs.
Martin Baulig [Wed, 6 Mar 2013 21:33:50 +0000 (16:33 -0500)]
Add System.ComponentModel.Composition.4.5 to the mobile build.
Martin Baulig [Tue, 5 Mar 2013 21:57:22 +0000 (16:57 -0500)]
Fix System.ComponentModel.DataErrorsChangedEventArgs API.
Martin Baulig [Tue, 5 Mar 2013 21:33:32 +0000 (16:33 -0500)]
Add System.ComponentModel.DataAnnotations to the mobile build.
Rodrigo Kumpera [Tue, 12 Mar 2013 21:43:57 +0000 (17:43 -0400)]
Small cleanup on runtime shutdown to move more code to the same spot and reduce duplication.
Rodrigo Kumpera [Tue, 12 Mar 2013 21:25:47 +0000 (14:25 -0700)]
Merge pull request #505 from roji/shutdown_flow
Fixed threadpool+ProcessExit problem in shutdown flow
Martin Baulig [Tue, 12 Mar 2013 20:50:26 +0000 (16:50 -0400)]
Add stubs for some new .NET 4.0/4.5 WCF APIs.
Martin Baulig [Tue, 5 Mar 2013 23:33:08 +0000 (18:33 -0500)]
System.Runtime.Serialization.DateTimeFormat
Martin Baulig [Tue, 5 Mar 2013 23:23:01 +0000 (18:23 -0500)]
BigInteger.Parse/TryParse() overloads for .NET 4.0.
Martin Baulig [Tue, 5 Mar 2013 22:40:52 +0000 (17:40 -0500)]
System.Progress
Martin Baulig [Tue, 5 Mar 2013 22:20:12 +0000 (17:20 -0500)]
Add System.Text.RegularExpressions.Regex timeout APIs.
Martin Baulig [Tue, 12 Mar 2013 20:40:04 +0000 (16:40 -0400)]
Trivial API additions.
Martin Baulig [Tue, 5 Mar 2013 22:44:59 +0000 (17:44 -0500)]
Missing WebUtility methods.
Martin Baulig [Tue, 12 Mar 2013 20:23:28 +0000 (16:23 -0400)]
HttpWebRequest/Response API fixes for .NET 4.5.
Martin Baulig [Tue, 12 Mar 2013 20:18:01 +0000 (16:18 -0400)]
Add System.IO.Compression.FileSystem stubs.
Martin Baulig [Tue, 12 Mar 2013 20:13:21 +0000 (16:13 -0400)]
Misc .NET 4.5 / PCL APIs.
Michael Hutchinson [Tue, 12 Mar 2013 20:28:39 +0000 (16:28 -0400)]
[xbuild] It's safe to pass /debug:pdbonly to mcs now
Zoltan Varga [Tue, 12 Mar 2013 20:31:54 +0000 (21:31 +0100)]
Implement OP_LCONV_TO_I4 using OP_SEXT_I4 instead of OP_LSHR_IMM(0). Fixes #11058.
Sebastien Pouliot [Tue, 12 Mar 2013 20:04:26 +0000 (16:04 -0400)]
Remove MonoTouch specific code that is now handled without reflection
Marek Safar [Tue, 12 Mar 2013 14:41:45 +0000 (15:41 +0100)]
Remove dependency on generated file
Jeremie Laval [Tue, 12 Mar 2013 13:42:40 +0000 (13:42 +0000)]
[monodoc] Parse and display mastersummary.xml on root:/ ECMA urls
Jeremie Laval [Tue, 12 Mar 2013 13:42:12 +0000 (13:42 +0000)]
[monodoc] Cleanups
Mark Probst [Mon, 11 Mar 2013 17:43:50 +0000 (10:43 -0700)]
[tests] In GC descriptor tests script, optionally generate huge nested if.
Rodrigo Kumpera [Mon, 11 Mar 2013 15:03:13 +0000 (11:03 -0400)]
Optimize mono_gc_bzero and mono_gc_memmove to closely match native performance.
* gc.c (mono_gc_memmove): Doing naive word copy turned out to be several times
slower than optimized memmove.Doing optimized memmove is a hellbent problem
because each target (x86, amd64, arm, etc) have multiple implementations based
on which CPU you're currently running on.
Given we're not ready to suck in ten thousand lines of assembly for the benefit
of a few targets a better solution is needed.
The problem we face is due to implementations that don't perform word stores
on the word aligned parts of the destination. This does break things for us
as the CLI environment disallows word tearing for normal operations.
The solution is then to work around the silliness of the known implementations
that basically handle any sorts of misalignment badly. To do so we ensure that
we only call memmove with a word aligned destination and a word multiple size.
This should be enough for OSX, Android, linux and iOS on x86, amd64 and ARM.
Zoltan Varga [Mon, 11 Mar 2013 21:16:46 +0000 (22:16 +0100)]
Re-enable some tests on mt which seem to work now.
Zoltan Varga [Mon, 11 Mar 2013 20:04:16 +0000 (21:04 +0100)]
Export inst_is_gsharedvt_sharable () so it is usable by other parts of the JIT.
Duncan Mak [Mon, 11 Mar 2013 18:56:15 +0000 (14:56 -0400)]
Bump version to 3.0.8
Zoltan Varga [Mon, 11 Mar 2013 14:29:22 +0000 (15:29 +0100)]
Add a 'dwarfdebug' AOT option to emit DWARF debug info even if the 'nodebug' AOT option is used.
Miguel de Icaza [Mon, 11 Mar 2013 14:18:40 +0000 (07:18 -0700)]
Merge pull request #597 from kamalaboulhosn/master
Translate errno for EHOSTDOWN to WSAEHOSTDOWN
Kamal Aboul-Hosn [Sat, 9 Mar 2013 23:10:39 +0000 (18:10 -0500)]
Added translation for EHOSTDOWN errno
Zoltan Varga [Sat, 9 Mar 2013 00:13:11 +0000 (01:13 +0100)]
Disable some tests failing on mt due to #10539/#10552.
Marek Safar [Fri, 8 Mar 2013 22:45:13 +0000 (23:45 +0100)]
Correctly type fixed buffer wrapper type. Fixes #10803
Marek Safar [Fri, 8 Mar 2013 21:55:23 +0000 (22:55 +0100)]
Clone shared members list before operators merging. Fixes #10967
Miguel de Icaza [Sat, 9 Feb 2013 22:26:16 +0000 (14:26 -0800)]
Merge pull request #469 from symform/symform-better-drive-type-check
When detecting drive type it is possible that a path might be mounted mo...
Miguel de Icaza [Fri, 8 Mar 2013 19:03:34 +0000 (11:03 -0800)]
Merge pull request #594 from Adeath56/patch-1
System.Web.dll : NullReferenceException on GetItemInternal() after a Session.Abandon()
Miguel de Icaza [Fri, 8 Mar 2013 21:25:47 +0000 (13:25 -0800)]
Merge pull request #595 from UCIS/master
Fixed handling of modifier keys in KeyEventArgs constructor (bug #6707)
Marek Safar [Fri, 8 Mar 2013 16:40:03 +0000 (17:40 +0100)]
Move rarely used NamedDataSlot to its own type to cut few dependencies
Marek Safar [Fri, 8 Mar 2013 14:56:58 +0000 (15:56 +0100)]
Fix failing test
Marek Safar [Fri, 8 Mar 2013 14:46:38 +0000 (15:46 +0100)]
Fix constant folding fox null string constants. Fixes #10821
Marek Safar [Fri, 8 Mar 2013 14:42:19 +0000 (15:42 +0100)]
Use faster string comparers
Marek Safar [Fri, 8 Mar 2013 14:18:48 +0000 (15:18 +0100)]
Use faster invariant conversion
Marek Safar [Fri, 8 Mar 2013 13:53:51 +0000 (14:53 +0100)]
Use generics list
Marek Safar [Fri, 8 Mar 2013 13:52:39 +0000 (14:52 +0100)]
Use faster string checks
Marek Safar [Fri, 8 Mar 2013 13:51:29 +0000 (14:51 +0100)]
Remove Collection dependency from ReadOnlyCollection
Jb Evain [Fri, 8 Mar 2013 14:24:57 +0000 (15:24 +0100)]
Add generated Makefile.am to gitignore
Jb Evain [Fri, 8 Mar 2013 14:24:32 +0000 (15:24 +0100)]
Add mdbrebase generated script to gitignore
Sebastien Pouliot [Fri, 8 Mar 2013 14:17:57 +0000 (09:17 -0500)]
TypeFromCLSID is not available when build with FULL_AOT_RUNTIME (e..g iOS)
Sebastien Pouliot [Fri, 8 Mar 2013 14:16:33 +0000 (09:16 -0500)]
Adjust OptionalCalendars test so it will work when the linker is enabled
Zoltan Varga [Fri, 8 Mar 2013 02:02:58 +0000 (03:02 +0100)]
Avoid loading AOT modules for ref-only assemblies.
Zoltan Varga [Fri, 8 Mar 2013 01:36:04 +0000 (02:36 +0100)]
Fix the mobile build.
Zoltan Varga [Thu, 7 Mar 2013 19:45:37 +0000 (20:45 +0100)]
Fix the mobile mscorlib build.
Zoltan Varga [Thu, 7 Mar 2013 19:31:51 +0000 (20:31 +0100)]
Avoid a crash if the Volatile class is linked away.
Zoltan Varga [Thu, 7 Mar 2013 18:59:41 +0000 (19:59 +0100)]
Add full-aot support for Volatile.Read<T>/Write<T> ().
Zoltan Varga [Thu, 7 Mar 2013 18:44:11 +0000 (19:44 +0100)]
Fix the encoding of runtime-invoke wrappers in AOT. Add support for gsharedvt delegate begin/end-invoke wrappers to full AOT.
Zoltan Varga [Thu, 7 Mar 2013 18:28:24 +0000 (19:28 +0100)]
Remove an inexistent icall added by mistake by
0ff40ae70aa2ffbdf61a9ebb5e47e4932864460a.
Rodrigo Kumpera [Thu, 7 Mar 2013 22:59:39 +0000 (17:59 -0500)]
Make the build .gitignore rule absolute. It didn't like mcs/build/.
Rodrigo Kumpera [Thu, 7 Mar 2013 22:46:04 +0000 (17:46 -0500)]
Move some MOBILE bits under DISABLE_REMOTING as a remoting enabled runtime will need them for
basic functionality.
Rodrigo Kumpera [Thu, 7 Mar 2013 22:44:28 +0000 (17:44 -0500)]
Monotouch has builds with -DISABLE_REMOTING.
Rodrigo Kumpera [Thu, 7 Mar 2013 21:08:50 +0000 (16:08 -0500)]
Add a bunch of dummy fields to Assembly under MOBILE to match the native layout.
Rodrigo Kumpera [Thu, 7 Mar 2013 00:33:09 +0000 (19:33 -0500)]
Replace a useless g_assert with a g_error that actually gives us some information.
Rodrigo Kumpera [Thu, 7 Mar 2013 00:30:50 +0000 (19:30 -0500)]
Make sure to unlock InternalThread::synch_cs when we fail to suspend the thread during shutdown.
This should fix both crashes seen during Environment.Exit by xbuild and possibly deadlocks.
Rodrigo Kumpera [Mon, 4 Mar 2013 23:34:52 +0000 (18:34 -0500)]
Make sure all functions in the hot path of eg_utf8_to_utf16_general are inlined.
This gives a 33% performance boost on a micro benchmark just triggering a call
to mono_string_new.
Marek Safar [Thu, 7 Mar 2013 17:30:58 +0000 (18:30 +0100)]
Fixes mobile build
Marek Safar [Thu, 7 Mar 2013 15:33:44 +0000 (16:33 +0100)]
Update mobile tests
Marek Safar [Thu, 7 Mar 2013 14:10:43 +0000 (15:10 +0100)]
Ignore SynchronizationAttribute on MT
Marek Safar [Thu, 7 Mar 2013 10:34:32 +0000 (11:34 +0100)]
Fix binary serialization on mobile
Zoltan Varga [Thu, 7 Mar 2013 15:26:08 +0000 (16:26 +0100)]
Zoltan Varga [Thu, 7 Mar 2013 14:41:05 +0000 (15:41 +0100)]
Make begin-invoke/end-invoke wrappers for generic delegates like Func/Action generic, similarly to
8eae1a7d721b37c9e16e77776d9774b2756dcc68.
Marek Safar [Thu, 7 Mar 2013 08:31:06 +0000 (09:31 +0100)]
Remove confusing trailing dot
Marek Safar [Thu, 7 Mar 2013 08:27:38 +0000 (09:27 +0100)]
Actually iterate returned array
Marek Safar [Thu, 7 Mar 2013 07:46:20 +0000 (08:46 +0100)]
Remove generated file dependency to make fresh checkout tests work out of box
Marek Safar [Thu, 7 Mar 2013 07:44:40 +0000 (23:44 -0800)]
Merge pull request #596 from madewokherd/typefromclsid
corlib: Implement System.Type.GetTypeFromCLSID.
Jonathan Pryor [Thu, 7 Mar 2013 03:36:24 +0000 (22:36 -0500)]
[xbuild] Replace string.ToLower() comparison with OrdinalIgnoreCase comparison
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=10946
The scenario is the "turkish-i problem": Have an MSBuild Task Assembly
which calls ITaskItem.GetMetadata("Identity") (like, oh, the
Xamarin.Android build system...). Run in a Turkish locale (tr-TR), and
things fail badly:
Error executing task AndroidComputeResPaths: System.ArgumentException: Invalid reserved metadata name
at Mono.XBuild.Utilities.ReservedNameUtils.GetReservedMetadata (System.String itemSpec, System.String metadataName, IDictionary metadata) [0x00000] in <filename unknown>:0
at Microsoft.Build.Utilities.TaskItem.GetMetadata (System.String metadataName) [0x00000] in <filename unknown>:0
at Xamarin.Android.Tasks.AndroidComputeResPaths.Execute () [0x00000] in <filename unknown>:0
at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in <filename unknown>:0
at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] in <filename unknown>:0
Wat? Well, in tr-TR, "Identity".ToLower() is "ıdentity", which
doesn't match match anything in GetReservedMetadata()'s `switch`
statement, so it throws an ArgumentException. *BOOM*.
So, if you need a culture-invariant comparison, USE IT.
Related: We could have just s/ToLower/ToLowerInvariant/g, which would
have fixed the problem, but would still result in lots of string
temporaries that aren't really necessary. Use the appropriate
string.Compare() or string.Equals() methods instead to avoid the
string temporary as well.
Zoltan Varga [Thu, 7 Mar 2013 01:41:46 +0000 (02:41 +0100)]
Implement Volatile.Read/Write<T> and Interlocked.MemoryBarrier ().
Zoltan Varga [Thu, 7 Mar 2013 01:14:11 +0000 (02:14 +0100)]
Add stubs for some NET 4.5 ThreadLocal ctors/methods.
Zoltan Varga [Thu, 7 Mar 2013 01:00:42 +0000 (02:00 +0100)]
Clean up the code which handles prepending _ to global symbol names on MACH by doing it in aot-compiler.c instead of the image writer.
Mark Probst [Wed, 6 Mar 2013 23:38:16 +0000 (15:38 -0800)]
[sgen] Just warn, don't abort, on invalid MONO_GC_PARAM or MONO_GC_DEBUG options.
Vincent Povirk [Wed, 6 Mar 2013 22:13:25 +0000 (16:13 -0600)]
corlib: Implement System.Type.GetTypeFromCLSID.
This commit is licensed as MIT/X11.
Jeffrey Stedfast [Wed, 6 Mar 2013 21:00:07 +0000 (16:00 -0500)]
[Mono.Debugger.Soft] Made the receiver thread a background thread and gave it a name
Mark Probst [Wed, 6 Mar 2013 19:27:40 +0000 (11:27 -0800)]
[sgen] Allow empty parameters in MONO_GC_PARAMS and MONO_GC_DEBUG.
This allows easy appending/prepending, like so:
export MONO_GC_PARAMS="major=marksweep-conc,$MONO_GC_PARAMS"
Zoltan Varga [Wed, 6 Mar 2013 19:20:13 +0000 (20:20 +0100)]
Fix some ARM assembly in MONO_CONTEXT_GET_CURRENT ().
Zoltan Varga [Wed, 6 Mar 2013 18:31:47 +0000 (19:31 +0100)]
Make the JIT icall wrappers for opcode emulation jit icalls call the C icall function directly on MT.
Zoltan Varga [Wed, 6 Mar 2013 17:49:46 +0000 (18:49 +0100)]
Modify the way calls to icalls are made from the icall wrappers. Previously, the address to call was encoded in an OP_PCONST, and various pieces of code looked up the value in the jit icall table to see if it was an icall address. With the new approach, the fact that this is an icall address is explicit through the JIT.
Zoltan Varga [Wed, 6 Mar 2013 17:46:25 +0000 (18:46 +0100)]
Fix AOT on osx+amd64.