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
Alexander Köplinger [Thu, 18 Jun 2015 12:46:34 +0000 (14:46 +0200)]
[xbuild] Fix Microsoft.VisualBasic.targets to contain correct VbcToolExe
Compiling VB projects was broken since a few releases but apparently went unnoticed.
The VbcToolExe path needs to be set to "vbnc.exe" because vbnc2 and vbnc shell scripts
don't work in this case and we only support building against the reference assemblies anyway
now for different targets.
Zoltan Varga [Wed, 17 Jun 2015 20:21:18 +0000 (16:21 -0400)]
[jit] Disable passing the rgctx/vtable in some cases, its doesn't seem to be needed. The newobj code doesn't use the same logic, so the same method might end up being called with/without an rgctx, which is an error on LLVM since methods which receive an rgctx have a different signature.
Zoltan Varga [Wed, 17 Jun 2015 20:12:44 +0000 (16:12 -0400)]
[runtime] Mark some linq tests as GSHAREDVT so they are skipped when running the fullaot tests on amd64.
Zoltan Varga [Wed, 17 Jun 2015 19:58:44 +0000 (15:58 -0400)]
[amd64] Fix some partial sharing problems.
Marek Safar [Wed, 17 Jun 2015 15:52:51 +0000 (17:52 +0200)]
[mcs] Add better logging for ikvm crashes during HasObject loading
Marek Safar [Wed, 17 Jun 2015 15:35:22 +0000 (17:35 +0200)]
[mcs] Handle null propagation operator inside nested member access expression. Fixes #31092
Marek Safar [Wed, 17 Jun 2015 05:41:43 +0000 (07:41 +0200)]
Merge pull request #1881 from mono/Therzok-patch-1
[mcs] Fix order of parameters for LineNumberEntry
Marius Ungureanu [Wed, 17 Jun 2015 04:56:08 +0000 (07:56 +0300)]
[mcs] Fix order of parameters for LineNumberEntry
Discovered by coverity in NRefactory.
Zoltan Varga [Wed, 17 Jun 2015 02:45:38 +0000 (22:45 -0400)]
Fix a warning.
Zoltan Varga [Wed, 17 Jun 2015 00:52:15 +0000 (20:52 -0400)]
[runtime] More full-aot+amd64 fixes.
Zoltan Varga [Wed, 17 Jun 2015 00:25:12 +0000 (20:25 -0400)]
[runtime] Fix full aot on amd64.
Alexander Kyte [Wed, 17 Jun 2015 00:07:08 +0000 (20:07 -0400)]
[runtime] Fixed use-after-free in context freeing
We had a use-after-free bug in context freeing that creating and freeing AppDomains in parallel exposed.
We called g_hash_table_remove in a callback to g_hash_table_foreach,
which
resulted in freeing the Slot struct that the g_hash_table_foreach was
holding a local reference to.
When it tried to get the chained 'next' element in the table, if
other threads caused enough memory pressure to reuse that memory
between freeing and getting the 'next' pointer, then we try to
dereference a garbage value and get a SIGSEGV.
João Matos [Tue, 16 Jun 2015 18:27:28 +0000 (19:27 +0100)]
[WindowsBase] Fixed potential string overflow bug when getting Zip entry file length.
João Matos [Tue, 16 Jun 2015 18:26:16 +0000 (19:26 +0100)]
[WindowsBase] Fixed string buffer overflow when handling Zip entries.
Fixes NuGet package handling, see https://bugzilla.xamarin.com/show_bug.cgi?id=26205.
Marcos Henrich [Tue, 16 Jun 2015 17:15:29 +0000 (18:15 +0100)]
Merge pull request #1804 from esdrubal/processmodule
Adds managed assemblies to Process.Modules.
Marek Safar [Tue, 16 Jun 2015 17:08:07 +0000 (19:08 +0200)]
[mcs] Fix accessibility modifiers on accessors logic
Marcos Henrich [Tue, 16 Jun 2015 16:26:58 +0000 (17:26 +0100)]
Updated csproj files.
Marek Safar [Tue, 16 Jun 2015 15:52:47 +0000 (17:52 +0200)]
[mcs] Constraints checker needs to accomodate inflated base type contrained not converted to interfaces. Fixes #30973
Marek Safar [Tue, 16 Jun 2015 15:50:49 +0000 (17:50 +0200)]
[mono] Update swedish months and days to be always lower cased for some reason cldr have them wrong. Fixes #30851
Rolf Bjarne Kvinge [Tue, 16 Jun 2015 15:52:04 +0000 (17:52 +0200)]
Define HAVE_SYSTEM for Windows.
João Matos [Tue, 16 Jun 2015 14:54:07 +0000 (15:54 +0100)]
Merge pull request #1878 from rolfbjarne/have-system
Add a conditional for the system function.
Rolf Bjarne Kvinge [Tue, 16 Jun 2015 14:41:34 +0000 (16:41 +0200)]
Add a conditional for the system function.
It's not available in the iOS WatchOS simulator.
Marcos Henrich [Tue, 16 Jun 2015 13:43:05 +0000 (14:43 +0100)]
[runtime] Fixed get_process_module module name.
Module name was equal to RefEmit_YouForgotToDefineAModule for some
modules in OS other than OSX.
Alex Rønne Petersen [Tue, 16 Jun 2015 09:23:14 +0000 (11:23 +0200)]
Merge pull request #1877 from BrzVlad/fix-finalizer-exception
Fix finalizer exception
Alex Rønne Petersen [Tue, 16 Jun 2015 09:21:49 +0000 (11:21 +0200)]
Merge pull request #1875 from directhex/use-variable-port-number-for-servicemodel-tests
Use random port numbers for ServiceModel tests.
Marcos Henrich [Tue, 16 Jun 2015 09:14:14 +0000 (10:14 +0100)]
Merge pull request #1876 from esdrubal/mmf-segfault
Fixes MemoryMappedFile related segfault with dnvm
Zoltan Varga [Tue, 16 Jun 2015 02:50:32 +0000 (22:50 -0400)]
[jit] Add jit icalls used by the inline rgctx fetch code.
Zoltan Varga [Tue, 16 Jun 2015 02:19:18 +0000 (22:19 -0400)]
[jit] Remove the 'caller' argument from the generic sharing code, its no longer needed, since we no longer compute its generic sharing context.
Zoltan Varga [Tue, 16 Jun 2015 02:11:21 +0000 (22:11 -0400)]
[gsharedvt] Avoid computing the generic sharing context of callers, its not longer needed.
Zoltan Varga [Tue, 16 Jun 2015 01:57:02 +0000 (21:57 -0400)]
[jit] Get rid of MonoGenericSharingContext->var_is_vt/mvar_is_vt, they are not needed anymore since the same information is now encoded in the gshared_constraint field of MonoGenericParam.
Zoltan Varga [Tue, 16 Jun 2015 01:40:55 +0000 (21:40 -0400)]
[runtime] Disable some fullaot tests on x86, since it has no dyncall code.
Zoltan Varga [Mon, 15 Jun 2015 23:21:48 +0000 (19:21 -0400)]
[jit] Use emit_get_gsharedvt_info_klass () in one place.
Zoltan Varga [Mon, 15 Jun 2015 22:59:41 +0000 (18:59 -0400)]
[jit] Add an inline version of the rgctx fetch trampolines, not yet used.
Zoltan Varga [Mon, 15 Jun 2015 22:33:39 +0000 (18:33 -0400)]
[jit] Use cfg->cbb to refer to the current bblock, avoid using the 'bblock' variable defined in method_to_ir () for this purpose, since it needs to be updated after every call which changes cfg->cbb.
Vlad Brezae [Mon, 15 Jun 2015 21:25:20 +0000 (14:25 -0700)]
[runtime] Fix mono_sem_timedwait for the case where we get interrupted.
On mach, semaphore_timedwait returns KERN_ABORTED instead of setting the errno variable. The timeout argument is relative so it needs to be updated. We don't need to update the timeout argument on other platforms since it has an absolute value.