mono.git
7 years agoMerge pull request #3283 from esdrubal/mono-sym-docs
Marcos Henrich [Tue, 19 Jul 2016 13:47:33 +0000 (14:47 +0100)]
Merge pull request #3283 from esdrubal/mono-sym-docs

Update mono-symbolicate README and man

7 years agoMerge pull request #3293 from esdrubal/mono-sym-fixes
Marcos Henrich [Tue, 19 Jul 2016 13:43:03 +0000 (14:43 +0100)]
Merge pull request #3293 from esdrubal/mono-sym-fixes

Mono sym fixes

7 years ago[tests] Make some tests work with full-aot.
Zoltan Varga [Tue, 19 Jul 2016 11:58:56 +0000 (07:58 -0400)]
[tests] Make some tests work with full-aot.

7 years agoUpdated mono-symbolicate man.
Marcos Henrich [Thu, 14 Jul 2016 11:39:19 +0000 (12:39 +0100)]
Updated mono-symbolicate man.

7 years agoUpdated mono-symbolicate README
Marcos Henrich [Thu, 14 Jul 2016 09:28:53 +0000 (10:28 +0100)]
Updated mono-symbolicate README

Updated mono-symbolicate usage.

Added practical example.

Renamed mono-symbolicate README to README.md

7 years ago[mono-symbolicate] Fixes Directory Exists/Delete race condition.
Marcos Henrich [Tue, 19 Jul 2016 09:40:31 +0000 (10:40 +0100)]
[mono-symbolicate] Fixes Directory Exists/Delete race condition.

7 years ago[mono-symbolicate] Add mscorlib stacktrace to tests
Marcos Henrich [Mon, 18 Jul 2016 14:05:45 +0000 (15:05 +0100)]
[mono-symbolicate] Add mscorlib stacktrace to tests

BCL symbols are now added to tests symbol directories.

We now test a stacktrace with stackframes on mscorlib.

7 years ago[mono-symbolicate] Fixed options/command logic.
Marcos Henrich [Mon, 18 Jul 2016 14:00:21 +0000 (15:00 +0100)]
[mono-symbolicate] Fixed options/command logic.

Options are now parsed before comand store-symbols.

7 years agoMerge pull request #3297 from lateralusX/jlorenss/win-x64-fix-pinvoke-failures
Johan Lorensson [Tue, 19 Jul 2016 08:26:06 +0000 (10:26 +0200)]
Merge pull request #3297 from lateralusX/jlorenss/win-x64-fix-pinvoke-failures

Fixing 4 failing pinvoke tests in runtime test suite on windows x64.

7 years agoFixing 4 failing pinvoke tests in runtime test suite on windows x64.
lateralusX [Tue, 19 Jul 2016 00:40:33 +0000 (02:40 +0200)]
Fixing 4 failing pinvoke tests in runtime test suite on windows x64.

Fix for the following failing pinvoke tests in runtime tests suite on win x64:

* pinvoke11.exe
* winx64structs.exe
* pinvoke_ppcs.exe
* pinvoke_ppcc.exe

7 years agoMerge pull request #3092 from alexanderkyte/mobile_static_fix_runtime_tests
Alexander Kyte [Mon, 18 Jul 2016 23:38:50 +0000 (19:38 -0400)]
Merge pull request #3092 from alexanderkyte/mobile_static_fix_runtime_tests

[mobile_static] Get mono/tests running on mobile_static

7 years agoMerge pull request #3295 from mhutch/fix-pcl-build
Alexander Köplinger [Mon, 18 Jul 2016 22:51:48 +0000 (00:51 +0200)]
Merge pull request #3295 from mhutch/fix-pcl-build

[xbuild] Fix PCL build

7 years ago[llvm] Add mono_llvm_set_call_notail () helper function, not yet used.
Zoltan Varga [Mon, 18 Jul 2016 22:41:19 +0000 (18:41 -0400)]
[llvm] Add mono_llvm_set_call_notail () helper function, not yet used.

7 years ago[llvm] Mark as the OBJC_METHOD_VAR_NAME/OBJC_SELECTOR_REFERENCES globals as used...
Zoltan Varga [Mon, 18 Jul 2016 22:40:58 +0000 (18:40 -0400)]
[llvm] Mark as the OBJC_METHOD_VAR_NAME/OBJC_SELECTOR_REFERENCES globals as used to prevent llvm from optimizing them away.

