Marcos Henrich [Thu, 2 Jul 2015 14:06:16 +0000 (15:06 +0100)]
Merge pull request #1860 from saper/tz-fix
[corlib] Assume UTC if no $TZ set. Fixes #30698.
Marcos Henrich [Thu, 2 Jul 2015 09:53:40 +0000 (10:53 +0100)]
Bump reference sources
Ludovic Henry [Thu, 2 Jul 2015 01:30:00 +0000 (22:30 -0300)]
[threadpool-ms] Fix segfault when using sdb
Ludovic Henry [Wed, 1 Jul 2015 22:38:35 +0000 (19:38 -0300)]
[runtime] Ease debugging of cpu_usage out of bound bug
Sebastien Pouliot [Wed, 1 Jul 2015 15:37:00 +0000 (11:37 -0400)]
[linker] Fix comparison of methods wrt generic parameters [#30488]
The check from [1] is fine when it's done once _or_ with an identical
target. However there's nothing to ensure (if done more than once) that
it's being used to represent the same thing every time.
That makes the code from [1] match methods like:
> System.IObservable`1<TResult> System.Reactive.Linq.IQueryLanguage::Repeat(TResult)
and
> System.IObservable`1<TSource> System.Reactive.Linq.QueryLanguage::Repeat(System.IObservable`1<TSource>)
where `TResult` is different in both checks.
This patch tracks what is used as the generic parameter (on first check)
and make sure it's identical if it's used again in the same signature.
Note: this is a very old bug (i.e. it's always been that way) but recent
changes to mono started to report such issues (a good thing) and, for AOT
compilation on XI, that resulted in MT3001 errors.
[1] https://github.com/mono/mono/blob/mono-3.10.0/mcs/tools/linker/Mono.Linker.Steps/TypeMapStep.cs#L250
Ludovic Henry [Tue, 21 Apr 2015 11:15:30 +0000 (12:15 +0100)]
[threadpool] Remove mono threadpool implementation
Marek Safar [Wed, 1 Jul 2015 14:39:32 +0000 (16:39 +0200)]
[system] Don't throw ObjectDisposedException on cancelled async WebConnection. Fixes #31507
Ludovic Henry [Tue, 30 Jun 2015 20:24:59 +0000 (17:24 -0300)]
[threadpool-ms-io] Fix epoll
The socket would not be deleted with epoll_ctl (via epoll_reset_fd_at) when we would remove the state from threadpool_io.states. So when we would try to add it again, it would mark it as a new socket (as it wouldn't be present in threadpool_io.states), while it has not been deleted from epoll.
Rodrigo Kumpera [Tue, 30 Jun 2015 20:45:13 +0000 (16:45 -0400)]
[utils] Remove a duplicated check that was commited by accident.
Ludovic Henry [Tue, 30 Jun 2015 17:23:16 +0000 (14:23 -0300)]
[threadpool-ms-io] Fix compilation warning
Ludovic Henry [Tue, 30 Jun 2015 16:56:03 +0000 (13:56 -0300)]
[io-layer] Disable shared handles support by default
They are a very fragile part of the runtime, as they are not very well aken care of.
We simply disable it by default for now. If everything still works as expected, we will completely remove the code.
Marek Safar [Tue, 30 Jun 2015 09:49:53 +0000 (11:49 +0200)]
[mcs] Fixes name collision check for generic types within user namespaces. Fixes #30904
João Matos [Mon, 29 Jun 2015 22:44:19 +0000 (23:44 +0100)]
Merge pull request #1903 from vkargov/master
Fix the MinGW build.
Vladimir Kargov [Mon, 29 Jun 2015 21:15:11 +0000 (00:15 +0300)]
[runtime] Fix a crash on Windows during the cleanup phase caused by using a destroyed mutex.
Vladimir Kargov [Mon, 29 Jun 2015 21:12:08 +0000 (00:12 +0300)]
[runtime] Add condition variable definitions that are missing on MinGW.
Zoltan Varga [Sun, 28 Jun 2015 22:53:42 +0000 (18:53 -0400)]
Fix the build.
Neale Ferguson [Sun, 28 Jun 2015 19:55:12 +0000 (15:55 -0400)]
Fix and simplify float conversions
Zoltan Varga [Sun, 28 Jun 2015 14:31:23 +0000 (10:31 -0400)]
Merge pull request #1901 from oafasting/master
Removed obsolete flag '-no-cpp-precomp' from darwin $CPPFLAGS
Ole A. Sjo Fasting [Sun, 28 Jun 2015 11:58:49 +0000 (13:58 +0200)]
removed flag -no-cpp-precomp from darwin cppglags, so that build is possible on osx
Zoltan Varga [Sat, 27 Jun 2015 17:09:53 +0000 (13:09 -0400)]
Fix the build.
Zoltan Varga [Fri, 26 Jun 2015 19:06:58 +0000 (15:06 -0400)]
[aot] Emit AOT data structures using LLVM when using LLVM.
Miguel de Icaza [Fri, 26 Jun 2015 16:41:02 +0000 (12:41 -0400)]
Coverity: test if this is the way of silencing warnings
Zoltan Varga [Fri, 26 Jun 2015 15:59:07 +0000 (11:59 -0400)]
Fix the loadable llvm build.
Marek Safar [Fri, 26 Jun 2015 14:29:58 +0000 (16:29 +0200)]
[corlib] Fixes warning
Marek Safar [Fri, 26 Jun 2015 14:21:15 +0000 (16:21 +0200)]
[corlib] Chinese (Simplified) and its legacy version are not equal. Fixes #31398
Marek Safar [Fri, 26 Jun 2015 10:14:14 +0000 (12:14 +0200)]
[corlib] Bump WaitAll_TimeoutWithExceptionsAfter timeouts
Marek Safar [Fri, 26 Jun 2015 06:08:45 +0000 (08:08 +0200)]
[corlib] Add test for .net bug
Zoltan Varga [Fri, 26 Jun 2015 03:33:54 +0000 (23:33 -0400)]
[aot] Improve support for situations where mono_aot_get_method () etc. is passed an already gshared method.
Zoltan Varga [Fri, 26 Jun 2015 03:24:47 +0000 (23:24 -0400)]
[aot] Remove an unused field from MonoAotModule.
Zoltan Varga [Fri, 26 Jun 2015 03:08:33 +0000 (23:08 -0400)]
[aot] Encode the various aot tables into binary ourselves instead of relying on the assembler to do it, to make it easier to emit them using LLVM.
Zoltan Varga [Fri, 26 Jun 2015 02:48:41 +0000 (22:48 -0400)]
Fix the DISABLE_JIT build.
Zoltan Varga [Fri, 26 Jun 2015 02:24:00 +0000 (22:24 -0400)]
[aot] Clean up the naming of global symbols.
Zoltan Varga [Fri, 26 Jun 2015 01:47:40 +0000 (21:47 -0400)]
[aot] Reorganize the emission of the MonoAotFileInfo structure to make it easier to emit it as LLVM data.
Zoltan Varga [Fri, 26 Jun 2015 00:28:10 +0000 (20:28 -0400)]
[aot] Pass the aot method index to mini_method_compile ().
Zoltan Varga [Fri, 26 Jun 2015 00:07:08 +0000 (20:07 -0400)]
[aot] Get rid of the 'methods' symbol in aot images, its no longer used.
Sebastien Pouliot [Thu, 25 Jun 2015 22:43:12 +0000 (18:43 -0400)]
[mono.sqlite] Provide the full path to the library for iOS
Zoltan Varga [Thu, 25 Jun 2015 22:22:41 +0000 (18:22 -0400)]
Get rid of the of the usage of code offsets in aot-runtime.c, use method addresses instead.
Zoltan Varga [Thu, 25 Jun 2015 21:58:32 +0000 (17:58 -0400)]
[aot] Add support for running without a GOT for JITted code.
Zoltan Varga [Thu, 25 Jun 2015 20:52:07 +0000 (16:52 -0400)]
Fix the leaking of process streams when using RedirectStandardOutput etc., introduced by
3c47caca34e3c96aa43dc1009e285b7a79ee366c.
Zoltan Varga [Sat, 20 Jun 2015 02:39:45 +0000 (22:39 -0400)]
Refactor the IMT call handling code into a separate function so it can be called from outside the trampoline code.
Zoltan Varga [Sat, 20 Jun 2015 01:53:40 +0000 (21:53 -0400)]
Clean up the trampoline code a bit.
Zoltan Varga [Sat, 20 Jun 2015 00:52:23 +0000 (20:52 -0400)]
Clean up the imt trampoline code a bit.
Marek Safar [Thu, 25 Jun 2015 20:17:47 +0000 (22:17 +0200)]
[system.net.http] Convert default request headers to string values using correct separator. Fixes #31336
Zoltan Varga [Thu, 25 Jun 2015 20:14:34 +0000 (16:14 -0400)]
Merge pull request #1898 from alexanderkyte/debugger_variable_reflection
Fix TransparentProxy ObjectMirror value queries via debugger
Zoltan Varga [Thu, 25 Jun 2015 20:04:24 +0000 (16:04 -0400)]
Fix the compilation of the System tests.
Alexander Kyte [Thu, 25 Jun 2015 19:29:20 +0000 (15:29 -0400)]
[runtime] Handle TransparentProxies when getting object field values
Alexander Kyte [Thu, 25 Jun 2015 00:32:52 +0000 (20:32 -0400)]
[runtime] Added a test for the repro of being unable to reflect an instance variable.
Miguel de Icaza [Thu, 25 Jun 2015 17:56:54 +0000 (13:56 -0400)]
Attempts to locate the C# and VB compilers based on the location of mscorlib, does not assume they are on the path. Fixes #31369
Marek Safar [Thu, 25 Jun 2015 13:57:40 +0000 (15:57 +0200)]
[system] Disable external process redirect test on mobile
Rolf Bjarne Kvinge [Thu, 18 Jun 2015 18:09:13 +0000 (20:09 +0200)]
Add a monotouch_watch profile.
Rolf Bjarne Kvinge [Thu, 18 Jun 2015 18:08:53 +0000 (20:08 +0200)]
Support #include directives in external sources files.
Rolf Bjarne Kvinge [Wed, 17 Jun 2015 10:25:19 +0000 (12:25 +0200)]
Remove --with-[monotouch|xammac]=only from configure.
The Xamarin.iOS and Xamarin.Mac builds don't use these options,
so remove them to reduce unnecessary complexity.
Marek Safar [Thu, 25 Jun 2015 07:22:20 +0000 (09:22 +0200)]
[mcs] Add null operator propagation to probing expressions. Fixes #31289
Zoltan Varga [Thu, 25 Jun 2015 01:38:43 +0000 (21:38 -0400)]
[runtime] Use MONO_GENERIC_CONTEXT_USED_CLASS/METHOD constants to mini.h.
Zoltan Varga [Thu, 25 Jun 2015 01:36:13 +0000 (21:36 -0400)]
[runtime] Get rid of the MONO_GENERIC_SHARING env variable, its no longer needed.
Marek Safar [Wed, 24 Jun 2015 18:59:16 +0000 (20:59 +0200)]
[ilasm] Custom attributes syntax with typeref expression
Marek Safar [Wed, 24 Jun 2015 14:49:13 +0000 (16:49 +0200)]
[runtime] Update incorrect test (exposed by
f2039ff7201a53ae5e9e9be6ffffa885fb73c35b)
Alex Rønne Petersen [Wed, 24 Jun 2015 03:29:36 +0000 (05:29 +0200)]
Merge pull request #1869 from alexanderkyte/appdomain_parallel
[runtime] Fixed use-after-free in context freeing
Zoltan Varga [Wed, 24 Jun 2015 02:17:05 +0000 (22:17 -0400)]
[jit] Properly set the klass of the MonoInst pushed on the IL stack by the refanyval opcode. Fixes #31231.
Ludovic Henry [Tue, 23 Jun 2015 22:52:44 +0000 (19:52 -0300)]
[corlib] Fix NRE in TaskScheduler.GetTaskSchedulersForDebugger
See external/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs:582
Marek Safar [Tue, 23 Jun 2015 16:44:35 +0000 (18:44 +0200)]
[ilasm] Pair methods using their calling convention, this allows to have static and non-static properties with same name
Marek Safar [Tue, 23 Jun 2015 16:12:53 +0000 (18:12 +0200)]
[ilasm] Even more undocumented custom attributes syntax
Sebastien Pouliot [Tue, 23 Jun 2015 17:03:10 +0000 (13:03 -0400)]
[linker] Add Mono.Cecil.*.Has* checks when comparing methods/types
* It reduce memory allocations by avoiding the creation of empty
collections (only used to tell us there's a Count of 0);
* It also speed up execution, less object creation/GC time;
* Patch also remove some double-casts (is + as/cast)
Zoltan Varga [Mon, 22 Jun 2015 19:54:14 +0000 (15:54 -0400)]
Merge pull request #1874 from saper/bug_29679
[msbuild][crash] Enums are classes that can be assigned to value types
Mark Probst [Fri, 22 May 2015 23:01:00 +0000 (16:01 -0700)]
[sgen] Remove a weird unnecessary cast.
Mark Probst [Fri, 22 May 2015 22:59:05 +0000 (15:59 -0700)]
[sgen] `GCObject*` instead of `void*`
Mark Probst [Mon, 18 May 2015 18:07:43 +0000 (11:07 -0700)]
[runtime] GC descriptor typedef.
Mark Probst [Fri, 15 May 2015 22:32:04 +0000 (15:32 -0700)]
[sgen] Typedef for GC descriptors.
Mark Probst [Mon, 11 May 2015 16:32:18 +0000 (09:32 -0700)]
[sgen] `GCObject*` instead of `char*` where appropriate.
Mark Probst [Sun, 10 May 2015 23:23:24 +0000 (16:23 -0700)]
[sgen] Make GCVTable type opaque, not a pointer.
Miguel de Icaza [Mon, 22 Jun 2015 18:50:59 +0000 (14:50 -0400)]
Merge pull request #1887 from debugerr/patch-2
Null reference check before calling delegate
Ludovic Henry [Sat, 20 Jun 2015 20:08:38 +0000 (17:08 -0300)]
[threadpool-ms-io] Rework socket removal job cancellation
Ludovic Henry [Sat, 20 Jun 2015 16:31:28 +0000 (13:31 -0300)]
[threadpool-ms-io] Remove dependency on SocketAsyncResult list in the backends
This reduce the duplication and complexity of the code in the different backends
Ludovic Henry [Sat, 20 Jun 2015 16:22:31 +0000 (13:22 -0300)]
[threadpool-ms-io] Fix race between socket add and remove
The following race could occur and lead to a EBADF error with kevent and epoll :
1. mono_threadpool_ms_io_add is called with fd 1234
2. mono_threadpool_ms_io_remove_socket is called when closing fd 1234
3. selector_thread calls update_add with socket 1234, which will call kevent with this already closed socket
The solution is simply to remove all the SocketAsyncResult from states, as well as updates, for the given socket fd
Ludovic Henry [Fri, 12 Jun 2015 21:41:41 +0000 (18:41 -0300)]
[threadpool-ms-io] Rework AsyncReadHandler detection
Ludovic Henry [Fri, 19 Jun 2015 22:22:31 +0000 (19:22 -0300)]
[threadpool-ms-io] Fix update on epoll
Marek Safar [Mon, 22 Jun 2015 15:56:16 +0000 (17:56 +0200)]
[ilasm] Add another undocumented custom attributes initializer syntax
Chris Hamons [Mon, 22 Jun 2015 15:22:12 +0000 (10:22 -0500)]
Fix System.Messaging makefile logic issue
- Introduced in
b044a27fe0006830b2793e3d34f45407b656b8b2
Marek Safar [Mon, 22 Jun 2015 12:05:49 +0000 (14:05 +0200)]
[ilasm] Fix invalid codegen for method overloads with unique modop/modreq type only
Atsushi Eno [Mon, 22 Jun 2015 11:12:38 +0000 (20:12 +0900)]
[S.R.Serialization] fix default value comparison.
The fixed code used to invoke null.Equals(other).
The new test (by @alien0ada) shows the failing case.
Marek Safar [Sun, 21 Jun 2015 11:20:10 +0000 (13:20 +0200)]
[ilasm] Add emit of custom string attribute using member syntax
Zoltan Varga [Sat, 20 Jun 2015 23:19:59 +0000 (19:19 -0400)]
Merge pull request #1889 from alexanderkyte/debugger_locals_failure
[runtime] Add a missing NOP to the OP_SEQ_POINT arm code
Alexander Kyte [Sat, 20 Jun 2015 22:01:25 +0000 (22:01 +0000)]
[runtime] Add a missing NOP to the OP_SEQ_POINT arm code
We were failing MonoTests.DebuggerTests.Locals and
MonoTests.DebuggerTests.SingleStepping because we
stepped forward too far as a side effect of this missing
"padding" NOP.
Zoltan Varga [Fri, 19 Jun 2015 20:28:18 +0000 (16:28 -0400)]
Fix the build.
Zoltan Varga [Fri, 19 Jun 2015 20:22:22 +0000 (16:22 -0400)]
[runtime] Make multiple -O= flags cumultative instead of negating the effects of the previous ones.
Zoltan Varga [Fri, 19 Jun 2015 18:15:04 +0000 (14:15 -0400)]
Merge pull request #1886 from BrzVlad/fix-arm-thread-state
[ios] Fix setting of thread state due to invalid argument
Marek Safar [Fri, 19 Jun 2015 16:35:38 +0000 (18:35 +0200)]
[mcs] Add support for interpolated quoted strings
João Matos [Fri, 19 Jun 2015 14:59:30 +0000 (15:59 +0100)]
[aot] Build the LLVM temporary file paths with the temporary base name.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=28600.
João Matos [Fri, 19 Jun 2015 14:58:40 +0000 (15:58 +0100)]
[aot] Build the temporary base name with the temporary path when it's present.
João Matos [Fri, 19 Jun 2015 14:56:50 +0000 (15:56 +0100)]
[aot] Initialize the temporary path to an empty string.
Marek Safar [Fri, 19 Jun 2015 09:47:39 +0000 (11:47 +0200)]
[ilasm] Add project file
Marek Safar [Fri, 19 Jun 2015 09:46:01 +0000 (11:46 +0200)]
[ilasm] Add support for multiple custom type modifiers attached to single type
Marek Safar [Fri, 19 Jun 2015 09:43:16 +0000 (11:43 +0200)]
[mcs] Implements virtual read-only auto-property assignment via derived private field
Marek Safar [Thu, 18 Jun 2015 16:37:54 +0000 (18:37 +0200)]
[ilasm] Remove unused files
debugerr [Fri, 19 Jun 2015 08:09:00 +0000 (10:09 +0200)]
Null reference check before calling delegate
We see a crash in LinuxNetworkChange.OnAvailabilityChanged when dereferencing the AvailabilityChanged delegate (NullReferenceException). There is a race here: the OnAvailabilityChanged is fired by deferring to the ThreadPool, which allows an unregister to come in between, removing the potential registration before we get called back.
Chris Hamons [Fri, 22 May 2015 19:13:59 +0000 (14:13 -0500)]
Create xammac_net_4_5 profile for XM 4.5 Unified to remove references to unshippable assmblies
Vlad Brezae [Thu, 18 Jun 2015 18:27:52 +0000 (11:27 -0700)]
[ios] Fix setting of thread state due to invalid argument
This prevented aborts from working.
Marcos Henrich [Thu, 18 Jun 2015 17:27:11 +0000 (18:27 +0100)]
[System.Core] Test MemoryMappedFile.CreateFromFile
Test MemoryMappedFile.CreateFromFile with null napName parameter.
Covers #30741 #30825.
Marek Safar [Thu, 18 Jun 2015 15:19:41 +0000 (17:19 +0200)]
[system] Implements IPv4Mask property on mac. Fixes #30880
João Matos [Thu, 18 Jun 2015 13:04:52 +0000 (14:04 +0100)]
Merge pull request #1884 from mono/fix-vb
[xbuild] Fix Microsoft.VisualBasic.targets to contain correct VbcToolExe