Rodrigo Kumpera [Mon, 19 Nov 2012 19:47:16 +0000 (14:47 -0500)]
Replace all uses of DEBUG with SGEN_LOG and SGEN_ASSERT.
* sgen-*.*: Kill the DEBUG macro in favor of clean alternatives.
Rodrigo Kumpera [Mon, 19 Nov 2012 19:45:15 +0000 (14:45 -0500)]
Add macros to sgen meant to replace DEBUG
* sgen-gc.h: Add log and assertions macros so we can have different logging levels
for them and so we can better abstract the logging medium.
Rodrigo Kumpera [Fri, 16 Nov 2012 16:08:27 +0000 (11:08 -0500)]
Disable AOT pretty symbol names on iOS.
* dwarfwriter.c: Don't emit symbol description on iOS
as it crashes dsymutil for darwin-ios.
Zoltan Varga [Mon, 10 Sep 2012 18:47:35 +0000 (20:47 +0200)]
Disable LLVM for methods with nested clauses for now to work around #6650.
Dean Ellis [Mon, 19 Nov 2012 17:08:16 +0000 (17:08 +0000)]
[Mono] TimeZoneInfo.FindSystemTimeZoneById returns null
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=7966
If we cannot find the requiested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
Lluis Sanchez [Mon, 19 Nov 2012 20:03:20 +0000 (21:03 +0100)]
Add tests for bug #8468
Conflicts:
mcs/class/System.XML/Test/System.Xml.Serialization/DeserializeTests.cs
Lluis Sanchez [Mon, 19 Nov 2012 19:18:01 +0000 (20:18 +0100)]
Fix XML serialization bug
When reflecting a class which inherits serializable members from a
base class, the members of the base class must be serialized using the
namespace set in the subclass unless a namespace has been explicitly
set in the base class. Before the fix, the members were always
serialized using the namespace of the base class, even when not set
(in which case it was using the default empty namespace).
Fixes bug 8468 - XML serialization problem.
Marek Safar [Mon, 19 Nov 2012 14:37:20 +0000 (15:37 +0100)]
Prefer indexer over properties with parameters
Marek Safar [Mon, 19 Nov 2012 12:53:30 +0000 (13:53 +0100)]
Reject overload candidates with not enough default parameters before dependency check. Fixes #8466
Zoltan Varga [Mon, 19 Nov 2012 12:52:00 +0000 (13:52 +0100)]
Sweep the heap block containing the object in free_object ().
Zoltan Varga [Mon, 19 Nov 2012 12:17:46 +0000 (13:17 +0100)]
Move an sgen debug message to loglevel 2 from 1.
Zoltan Varga [Mon, 19 Nov 2012 10:23:31 +0000 (11:23 +0100)]
Fix a warning.
Marek Safar [Sun, 18 Nov 2012 18:40:04 +0000 (19:40 +0100)]
Implement support for imported properties with parameters. Fixes #8398
Zoltan Varga [Sun, 18 Nov 2012 16:37:42 +0000 (17:37 +0100)]
Unroll the first loop iteration in OBJ_RUN_LEN_FOREACH_PTR ().
Zoltan Varga [Sun, 18 Nov 2012 03:26:02 +0000 (04:26 +0100)]
Increase the number of trampoline entries reserved for trampolines.
Zoltan Varga [Sun, 18 Nov 2012 02:11:05 +0000 (03:11 +0100)]
Check for nullref exceptions in ves_icall_System_Buffer_BlockCopyInternal () since it is called directly without going through the managed wrapper. Optimize the MONO_CHECK_ARG() macros a bit.
Zoltan Varga [Sat, 17 Nov 2012 09:14:36 +0000 (10:14 +0100)]
Fix the sizeof IL instruction for reference types. Fixes #8448.
Marek Safar [Fri, 16 Nov 2012 21:36:09 +0000 (13:36 -0800)]
Merge pull request #504 from antoniusriha/master
Make Uri.MakeRelativeUri .NET compatible.
Antonius Riha [Tue, 13 Nov 2012 19:03:10 +0000 (20:03 +0100)]
Add a test for UriTemplate.Match
Antonius Riha [Tue, 13 Nov 2012 18:59:16 +0000 (19:59 +0100)]
Fix Uri.MakeRelativeUri and add a bunch of tests
A previous patch on this method broke the method UriTemplate.Match
which calls the Uri.MakeRelativeUri method.
To ensure compatibility with .NET's implementation several tests
have been added.
Zoltan Varga [Fri, 16 Nov 2012 15:35:32 +0000 (16:35 +0100)]
Handle copy_object_no_checks () returning the object itself instead of a copy in SERIAL_COPY_OBJECT_FROM_OBJ ().
Zoltan Varga [Fri, 16 Nov 2012 14:32:41 +0000 (15:32 +0100)]
Fix an uninitialized memory error in the AOT compiler.
Marek Safar [Fri, 16 Nov 2012 12:57:23 +0000 (13:57 +0100)]
Fix unambiguous check between async Task and Task<T>. Fixes #8414
Jeremie Laval [Fri, 16 Nov 2012 11:32:24 +0000 (11:32 +0000)]
[corlib] Protect against multiple invocation of FromAsync result code. Fix #7965.
For some weird reason, it seems the end callback can be called multiple times by some async result.
Marek Safar [Thu, 15 Nov 2012 16:44:46 +0000 (17:44 +0100)]
Fix parsing conditional expression with nullable type followed by coallesce operator. Fixes #8384
Zoltan Varga [Fri, 16 Nov 2012 09:03:25 +0000 (10:03 +0100)]
Add some micro optimizations to the sgen nursery copy functions. Integrate the global remset check into SERIAL_COPY_OBJECT () so it is only done if the object is still in the nursery after the copy.
Sebastien Pouliot [Fri, 16 Nov 2012 02:57:38 +0000 (21:57 -0500)]
Throw an AssemblyResolutionException is anything goes wrong trying to resolve an AssemblyNameReference
Rodrigo Kumpera [Tue, 9 Oct 2012 21:15:42 +0000 (17:15 -0400)]
Arm now requires the usage of MonoContext functions.
Rodrigo Kumpera [Tue, 9 Oct 2012 21:16:12 +0000 (17:16 -0400)]
Fix sgen_suspend_thread on mach-ios.
Rodrigo Kumpera [Tue, 9 Oct 2012 21:23:38 +0000 (17:23 -0400)]
Use full path for includes as this was braking the cross compiler.
Rodrigo Kumpera [Tue, 9 Oct 2012 20:54:39 +0000 (16:54 -0400)]
Fix mono_thread_state_init_from_handle to properly work on darwin-arm.
Rodrigo Kumpera [Tue, 9 Oct 2012 20:02:52 +0000 (16:02 -0400)]
iOS cross compilation needs some forward declarations.
Zoltan Varga [Thu, 12 Jul 2012 04:02:06 +0000 (06:02 +0200)]
Make the 'Attempting to JIT compile method' message reference docs.xamarin.com/ios/about/limitations.
Rodrigo Kumpera [Thu, 15 Nov 2012 21:48:32 +0000 (16:48 -0500)]
Switch the runtime to use TARGET_IOS and TARGET_OSX instead of playing with TargetConditionals.
Rodrigo Kumpera [Thu, 15 Nov 2012 21:21:25 +0000 (16:21 -0500)]
Switch boehm to use TARGET_OSX/TARGET_IOS.
Rodrigo Kumpera [Thu, 15 Nov 2012 21:08:38 +0000 (16:08 -0500)]
Add TARGET_IOS and TARGET_OSX defines to help cleanup the current mess.
Rodrigo Kumpera [Thu, 15 Nov 2012 20:30:40 +0000 (15:30 -0500)]
Fix the cross compilation check to properly detect android v5.
* configure.in: We tried to match "arm*-unknown-linux-gnueabi*"
firs and then "armv5-*-linux-androideabi*" which obviously don't
match. Fix that by making the first test more broad.
Rodrigo Kumpera [Thu, 15 Nov 2012 20:21:49 +0000 (15:21 -0500)]
Remove superfluous AC_DEFINE.
Zoltan Varga [Thu, 10 May 2012 13:47:45 +0000 (15:47 +0200)]
Add a no-direct-calls AOT option to help fix #4587.
Sebastien Pouliot [Mon, 20 Feb 2012 02:00:33 +0000 (21:00 -0500)]
Add link to docs.xamarin.com/ios/troubleshooting when running out of trampolines
Rolf Bjarne Kvinge [Thu, 9 Feb 2012 22:09:53 +0000 (23:09 +0100)]
It is not necessary to convert code to thumb addresses in direct-method-address mode. Fixes #3275.
Rolf Bjarne Kvinge [Thu, 15 Dec 2011 22:59:56 +0000 (23:59 +0100)]
AOT: Add option to emit global symbols for methods. Fixes #2471.
The logic here is that we emit the debug name for a method as the global
symbol, not the generated name we otherwise use, and we don't emit a debug
symbol. The issue is that if we have both a global debug symbol and a global
(generated) method name, which one will show up in stack traces is undefined.
This is a temporary patch until it has been reviewed by the runtime
people (it's only on mobile-master for now).
Rolf Bjarne Kvinge [Thu, 15 Dec 2011 22:59:19 +0000 (23:59 +0100)]
AOT: Don't use fixed-size buffers and sprintf with asm_symbol.
This is a temporary patch until it has been reviewed by the runtime
people (it's only on mobile-master for now).
Rolf Bjarne Kvinge [Tue, 22 Nov 2011 12:21:38 +0000 (13:21 +0100)]
AOT: Add more MONOTOUCH ifdefs to not break M4A
Rolf Bjarne Kvinge [Wed, 16 Nov 2011 21:57:23 +0000 (16:57 -0500)]
AOT: Use direct method addresses instead of calculating offsets since the linker may move/reorder methods
Partially fixes #707.
This is a temporary patch until it has been reviewed by the runtime
people (since some people need it urgently and there is no real
workaround).
Rolf Bjarne Kvinge [Wed, 16 Nov 2011 21:54:14 +0000 (16:54 -0500)]
AOT: Follow jumps when getting the plt entry for a call.
Partially fixes #707 - the issue is that the arm linker may insert branch
islands between branch location and branch target if the branch target
is too far away to be encoded in the branch instruction.
This is a temporary patch until it has been reviewed by the runtime
people (since some people need it urgently and there is no real
workaround).
Rodrigo Kumpera [Thu, 15 Nov 2012 19:35:10 +0000 (14:35 -0500)]
Disable dynamic loading for iOS simulator builds.
Rodrigo Kumpera [Thu, 15 Nov 2012 19:27:26 +0000 (14:27 -0500)]
Fix boehm to correctly build on iOS/x86.
Zoltan Varga [Thu, 14 Jun 2012 15:45:34 +0000 (17:45 +0200)]
Add more logging to the sdb debugger thread.
Rodrigo Kumpera [Tue, 4 Sep 2012 20:58:50 +0000 (17:58 -0300)]
MonoDroid needs a way to inform the debugger of possibly unhandled exceptions.
* Debugger.cs: Add Mono_UnhandledException method that
triggers sdb to send an unhandled exception message to the agent.
This is needed since MonoDroid can't know at the Java->C# boundary
if a given C# exception is unmanaged or not.
Rolf Bjarne Kvinge [Wed, 26 Oct 2011 11:19:24 +0000 (13:19 +0200)]
[sdb] Export functions to register custom transports and do the handshake.
Marek Safar [Thu, 15 Nov 2012 15:12:33 +0000 (16:12 +0100)]
Don't crash when imported constant is of unknown type. Fixes #8399
Marek Safar [Thu, 15 Nov 2012 14:32:29 +0000 (15:32 +0100)]
Handle type hidding via local variables and parameters. Fixes #8383
Jeremie Laval [Thu, 15 Nov 2012 14:57:30 +0000 (14:57 +0000)]
[corlib] Fix unobserved exception being mistakenly propagated to finalizer thread when using ContinueWhenAll.
The problem was that we internally use Task.WhenAll inside TaskFactory.ContinueWhenAll to merge the given tasks into one that we can Continue on to run the passed arguments.
However, the behavior of WhenAll is to collect the exceptions that happened on its parent tasks and to set the aggregate on itself which was not catched by our continuation internally, leading to the exception remaining unobserved and escalating to the finalizer thread.
Atsushi Eno [Thu, 15 Nov 2012 05:36:29 +0000 (14:36 +0900)]
set NO_INSTALL = yes until we decide how to deal with them and fix dist.
Atsushi Eno [Thu, 15 Nov 2012 04:03:32 +0000 (13:03 +0900)]
Fix fix fix, insufficient signing stuff.
Zoltan Varga [Thu, 15 Nov 2012 03:22:23 +0000 (04:22 +0100)]
Reorganize the scan-minor-copy/scan.h header files a bit. Move the nursery copying functions to sgen-minor-copy.h, uppercase some macro names.
Atsushi Eno [Thu, 15 Nov 2012 01:03:28 +0000 (10:03 +0900)]
damn, another DISTFILES required.
Atsushi Eno [Thu, 15 Nov 2012 00:36:03 +0000 (09:36 +0900)]
fix install-local and simplify signing in rx assemblies.
Atsushi Eno [Thu, 15 Nov 2012 00:18:17 +0000 (09:18 +0900)]
Another dist build fix for rx integration, move *.cs file to safe-ish path.
Rolf Bjarne Kvinge [Thu, 20 Oct 2011 12:56:05 +0000 (14:56 +0200)]
Add profiler to the monotouch build
Rodrigo Kumpera [Wed, 14 Nov 2012 21:01:04 +0000 (16:01 -0500)]
Tweak the Makefiles to enable monotouch builds to compile less stuff.
* Makefile.am: Make it possible to only produce the monotouch
byproducts.
Rodrigo Kumpera [Wed, 14 Nov 2012 21:00:58 +0000 (16:00 -0500)]
Fix iOS cross compilation.
Rodrigo Kumpera [Wed, 14 Nov 2012 20:22:58 +0000 (15:22 -0500)]
Initialize LLVM's ARM target when compiling for it.
Rodrigo Kumpera [Wed, 14 Nov 2012 20:22:19 +0000 (15:22 -0500)]
Use the right llvm codegen when cross compiling.
Sebastien Pouliot [Wed, 3 Aug 2011 20:19:45 +0000 (16:19 -0400)]
FileVersionInfo is not really 'process handling'. Fix regression from #709278
Rodrigo Kumpera [Wed, 14 Nov 2012 19:36:07 +0000 (14:36 -0500)]
Kill the SL profile and get Mobile on its place instead.
* socket-io.c:
* threadpool.c:
* domain-internals.h: The mobile profile uses System.dll for sockets.
Rodrigo Kumpera [Wed, 14 Nov 2012 17:28:41 +0000 (12:28 -0500)]
Fix ARM compilation of mono-context.c
Rodrigo Kumpera [Tue, 4 Sep 2012 21:01:18 +0000 (18:01 -0300)]
Bionic cannot handle a NULL filename in dlopen.
Rodrigo Kumpera [Tue, 9 Oct 2012 21:14:09 +0000 (17:14 -0400)]
Implement MONO_CONTEXT_GET_CURRENT for arm.
Atsushi Eno [Wed, 14 Nov 2012 19:55:50 +0000 (04:55 +0900)]
ok, those resources need *.prebuilt too...
Atsushi Eno [Wed, 14 Nov 2012 19:28:07 +0000 (04:28 +0900)]
Changed resx/resources build steps based on MWF approach.
Atsushi Eno [Wed, 14 Nov 2012 18:27:26 +0000 (03:27 +0900)]
update rx (removed InternalsVisibleTo workarounds)
Atsushi Eno [Wed, 14 Nov 2012 18:26:14 +0000 (03:26 +0900)]
...and they also need EXTRA_DISTFILES for tarballs.
Atsushi Eno [Wed, 14 Nov 2012 17:43:58 +0000 (02:43 +0900)]
I needed to add rx to .gitmodules too.
Atsushi Eno [Wed, 14 Nov 2012 17:00:42 +0000 (02:00 +0900)]
and add more missing files for rx build...
Atsushi Eno [Wed, 14 Nov 2012 16:58:31 +0000 (01:58 +0900)]
forgot to switch to the release-ready branch.
Atsushi Eno [Wed, 14 Nov 2012 16:56:14 +0000 (01:56 +0900)]
import Microsoft Reactive Extensions from rx.codeplex.com and add to build.
Rodrigo Kumpera [Thu, 30 Aug 2012 22:45:58 +0000 (19:45 -0300)]
Properly support cross compiling for the mach support code.
* Makefile.am: When cross compiling use the new -unknown variant of
the mach support code so we don't need to wrestle which one the host
is running on.
Rodrigo Kumpera [Thu, 30 Aug 2012 22:51:24 +0000 (19:51 -0300)]
Fix mach support for arm.
* mach-support-arm.c: Fix a silly thinko in mono_mach_arch_get_thread_state.
Rodrigo Kumpera [Tue, 13 Nov 2012 23:26:22 +0000 (18:26 -0500)]
Replace mcontext with void* in the mach support code so it cross compile nicely.
Rodrigo Kumpera [Tue, 13 Nov 2012 23:06:49 +0000 (18:06 -0500)]
Don't use System.Environment.Exit to finish a sdb session on iOS.
Sebastien Pouliot [Wed, 14 Nov 2012 16:24:59 +0000 (11:24 -0500)]
Add test case from bug #8366 (it was fixed in master, not in 2-10)
Marek Safar [Wed, 14 Nov 2012 11:26:45 +0000 (12:26 +0100)]
More fixed for conditional expression promotions. Fixes #8385
Marek Safar [Wed, 14 Nov 2012 10:45:40 +0000 (11:45 +0100)]
Base access can be upgraded only to valid overrides of initial method. Fixes #8334
Zoltan Varga [Wed, 14 Nov 2012 01:08:22 +0000 (02:08 +0100)]
Quit more messages about configure.in/configure.ac.
Zoltan Varga [Wed, 14 Nov 2012 00:21:01 +0000 (01:21 +0100)]
Sweep unswept blocks referenced by set card table entries.
Zoltan Varga [Sat, 10 Nov 2012 18:53:39 +0000 (19:53 +0100)]
Use multiple versions of sweek_block () specialized for constant object sizes.
Zoltan Varga [Sat, 10 Nov 2012 18:39:04 +0000 (19:39 +0100)]
Implement lazy sweeping for the mark-sweep collector in sgen.
Rodrigo Kumpera [Tue, 13 Nov 2012 22:40:52 +0000 (17:40 -0500)]
Use TARGET defines instead of the arch specific ones.
Rodrigo Kumpera [Tue, 13 Nov 2012 22:40:41 +0000 (17:40 -0500)]
Add a cross compilation target to sgen-archdep.h
Chris Toshok [Wed, 13 Jul 2011 00:08:41 +0000 (17:08 -0700)]
Replace .quad with a pair of .long in the defunkt mdb.
Rodrigo Kumpera [Tue, 13 Nov 2012 20:56:21 +0000 (15:56 -0500)]
Use TARGET defines instead of the arch defines to properly handle cross compilation.
Rodrigo Kumpera [Tue, 13 Nov 2012 20:52:17 +0000 (15:52 -0500)]
Correctly identify iOS device/simulator builds and act accordingly.
* processes.c: Use the same behavior under simulator as on
device when finding process names.
* mini-darwin.c: The simulator doesn't need the exception thread
as well.
* mini-sigcontext.h: Simulator uses the new ucontext names.
Rodrigo Kumpera [Tue, 13 Nov 2012 20:52:05 +0000 (15:52 -0500)]
Do the right check for TARGET_IPHONE_SIMULATOR.
Martin Baulig [Tue, 13 Nov 2012 22:04:26 +0000 (23:04 +0100)]
Support [OnSerializing] in System.Runtime.Serialization.Json.
This fixes a problem that has been reported on stackoverflow:
http://stackoverflow.com/questions/
13362906/onserializing-method-not-called-in-mono-3-0-1
Jonathan Pryor [Tue, 13 Nov 2012 18:17:08 +0000 (13:17 -0500)]
Update.
Rodrigo Kumpera [Tue, 13 Nov 2012 15:29:48 +0000 (10:29 -0500)]
Fix boehm to correctly build on iOS/x86.
* darwin_stop_world.c: Use the target macros from Apple to figure
out what flavor of darwin we're compiling against.
Sebastien Pouliot [Tue, 13 Nov 2012 14:30:28 +0000 (09:30 -0500)]
Only send server_name extension for TLS (not SSLv3). Fix for #8312
Marek Safar [Tue, 13 Nov 2012 11:13:40 +0000 (03:13 -0800)]
Merge pull request #503 from bprzygoda/linq_enumerable_ioe
Filling Linq' IEnumerable extensions InvalidOperationException messages.