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.
Vlad Brezae [Mon, 15 Jun 2015 19:23:48 +0000 (12:23 -0700)]
[runtime] Fix failure to wait on semaphore due to invalid argument
Marcos Henrich [Mon, 15 Jun 2015 21:26:57 +0000 (22:26 +0100)]
[System.Core] Updated MemoryMappedFileTest
Commented out PointerOffset asserts because its value is always 0.
Unlike .NET mono implementation creates MemoryMappedViews with no
PointerOffset.
Zoltan Varga [Mon, 15 Jun 2015 20:06:04 +0000 (16:06 -0400)]
[runtime] Fix another memory leak in the dwarf writer.
Zoltan Varga [Mon, 15 Jun 2015 20:04:04 +0000 (16:04 -0400)]
[runtime] Fix a memory leak in the dwarf writer.
Zoltan Varga [Mon, 15 Jun 2015 19:30:07 +0000 (15:30 -0400)]
[jit] Avoid a crash in the dwarf dumper if debug info is not found.
Vlad Brezae [Mon, 15 Jun 2015 19:16:49 +0000 (12:16 -0700)]
[test] Fix finalizer-exception test
Me might be very unlucky and still have the object pinned in random stack memory. Allocate multiple objects so we are sure that at least one of them is finalized.
Marcos Henrich [Mon, 15 Jun 2015 16:16:04 +0000 (17:16 +0100)]
[runtime] mono_mmap_open_handle with null arg.
Fixes segmentation fault when mono_mmap_open_handle is called with a null mapName argument.
MemoryMappedFiles.CreateFromFile calls mono_mmap_open_handle, .NET implementation accepts a null mapName and CoreFX uses CreateFromFile with null mapName.
Fixes #30825 and #30741.
Marcos Henrich [Mon, 15 Jun 2015 09:15:41 +0000 (10:15 +0100)]
[System.Core] Using more reference source files.
Changed MemoryMappedFile related code to use reference source
MemoryMappedViewAccessor and MemoryMappedViewStream.
This change was motivated by segmentations faults while dnmv code was
calling a CoreFX class that uses reflection to call MemoryMappedFile
code.
Now that we are using more code from reference sources there should be
no problem.
Fixes #30741 and #30825.
Zoltan Varga [Mon, 15 Jun 2015 13:50:05 +0000 (09:50 -0400)]
[runtime] Fix the arm64 build.
Jo Shields [Mon, 15 Jun 2015 09:05:55 +0000 (10:05 +0100)]
Use random port numbers for ServiceModel tests.
This prevents race conditions when running multiple test suites at once on the same computer, as happens on our ARM builders.
Marcin Cieslak [Sun, 14 Jun 2015 23:29:26 +0000 (23:29 +0000)]
Enums are classes that can be assigned to value types
Fixes:
https://bugzilla.xamarin.com/show_bug.cgi?id=29679
Marek Habersack [Sat, 13 Jun 2015 22:41:18 +0000 (00:41 +0200)]
Merge pull request #1873 from saper/PR_SET_TRACER
Use PR_SET_PTRACER only if defined
Marcin Cieslak [Sat, 13 Jun 2015 16:25:42 +0000 (16:25 +0000)]
Use PR_SET_PTRACER only if defined
This feature has been introduced in Linux 3.4,
older kernels do have prctl(2) but know
PR_SET_PTRACER not.
João Matos [Sat, 13 Jun 2015 11:31:38 +0000 (12:31 +0100)]
Merge pull request #1872 from saper/channeldisp_fix
[WIP] Fix tests breaking due to network ports
Marcin Cieslak [Sat, 13 Jun 2015 11:02:42 +0000 (11:02 +0000)]
[tests] Use LocalEphemeralEndPoint in HttpWebRequestTest
Marcin Cieslak [Sat, 13 Jun 2015 09:55:25 +0000 (09:55 +0000)]
[tests] fix System.UriFormatException
Follow-up to
05a1144d4d52389790c856a6ab676764925f68f7
Marek Habersack [Sat, 13 Jun 2015 06:31:13 +0000 (08:31 +0200)]
[runtime] Fix a typo, should be HAVE_PRCTL
Zoltan Varga [Sat, 13 Jun 2015 04:20:20 +0000 (00:20 -0400)]
[runtime] Make sure the interfaces returned by Type:GetInterfaces () are in the consistent order. Fixes #31020.
Zoltan Varga [Sat, 13 Jun 2015 03:49:29 +0000 (23:49 -0400)]
Fix a warning.
Zoltan Varga [Sat, 13 Jun 2015 03:48:09 +0000 (23:48 -0400)]
[runtime] Fix support for MONO_UNWIND_LOOKUP_ACTUAL_METHOD in mono_stack_walk_no_il ().
Zoltan Varga [Fri, 12 Jun 2015 23:12:11 +0000 (19:12 -0400)]
Merge pull request #1871 from saper/EADDRINUSE
[tests] Avoid "Address already in use"
Marcin Cieslak [Fri, 12 Jun 2015 09:27:03 +0000 (09:27 +0000)]
[tests] Avoid "Address already in use"
Few tests using networking seem to fail due to
"Address already in use"
error that may be caused by opening listening
port too fast - because of some tests running
in parallel or because 2MSL TIME_WAIT period.
Marek Habersack [Fri, 12 Jun 2015 21:51:12 +0000 (23:51 +0200)]
[Linux] Set permission for gdb to attach
Most modern Linux distributions limit the ptrace scope to allow
attaching only to the direct child processes for security reasons. The
user on such machine has to modify sysctl in order to allow non-root
processes to attach to arbitrary processes, which opens up a potential
security issue. The alternative is what's implemented here - when we
crash and ask gdb to dump the stack we can bless the gdb process and allow
it to attach to our process using prctl(2)
Zoltan Varga [Fri, 12 Jun 2015 17:31:23 +0000 (13:31 -0400)]
[arm] Increase the number of stack args to 10 in the dyn call code. Fixes #31060.
Marcos Henrich [Tue, 9 Jun 2015 16:01:22 +0000 (17:01 +0100)]
[System] Made ProcessTest.Modules more verbose.
When Process.Modules fails it will now print the list of assemblies it
looked into.
Alex Rønne Petersen [Thu, 11 Jun 2015 21:24:26 +0000 (23:24 +0200)]
Merge pull request #1868 from BillSeurer/ppc-floats
[ppc] Basic powerpc64 little endian enablement
Rodrigo Kumpera [Thu, 11 Jun 2015 20:25:55 +0000 (16:25 -0400)]
[eglib] Ensures that home and user name always have a non-null value.
João Matos [Thu, 11 Jun 2015 17:18:15 +0000 (18:18 +0100)]
[System.IO.Compression] Implement support for custom entry name encoding when writing Zip files.
When you write to archive files and entryNameEncoding is set to a value other than null, the specified entryNameEncoding is used to encode the entry names into bytes. The language encoding flag (in the general-purpose bit flag of the local file header) is set only when the specified encoding is a UTF-8 encoding.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=30972.
João Matos [Thu, 11 Jun 2015 17:16:26 +0000 (18:16 +0100)]
[SharpCompress] Add support for custom entry text encoding in Zip writer.
Miguel de Icaza [Thu, 11 Jun 2015 16:47:41 +0000 (09:47 -0700)]
[Lucene] Replace the large 66M dependency to a 4M dependency with the subset that we use
Bill Seurer [Thu, 4 Jun 2015 16:40:27 +0000 (11:40 -0500)]
[ppc] Some additional basic ppc64 enablement
Bill Seurer [Wed, 3 Jun 2015 14:37:12 +0000 (09:37 -0500)]
[ppc] Fix chkfinite for little endian
Bill Seurer [Wed, 3 Jun 2015 14:26:28 +0000 (09:26 -0500)]
[ppc] Fix floating point issue for little endian.
João Matos [Thu, 11 Jun 2015 12:57:38 +0000 (13:57 +0100)]
Merge pull request #1867 from saper/ucontext_x86
Missing <ucontext.h> for x86
Marcin Cieslak [Thu, 11 Jun 2015 12:53:21 +0000 (12:53 +0000)]
Missing <ucontext.h> for x86
Obtained from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198404
João Matos [Thu, 11 Jun 2015 12:45:07 +0000 (13:45 +0100)]
Merge pull request #1866 from saper/libc7
Use libc.so.7 for FreeBSD
João Matos [Thu, 11 Jun 2015 12:29:48 +0000 (13:29 +0100)]
Merge pull request #1865 from saper/shellredir
Use Bourne shell redirect 2>&1
Romain Tartière [Sun, 7 Jun 2015 22:31:36 +0000 (22:31 +0000)]
Use libc.so.7 for FreeBSD
/usr/lib/libc.so is now an ld script
and to a symbolic link to the
libc.so.7 library.
Obtained from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179899
Romain Tartière [Sun, 7 Jun 2015 22:38:07 +0000 (22:38 +0000)]
Use Bourne shell redirect 2>&1
Do not assume our shell is C-shell
compatible.
Obtained from: https://svnweb.freebsd.org/ports?view=revision&revision=324730
João Matos [Thu, 11 Jun 2015 12:20:36 +0000 (13:20 +0100)]
Merge pull request #1864 from saper/procbyid
FreeBSD: sysctl() to get process information
Marcin Cieslak [Thu, 11 Jun 2015 12:11:43 +0000 (12:11 +0000)]
FreeBSD: sysctl() to get process information
Use normal sysctl(3) interface (just like
Mac OS X), the OpenBSD way does not seem to work.
João Matos [Thu, 11 Jun 2015 11:37:48 +0000 (12:37 +0100)]
Merge pull request #1863 from saper/sysctlfreebsd
Use sysctl and <link.h> interface for FreeBSD
Marek Safar [Thu, 11 Jun 2015 09:27:43 +0000 (11:27 +0200)]
[system] Clear content length when redirecting to get request. Fixes #30604
Marcin Cieslak [Thu, 11 Jun 2015 07:52:18 +0000 (07:52 +0000)]
Use sysctl and <link.h> interface for FreeBSD
Zoltan Varga [Thu, 11 Jun 2015 01:13:53 +0000 (21:13 -0400)]
[aot] Remove some dead code.
Zoltan Varga [Thu, 11 Jun 2015 01:12:04 +0000 (21:12 -0400)]
[aot] Refactor the initialization of aot methods into a separate function.
Zoltan Varga [Thu, 11 Jun 2015 00:44:37 +0000 (20:44 -0400)]
[aot] Remove unused MONO_OPT_SHARED support.
Zoltan Varga [Wed, 10 Jun 2015 20:29:51 +0000 (16:29 -0400)]
[runtime] Work around an ios9 problem where dlopen() cant' find system libraries specified without paths.
Marek Safar [Wed, 10 Jun 2015 19:21:57 +0000 (21:21 +0200)]
[system.net.http] Add special handling for authentication with content (requires content resend) and disabled buffering. Fixes #30869
This is not supported by public HttpWebRequest but HttpClient is running in this mode.
Zoltan Varga [Wed, 10 Jun 2015 15:23:09 +0000 (11:23 -0400)]
[arm] Fix crashes on ios9 by using 16kb trampoline pages.
Marek Safar [Tue, 9 Jun 2015 19:51:35 +0000 (21:51 +0200)]
[system.xaml] Add ValueSerializerAttribute type forwarder
Zoltan Varga [Tue, 9 Jun 2015 19:47:48 +0000 (15:47 -0400)]
[runtime] Print out some information before asserting when a loader error is not handled.
Zoltan Varga [Tue, 9 Jun 2015 18:11:18 +0000 (14:11 -0400)]
[jit] Avoid using class init trampolines in AOT mode, the overhead of plt entries is comparable to the overhead of the inline implementation.
Marcos Henrich [Tue, 9 Jun 2015 15:45:20 +0000 (16:45 +0100)]
[runtime] MonoClass are now cached.
Marek Habersack [Tue, 9 Jun 2015 13:58:23 +0000 (15:58 +0200)]
Merge pull request #1812 from masterofjellyfish/mvc5-missingmethods
[System.Web] Added missing methods for default VS2013 MVC template
Matthias Bogad [Sun, 17 May 2015 17:54:05 +0000 (19:54 +0200)]
[System.Web] ASP.Net MVC5 missing methods fixed
I have added System.HttpApplication.RegisterModule(), the missing two properties of the System.Web.Routing.RouteCollection as well as the corresponding property in the HttpRuntimeSection to completely turn this off. Microsofts MIT-Licensed counterparts of the official System.Web assembly from github [0] were used as a reference. It is kind-of bolted on, but should be good enough until the whole open-sourced System.Web is incorporated. It should at least get the default MVC5 Template from Visual Studio 2013 up and running, once the async pipeline for the owin stuff is fixed.
[0]: http://github.com/Microsoft/referencesource/
Additionally, the MissingMethodException "get_InClientBuildManager" in System.Web.Hosting.HostingEnvironment was fixed.
In this commit, the following bugs were fixed:
https://bugzilla.xamarin.com/show_bug.cgi?id=21810
https://bugzilla.xamarin.com/show_bug.cgi?id=16475
Zoltan Varga [Mon, 8 Jun 2015 19:25:34 +0000 (15:25 -0400)]
[jit] Implement full-aot support for virtual delegate invokes on x86.
Zoltan Varga [Mon, 8 Jun 2015 17:41:02 +0000 (13:41 -0400)]
[aot] Avoid aot-ing partially sharable icalls.
Zoltan Varga [Mon, 8 Jun 2015 17:31:38 +0000 (13:31 -0400)]
[aot] Fix full-aot support for Comparer instances instantiated with enums.
Zoltan Varga [Mon, 8 Jun 2015 17:22:20 +0000 (13:22 -0400)]
[jit] Implement support for UnsafeMov in gshared code.
Zoltan Varga [Mon, 8 Jun 2015 17:17:59 +0000 (13:17 -0400)]
[aot] Add partial shared instances called by partial shared instances.
Zoltan Varga [Mon, 8 Jun 2015 17:16:09 +0000 (13:16 -0400)]
[jit] Represent fully-shared method instances the same way as partially shared instances instead of representing them using the generic method declaration.
Zoltan Varga [Mon, 8 Jun 2015 15:18:39 +0000 (11:18 -0400)]
[aot] Use normal methods instead of their remoting-invoke-with-check wrappers in full-aot mode.
Zoltan Varga [Sun, 7 Jun 2015 23:48:44 +0000 (19:48 -0400)]
[jit] Implement full-aot support for virtual delegate invokes on amd64.
Marek Safar [Mon, 8 Jun 2015 15:38:49 +0000 (17:38 +0200)]
[system.net.http] Apply custom to string formating to parsed values. Fixes #30897