mono.git
6 years agoMerge pull request #5382 from kumpera/pedump_fix
Rodrigo Kumpera [Wed, 16 Aug 2017 04:58:17 +0000 (21:58 -0700)]
Merge pull request #5382 from kumpera/pedump_fix

Address pedump issues from https://bugzilla.xamarin.com/show_bug.cgi?id=58168

6 years ago[msbuild] bump to xplat-master branch HEAD
Ankit Jain [Wed, 16 Aug 2017 03:50:09 +0000 (23:50 -0400)]
[msbuild] bump to xplat-master branch HEAD

6 years ago[msbuild] Install a `deniedAssembliesList.txt` to support denied ... (#5358)
Ankit Jain [Wed, 16 Aug 2017 03:51:29 +0000 (23:51 -0400)]
[msbuild] Install a `deniedAssembliesList.txt` to support denied ... (#5358)

... assemblies.

msbuild tries to filter out the denied assemblies, which mono refuses to
load, during a build. It uses the `deniedAssembliesList.txt` installed
to `$mono_prefix/lib/mono/xbuild` to identify them.

This was generated with:

 `$ mono tools/nuget-hash-extractor/nuget-hash-extractor.exe nugets guids_for_msbuild > mcs/tools/xbuild/data/deniedAssembliesList.txt`

This file needs to be kept in sync with any changes in the assemblies
denied by the runtime.

msbuild PR that adds support for this -
https://github.com/mono/msbuild/pull/23 .

6 years ago[msbuild] bump to xplat-master branch HEAD
Ankit Jain [Wed, 16 Aug 2017 02:55:13 +0000 (22:55 -0400)]
[msbuild] bump to xplat-master branch HEAD

6 years ago[verifier] Add workaround for verifying corlib and valid-only output.
Rodrigo Kumpera [Tue, 15 Aug 2017 21:56:09 +0000 (14:56 -0700)]
[verifier] Add workaround for verifying corlib and valid-only output.

6 years ago[verifier] Handle csc encoding of enums in cattr blobs. Fixes #58168.
Rodrigo Kumpera [Tue, 15 Aug 2017 21:54:47 +0000 (14:54 -0700)]
[verifier] Handle csc encoding of enums in cattr blobs. Fixes #58168.

6 years ago[runtime] Add WINDOWS_RUNTIME type attribute that csc generates
Rodrigo Kumpera [Tue, 15 Aug 2017 21:53:17 +0000 (14:53 -0700)]
[runtime] Add WINDOWS_RUNTIME type attribute that csc  generates

6 years ago[verifier] Avoid double init of metadata when using pedump.
Rodrigo Kumpera [Tue, 15 Aug 2017 21:32:38 +0000 (14:32 -0700)]
[verifier] Avoid double init of metadata when using pedump.

This is a workaround for the larger problem of it using a non-standard init sequence.

Tracked as https://bugzilla.xamarin.com/show_bug.cgi?id=58793

6 years ago[verifier] Partially revert 6d37ffdf534eae04a5d06b2e097762bd64fc0591. It adds interna...
Rodrigo Kumpera [Tue, 15 Aug 2017 21:28:21 +0000 (14:28 -0700)]
[verifier] Partially revert 6d37ffdf534eae04a5d06b2e097762bd64fc0591. It adds internal a header to a public one.

6 years agonetstandard dependant facades update after 2.0 release (#5371)
Marek Safar [Tue, 15 Aug 2017 21:14:36 +0000 (23:14 +0200)]
netstandard dependant facades update after 2.0 release (#5371)

6 years agomkbundle: avoid NREs and print useful errors
Aaron Bockover [Tue, 15 Aug 2017 15:37:41 +0000 (11:37 -0400)]
mkbundle: avoid NREs and print useful errors

When scanning for references, emit an error when loading the assembly
into the universe fails or when loading a referenced assembly by
name fails.

6 years ago[msbuild] bump to help debug wrench build failure
Ankit Jain [Tue, 15 Aug 2017 20:39:27 +0000 (16:39 -0400)]
[msbuild] bump to help debug wrench build failure

6 years agoAdd scripts/csi to .gitignore.
Martin Baulig [Tue, 15 Aug 2017 17:25:00 +0000 (13:25 -0400)]
Add scripts/csi to .gitignore.

6 years agoCosmetic; remove unnecessary cast and fix compiler warning.
Martin Baulig [Tue, 15 Aug 2017 17:12:47 +0000 (13:12 -0400)]
Cosmetic; remove unnecessary cast and fix compiler warning.

6 years ago[System]: Fix minor leaks in AppleTls. (#5369)
Martin Baulig [Tue, 15 Aug 2017 17:08:12 +0000 (13:08 -0400)]
[System]: Fix minor leaks in AppleTls. (#5369)

These should be automatically collected by the GC, but explicitly disposing
will keep memory usage more stable over time and keep pressure off the GC.

6 years ago[System]: Fix major AppleTls memory leak. Bug #56814. (#5370)
Martin Baulig [Tue, 15 Aug 2017 17:00:18 +0000 (13:00 -0400)]
[System]: Fix major AppleTls memory leak.  Bug #56814. (#5370)

6 years ago[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)
Zoltan Varga [Tue, 15 Aug 2017 15:16:48 +0000 (11:16 -0400)]
[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)

6 years agoMerge pull request #5355 from kumpera/fix_58379
Rodrigo Kumpera [Tue, 15 Aug 2017 01:38:40 +0000 (21:38 -0400)]
Merge pull request #5355 from kumpera/fix_58379

[mini] Emit widen ops when storing to locals of size < 4. Fixes #58379.

6 years ago[msbuild] bump to help debug wrench build failure
Ankit Jain [Tue, 15 Aug 2017 01:07:15 +0000 (21:07 -0400)]
[msbuild] bump to help debug wrench build failure

6 years ago[MacSDK] Update bockbuild to work around build/staging issue
Alexis Christoforides [Mon, 14 Aug 2017 20:27:34 +0000 (16:27 -0400)]
[MacSDK] Update bockbuild to work around build/staging issue
Commit message: Allow for non-fatal shell execution, and turn “install_name_tool” staging failures to warnings as we find a more permanent solution to AOT dylibs not always having enough field space for the new path (all other dylibs made in the build with the XCode toolchain typically do, as they are built with the “-headerpad_max_install_names” flag.

6 years ago[mini] Add test for implicit widen on argument stores.
Rodrigo Kumpera [Mon, 14 Aug 2017 20:22:20 +0000 (13:22 -0700)]
[mini] Add test for implicit widen on argument stores.

6 years ago[remoting] transparent proxy GetType of an interface should return the
Aleksey Kliger [Wed, 9 Aug 2017 22:38:50 +0000 (18:38 -0400)]
[remoting] transparent proxy GetType of an interface should return the
interface Type, not MarshalByRefObject. (Fixes #17325)

If a RealProxy instance is created (using the protected RealProxy(Type)
constructor) for an interface, mono internally sets up a MonoRemoteClass which
looks like a proxy for a MarshalByRefObject instance that happens to implement
the given interface.  However mono_class_proxy_vtable just does a memcpy() to
setup the MonoVTable:type field of the transparent proxy's vtable.  That type
field is hit by the JIT when System.Object.GetType() is called - and on .NET
Framework GetType for a transparent proxy of an interface returns the interface
not (as Mono used to) typeof(MarshalByRefObject).

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=17325

6 years ago[test] Add regression test for GetType() of a transparent proxy.
Aleksey Kliger [Thu, 10 Aug 2017 22:35:27 +0000 (18:35 -0400)]
[test] Add regression test for GetType() of a transparent proxy.

Check that calling GetType() on a transparent proxy of a RealProxy of an
interface returns that interface type.

6 years ago[runtime] Fix a warning.
Zoltan Varga [Mon, 14 Aug 2017 18:51:55 +0000 (14:51 -0400)]
[runtime] Fix a warning.

6 years agoBump nuget to latest 4.3.0 release (#5368)
Alexander Köplinger [Mon, 14 Aug 2017 17:27:13 +0000 (19:27 +0200)]
Bump nuget to latest 4.3.0 release (#5368)

6 years agoBump nuget-buildtasks
Alexander Köplinger [Mon, 14 Aug 2017 12:15:18 +0000 (14:15 +0200)]
Bump nuget-buildtasks

Includes https://github.com/NuGet/NuGet.BuildTasks/pull/35

6 years agoFix a warning.
Zoltan Varga [Mon, 14 Aug 2017 04:28:50 +0000 (00:28 -0400)]
Fix a warning.

6 years agoMerge pull request #5360 from urisimchoni/fix-mon
Alex Rønne Petersen [Sun, 13 Aug 2017 11:56:09 +0000 (13:56 +0200)]
Merge pull request #5360 from urisimchoni/fix-mon

[profiler] Fix log profiler SetMonitorEvents icall

6 years ago[profiler] Fix log profiler SetMonitorEvents icall
Uri Simchoni [Sun, 13 Aug 2017 06:46:42 +0000 (09:46 +0300)]
[profiler] Fix log profiler SetMonitorEvents icall

Set the right flag when enabling/disabling monitor
event profiling

6 years agoUse eglib g_* allocators rather than malloc/calloc (#5359)
Jonathan Chambers [Sat, 12 Aug 2017 14:54:01 +0000 (10:54 -0400)]
Use eglib g_* allocators rather than malloc/calloc (#5359)

6 years ago[acceptance-tests] Increase the profiler-stress timeout to 9 hours.
Alex Rønne Petersen [Sat, 12 Aug 2017 14:37:03 +0000 (16:37 +0200)]
[acceptance-tests] Increase the profiler-stress timeout to 9 hours.

msbiology seems to take longer than 8 hours on 32-bit OS X.

6 years agoBump roslyn-binaries.
Zoltan Varga [Sat, 12 Aug 2017 07:07:47 +0000 (03:07 -0400)]
Bump roslyn-binaries.

6 years ago[jit] Add implicit widening of stores to args of types < 4 bytes.
Rodrigo Kumpera [Fri, 11 Aug 2017 22:19:30 +0000 (15:19 -0700)]
[jit] Add implicit widening of stores to args of types < 4 bytes.

This fix follows what was done for #58379 but for arguments.

6 years ago[ci] Add CI_TAGS for apidiff and ms-test-suite
Alexander Köplinger [Fri, 11 Aug 2017 21:52:47 +0000 (23:52 +0200)]
[ci] Add CI_TAGS for apidiff and ms-test-suite

Easier to maintain than the "label" which could change depending on the bots.

6 years agoInstall Roslyn binaries, including msbuild tasks to msbuild/Roslyn (#5251)
Ankit Jain [Fri, 11 Aug 2017 21:53:45 +0000 (17:53 -0400)]
Install Roslyn binaries, including msbuild tasks to msbuild/Roslyn (#5251)

.. directory, which is `$mono_prefix/lib/mono/msbuild/15.0/bin/Roslyn/`

Mono installs `csc.exe` but the corresponding
`Microsoft.Build.Tasks.CodeAnalysis.dll` required for supporting msbuild C#
projects is installed by msbuild. But these two can get out of sync,
like they did and had to be worked around in
https://github.com/mono/msbuild/pull/19 .

Instead, we now install all the relevant roslyn bits (C# and VB) from the same
source. Only the msbuild specific files are copied to the Roslyn folder.
VBCSCompiler, csi and their dependencies are symlinked from `lib/mono/4.5`.

Also:

- csi.exe is included since the tool is surfaced as an msbuild task,
  and that requires the *Scripting.dll assemblies.
- VBCSCompiler* - shared compiler is installed
- vbc.exe doesn't work on mono currently, so skipping that
- And `Microsoft.DiaSymReader.Native.{amd64,x86}.dll` are dropped.

6 years agoAddress reviewer feedback.
Rodrigo Kumpera [Fri, 11 Aug 2017 21:53:37 +0000 (14:53 -0700)]
Address reviewer feedback.

6 years ago[msbuild] Bump to xplat-master branch HEAD
Ankit Jain [Fri, 11 Aug 2017 21:29:29 +0000 (17:29 -0400)]
[msbuild] Bump to xplat-master branch HEAD

6 years ago[acceptance-tests] Bump coreclr submodule
Alexander Köplinger [Fri, 11 Aug 2017 20:20:53 +0000 (22:20 +0200)]
[acceptance-tests] Bump coreclr submodule

6 years agoMerge pull request #5353 from jonpryor/jonp-mono-api-html-ignore-class-removal
Alexis Christoforides [Fri, 11 Aug 2017 20:02:11 +0000 (16:02 -0400)]
Merge pull request #5353 from jonpryor/jonp-mono-api-html-ignore-class-removal

[mono-api-html] Allow `-r` to ignore class removals

6 years ago[MacSDK] Switch to HTTPS for downloading SQLite
Alexis Christoforides [Fri, 11 Aug 2017 18:13:09 +0000 (14:13 -0400)]
[MacSDK] Switch to HTTPS for downloading SQLite

6 years ago[profiler] Fix code coverage support.
Alex Rønne Petersen [Fri, 11 Aug 2017 17:31:05 +0000 (19:31 +0200)]
[profiler] Fix code coverage support.

6 years agoUpdate Bockbuild for a CI fix/update (shorter build paths for MacSDK)
Alexis Christoforides [Fri, 11 Aug 2017 16:22:36 +0000 (12:22 -0400)]
Update Bockbuild for a CI fix/update (shorter build paths for MacSDK)

6 years agoMerge pull request #5352 from urisimchoni/fix-logprof-manpage
Alex Rønne Petersen [Fri, 11 Aug 2017 14:34:50 +0000 (16:34 +0200)]
Merge pull request #5352 from urisimchoni/fix-logprof-manpage

[docs] fixes to log profiler manpage

6 years ago[bcl] Clean up FRAMEWORK_VERSION 4.0 and 2.0 checks (#5356)
Alexander Köplinger [Fri, 11 Aug 2017 14:22:02 +0000 (16:22 +0200)]
[bcl] Clean up FRAMEWORK_VERSION 4.0 and 2.0 checks (#5356)

We don't build those profiles anymore, we have a net_4_x configuration instead.

6 years ago[docs] mprof-report manpage - remove "onlycoverage" log profiler option
Uri Simchoni [Thu, 10 Aug 2017 19:49:16 +0000 (22:49 +0300)]
[docs] mprof-report manpage - remove "onlycoverage" log profiler option

This option does not exist in the code.

6 years ago[docs] mprof-report manpage - document heapshot-on-shutdown
Uri Simchoni [Thu, 10 Aug 2017 19:48:36 +0000 (22:48 +0300)]
[docs] mprof-report manpage - document heapshot-on-shutdown

Document the heapshot-on-shutdown log profiler option.

6 years ago[docs] mprof-report manpage - document '#' output option
Uri Simchoni [Fri, 11 Aug 2017 06:56:20 +0000 (09:56 +0300)]
[docs] mprof-report manpage - document '#' output option

Document ability to use the log profiler with an open file
descriptor.

6 years ago[llvm] Avoid generating invalid llvm IR when a finally clause contains a loop which...
Zoltan Varga [Fri, 11 Aug 2017 00:29:10 +0000 (20:29 -0400)]
[llvm] Avoid generating invalid llvm IR when a finally clause contains a loop which branches back to the beginning of the finally clause. (#5354)

6 years ago[mini] Emit widen ops when storing to locals of size < 4. Fixes #58379.
Rodrigo Kumpera [Thu, 10 Aug 2017 22:22:07 +0000 (15:22 -0700)]
[mini] Emit widen ops when storing to locals of size < 4. Fixes #58379.

6 years agoMerge pull request #5323 from cherusker/cherusker-2017-08-07-fix-strerror
Rodrigo Kumpera [Thu, 10 Aug 2017 21:12:02 +0000 (17:12 -0400)]
Merge pull request #5323 from cherusker/cherusker-2017-08-07-fix-strerror

[eglib] Fix g_strerror / monoeg_g_strerror

6 years ago[mono-api-html] Allow `-r` to ignore class removals
Jonathan Pryor [Thu, 10 Aug 2017 20:22:31 +0000 (16:22 -0400)]
[mono-api-html] Allow `-r` to ignore class removals

Allow `mono-api-html -r REGEX` to be used to silence messages
regarding class and namespace removals in addition to member removals.

6 years ago[docs] mprof-report manpage -- fix desctiption of existing file behavior
Uri Simchoni [Wed, 9 Aug 2017 10:44:39 +0000 (13:44 +0300)]
[docs] mprof-report manpage -- fix desctiption of existing file behavior

Fix the description of what happens when the output file already exists.

6 years ago[docs] remove non-existant option from log profiler manpage
Uri Simchoni [Wed, 9 Aug 2017 10:42:33 +0000 (13:42 +0300)]
[docs] remove non-existant option from log profiler manpage

The option of prepending a '-' to the log profiler output
filename is not supported by the code - remove it.

6 years ago[docs] Capitalization / puctuation fixes in mprof-report manpage.
Uri Simchoni [Wed, 9 Aug 2017 10:39:21 +0000 (13:39 +0300)]
[docs] Capitalization / puctuation fixes in mprof-report manpage.

6 years agoMore codeowners updates
Marek Safar [Thu, 10 Aug 2017 19:00:31 +0000 (21:00 +0200)]
More codeowners updates

6 years agoUpdate codeowners
Marek Safar [Thu, 10 Aug 2017 18:17:37 +0000 (20:17 +0200)]
Update codeowners

6 years agoDistinguish between the XSI-compliant and the GNU-specific version of `strerror_r ()`
cherusker [Mon, 7 Aug 2017 12:12:53 +0000 (14:12 +0200)]
Distinguish between the XSI-compliant and the GNU-specific version of `strerror_r ()`
- add USE_STRERROR_R_XSI to use the feature test macros conveniently later
- deal with the GNU-specific version of `strerror_r ()` separately (leave the code for the XSI-compliant version untouched)
- make `buff_len` size_t as this is ISO compliant (even though it should not really matter in this case)

6 years agoAdd rules to run TSan with run-jenkins.sh (#5254)
Armin Hasitzka [Thu, 10 Aug 2017 16:22:16 +0000 (18:22 +0200)]
Add rules to run TSan with run-jenkins.sh (#5254)

- export TSan flags that are used by the compiler and the compiled program
- introduce `make_timeout` to set individual timeouts for `make` based on the config (e.g. TSan will only get 30 minutes to complete)

6 years agoAdd implementation and tests for MatrixValueSerializer and MatrixConverter
Mikhail Filippov [Wed, 9 Aug 2017 11:11:54 +0000 (14:11 +0300)]
Add implementation and tests for MatrixValueSerializer and MatrixConverter

6 years agoUncomment fixed SizeConveter tests
Mikhail Filippov [Wed, 9 Aug 2017 11:16:22 +0000 (14:16 +0300)]
Uncomment fixed SizeConveter tests

6 years ago[monodis] Not all override methods are errors
Aleksey Kliger [Wed, 9 Aug 2017 15:31:17 +0000 (11:31 -0400)]
[monodis] Not all override methods are errors

Check whether mono_get_method_checked returned an error, if not, just decode
the override normally.

This partly reverts f100c2f5ff1a626fa4f467973e5cff7e5b2d3692

6 years ago[TSan] Yet another idea about whitelisting data races (#5310)
Armin Hasitzka [Thu, 10 Aug 2017 14:16:02 +0000 (16:16 +0200)]
[TSan] Yet another idea about whitelisting data races (#5310)

* Introduce racing.h
- introduce the `RacingIncrement* ()` functions
- test the `RacingIncrement* ()` functions with races of `mono_stats` in class.c
- add racing.h to Makefile.am, libmonoutils.vcxproj and msvc/libmonoutils.vcxproj.filters

* [fixup!] Rename "racing" to "unlocked"
- rename racing.h to unlocked.h
- update new file name in Makefile.am and *.vcxproj* files
- rename the functions from Racing* to Unlocked*
- update the macro logic

6 years ago[msbuild] Bump to xplat-master branch HEAD
Ankit Jain [Thu, 10 Aug 2017 01:07:10 +0000 (21:07 -0400)]
[msbuild] Bump to xplat-master branch HEAD

6 years ago[mono-symbolicate/mdoc] Don't fail tests in mcs mode (#5348)
Alexander Köplinger [Thu, 10 Aug 2017 00:33:23 +0000 (02:33 +0200)]
[mono-symbolicate/mdoc] Don't fail tests in mcs mode (#5348)

The checked in test files which the test suites in mono-symbolicate
and mdoc verify their output against have a few roslyn-specific
things in them and would fail when running in mcs mode.

While in theory we could check in both mcs- and roslyn-specific
test files it seems not worth the effort and we should just skip
the tests in mcs mode so we get greener builds on platforms
where we still use mcs by default.

6 years agoRevert "[runtime] Avoid building a separate static library, use the shared object...
Alexander Köplinger [Wed, 9 Aug 2017 18:04:55 +0000 (20:04 +0200)]
Revert "[runtime] Avoid building a separate static library, use the shared object files for the static library as well. (#5233)"

This reverts commit 56a1881bff83365978e7eb30d18da8809b56c1e2.

It caused a consistent test error on ARM64:
https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/2810/testReport/regression-tests/dummy/MonoTests_regressions_100percentsuccess/

6 years agoUpdate CODEOWNERS
Bernhard Urban [Wed, 9 Aug 2017 17:57:44 +0000 (19:57 +0200)]
Update CODEOWNERS

6 years ago[interp] builtin types (#5339)
Bernhard Urban [Wed, 9 Aug 2017 17:49:43 +0000 (19:49 +0200)]
[interp] builtin types (#5339)

* [interp] support System.{nint,nuint,nfloat} (64bit only so far)

* [interp] 32bit support for System.{nint,nuint,nfloat}

* [fixup] explain mint_niy

6 years ago[System]: Fix memory leak in AppleTls. (#5305)
Martin Baulig [Wed, 9 Aug 2017 16:27:28 +0000 (12:27 -0400)]
[System]: Fix memory leak in AppleTls. (#5305)

* [System]: Fix memory leak in AppleTls.

* Apply Miguel's patch to use GCHandleType.Weak.

* Actually assign context.

6 years agoMerge pull request #4379 from ermshiperete/master
Aleksey Kliger (λgeek) [Wed, 9 Aug 2017 03:00:55 +0000 (23:00 -0400)]
Merge pull request #4379 from ermshiperete/master

[runtime] Fix bug when marshaling COM interfaces in arrays

6 years agoDefault powerpc to mcs instead of roslyn (#5326)
Alexander Köplinger [Wed, 9 Aug 2017 01:03:50 +0000 (03:03 +0200)]
Default powerpc to mcs instead of roslyn (#5326)

It is crashing still way more than it works and now that the mcs
configuration works again we should default to that to make our CI
more pleasant.

6 years ago[runtime] Remove ves_icall_object_new_fast (), its only a bit faster than object_new_...
Zoltan Varga [Tue, 8 Aug 2017 23:56:21 +0000 (19:56 -0400)]
[runtime] Remove ves_icall_object_new_fast (), its only a bit faster than object_new_specific (), fast allocation is done by the managed allocators. Also remove mono_class_get_allocation_ftn () which is not needed anymore. (#5304)

6 years ago[btls] Compile btls using ninja if available. (#5333)
Zoltan Varga [Tue, 8 Aug 2017 23:54:51 +0000 (19:54 -0400)]
[btls] Compile btls using ninja if available. (#5333)

6 years ago[eglib] (goutput.c) Revert Android logging host-target change
Aleksey Kliger [Tue, 8 Aug 2017 18:45:37 +0000 (14:45 -0400)]
[eglib] (goutput.c) Revert Android logging host-target change

Revert part of 590473d01b3a3e11f87b9f2a8af3023926efca00 - the Android-specific
logging in eglib/goutput.c should be used when the host is Android, not the
target.

6 years agoFix allocation of memory to match the way it gets freed
Eberhard Beilharz [Wed, 15 Feb 2017 10:15:05 +0000 (11:15 +0100)]
Fix allocation of memory to match the way it gets freed

Since we use g_free() to free the memory we should use g_malloc()
to allocate it.

6 years ago[runtime] Fix bug when marshaling COM interfaces in arrays
Damien Daspit [Thu, 17 Nov 2016 03:47:47 +0000 (10:47 +0700)]
[runtime] Fix bug when marshaling COM interfaces in arrays

* use the correct COM interface when creating native array
* do not free CCWs when freeing the native array

This fixes Xamarin-47560.

6 years ago[runtime] Unit test for Xamarin-47560
Eberhard Beilharz [Fri, 10 Feb 2017 16:24:49 +0000 (17:24 +0100)]
[runtime] Unit test for Xamarin-47560

6 years agoFix xdebug (#5309)
Uri Simchoni [Tue, 8 Aug 2017 20:38:25 +0000 (23:38 +0300)]
Fix xdebug (#5309)

* [mini] fix xdebug null pointer dereferencing

Some trampolines are nameless, avoid crashing when generating their
debug info.

This change is released under the MIT license.

* [mini]: image-writer - move definition of USE_BIN_WRITER to header file

USE_BIN_WRITER is being used by xdebug for conditional compilation.

This change is released under the MIT license.

* [mini]: xdebug - obtain definition of USE_BIN_WRITER from header file

This re-enables xdebug on supported platforms.

This change is released under the MIT license.

6 years ago[runtime] Fix a case where klass->blittable was written without holding the loader...
Zoltan Varga [Tue, 8 Aug 2017 20:35:54 +0000 (16:35 -0400)]
[runtime] Fix a case where klass->blittable was written without holding the loader locked. (#5331)

6 years ago[btls] Enable ccache support for cmake. (#5332)
Zoltan Varga [Tue, 8 Aug 2017 20:35:06 +0000 (16:35 -0400)]
[btls] Enable ccache support for cmake. (#5332)

6 years agoadd #if MONO around change to make it easier for merging upstream referencesource...
Michael DeRoy [Tue, 8 Aug 2017 13:59:51 +0000 (09:59 -0400)]
add #if MONO around change to make it easier for merging upstream referencesource changes for the xamaran folks

6 years agoCall array sort function that takes comparison instead rather than allocating for...
Michael DeRoy [Tue, 8 Aug 2017 02:26:11 +0000 (22:26 -0400)]
Call array sort function that takes comparison instead rather than allocating for a wrapper struct

6 years agoAdd implementation and tests for SizeValueSerializer
Mikhail Filippov [Tue, 8 Aug 2017 13:58:56 +0000 (16:58 +0300)]
Add implementation and tests for SizeValueSerializer

6 years ago[mcs] Soften referenced assemblies unification rules. Fixes #58621
Marek Safar [Tue, 8 Aug 2017 14:35:26 +0000 (16:35 +0200)]
[mcs] Soften referenced assemblies unification rules. Fixes #58621

6 years agoMerge pull request #5335 from mono/master-bump-fsharp
Jason Imison [Tue, 8 Aug 2017 11:55:10 +0000 (12:55 +0100)]
Merge pull request #5335 from mono/master-bump-fsharp

Bump F# to 4.1.25 and remove already merged patches

6 years agoBump F# to 4.1.25 and remove already merged patches
nosami [Tue, 8 Aug 2017 11:32:12 +0000 (12:32 +0100)]
Bump F# to 4.1.25 and remove already merged patches

6 years agoBump API snapshot
Alexander Köplinger [Tue, 8 Aug 2017 09:56:55 +0000 (11:56 +0200)]
Bump API snapshot

6 years agoMerge pull request #5317 from alexrp/master
Alex Rønne Petersen [Tue, 8 Aug 2017 06:55:11 +0000 (08:55 +0200)]
Merge pull request #5317 from alexrp/master

[profiler] Some profiler API improvements.

6 years ago[runtime] Avoid building a separate static library, use the shared object files for...
Zoltan Varga [Tue, 8 Aug 2017 03:48:52 +0000 (23:48 -0400)]
[runtime] Avoid building a separate static library, use the shared object files for the static library as well. (#5233)

6 years ago[jit] Remove unused mono_arch_print_tree () function. (#5258)
Zoltan Varga [Mon, 7 Aug 2017 21:44:02 +0000 (17:44 -0400)]
[jit] Remove unused mono_arch_print_tree () function. (#5258)

6 years ago[runtime] Remove empty eglib/ dir.
Zoltan Varga [Mon, 7 Aug 2017 21:19:30 +0000 (17:19 -0400)]
[runtime] Remove empty eglib/ dir.

6 years ago[runtime] Move eglib into mono/eglib so it becomes a convenience library similar...
Zoltan Varga [Mon, 7 Aug 2017 21:14:31 +0000 (17:14 -0400)]
[runtime] Move eglib into mono/eglib so it becomes a convenience library similar to utils/ etc. (#5297)

6 years ago[profiler] Split method_leave callback into a method_tail_call callback.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:30:59 +0000 (22:30 +0200)]
[profiler] Split method_leave callback into a method_tail_call callback.

With this, profilers can distinguish between the two, and also know what the
target method of a tail call is.

The call instrumentation flags have been renamed accordingly and a new flag has
been added for instrumenting tail calls. I've also added a flag for exceptional
leave events, and method_exception_leave is only raised if this flag is given
for a method.

Also refactored the relevant JIT code a bit so it's easier to follow.

6 years ago[profiler] Mark generated raise functions as ICALL_DECL_EXPORT.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:28:15 +0000 (22:28 +0200)]
[profiler] Mark generated raise functions as ICALL_DECL_EXPORT.

This is currently needed for method_enter, method_leave, and gc_allocation.

6 years ago[runtime] Declare MonoProfilerCallContext::return_value offset.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:27:49 +0000 (22:27 +0200)]
[runtime] Declare MonoProfilerCallContext::return_value offset.

6 years ago[runtime] Add ICALL_DECL_EXPORT.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:27:10 +0000 (22:27 +0200)]
[runtime] Add ICALL_DECL_EXPORT.

ICALL_EXPORT is only used on function definitions, not declarations.

6 years ago[profiler] Properly clean up the resources used by the profiler API on shutdown.
Alex Rønne Petersen [Sat, 5 Aug 2017 16:49:56 +0000 (18:49 +0200)]
[profiler] Properly clean up the resources used by the profiler API on shutdown.

Also introduce mono_profiler_set_cleanup_callback ().

6 years ago[profiler] Some improvements to the code coverage API.
Alex Rønne Petersen [Sat, 5 Aug 2017 16:18:54 +0000 (18:18 +0200)]
[profiler] Some improvements to the code coverage API.

Code coverage must now be explicitly enabled. This simplifies initialization
of some coverage-related structures and also lets us enable debug info which
is needed to produce good data.

Also change the signature of mono_profiler_get_coverage_data so it returns a
value indicating whether coverage data was available.

6 years ago[msvc] Update csproj files
Alexander Köplinger [Mon, 7 Aug 2017 20:13:59 +0000 (22:13 +0200)]
[msvc] Update csproj files

6 years ago[genproj] Simplify strong name key handling
Alexander Köplinger [Mon, 7 Aug 2017 15:54:30 +0000 (17:54 +0200)]
[genproj] Simplify strong name key handling

It doesn't need to be in a separate PropertyGroup.

6 years ago[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read...
Armin Hasitzka [Mon, 7 Aug 2017 19:10:32 +0000 (21:10 +0200)]
[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read) (#5285)

[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read)

While testing Clang's AddressSanitizer, I found and fixed a buffer overflow.

Up for discussion: it might be worth importing `strlcpy` (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/string/strlcpy.c?rev=1.11) for similar purposes as it provides additional safety and also helps with the readability?