7 years ago[llvm] Disable tail calls when using llvm 3.9.
Zoltan Varga [Mon, 18 Jul 2016 22:37:45 +0000 (18:37 -0400)]
[llvm] Disable tail calls when using llvm 3.9.

7 years agoFix tarball package build broken by 8f130a6e17c3729f32c3bf930941ab6587f6fe38
Alexander Köplinger [Mon, 18 Jul 2016 20:53:44 +0000 (22:53 +0200)]
Fix tarball package build broken by 8f130a6e17c3729f32c3bf930941ab6587f6fe38

- Microsoft.WebApplication.targets was inadvertently removed.
- The new Microsoft.NuGet.Build.Tasks assembly sources were not getting dist'ed. Adding to DIST_ONLY_SUBDIRS fixes this for now,
  though we can maybe add it to SUBDIRS instead (but neither me nor Marek know for what exactly that's used)

7 years ago[xbuild] Fix %Identity issues
Mikayla Hutchinson [Mon, 18 Jul 2016 20:39:52 +0000 (16:39 -0400)]
[xbuild] Fix %Identity issues

Identity metadata is the exact, unmodified ItemSpec.

7 years ago[xbuild] Update PCL targets
Mikayla Hutchinson [Mon, 18 Jul 2016 19:20:56 +0000 (15:20 -0400)]
[xbuild] Update PCL targets

7 years ago[xbuild] Framework path should have trailing slash
Mikayla Hutchinson [Mon, 18 Jul 2016 18:47:59 +0000 (14:47 -0400)]
[xbuild] Framework path should have trailing slash

7 years agoMerge pull request #3280 from BrzVlad/fix-stw-stack-start
Vlad Brezae [Mon, 18 Jul 2016 20:45:31 +0000 (23:45 +0300)]
Merge pull request #3280 from BrzVlad/fix-stw-stack-start

[sgen] Initialize stack_start to 0 when a thread is signaled for stw

7 years ago[llvm] Add a workaround for 3.9 based llvm versions using 'x15' as the location of...
Zoltan Varga [Mon, 18 Jul 2016 20:13:08 +0000 (16:13 -0400)]
[llvm] Add a workaround for 3.9 based llvm versions using 'x15' as the location of the rgctx argument on arm64 even through it is reserved.

7 years ago[jit] Save/restore cfg->ip during inlining, so instructions emitted after a failed...
Zoltan Varga [Mon, 18 Jul 2016 20:12:14 +0000 (16:12 -0400)]
[jit] Save/restore cfg->ip during inlining, so instructions emitted after a failed inline have the correct il offset.

7 years agoMerge pull request #3132 from alexanderkyte/libmono_safe_undefined
Alexander Kyte [Mon, 18 Jul 2016 20:04:17 +0000 (16:04 -0400)]
Merge pull request #3132 from alexanderkyte/libmono_safe_undefined

[runtime] Make mini still build when -no-undefined given

7 years ago[runtime] Don't build mobile_static on default preset, don't know which configuration...
Alexander Kyte [Mon, 18 Jul 2016 19:48:56 +0000 (15:48 -0400)]
[runtime] Don't build mobile_static on default preset, don't know which configuration to use

7 years ago[runtime] Disable tests for AOT that require on unsupported runtime features
Alexander Kyte [Fri, 15 Jul 2016 20:37:00 +0000 (16:37 -0400)]
[runtime] Disable tests for AOT that require on unsupported runtime features

7 years ago[runtime] Hardcode preset feature disables
Alexander Kyte [Fri, 15 Jul 2016 16:32:47 +0000 (12:32 -0400)]
[runtime] Hardcode preset feature disables

7 years ago[mobile_static] Move PLATFORM_AOT_SUFFIX into configure.ac
Alexander Kyte [Thu, 14 Jul 2016 21:58:36 +0000 (17:58 -0400)]
[mobile_static] Move PLATFORM_AOT_SUFFIX into configure.ac

7 years ago[mobile_static] AOT libs not aoted by the test runner
Alexander Kyte [Fri, 17 Jun 2016 16:46:25 +0000 (12:46 -0400)]
[mobile_static] AOT libs not aoted by the test runner

7 years ago[mobile_static] Skip all appdomain-related tests
Alexander Kyte [Fri, 17 Jun 2016 16:45:58 +0000 (12:45 -0400)]
[mobile_static] Skip all appdomain-related tests

7 years ago[mobile_static] AOT assemblyresolve for tests
Alexander Kyte [Thu, 16 Jun 2016 23:43:57 +0000 (19:43 -0400)]
[mobile_static] AOT assemblyresolve for tests

7 years ago[mobile_static] Build mono/tests bitcode files in subdirectories to make threadsafe
Alexander Kyte [Thu, 16 Jun 2016 23:06:46 +0000 (19:06 -0400)]
[mobile_static] Build mono/tests bitcode files in subdirectories to make threadsafe

7 years ago[mobile_static] Skip appdomain tests on mobile_static
Alexander Kyte [Thu, 16 Jun 2016 22:58:27 +0000 (18:58 -0400)]
[mobile_static] Skip appdomain tests on mobile_static

7 years ago[mobile_static] Make test runner aot each assembly individually
Alexander Kyte [Thu, 16 Jun 2016 21:38:55 +0000 (17:38 -0400)]
[mobile_static] Make test runner aot each assembly individually

7 years ago[mobile_static] Skip mcs compiler tests for mobile_static
Alexander Kyte [Tue, 7 Jun 2016 19:51:00 +0000 (15:51 -0400)]
[mobile_static] Skip mcs compiler tests for mobile_static

7 years ago[mobile_static] Skip verifying ilasm.exe on mobile_static
Alexander Kyte [Mon, 6 Jun 2016 14:52:19 +0000 (10:52 -0400)]
[mobile_static] Skip verifying ilasm.exe on mobile_static

ILASM.exe has features which a mobile_static runtime will not support.
It is invoked with an external mono when used in the runtime.
We skip it here because otherwise it will fail to verify.

7 years ago[mobile_static] Configure mini fullaot tests to work with mobile_static
Alexander Kyte [Fri, 27 May 2016 19:16:42 +0000 (15:16 -0400)]
[mobile_static] Configure mini fullaot tests to work with mobile_static

7 years ago[mobile_static] Enable Mono.Simd namespace to fix mini tests
Alexander Kyte [Mon, 18 Jul 2016 17:50:29 +0000 (13:50 -0400)]
[mobile_static] Enable Mono.Simd namespace to fix mini tests

7 years ago[mobile_static] Use mobile_static paths in mono/mini tests when necessary
Alexander Kyte [Fri, 27 May 2016 17:56:02 +0000 (13:56 -0400)]
[mobile_static] Use mobile_static paths in mono/mini tests when necessary

7 years ago[mobile_static] Blacklist mono/tests sgen tests for mobile_static
Alexander Kyte [Wed, 1 Jun 2016 18:25:12 +0000 (14:25 -0400)]
[mobile_static] Blacklist mono/tests sgen tests for mobile_static

7 years ago[mobile_static] Pass aot options to mono/tests test runner if applicable
Alexander Kyte [Thu, 16 Jun 2016 16:49:36 +0000 (12:49 -0400)]
[mobile_static] Pass aot options to mono/tests test runner if applicable

7 years ago[mobile_static] AOT the mono/tests test runner when AOTing tests
Alexander Kyte [Fri, 27 May 2016 15:19:11 +0000 (11:19 -0400)]
[mobile_static] AOT the mono/tests test runner when AOTing tests

7 years ago[mobile_static] Make mono/tests runner handle steps necessary for mobile_static
Alexander Kyte [Wed, 1 Jun 2016 18:16:54 +0000 (14:16 -0400)]
[mobile_static] Make mono/tests runner handle steps necessary for mobile_static

7 years ago[mobile_static] Move AOT build / run flags to make accessible in /mono
Alexander Kyte [Thu, 26 May 2016 20:19:58 +0000 (16:19 -0400)]
[mobile_static] Move AOT build / run flags to make accessible in /mono

7 years ago[mobile_static] Don't include Mono.Posix dependency to test driver
Alexander Kyte [Tue, 7 Jun 2016 23:32:52 +0000 (19:32 -0400)]
[mobile_static] Don't include Mono.Posix dependency to test driver

7 years ago[mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not...
Alexander Kyte [Wed, 1 Jun 2016 18:04:33 +0000 (14:04 -0400)]
[mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not available

7 years ago[mobile_static] Blacklist runtime tests for mobile_static profile
Alexander Kyte [Wed, 1 Jun 2016 18:05:15 +0000 (14:05 -0400)]
[mobile_static] Blacklist runtime tests for mobile_static profile

7 years ago[mobile_static] Make preset AOT_RUN_FLAGS and AOT_BUILD_FLAGS available to /mono
Alexander Kyte [Wed, 13 Jul 2016 23:38:00 +0000 (19:38 -0400)]
[mobile_static] Make preset AOT_RUN_FLAGS and AOT_BUILD_FLAGS available to /mono

7 years ago[mobile_static] Set MCS build options for mobile_static to feature gate runner
Alexander Kyte [Wed, 13 Jul 2016 23:36:15 +0000 (19:36 -0400)]
[mobile_static] Set MCS build options for mobile_static to feature gate runner

7 years ago[mobile_static] Ensure the mobile_static profile builds ilasm
Alexander Kyte [Fri, 27 May 2016 16:20:40 +0000 (12:20 -0400)]
[mobile_static] Ensure the mobile_static profile builds ilasm

7 years ago[runtime] Get ilasm.exe compiling with mobile_static
Alexander Kyte [Wed, 13 Jul 2016 20:57:18 +0000 (16:57 -0400)]
[runtime] Get ilasm.exe compiling with mobile_static

7 years ago[llvm] Fix the DISABLE_JIT build.
Zoltan Varga [Mon, 18 Jul 2016 18:06:39 +0000 (14:06 -0400)]
[llvm] Fix the DISABLE_JIT build.

7 years ago[aot] Add a gen-seq-points-file deprecated option.
Zoltan Varga [Mon, 18 Jul 2016 18:05:39 +0000 (14:05 -0400)]
[aot] Add a gen-seq-points-file deprecated option.

7 years ago[mono-symbolicate] Handle wrapper stackframes
Marcos Henrich [Mon, 18 Jul 2016 13:57:08 +0000 (14:57 +0100)]
[mono-symbolicate] Handle wrapper stackframes

7 years ago[mono-symbolicate] Fixes type with namespace not found
Marcos Henrich [Mon, 18 Jul 2016 13:54:55 +0000 (14:54 +0100)]
[mono-symbolicate] Fixes type with namespace not found

7 years ago[mono-symbolicate] Adds log messages.
Marcos Henrich [Mon, 18 Jul 2016 13:52:49 +0000 (14:52 +0100)]
[mono-symbolicate] Adds log messages.

Added logger to mono-symbolicate, so we can add debug, warning and error
log messages.

7 years ago[runtime] Fix small issues from https://github.com/mono/mono/pull/3278.
Zoltan Varga [Mon, 18 Jul 2016 16:03:13 +0000 (12:03 -0400)]
[runtime] Fix small issues from https://github.com/mono/mono/pull/3278.

7 years ago[tests] Reduce a test iteration in process-leak.exe so it doesn't take minutes to...
Zoltan Varga [Mon, 18 Jul 2016 15:44:45 +0000 (11:44 -0400)]
[tests] Reduce a test iteration in process-leak.exe so it doesn't take minutes to run.

7 years ago[runtime] A bunch of small fixes.
Mark Probst [Wed, 13 Jul 2016 18:35:33 +0000 (11:35 -0700)]
[runtime] A bunch of small fixes.

7 years agoMerge pull request #3264 from esdrubal/tzi_dst
Marcos Henrich [Mon, 18 Jul 2016 15:01:54 +0000 (16:01 +0100)]
Merge pull request #3264 from esdrubal/tzi_dst

[corlib] Implements TZI.IsDST(DateTimeOffset)

7 years ago[mono-symbolicate] Fix crash while overwriting symbols
Marcos Henrich [Fri, 15 Jul 2016 10:53:01 +0000 (11:53 +0100)]
[mono-symbolicate] Fix crash while overwriting symbols

7 years ago[mono-symbolicate] Fixes crash on stackframes w/o MVID
Marcos Henrich [Fri, 15 Jul 2016 10:50:20 +0000 (11:50 +0100)]
[mono-symbolicate] Fixes crash on stackframes w/o MVID

Wrapper stack frames don't have MVID or IL associated.
ex: (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)

7 years ago[mono-symbolicate] Display error when MVID folder not found
Marcos Henrich [Fri, 15 Jul 2016 10:48:53 +0000 (11:48 +0100)]
[mono-symbolicate] Display error when MVID folder not found

Display error instead of crashing with exception.

7 years ago[Facades] Remove dulicate subdirs include
Marek Safar [Fri, 15 Jul 2016 19:15:05 +0000 (21:15 +0200)]
[Facades] Remove dulicate subdirs include

7 years agoMerge pull request #3282 from mhutch/netstandard-build
Mikayla Hutchinson [Fri, 15 Jul 2016 19:11:49 +0000 (15:11 -0400)]
Merge pull request #3282 from mhutch/netstandard-build

PCL5/netstandard MSBuild support

7 years ago[build] Fix resgen in child profiles
Mikayla Hutchinson [Fri, 15 Jul 2016 16:07:37 +0000 (12:07 -0400)]
[build] Fix resgen in child profiles

7 years ago[xbuild] Clearer distinction between versioned and unversioned files
Mikayla Hutchinson [Thu, 14 Jul 2016 15:59:39 +0000 (11:59 -0400)]
[xbuild] Clearer distinction between versioned and unversioned files

7 years ago[xbuild] Use RESOURCE_DEFS to compile resx
Mikayla Hutchinson [Thu, 14 Jul 2016 15:34:31 +0000 (11:34 -0400)]
[xbuild] Use RESOURCE_DEFS to compile resx

7 years ago[xbuild] Rename internal target to match MSBuild
Mikayla Hutchinson [Thu, 14 Jul 2016 00:54:37 +0000 (20:54 -0400)]
[xbuild] Rename internal target to match MSBuild

The PCL targets depend on its name.

7 years ago[xbuild] Fix warning with netstandard projects
Mikayla Hutchinson [Thu, 14 Jul 2016 00:46:35 +0000 (20:46 -0400)]
[xbuild] Fix warning with netstandard projects

This fixes an inconsistency where xbuild would add System.Core
references to all builds, and MSBuild would only add them for
.NETFramework.

This change could break user XA/XI/XM projects on Mac if the user has
manually removed the explicit System.Core reference from the project,
however such projects would already be broken on Windows.

7 years ago[xbuild] Fix NuGet tasks build
Mikayla Hutchinson [Thu, 14 Jul 2016 00:08:33 +0000 (20:08 -0400)]
[xbuild] Fix NuGet tasks build

7 years ago[xbuild] Install PCL5 framework
Mikayla Hutchinson [Thu, 14 Jul 2016 00:02:27 +0000 (20:02 -0400)]
[xbuild] Install PCL5 framework

7 years ago[xbuild] Install PCL targets from buildtools
Mikayla Hutchinson [Wed, 13 Jul 2016 23:40:50 +0000 (19:40 -0400)]
[xbuild] Install PCL targets from buildtools

7 years ago[xbuild] Update NuGet tasks to VS2015 Update 3
Mikayla Hutchinson [Wed, 13 Jul 2016 22:15:24 +0000 (18:15 -0400)]
[xbuild] Update NuGet tasks to VS2015 Update 3

7 years agoAdd dotnet/buildtools submodule
Mikayla Hutchinson [Wed, 13 Jul 2016 21:53:44 +0000 (17:53 -0400)]
Add dotnet/buildtools submodule

Using the openportabletargets branch in order to get
https://github.com/dotnet/buildtools/pull/643

7 years ago[xbuild] Add Microsoft.NuGet.Build.Tasks.dll MSBuild task
Alexander Köplinger [Fri, 18 Mar 2016 20:49:27 +0000 (21:49 +0100)]
[xbuild] Add Microsoft.NuGet.Build.Tasks.dll MSBuild task

This is required for interoperating with project.json-based NuGet package configuration files
(not to be confused with DNX or AspNet Core which use it as a project file too) from MSBuild/xbuild.

The task hooks into the build process, resolves assembly references from the nuget package cache
and injects them into the compilation project so the csproj doesn't need to be modified when
adding new references/packages.

It is the first step on our road to PCL5/NuGet3.

7 years agoMerge pull request #3286 from lambdageek/dev/refl-to-managed
Aleksey Kliger (λgeek) [Fri, 15 Jul 2016 16:58:12 +0000 (12:58 -0400)]
Merge pull request #3286 from lambdageek/dev/refl-to-managed

[reflection] RuntimeType  Event and Property search partly in managed

7 years ago[jit] Fix some alignment issues in mono_unwind_ops_encode_full ().
Zoltan Varga [Fri, 15 Jul 2016 16:43:28 +0000 (12:43 -0400)]
[jit] Fix some alignment issues in mono_unwind_ops_encode_full ().

7 years ago[Facades] Build System.Drawing.Primitives only on profiles with no external dependenc...
Marek Safar [Fri, 15 Jul 2016 16:24:42 +0000 (18:24 +0200)]
[Facades] Build System.Drawing.Primitives only on profiles with no external dependencies inside bcl

7 years agoMerge pull request #3285 from lateralusX/jlorenss/win-x64-native-valuetype-abi
Johan Lorensson [Fri, 15 Jul 2016 15:13:28 +0000 (17:13 +0200)]
Merge pull request #3285 from lateralusX/jlorenss/win-x64-native-valuetype-abi

Rewrite of Windows x64 value type ABI to support DirectX wrapper libraries on JIT and full AOT.

7 years ago[Facades] System.Drawing.Primitives use type fowarders in monotouch profile when...
Marek Safar [Fri, 15 Jul 2016 14:37:28 +0000 (16:37 +0200)]
[Facades] System.Drawing.Primitives use type fowarders in monotouch profile when available

7 years ago[bcl] Don't build System.Net.Http.WebRequest.dll on mobile
Alexander Köplinger [Fri, 15 Jul 2016 12:06:23 +0000 (14:06 +0200)]
[bcl] Don't build System.Net.Http.WebRequest.dll on mobile

It's not shipped in Xamarin.iOS and Xamarin.Android, so we shouldn't build it for these profiles.

7 years agoRevert "[Facades] Exclude System.Drawing.Primitives from watch profile"
Marek Safar [Fri, 15 Jul 2016 10:27:05 +0000 (12:27 +0200)]
Revert "[Facades] Exclude System.Drawing.Primitives from watch profile"

This reverts commit 6db2cae90c5e33389a730893e1f3f0fb2dbaff06.

7 years ago[Facades] Exclude System.Drawing.Primitives from watch profile
Marek Safar [Fri, 15 Jul 2016 10:08:28 +0000 (12:08 +0200)]
[Facades] Exclude System.Drawing.Primitives from watch profile

7 years ago[llvm] Add generic IR implementations of some SIMD opcodes, not used yet.
Zoltan Varga [Fri, 15 Jul 2016 09:21:02 +0000 (05:21 -0400)]
[llvm] Add generic IR implementations of some SIMD opcodes, not used yet.

7 years agoMerge pull request #3274 from Unity-Technologies/fix-path-getfullpath-windows
Marek Safar [Fri, 15 Jul 2016 08:31:33 +0000 (10:31 +0200)]
Merge pull request #3274 from Unity-Technologies/fix-path-getfullpath-windows

Fix Path.GetFullPath for roots on Windows

7 years agoSmaller formatting adjustments based on feedback.
lateralusX [Fri, 15 Jul 2016 08:19:37 +0000 (10:19 +0200)]
Smaller formatting adjustments based on feedback.

7 years agoMerge pull request #3287 from JustArchi/patch-1
Zoltan Varga [Fri, 15 Jul 2016 05:54:08 +0000 (01:54 -0400)]
Merge pull request #3287 from JustArchi/patch-1

Fix compilation of AOT-less Mono

7 years agoFix compilation of AOT-less Mono
Łukasz Domeradzki [Fri, 15 Jul 2016 03:23:53 +0000 (05:23 +0200)]
Fix compilation of AOT-less Mono

```
aot-runtime.c:5838:1: error: expected identifier or ‘(’ before ‘{’ token
 {
 ^
```

7 years ago[reflection] Move System.RuntimeType.GetPropertiesByName to managed
Aleksey Kliger [Thu, 14 Jul 2016 23:15:35 +0000 (19:15 -0400)]
[reflection] Move System.RuntimeType.GetPropertiesByName to managed

7 years ago[reflection] Add System.Reflection.PropertyInfo.GetPropertyFromHandle method
Aleksey Kliger [Thu, 14 Jul 2016 23:13:52 +0000 (19:13 -0400)]
[reflection] Add System.Reflection.PropertyInfo.GetPropertyFromHandle method

Also add Mono.RuntimePropertyHandle struct representing a native MonoProperty pointer.

Also add ves_icall_System_Reflection_PropertyInfo_internal_from_handle_type icall
that wraps mono_property_get_object_checked.

7 years ago[runtime] Add finalizer to SafeGPtrArrayHandle
Aleksey Kliger [Thu, 14 Jul 2016 21:58:47 +0000 (17:58 -0400)]
[runtime] Add finalizer to SafeGPtrArrayHandle

7 years ago[llvm] Fix an enable debug info generation for llvm master.
Zoltan Varga [Thu, 14 Jul 2016 20:49:28 +0000 (16:49 -0400)]
[llvm] Fix an enable debug info generation for llvm 

7 years ago[reflection] mono_error_init
Aleksey Kliger [Thu, 14 Jul 2016 19:47:07 +0000 (15:47 -0400)]
[reflection] mono_error_init

avoid a crash when there's a cache hit

7 years ago[reflection] Move RuntimeType.GetEvents_internal to managed code
Aleksey Kliger [Thu, 14 Jul 2016 18:43:38 +0000 (14:43 -0400)]
[reflection] Move RuntimeType.GetEvents_internal to managed code

7 years ago[reflection] Add System.Reflection.EventInfo.GetEventFromHandle methods
Aleksey Kliger [Thu, 14 Jul 2016 18:41:37 +0000 (14:41 -0400)]
[reflection] Add System.Reflection.EventInfo.GetEventFromHandle methods

Add new Mono.RuntimeEventHandle struct wrapping a pointer to a native MonoEvent

Add new icall
ves_icall_System_Reflection_EventInfo_internal_from_handle_type that's
mostly a wrapper around mono_event_get_object_checked.

7 years ago[runtime] Faster parent check in ves_icall_System_Reflection_FieldInfo_internal_from_...
Aleksey Kliger [Thu, 14 Jul 2016 18:39:01 +0000 (14:39 -0400)]
[runtime] Faster parent check in ves_icall_System_Reflection_FieldInfo_internal_from_handle_type

Use mono_class_has_parent for a faster supertypes check instead of
following the parent pointers.

7 years agoPInvoke methods using SetLastError get dropped on Windows x64 full AOT.
lateralusX [Thu, 14 Jul 2016 18:40:58 +0000 (20:40 +0200)]
PInvoke methods using SetLastError get dropped on Windows x64 full AOT.

This happens because current implementation is doing a direct call to Win32
GetLastError in order to get the value before it get clobbered by the icall
setting the last error value in mono. When running AOT all constructs that tries
to call a method using a direct address will be dropped since that will not work
in full AOT. This results in incomplete compiled libraries causing runtime exceptions
in full AOT.

The fix on Windows x64 is to introduce a new OP code, GET_LAST_ERROR that will
retrieve the last error without clobbering it in the process. This is done by
emitting code reading the value directly from the TEB (thread environment block)
and will be lowered to just a move from the segment register holding the TEB data
structure on Windows x64. This is how GetLastError is doing this as well, but since
we won’t be able to call the method in a “safe” way in full AOT, using the segment
register directly will solve the issue. We use the segment register for accessing TLS,
so we already relying on the TEB structure.

NOTE, this will only be applied to Windows x64, full AOT for now.

7 years ago[llvm] Delete some dead code.
Zoltan Varga [Thu, 14 Jul 2016 18:31:20 +0000 (14:31 -0400)]
[llvm] Delete some dead code.

7 years ago[llvm] Delete unused intrinsics.
Zoltan Varga [Thu, 14 Jul 2016 18:15:04 +0000 (14:15 -0400)]
[llvm] Delete unused intrinsics.

7 years ago[sdb] Pass a MonoError* to mono_class_get_methods_by_name () instead of a MonoException*.
Zoltan Varga [Thu, 14 Jul 2016 17:49:02 +0000 (13:49 -0400)]
[sdb] Pass a MonoError* to mono_class_get_methods_by_name () instead of a MonoException*.