Ankit Jain [Thu, 17 Nov 2016 18:22:49 +0000 (13:22 -0500)]
Merge pull request #3979 from radical/fix-xbuild-tgt
[xbuild] Handle a repeat build of a target, when building through ..
Zoltan Varga [Thu, 17 Nov 2016 18:06:33 +0000 (13:06 -0500)]
[runtime] Add some printfs to help debug the g_assert (klass->instance_size == instance_size); assert failure.
Marek Safar [Thu, 17 Nov 2016 17:40:45 +0000 (18:40 +0100)]
[mcs] Fixes user operator extraction from shared list. Fixes #46806
Alexander Köplinger [Thu, 17 Nov 2016 15:58:00 +0000 (16:58 +0100)]
Merge pull request #3965 from akoeplinger/ppc-disable-tests
[ppc64] Disable a few runtime/bcl tests that currently fail
Zoltan Varga [Thu, 17 Nov 2016 14:49:21 +0000 (09:49 -0500)]
[runtime] Fix the waiting for background threads which got broken by
4a1161e2d691672e8544ce5a3e20e5c08daa4f45. (#3983)
João Matos [Thu, 17 Nov 2016 13:29:27 +0000 (13:29 +0000)]
Merge pull request #3953 from rolfbjarne/offsets-tool-autoreclone
[offsets-tool] Make sure to re-clone when the hash for the cpp binaries changes.
Alexander Köplinger [Tue, 15 Nov 2016 14:31:07 +0000 (15:31 +0100)]
[ppc64] Disable a few runtime/bcl tests that currently fail
Until someone can investigate those we want to have a clean CI.
Niklas Therning [Thu, 17 Nov 2016 11:49:47 +0000 (12:49 +0100)]
Merge pull request #3966 from ntherning/prevent-multiple-c-runtimes-on-windows
Prevent Mono.Posix from using multiple C runtimes on Windows
Zoltan Varga [Thu, 17 Nov 2016 05:09:02 +0000 (00:09 -0500)]
[jit] Make mono_print_method_from_ip () work when invoked from threads which are not attached to the runtime.
Alexander Köplinger [Thu, 17 Nov 2016 00:55:54 +0000 (01:55 +0100)]
[corlib] Remove public ctor from IncrementalHash
It doesn't have a public constructor in netstandard/corefx.
Ankit Jain [Wed, 16 Nov 2016 22:42:12 +0000 (17:42 -0500)]
[xbuild] Handle a repeat build of a target, when building through ..
.. `Project.Build(..)`. For example, in:
```
<MSBuild Projects="bar.proj" Targets="foo;foo" />
```
The second invocation of `foo`, in the *same* `Project.Build(..)` call,
would get skipped, but BuildTarget assumed that no previous `outputs`
entry existed in the `targetOutputs` dictionary.
System.Exception: MSBuild operation failed ---> System.ArgumentException: Item has already been added. Key in dictionary: 'foo' Key being added: 'foo'
at System.Collections.Hashtable.Insert (System.Object key, System.Object nvalue, System.Boolean add) [0x00200] in <
94fd79a3b7144c54b4cb162b50fc7761>:0
at System.Collections.Hashtable.Add (System.Object key, System.Object value) [0x00000] in <
94fd79a3b7144c54b4cb162b50fc7761>:0
at Microsoft.Build.BuildEngine.Project.BuildTarget (System.String target_name, System.Collections.IDictionary targetOutputs) [0x0007e] in <
b1524340ac7e4c06b22fac1b2db62c08>:0
at Microsoft.Build.BuildEngine.Project.BuildInternal (System.String[] targetNames, System.Collections.IDictionary targetOutputs, Microsoft.Build.BuildEngine.BuildSettings buildFlags) [0x00134] in <
b1524340ac7e4c06b22fac1b2db62c08>:0
at Microsoft.Build.BuildEngine.Project.Build (System.String[] targetNames, System.Collections.IDictionary targetOutputs, Microsoft.Build.BuildEngine.BuildSettings buildFlags) [0x0004b] in <
b1524340ac7e4c06b22fac1b2db62c08>:0
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=44549
Jo Shields [Mon, 14 Nov 2016 19:25:57 +0000 (19:25 +0000)]
[btls] Download & extract BTLS certs, on Linux builds.
Actually use the correct pathname. Martin.
Martin Baulig [Wed, 16 Nov 2016 20:53:20 +0000 (21:53 +0100)]
Merge pull request #3956 from directhex/install-btls-certs-in-jenkins
[btls] Download & extract BTLS certs, on Linux builds.
Martin Baulig [Wed, 16 Nov 2016 20:51:27 +0000 (21:51 +0100)]
Merge pull request #3967 from atsushieno/fix-linux-btls
Fix btls build for Linux.
Martin Baulig [Wed, 16 Nov 2016 20:48:14 +0000 (21:48 +0100)]
Merge pull request #3950 from mono/work-btls-sni-2
[BTLS]: Add MonoBtlsSsl.GetServerName() and set MonoTlsConnectionInfo.PeerDomainName
(cherry picked from commit
e6aa904d9d47186f01e92afc1d1f6d334aa46d1e)
Rodrigo Kumpera [Wed, 16 Nov 2016 18:15:41 +0000 (10:15 -0800)]
Merge pull request #3678 from mono/seq-read
[IO] Implement FileOptions.SequentialScan for Mac/BSD
Ludovic Henry [Fri, 5 Aug 2016 18:23:08 +0000 (20:23 +0200)]
[mcs/build] Use make functions instead of calling a shell
Ludovic Henry [Fri, 5 Aug 2016 18:20:00 +0000 (20:20 +0200)]
[mcs/build] Factor Q_AOT for future use
Alexander Köplinger [Wed, 16 Nov 2016 14:43:38 +0000 (15:43 +0100)]
[acceptance-tests] Add dependency on nunitlite.dll
nunitlite.dll is not built anymore with a normal Mono build
so we need to depend on it explicitly.
Marek Safar [Wed, 16 Nov 2016 14:22:44 +0000 (15:22 +0100)]
[acceptance-tests] Specify nunitlite path
Bernhard Urban [Wed, 16 Nov 2016 11:38:04 +0000 (12:38 +0100)]
Merge pull request #3971 from directhex/longer-longer-longer-longer-longer-lasting-tailcalls
Increase tailcall instruction length on ppc64
Niklas Therning [Tue, 15 Nov 2016 15:22:33 +0000 (16:22 +0100)]
Prevent Mono.Posix from using multiple C runtimes on Windows
Since libMonoPosixHelper.dll is linked against ucrtbase.dll the C runtime
wrapper functions in it will call into ucrtbase.dll. Some pinvokes in
Mono.Unix.Native.Stdlib, however, bind directly to C runtime functions in
msvcrt. This is problematic if a resource (heap memory, file pointer, etc) is
allocated using one C runtime and then operated upon using funcitons form the
other C runtime. E.g., Stdlib.malloc() calls into a wrapper in
libMonoPosixHelper so it will use the ucrtbase heap while Stdlib.free() calls
directly into msvcrt's free() which will abort the process since it's called
with a pointer in an unknown heap.
This commit adds libMonoPosixHelper wrappers for all memory and file related
functions in Stdlib to ensure that all such functions use the same C runtime.
Some of the Mono.Posix tests still fail but at least the test suite doesn't
crash after this change. The test failures will be addressed in a future PR.
Jo Shields [Wed, 16 Nov 2016 01:23:33 +0000 (01:23 +0000)]
Increase tailcall instruction length on ppc64
wrong maximal instruction length of instruction tailcall (expected 120, got 124)
* Assertion: should not be reached at mini-ppc.c:4694
Zoltan Varga [Tue, 15 Nov 2016 21:21:14 +0000 (16:21 -0500)]
[runtime] Disable some failing tests until they are fixed.
Zoltan Varga [Tue, 15 Nov 2016 20:56:45 +0000 (15:56 -0500)]
[runtime] Change the thread wait code to use cond variables instead o… (#3946)
* [runtime] Change the thread wait code to use cond variables instead of events.
Instead of waiting for the thread handles to be signalled, wait for a cond variable signalled which is signalled by the code which calls pthread_join ().
* [runtime] Synchronize access to njoined_threads. Only use the background_change_event on windows.
* Fix a warning.
Alexis Christoforides [Tue, 15 Nov 2016 19:03:01 +0000 (14:03 -0500)]
Bump bockbuild for helpful CI cleaning fix
Zoltan Varga [Tue, 15 Nov 2016 17:51:54 +0000 (12:51 -0500)]
[jit] Optimize out the early pinvoke address loading done by emit_native_wrapper () when coop+direct pinvokes is enabled, since its not needed, and it generates MONO_PATCH_INFO_ICALL_ADDR relocations which cause pinvoke lookups at runtime on platforms where its not supported like watchos. Fixes #45369. (#3960)
Atsushi Eno [Tue, 15 Nov 2016 16:01:01 +0000 (01:01 +0900)]
Fix btls build for Linux.
As @baulig suggested us elsewhere.
Marek Safar [Mon, 14 Nov 2016 19:30:14 +0000 (20:30 +0100)]
Remove global ipv6 disabled setting. Fixes #35536
Niklas Therning [Tue, 15 Nov 2016 10:39:58 +0000 (11:39 +0100)]
Merge pull request #3963 from ntherning/fix-missing-property-bag-c-file-in-vs-project
Fix missing property-bag.c file in VS project
Niklas Therning [Tue, 15 Nov 2016 10:39:22 +0000 (11:39 +0100)]
Merge pull request #3964 from ntherning/fix-vs-linking-error-missing-mono_dl_open
Fix VS error due to missing mono_dl_open()/mono_loader_register_module()
Niklas Therning [Tue, 15 Nov 2016 10:33:02 +0000 (11:33 +0100)]
Fix VS error due to missing mono_dl_open()/mono_loader_register_module()
PR #3955 removes mono_dl_open() and mono_loader_register_module() from
msvc/mono.def and msvc/monosgen.def which causes VS linking error. This change
readds the symbols to the def files as a temporary solution to get the VS
builds to build successfully again.
Niklas Therning [Tue, 15 Nov 2016 10:25:56 +0000 (11:25 +0100)]
Fix missing property-bag.c file in VS project
PR #3936 adds the mono/metadata/property-bag.c file but doesn't add it to
msvc/libmonoruntime.vcxproj, resulting in linking errors when building the VS
solution.
Bernhard Urban [Tue, 15 Nov 2016 07:31:10 +0000 (08:31 +0100)]
Merge pull request #3961 from akoeplinger/ppc-parallelism
[ci] Reduce make parallelism on ppc64
Alexander Köplinger [Tue, 15 Nov 2016 02:19:21 +0000 (03:19 +0100)]
Merge pull request #3952 from akoeplinger/add-tests
[ci] Add missing tests from Wrench
Alexander Köplinger [Tue, 15 Nov 2016 01:31:45 +0000 (02:31 +0100)]
[ci] Reduce make parallelism on ppc64
-j4 seems to fail the build.
Rodrigo Kumpera [Tue, 15 Nov 2016 01:18:26 +0000 (17:18 -0800)]
Merge pull request #3936 from kumpera/monoclass_reorg2
More MonoClass reorg, replace 3 fields with a property bag
Alexander Köplinger [Mon, 14 Nov 2016 15:33:55 +0000 (16:33 +0100)]
[ci] Add missing tests from Wrench
While looking at the Wrench config I noticed there are a few
tests we don't run on Jenkins. This change adds those tests.
Alexander Köplinger [Tue, 15 Nov 2016 00:50:08 +0000 (01:50 +0100)]
Merge pull request #3958 from akoeplinger/disable-tests
[runtime] Disable certain tests on PRs
Alexander Köplinger [Mon, 14 Nov 2016 21:20:16 +0000 (22:20 +0100)]
[runtime] Disable certain tests on PRs
This allows us to get back to green builds for PRs
while still keeping track of failing tests in master.
Rodrigo Kumpera [Mon, 14 Nov 2016 22:25:36 +0000 (14:25 -0800)]
[runtime] Cache marshal info in locals whenever possible.
Rodrigo Kumpera [Mon, 14 Nov 2016 21:59:05 +0000 (13:59 -0800)]
Merge pull request #3945 from kumpera/fix-cross-domain-abort
[corlib] Fix cross-domain exception serialization under thread abortion.
Rodrigo Kumpera [Mon, 14 Nov 2016 21:58:40 +0000 (13:58 -0800)]
[bcl] Add comment on why the empty try block.
Alexander Köplinger [Mon, 14 Nov 2016 19:26:47 +0000 (20:26 +0100)]
Merge pull request #3951 from akoeplinger/add-csproj-warning
[msvc] Add warning about autogenerated csproj to genproj
Jo Shields [Mon, 14 Nov 2016 19:25:57 +0000 (19:25 +0000)]
[btls] Download & extract BTLS certs, on Linux builds.
Rodrigo Kumpera [Mon, 14 Nov 2016 19:03:25 +0000 (14:03 -0500)]
Merge pull request #3955 from kumpera/fix-embedding-api
[runtime] Don't add mono-dl.h to loader.h. Move the internal function to an internal header.
Rodrigo Kumpera [Mon, 14 Nov 2016 16:04:24 +0000 (08:04 -0800)]
[runtime] Don't add mono-dl.h to loader.h. Move the internal function to an internal header.
Rolf Bjarne Kvinge [Mon, 14 Nov 2016 15:57:54 +0000 (16:57 +0100)]
[offsets-tool] Make sure to re-clone when the hash for the cpp binaries changes.
Ludovic Henry [Wed, 24 Aug 2016 13:24:58 +0000 (15:24 +0200)]
[w32handle] Make mono_w32handle_ops_* functions private
Ludovic Henry [Wed, 24 Aug 2016 13:07:50 +0000 (15:07 +0200)]
[w32handle] Compile them in on windows
Ludovic Henry [Wed, 24 Aug 2016 13:06:26 +0000 (15:06 +0200)]
[w32handle] Remove unused header includes
Ludovic Henry [Mon, 14 Nov 2016 15:08:09 +0000 (10:08 -0500)]
[os-event] Replace global cond by local cond for each waiting thread (#3941)
Alexander Köplinger [Mon, 14 Nov 2016 14:34:26 +0000 (15:34 +0100)]
[msvc] Update .csproj files
Alexander Köplinger [Mon, 14 Nov 2016 14:14:09 +0000 (15:14 +0100)]
[msvc] Add warning about autogenerated csproj to genproj
Hopefully reduces the confusion about the csproj files.
Martin Baulig [Fri, 11 Nov 2016 15:42:12 +0000 (16:42 +0100)]
[BTLS]: Use host name without port for the Server Name Indication (SNI). Bug #46549.
(cherry picked from commit
20e0914e0319078e02a53be2fb4700e39d85347d)
Alexander Köplinger [Mon, 14 Nov 2016 12:43:34 +0000 (13:43 +0100)]
Merge pull request #3940 from akoeplinger/deprecate-nunit
[bcl] Deprecate old NUnit 2.4 framework shipped with Mono
Alexander Köplinger [Sun, 13 Nov 2016 23:00:05 +0000 (00:00 +0100)]
Merge pull request #3937 from akoeplinger/mph
[msvc] Add Mono_Unix_VersionString to monoposixhelper.def
Marek Habersack [Sun, 13 Nov 2016 21:40:08 +0000 (22:40 +0100)]
Revert "Install utils/{mono-dl.h,mono-compiler.h}"
This reverts commit
397430c7f9fe4fae487342db36860b0a08cd56c0.
Alexander Köplinger [Fri, 11 Nov 2016 13:38:35 +0000 (14:38 +0100)]
[msvc] Add Mono_Unix_VersionString to monoposixhelper.def
Fixes the EntryPointNotFoundException when running the Mono.Posix tests on Windows.
This check was introduced in
249ee0686bf87f33acf2efde76f3645ef06bb886 but the .def file wasn't updated.
With this the tests still crash so switching them off on PRs again for now.
Alexander Köplinger [Fri, 11 Nov 2016 01:55:05 +0000 (02:55 +0100)]
[bcl] Deprecate old NUnit 2.4 framework shipped with Mono
Print a message when running nunit-console about the deprecation.
Additionally, throw a compilation error if compiling against the
TestFixtureAttribute from old NUnit.
Needed changes in ms-test-suite as well since it was still using NUnit.
Marek Habersack [Sat, 12 Nov 2016 23:48:44 +0000 (00:48 +0100)]
Install utils/{mono-dl.h,mono-compiler.h}
These two headers are required by loader.h which is installed in
$prefix/include/mono-2.0/mono/metadata and their lack breaks compilation
of any software that includes loader.h
Niklas Therning [Sat, 12 Nov 2016 07:41:55 +0000 (08:41 +0100)]
Merge pull request #3938 from ntherning/UnicastIPAddressInformation.IPv4Mask-from-refsource
Change UnicastIPAddressInformation.IPv4Mask to work as in refsource on Windows
Rodrigo Kumpera [Fri, 11 Nov 2016 22:48:31 +0000 (14:48 -0800)]
[corlib] Fix cross-domain exception serialization under thread abortion.
RemotingServices::SerializeExceptionData started to fail as TAE was being raised
from within the serialization code and this triggered the completely wrong abort protection code.
This happened because a recent change that made .cctors raise TAE at their end and the stack trace
code would hit System.Reflection.Module's cctor to fetch its GUID for the purpose of symbolification.
The fix is to use the correct protection against aborts, which is to run code from finally blocks.
This fixes multiple failures in the runtime test suite.
Zoltan Varga [Fri, 11 Nov 2016 20:41:26 +0000 (15:41 -0500)]
[runtime] Add back the locking to setup_interface_offsets () to work around crashes in roslyn.
Ludovic Henry [Fri, 11 Nov 2016 18:07:27 +0000 (13:07 -0500)]
[os-event] Replace global cond by local cond for each waiting thread
Alexander Köplinger [Fri, 11 Nov 2016 18:55:36 +0000 (19:55 +0100)]
Merge pull request #3942 from monojenkins/update-csprojs
[msvc] Update csproj files
Alexander Köplinger [Fri, 11 Nov 2016 18:55:11 +0000 (19:55 +0100)]
Fix git submodule url
monojenkins [Fri, 11 Nov 2016 18:46:04 +0000 (18:46 +0000)]
[msvc] Update csproj files
Marek Safar [Fri, 11 Nov 2016 17:39:40 +0000 (18:39 +0100)]
Remove extracted linker sources and reuse them via submodule
Ludovic Henry [Fri, 11 Nov 2016 15:13:38 +0000 (10:13 -0500)]
[w32handle] Stop returning 0 in every cases for locking/unlocking (#3926)
* [w32handle] Stop returning 0 in every cases for locking/unlocking
* [w32handle] Ensure we lock the signal handle in SignalAndWait
Marek Safar [Fri, 11 Nov 2016 14:52:44 +0000 (15:52 +0100)]
[mcs] Update better conversion tie breaking rules to cover candidate with longer default parameters. Fixes #45950
Niklas Therning [Fri, 11 Nov 2016 13:47:57 +0000 (14:47 +0100)]
Change UnicastIPAddressInformation.IPv4Mask to work as in refsource on Windows
Mono returns null for disconnected interfaces with 169.254.X.X address while
refsources returns 255.255.0.0. This patch copies the relevant pieces from the
refsources to make Mono behave the same.
Joao Matos [Fri, 11 Nov 2016 12:57:56 +0000 (12:57 +0000)]
[offsets-tool] Fixed the Makefile to clone into the base directory instead.
Johan Lorensson [Fri, 11 Nov 2016 10:43:49 +0000 (11:43 +0100)]
Merge pull request #3809 from lateralusX/jlorenss/win-api-family-support-cleanup
Build mono runtime under none desktop Windows API family, adjustments and cleanup.
Niklas Therning [Fri, 11 Nov 2016 08:59:05 +0000 (09:59 +0100)]
Merge pull request #3930 from ntherning/fix-System.ServiceProcess
Fixes bugs in System.ServiceProcess on Windows
Niklas Therning [Thu, 10 Nov 2016 15:08:40 +0000 (16:08 +0100)]
Fixes bugs in System.ServiceProcess on Windows
There was a crash on Windows x64 in Win32ServiceController when enumerating
devices and services. Also fixed the ServiceControllerTest to succeed on .NET
as well Mono on Windows. Had to replace the services used by the test since
most of them have been removed from recent Windows versions.
This PR also enables the System.ServiceProcess tests in Windows PR builds.
Miguel de Icaza [Fri, 11 Nov 2016 04:14:03 +0000 (23:14 -0500)]
[eglib/mono] Aleksey caught a discrepancy between the semantics of Unix and Windows, our eglib version should always strdup (#3899)
Ankit Jain [Thu, 10 Nov 2016 18:26:27 +0000 (13:26 -0500)]
[xbuild] Don't reevaluate project when setting metadata in a dynamic ..
.. item.
If we have a project, that sets some properties or items at runtime,
like in a target:
```
<Target Name="Build">
<PropertyGroup>
<Bar>Bar01</Bar>
</PropertyGroup>
```
.. such a property can be accessed as `$(Bar)` subsequently.
Then at later point, a target tries to update metadata on an item group
with existing items, like:
```
<ItemGroup>
<FooItem Include="xyz" />
</ItemGroup>
<Target Name="Foo">
<ItemGroup>
<FooItem>
<SomeMetadata>MetadataValue</SomeMetadata>
</FooItem>
</ItemGroup>
```
.. then it is seen that the value for the earlier created `$(Bar)` disappears!
So, if we try to print the value of `$(Bar)` right after that item
group, it would appear as `''`!
The issue is that the metadata update in target `Foo` caused the project
to get re-evaluated, which meant that items/properites created after the
project load were lost! We should not be reevaluating the project when
setting metadata on the basis of dynamic items, like in the target
`Foo`.
These dynamic item groups in a target are represented as
`BuildItemTask`, and these create BuildItems which have their
`IsDynamic` property set. And this is used to avoid re-evaluating the
project in `BuildItem.SetMetadata`.
But when updating metadata (`BuildItem.UpdateMetadata`), we need to
update metadata on the *existing* items, which might not have been
created from such dynamic item groups! So, their `IsDynamic==false`.
Hence, trying to `SetMetadata` on such items would cause the project to
be reevaluated, and thus properties/items like `$(Bar)` would be lost!
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=45137
In this particular case, `Bar` was the `DesignTimeBuild` property, which
was losing it's value when `ProjectReference`'s `AdditionalProperties`
metadata was set in:
```
<Target Name="BclBuildAddProjectReferenceProperties"
<ItemGroup>
<ProjectReference>
<AdditionalProperties>$(_BclBuildProjectReferenceProperties);%(ProjectReference.AdditionalProperties)</AdditionalProperties>
</ProjectReference>
</ItemGroup>
```
Rodrigo Kumpera [Fri, 4 Nov 2016 02:15:39 +0000 (19:15 -0700)]
[runtime] Move MonoClass::ref_info_handle into a property bag.
Rodrigo Kumpera [Thu, 10 Nov 2016 21:55:23 +0000 (13:55 -0800)]
[runtime] Move MonoClass::marshal_info and MonoClass::ext to use a property bag.
Rodrigo Kumpera [Wed, 9 Nov 2016 01:08:23 +0000 (17:08 -0800)]
[runtime] Wrap MonoClass::ext with accessors.
Rodrigo Kumpera [Thu, 3 Nov 2016 14:48:36 +0000 (07:48 -0700)]
[runtime] Wrap MonoClass::marshal_info with accessors.
Rodrigo Kumpera [Tue, 16 Sep 2014 22:55:46 +0000 (18:55 -0400)]
[runtime] Add a simple linearizable property bag implementation.
Bernhard Urban [Thu, 10 Nov 2016 16:34:12 +0000 (17:34 +0100)]
[arm64] always assume a cache line size of 4
otherwise we still have the theoretical chance of a race.
Niklas Therning [Thu, 10 Nov 2016 20:28:23 +0000 (21:28 +0100)]
Merge pull request #3931 from ntherning/enable-System.Core-tests-on-windows-pr-builds
Enable System.Core tests on Windows PR builds
João Matos [Thu, 10 Nov 2016 18:55:51 +0000 (18:55 +0000)]
Merge pull request #3927 from tritao/updated_offsets_tool
Updated offsets tool to latest CppSharp.
Marek Safar [Thu, 10 Nov 2016 17:41:15 +0000 (18:41 +0100)]
[System.Xml] Add XElement array handling to serialization interpreter. Fixes #12571
Marek Safar [Thu, 10 Nov 2016 17:30:19 +0000 (18:30 +0100)]
[system.xml] Enable more tests
Joao Matos [Thu, 10 Nov 2016 16:40:38 +0000 (16:40 +0000)]
[offsets-tool] Updated build scripts to handle multiple platforms.
Joao Matos [Thu, 10 Nov 2016 16:39:18 +0000 (16:39 +0000)]
[offsets-tool] Fixed whitespace inconsistency.
Joao Matos [Thu, 10 Nov 2016 12:09:21 +0000 (12:09 +0000)]
Updated offsets tool to latest CppSharp.
Niklas Therning [Thu, 10 Nov 2016 15:15:21 +0000 (16:15 +0100)]
Enable System.Core tests on Windows PR builds
System.Core is expected to be green now on Windows.
Bernhard Urban [Wed, 9 Nov 2016 15:03:52 +0000 (16:03 +0100)]
[ppc] clobber r0 in MONO_CONTEXT_GET_CURRENT
r0 can't be the base for a memory acces.
Bernhard Urban [Wed, 9 Nov 2016 14:40:41 +0000 (15:40 +0100)]
[ppc] some 32bit CPUs trap on std, use stw instead
Bernhard Urban [Wed, 9 Nov 2016 14:39:16 +0000 (15:39 +0100)]
[ppc] enable MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX on every PowerPC configuration on Linux
Bernhard Urban [Wed, 9 Nov 2016 11:38:01 +0000 (12:38 +0100)]
[ppc] use proper calling convention when coming from a signal handler
ELF v2 ABI (aka. ppc64le) defines two entry points per function.
The global entry point (offset 0) sets up the TOC (r2) itself, while the
local entry point (offset 8) is a fast entry point if the TOC is
already set up properly.
When the global entry point is used, the address of the global entry
point is required in r12 according to the ABI.
Bernhard Urban [Wed, 9 Nov 2016 11:36:23 +0000 (12:36 +0100)]
[ppc] disable MONO_ARCH_HAVE_TLS_GET
`--with-tls=__thread` is broken on PowerPC.
`--with-tls=pthread` didn't work on PowerPC, but disabling
MONO_ARCH_HAVE_TLS_GET fixes it.
Instead of guarding the define with `HAVE_KW_THREAD`, let's just
disable it. We want to get rid of `--with-tls=__thread` anyway.
Johan Lorensson [Thu, 10 Nov 2016 08:37:55 +0000 (09:37 +0100)]
Merge pull request #3854 from lateralusX/jlorenss/win-clang-toolchain
Switch to Microsoft VS2015 MSVC toolchain for Windows x64 AOT compiler.
Zoltan Varga [Thu, 10 Nov 2016 03:54:29 +0000 (22:54 -0500)]
Method field count (#3907)
* [runtime] Add accessors for method.count and field.count.
* [runtime] Move method/field count to MonoClassDef.
Zoltan Varga [Thu, 10 Nov 2016 02:53:48 +0000 (21:53 -0500)]
[sdb] Avoid asserting when trying to single step on a thread with no managed frames. Fixes #34802.