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.
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.
Marcos Henrich [Tue, 9 Jun 2015 15:45:20 +0000 (16:45 +0100)]
[runtime] MonoClass are now cached.
Marcos Henrich [Thu, 14 May 2015 16:23:57 +0000 (17:23 +0100)]
[System] Test ProcessModule managed assemblies.
Marcos Henrich [Thu, 14 May 2015 16:21:31 +0000 (17:21 +0100)]
[runtime] Managed ProcessModule now has versions.
Marcos Henrich [Tue, 12 May 2015 12:52:13 +0000 (13:52 +0100)]
[runtime] Process.Modules with managed assemblies.
System.Diagnostics.Process.Modules now also returns managed assemblies.
With this change it is now possible to use Process.Modules to retrieve
the place in memory of any loaded assembly.
ProcessModules relative to a managed assembly have a FileName that
starts with "[In Memory]".
Marek Safar [Mon, 8 Jun 2015 12:22:07 +0000 (14:22 +0200)]
[windowsbase] Add ValueSerializerAttribute type forwarder. Fixes #30448
Rodrigo Kumpera [Mon, 8 Jun 2015 11:57:43 +0000 (06:57 -0500)]
Merge pull request #1861 from saper/home-override
Override Environment.SpecialFolder.Personal with $HOME
Marek Safar [Mon, 8 Jun 2015 11:27:36 +0000 (13:27 +0200)]
[system] Don't dispose exposed redirected streams. Fixes #30868
Alex Rønne Petersen [Mon, 8 Jun 2015 00:42:13 +0000 (02:42 +0200)]
Merge pull request #1859 from saper/unit-tests-static
[runtime] Use libtool convenience library for unit tests. Fixes #21520.
Jan Beich [Sun, 7 Jun 2015 22:07:52 +0000 (22:07 +0000)]
Override Environment.SpecialFolder.Personal with $HOME
Any port that writes to Environment.SpecialFolder.Personal during build
or when running tests may end up with files outside of stage area that
aren't cleaned up by the ports framework. The issue lies with Mono
looking in /etc/passwd first and only if no entry found there in HOME.
Patch based on discussion in
https://github.com/mono/mono/pull/371
Obtained from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193426
Marcin Cieslak [Sun, 7 Jun 2015 21:34:14 +0000 (21:34 +0000)]
[runtime] Use libtool convenience library for unit tests. Fixes #21520.
In order to resolve interdependencies between
static libraries we should create a temporary
throw-away ("convenience") library via libtool.
Should unbreak unit tests on Linux
Zoltan Varga [Sat, 6 Jun 2015 15:44:23 +0000 (11:44 -0400)]
[runtime] Fix mono_method_get_name () so it prints out type variables using their name when used inside the runtime.
Zoltan Varga [Sat, 6 Jun 2015 15:09:56 +0000 (11:09 -0400)]
[aot] Add a corresponding instance of EnumEqualityComparer for EqualityComparer instances instantiated with enums.
Zoltan Varga [Fri, 5 Jun 2015 22:14:31 +0000 (18:14 -0400)]
Disable a test which can allocate and commit 4gb of memory on 64 bit platforms.
Rodrigo Kumpera [Fri, 5 Jun 2015 19:32:08 +0000 (15:32 -0400)]
[coop] When inserting safepoints at EH handlers, make sure they don't end up between start_handler and get_ex_obj
The problem is that those two ops are required to be one after the other as there's an implicit register dependency between them.
OP_SAFEPOINT would clobber that register (RAX on amd64) and cause all sorts of issues.
Alex Rønne Petersen [Fri, 5 Jun 2015 19:22:52 +0000 (21:22 +0200)]
Merge pull request #1856 from alexrp/profiler-improvements
Profiler improvements
Marek Safar [Fri, 5 Jun 2015 14:46:52 +0000 (16:46 +0200)]
[mcs] Silently ignore invalid assembly name in InternalsVisibleTo. Fixes #30679
Ankit Jain [Fri, 5 Jun 2015 14:11:54 +0000 (19:41 +0530)]
Merge pull request #1857 from slluis/fix-assembly-resolver
[MSBuild] Fix assembly resolution issue
Lluis Sanchez [Fri, 5 Jun 2015 12:48:49 +0000 (14:48 +0200)]
[MSBuild] Fix minor assembly resolution issue
When getting the assembly name of a file, don't cache it if the
file has just been deleted.
Lluis Sanchez [Fri, 5 Jun 2015 10:00:34 +0000 (12:00 +0200)]
[MSBuild] Fix assembly resolution issue
The ResolveAssemblyReference task class keeps a reference to an
instance of AssemblyResolver, and AssemblyResolver keeps a cache
of assembly names, indexed by file name. The problem is that
the cache doesn't take into account that files can change between
builds.
For example, if a referenced assembly doesn't exist, the cache
will store that the file doesn't have an assembly name. If after
the build the file is created and a new build operation is started,
the cache will still return that the file doesn't have a name.
This is not a problem when running xbuild from the command line,
since every build starts a new process, but MonoDevelop uses
the MSBuild API to load and build projects, and doesn't start
a new process every time, so the cache is never cleared.
The solution is to keep the last write timestamp in the cache,
so that it can check if the file changed before returning the
cached name. It also needs to do a better handling of non existant
files.
Zoltan Varga [Thu, 4 Jun 2015 20:45:09 +0000 (16:45 -0400)]
[sdb] Avoid marking seq points as nonempty-stack if they have a sym seq point. Fix the linking of seq points when an endfinally instruction is in a separate bblock. Fixes #30617.
Rodrigo Kumpera [Thu, 4 Jun 2015 20:16:26 +0000 (15:16 -0500)]
Merge pull request #1849 from esdrubal/rfix
[corlib] MonoAssembly.LoadWithPartialNameInternal.
Alex Rønne Petersen [Thu, 4 Jun 2015 19:09:02 +0000 (21:09 +0200)]
[profiler] Add myself as author.
Alex Rønne Petersen [Thu, 4 Jun 2015 19:05:06 +0000 (21:05 +0200)]
[profiler] Start jotting down some format oddities we should eventually fix.
Alex Rønne Petersen [Thu, 4 Jun 2015 18:54:51 +0000 (20:54 +0200)]
[profiler] Fix missing TYPE_JIT events for alloc/exception/monitor backtraces.
Alex Rønne Petersen [Mon, 1 Jun 2015 11:01:39 +0000 (13:01 +0200)]
[profiler] Disable the ELF code for now.
This causes strange crashes on some Linux systems. We don't particularly need
the additional information to get useful backtraces (we can just fall back to
`dladdr`) so disable it for now.
Alex Rønne Petersen [Mon, 1 Jun 2015 11:09:06 +0000 (13:09 +0200)]
[profiler] Process coverage info regardless of call depth restriction.
Only enter/leave events should be subject to this.
Alex Rønne Petersen [Mon, 1 Jun 2015 10:46:38 +0000 (12:46 +0200)]
[profiler] Remove outdated compilation instructions.
Zoltan Varga [Thu, 4 Jun 2015 19:10:50 +0000 (15:10 -0400)]
[llvm] Decrease the basic block size cutoff to 3000 instructions, 5000 still leads to large slowdowns in llc on armv7 (TypeTest.GetProperties_Flags ()).
Zoltan Varga [Thu, 4 Jun 2015 16:46:22 +0000 (12:46 -0400)]
[arm] Implement support for nullable arguments in the dyncall code. Fixes #29491.
Zoltan Varga [Thu, 4 Jun 2015 02:45:53 +0000 (22:45 -0400)]
[aot] Enable the direct emission of llvm object files in asmonly mode if the llvm output file ends with .o.
Zoltan Varga [Wed, 3 Jun 2015 18:40:24 +0000 (14:40 -0400)]
[jit] Emulate OP_RREM if OP_FREM is emulated. Fixes #30698.
Zoltan Varga [Wed, 3 Jun 2015 17:52:46 +0000 (13:52 -0400)]
[sdb] Fix interface/virtual calls to valuetype methods.
João Matos [Wed, 3 Jun 2015 17:41:26 +0000 (18:41 +0100)]
Merge pull request #1854 from svedm/master
Fix typo
Svetoslav [Wed, 3 Jun 2015 17:20:18 +0000 (22:20 +0500)]
Fix typo
Marek Safar [Wed, 3 Jun 2015 16:07:39 +0000 (18:07 +0200)]
Merge pull request #1851 from esdrubal/mmf
MemoryMappedFile improvements
Marcos Henrich [Wed, 3 Jun 2015 14:17:43 +0000 (15:17 +0100)]
[corlib] Referencesource UnmanagedMemoryAccessor.
Corlib now uses referencesource System.IO.UnmanagedMemoryAccessor.
Marcos Henrich [Wed, 3 Jun 2015 14:10:15 +0000 (15:10 +0100)]
[System.Core] Implemented PointerOffset
Implemented MemoryMappedViewAccessor.PointerOffset and
MemoryMappedViewStream.PointerOffset.
Marcos Henrich [Wed, 3 Jun 2015 14:06:38 +0000 (15:06 +0100)]
[System.Core] Test MemoryMappedFile views.
MemoryMappedViewAccessor and MemoryMappedViewStream are now tested with
offsets.
Zoltan Varga [Wed, 3 Jun 2015 12:49:40 +0000 (08:49 -0400)]
[bcl] Fix a sys.drawing test so it doesn't fail on misconfigured systems.
Marek Safar [Wed, 3 Jun 2015 10:01:24 +0000 (12:01 +0200)]
[mcs] Recursivelly check for left-hand side of an assignment of a null propagating operator. Fixes #30695
Jo Shields [Wed, 3 Jun 2015 07:01:24 +0000 (08:01 +0100)]
Fix "make dist" for mono/utils/mono-complex.h
Alexis Christoforides [Tue, 2 Jun 2015 23:10:48 +0000 (19:10 -0400)]
[System.IO.KeventWatcher] Fix handling some cases where an item is moved out of the watched path.
If a file or directory are moved out of the watcher's path they are removed from the index, but they might still have events in the kevent() changelist. This would sometimes cause an exception.
Rodrigo Kumpera [Tue, 2 Jun 2015 19:46:42 +0000 (14:46 -0500)]
[jit] Fix the coop amd64 backend.
Marek Safar [Tue, 2 Jun 2015 19:34:53 +0000 (21:34 +0200)]
Merge pull request #1847 from alexanderkyte/left_shift_dynamic
[runtime] Emit the necessary left shift anding in the LambdaCompiler
Alexander Kyte [Mon, 1 Jun 2015 18:14:00 +0000 (18:14 +0000)]
[runtime] Emit the necessary left shift anding in the LambdaCompiler
We were observing dtest-006.exe test failing on armhf. This test
checks that a right shift with a negative shift amount and a
dynamic base is shifted by the right amount.
We were failing it because we were excluding the step that we
do in regular code generation, which is to do a binary and of the shift
amount so it behaves like we are shifting by the original shift
amount modulo 32. The C# spec defines left shift like so.
This commit adds that to the LambdaCompiler.
Marek Safar [Tue, 2 Jun 2015 18:36:13 +0000 (20:36 +0200)]
[mcs] Apply explicit property param target to correct parameter index. Fixes #30587
Marek Safar [Tue, 2 Jun 2015 15:53:54 +0000 (17:53 +0200)]
[mcs] Add special HostProtection handling to deletes
Marcos Henrich [Tue, 2 Jun 2015 13:52:02 +0000 (14:52 +0100)]
[corlib] MonoAssembly.LoadWithPartialNameInternal.
Implemented MonoAssembly.LoadWithPartialNameInternal.
Implementation is not 100% correct without handling stackMark properly.
Improving this would require the generous amount of work of adding
StackCrawlMark support to the runtime.
Fixes #27103.
Alex Rønne Petersen [Tue, 2 Jun 2015 11:59:05 +0000 (13:59 +0200)]
Merge pull request #1846 from BillSeurer/master
Add tailcall opcode for powerpc64le
João Matos [Tue, 2 Jun 2015 11:53:12 +0000 (12:53 +0100)]
Merge pull request #1848 from tritao/complex_math
Cross-platform complex math / MS Threadpool portability
Rolf Bjarne Kvinge [Tue, 2 Jun 2015 10:42:31 +0000 (12:42 +0200)]
[corlib] Fix test after
5cee52916.
Joao Matos [Mon, 1 Jun 2015 09:48:22 +0000 (10:48 +0100)]
[ms-threadpool] Replaced complex math with portable Mono APIs.
Joao Matos [Mon, 1 Jun 2015 09:47:30 +0000 (10:47 +0100)]
[runtime] Implemented cross-platform complex math code.
Marek Safar [Tue, 2 Jun 2015 06:51:06 +0000 (08:51 +0200)]
Bump ikvm & ikdasm
Alexis Christoforides [Tue, 2 Jun 2015 03:06:31 +0000 (23:06 -0400)]
[System.IO.KeventWatcher] Disable the watcher when the root directory is deleted. Fixes #30043
This matches MS.NET behavior.
BrzVlad [Mon, 1 Jun 2015 23:41:02 +0000 (16:41 -0700)]
Merge pull request #1841 from BrzVlad/fix-managed-alloc
Fix managed allocator
Zoltan Varga [Mon, 1 Jun 2015 22:42:32 +0000 (18:42 -0400)]
[amd64] Fully initialize the the MonoContext used by the generic trampoline code.
Zoltan Varga [Mon, 1 Jun 2015 21:32:18 +0000 (17:32 -0400)]
[corlib] Make corlib use the v4 runtime version in mobile profiles.
Zoltan Varga [Mon, 1 Jun 2015 20:42:35 +0000 (16:42 -0400)]
[jit] Fix the hashing/equals check for MONO_PATCH_INFO_JIT_ICALL_ADDR.
Vlad Brezae [Thu, 28 May 2015 23:18:51 +0000 (16:18 -0700)]
[sgen] The normal managed allocator receives only one argument
Changed in
a83f965db02244e83a93ee186a13b1461adeafa5
Zoltan Varga [Mon, 1 Jun 2015 19:24:22 +0000 (15:24 -0400)]
Remove more CAS code.
Zoltan Varga [Mon, 1 Jun 2015 19:08:02 +0000 (15:08 -0400)]
Remove more CAS code.
Sebastien Pouliot [Mon, 1 Jun 2015 19:20:18 +0000 (15:20 -0400)]
[corlib] Xamarin.Mac to continue default to the OS default codepage
XM 2.0 was the first version to ship the mobile (w/unified) and it used
the OS default codepage.
The previous, system mono, profile was already using the OS default
codepage so it make sense for XM to be consistent across profiles (
including the 4.5 subset)
Rodrigo Kumpera [Mon, 1 Jun 2015 18:37:14 +0000 (14:37 -0400)]
[BCL] Partial revert of
b83af940ff298f432952562e1fb83726a6958e11 to use the right reference sources.
Rodrigo Kumpera [Mon, 1 Jun 2015 18:17:33 +0000 (14:17 -0400)]
[BCL] Fix the mobile_static profile.
Zoltan Varga [Mon, 1 Jun 2015 18:27:03 +0000 (14:27 -0400)]
[aot] Fix thumb support after the separate llvm changes. Fixes #30472.
Zoltan Varga [Mon, 1 Jun 2015 18:21:22 +0000 (14:21 -0400)]
[runtime] Fix the windows build.
Bill Seurer [Mon, 1 Jun 2015 18:20:01 +0000 (13:20 -0500)]
Add tailcall opcode for powerpc64le
Zoltan Varga [Mon, 1 Jun 2015 16:01:05 +0000 (12:01 -0400)]
[runtime] Update object offsets.
Zoltan Varga [Mon, 1 Jun 2015 15:40:24 +0000 (11:40 -0400)]
Fix make dist.
Marek Safar [Mon, 1 Jun 2015 14:51:48 +0000 (16:51 +0200)]
[corlib] Update failing test
Zoltan Varga [Mon, 1 Jun 2015 14:34:33 +0000 (10:34 -0400)]
[amd64] Add fregs to MonoContext, only used by the trampoline code currently.
Marek Safar [Mon, 1 Jun 2015 14:25:11 +0000 (16:25 +0200)]
Merge pull request #1845 from esdrubal/httpfix
HttpListenerRequest Uri is now unescaped.
Marek Safar [Mon, 1 Jun 2015 13:47:42 +0000 (15:47 +0200)]
Bump reference sources
Marek Safar [Mon, 1 Jun 2015 13:46:38 +0000 (15:46 +0200)]
[System.Runtime.Serialization] Update public api
Marcos Henrich [Mon, 1 Jun 2015 10:36:02 +0000 (11:36 +0100)]
[System] HttpListenerRequest Uri is now unescaped.
Fixes #29927
Marcos Henrich [Mon, 1 Jun 2015 12:50:51 +0000 (13:50 +0100)]
[System] Added HttpListenerRequestUriBuilder
Referencesource HttpListenerRequestUriBuilder can now be used.
Marek Safar [Mon, 1 Jun 2015 12:52:11 +0000 (14:52 +0200)]
[ilasm] Add support for undocumented modopt/modreq using primitive types
Marcos Henrich [Mon, 1 Jun 2015 10:30:33 +0000 (11:30 +0100)]
[System] Test HttpRequest Uri unescaping
Covers #29927
Zoltan Varga [Sun, 31 May 2015 16:43:21 +0000 (12:43 -0400)]
[runtime] Fix the locking around the assembly->tokens table. Fixes #30551.
Zoltan Varga [Sun, 31 May 2015 01:04:28 +0000 (21:04 -0400)]
[amd64] Make the generic trampolines fill out a MonoContext structure on the stack, and put its address into MonoLMFTramp.
Zoltan Varga [Sun, 31 May 2015 00:42:19 +0000 (20:42 -0400)]
[amd64] Compute frame size precisely for the generic trampoline.
Zoltan Varga [Sat, 30 May 2015 22:48:46 +0000 (18:48 -0400)]
[amd64] Simplify the throw trampolines by constructing and passing a MonoContext instead of a reg array.
Zoltan Varga [Sat, 30 May 2015 15:18:33 +0000 (11:18 -0400)]
Revert "[amd64] Simplify the throw trampolines by constructing and passing a MonoContext instead of a reg array."
This reverts commit
c409bc9311ba44449123cf355df854cef7390033.
Revert this as it breaks on linux.
Zoltan Varga [Sat, 30 May 2015 15:18:07 +0000 (11:18 -0400)]
Revert "[amd64] Add back a dummy argument to the throw trampolines to fix unaligned stack problems."
This reverts commit
d262c343d13f2a1c6e586663bca86f8e207797aa.
Revert this as it breaks on linux.
Zoltan Varga [Sat, 30 May 2015 14:51:24 +0000 (10:51 -0400)]
[amd64] Add back a dummy argument to the throw trampolines to fix unaligned stack problems.
Marek Safar [Sat, 30 May 2015 08:11:05 +0000 (10:11 +0200)]
Merge pull request #1816 from esdrubal/getdaylight
[corlib] Fixed TimeZoneInfo.GetDaylightChanges.
Zoltan Varga [Sat, 30 May 2015 01:13:23 +0000 (21:13 -0400)]
[amd64] Simplify the throw trampolines by constructing and passing a MonoContext instead of a reg array.
Zoltan Varga [Sat, 30 May 2015 01:01:38 +0000 (21:01 -0400)]
[runtime] Update object offsets.
Zoltan Varga [Sat, 30 May 2015 01:00:11 +0000 (21:00 -0400)]
[amd64] Use a register array in MonoContext instead of named fields, this simplifies a lot of code.
Zoltan Varga [Fri, 29 May 2015 23:15:55 +0000 (19:15 -0400)]
[llvm] Use the generic IL code for generic class inits.
Zoltan Varga [Fri, 29 May 2015 23:07:03 +0000 (19:07 -0400)]
[jit] Refactor the calls to class init trampolines into a common function.
Zoltan Varga [Fri, 29 May 2015 23:05:03 +0000 (19:05 -0400)]
[amd64] Make generic_class_init as clob:c.
Zoltan Varga [Fri, 29 May 2015 18:21:27 +0000 (14:21 -0400)]
[sdb] Fix reading/writing locals when not all of the them have associated debug info. Fixes #30529.
Zoltan Varga [Fri, 29 May 2015 17:49:47 +0000 (13:49 -0400)]
[jit] Remove generic class init trampolines, all architectures either use OP_GENERIC_CLASS_INIT trampoline or an IL fallback.
Zoltan Varga [Fri, 29 May 2015 17:21:43 +0000 (13:21 -0400)]
[jit] Emit a fallback IL version of generic class initialization.
Miguel de Icaza [Tue, 19 May 2015 21:31:30 +0000 (17:31 -0400)]
[Version] I am sick of the mono --version showing '((detached/XX)', fixed it
Rodrigo Kumpera [Fri, 29 May 2015 16:21:23 +0000 (11:21 -0500)]
Merge pull request #1817 from alexanderkyte/bug30085
[runtime] Fix resolution of a type with an incorrect assembly name.