mono.git
6 years agoMerge pull request #5439 from alexrp/master
Alex Rønne Petersen [Thu, 24 Aug 2017 17:21:47 +0000 (19:21 +0200)]
Merge pull request #5439 from alexrp/master

[profiler] Fix some stack imbalance issues due to missing method leave events.

6 years ago[profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode.
Alex Rønne Petersen [Thu, 24 Aug 2017 15:08:49 +0000 (17:08 +0200)]
[profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode.

6 years ago[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.
Alex Rønne Petersen [Thu, 24 Aug 2017 15:08:20 +0000 (17:08 +0200)]
[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.

6 years ago[mcs] Update logic when checking for tuple element names when overriding inherited...
Marek Safar [Thu, 24 Aug 2017 08:37:05 +0000 (10:37 +0200)]
[mcs] Update logic when checking for tuple element names when overriding inherited member

6 years agoRevert "[runtime] Fix a warning."
Zoltan Varga [Thu, 24 Aug 2017 02:46:10 +0000 (22:46 -0400)]
Revert "[runtime] Fix a warning."

This reverts commit f99617537ba31a046ede2753733d20c20a30e714.

Revert this as the original code was right, there is a problem with the defines.

6 years agoMerge pull request #5415 from kumpera/wasm-support
Rodrigo Kumpera [Wed, 23 Aug 2017 23:03:16 +0000 (19:03 -0400)]
Merge pull request #5415 from kumpera/wasm-support

WebAssembly port

6 years ago[wasm] Don't define MONO_CROSS_COMPILE in the wasm configure.ac
Rodrigo Kumpera [Tue, 22 Aug 2017 20:15:04 +0000 (13:15 -0700)]
[wasm] Don't define MONO_CROSS_COMPILE in the wasm configure.ac

6 years ago[utils] Fix mono_valloc and mono_valloc_aligned malloc-based implementation.
Rodrigo Kumpera [Tue, 22 Aug 2017 20:02:10 +0000 (13:02 -0700)]
[utils] Fix mono_valloc and mono_valloc_aligned malloc-based implementation.

6 years ago[wasm] Add wasm stubs for object-offsets and sgen-archdep.
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:33 +0000 (11:42 -0700)]
[wasm] Add wasm stubs for object-offsets and sgen-archdep.

6 years ago[wasm] Add wasm strings to mono-config.c
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:01 +0000 (11:42 -0700)]
[wasm] Add wasm strings to mono-config.c

6 years ago[wasm] Add comments explaining the magic strings in mono-dl-wasm.c
Rodrigo Kumpera [Tue, 22 Aug 2017 18:37:28 +0000 (11:37 -0700)]
[wasm] Add comments explaining the magic strings in mono-dl-wasm.c

6 years ago[readme] Document --enable-wasm
Rodrigo Kumpera [Tue, 22 Aug 2017 18:36:45 +0000 (11:36 -0700)]
[readme] Document --enable-wasm

6 years ago[wasm] Add threading, dl and hwcap support for wasm.
Rodrigo Kumpera [Mon, 21 Aug 2017 23:26:04 +0000 (16:26 -0700)]
[wasm] Add threading, dl and hwcap support for wasm.

6 years ago[TSan] Unlocking MonoStats, GCStats and JITGCStats (#5381)
Armin Hasitzka [Wed, 23 Aug 2017 17:50:34 +0000 (19:50 +0200)]
[TSan] Unlocking MonoStats, GCStats and JITGCStats (#5381)

[TSan] Unlocking MonoStats, GCStats and JITGCStats

As the `Unlocked* ()` functions have been approved in https://github.com/mono/mono/pull/5310, I used them to blacklist some of the most obvious counting variables whose data races should be ignored: `MonoStats`, `GCStats` and `JITGCStats` (more to follow if approved).

Please find details about all changes within the commit messages.

6 years ago[threadpool] Reduce logging verbosity level. Fixes #58829
Marek Safar [Tue, 22 Aug 2017 16:30:08 +0000 (18:30 +0200)]
[threadpool] Reduce logging verbosity level. Fixes #58829

6 years agoAdded compile target option as library
Elastino [Wed, 23 Aug 2017 03:42:16 +0000 (12:42 +0900)]
Added compile target option as library

Added -t:library since mcd does not interpret output filename for dll suffix.
Without -t:library option, it fails to compile.
{code}
mono$ mcs -debug+ -r:System.Core Options.cs -o:Mono.Options.dll
error CS5001: Program `Options.exe' does not contain a static `Main' method suitable for an entry point
Compilation failed: 1 error(s), 0 warnings
{code}

6 years agoMerge pull request #5423 from vargaz/workaround-58901
Alexander Köplinger [Wed, 23 Aug 2017 00:04:18 +0000 (02:04 +0200)]
Merge pull request #5423 from vargaz/workaround-58901

[runtime] Disable a test which asserts because of an abi break in rec…

6 years agoRevert "Disable pinvoke2.exe test on OSX i386 for now (#5411)"
Zoltan Varga [Tue, 22 Aug 2017 20:53:01 +0000 (16:53 -0400)]
Revert "Disable pinvoke2.exe test on OSX i386 for now (#5411)"

This reverts commit 4d89d5f17bb72fb2e192736653923d8d90741a01.

Revert this as the problematic test is disabled in libtest.c.

6 years ago[runtime] Disable a test which asserts because of an abi break in recent xcode/clang...
Zoltan Varga [Tue, 22 Aug 2017 18:46:48 +0000 (14:46 -0400)]
[runtime] Disable a test which asserts because of an abi break in recent xcode/clang versions. Works around #58901.

6 years ago[Mono.Security] Bugfix of bug 23153. Certificate loop variable not used to find certi...
Rogier Hofboer [Tue, 22 Aug 2017 11:38:25 +0000 (13:38 +0200)]
[Mono.Security] Bugfix of bug 23153. Certificate loop variable not used to find certificate

6 years ago[msi] Fix typos in f9bdab792800cd8f95bb71f02f403f2d414cce9b
Jo Shields [Tue, 22 Aug 2017 14:18:20 +0000 (10:18 -0400)]
[msi] Fix typos in f9bdab792800cd8f95bb71f02f403f2d414cce9b

6 years ago[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)
Infko [Tue, 22 Aug 2017 13:11:43 +0000 (21:11 +0800)]
[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)

6 years ago[bcl] Remove unused left over .args files
Alexander Köplinger [Tue, 22 Aug 2017 13:05:59 +0000 (15:05 +0200)]
[bcl] Remove unused left over .args files

6 years ago[MacSDK] Whitelist the csi script
Alexander Köplinger [Tue, 22 Aug 2017 10:49:35 +0000 (12:49 +0200)]
[MacSDK] Whitelist the csi script

6 years agoenable some tests for System.Text.UnicodeEncoding (#5414)
markusbeth [Tue, 22 Aug 2017 00:49:37 +0000 (02:49 +0200)]
enable some tests for System.Text.UnicodeEncoding (#5414)

Remove attribute Category ("NotWorking") from tests GetString_Odd_Count_0
and GetString_Odd_Count_ff as they are now working.

6 years ago[utils] Fix atomic fallout implementation function naming.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:31:05 +0000 (15:31 -0700)]
[utils] Fix atomic fallout implementation function naming.

6 years ago[wasm] Add wasm stubs for MonoContext and membar ops.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:30:16 +0000 (15:30 -0700)]
[wasm] Add wasm stubs for MonoContext and membar ops.

6 years ago[WASM] Hack configure.ac to support wasm. Use --enable-wasm instead of --host / ...
Rodrigo Kumpera [Mon, 21 Aug 2017 22:14:43 +0000 (15:14 -0700)]
[WASM] Hack configure.ac to support wasm. Use --enable-wasm instead of --host / --target

6 years agoMerge pull request #5406 from kumpera/fix_12157
Rodrigo Kumpera [Mon, 21 Aug 2017 20:18:31 +0000 (16:18 -0400)]
Merge pull request #5406 from kumpera/fix_12157

[verifier] Base constructors can only be called on uninit'd this pointers. Fix #12157.

6 years agoMerge pull request #5407 from kumpera/fix_31225
Rodrigo Kumpera [Mon, 21 Aug 2017 20:04:06 +0000 (16:04 -0400)]
Merge pull request #5407 from kumpera/fix_31225

[pedump] Have the assembly search hook look at the same directory of the assembly being verified.

6 years agoFix method-access.exe test (#5412)
Alexander Köplinger [Mon, 21 Aug 2017 15:33:40 +0000 (17:33 +0200)]
Fix method-access.exe test (#5412)

The exception message of a MethodAccessException was changed in 7b8811573784a244de3ce559ad4512e913ab31aa.
This caused the method-access.exe test to fail since it checked for the old format.

6 years agoDisable pinvoke2.exe test on OSX i386 for now (#5411)
Alexander Köplinger [Mon, 21 Aug 2017 15:09:06 +0000 (17:09 +0200)]
Disable pinvoke2.exe test on OSX i386 for now (#5411)

Reenable once https://bugzilla.xamarin.com/show_bug.cgi?id=58901 is fixed.

6 years ago[msi] Pull in MSI changes from Mono 5.2 branch
Jo Shields [Mon, 21 Aug 2017 13:59:36 +0000 (09:59 -0400)]
[msi] Pull in MSI changes from Mono 5.2 branch

(cherry picked from commit 929575bb0eba1139b786690e719844c4ef52b7db)

6 years agoBump libgdiplus (#5393)
Alexander Köplinger [Mon, 21 Aug 2017 13:28:44 +0000 (15:28 +0200)]
Bump libgdiplus (#5393)

6 years agoBump timeout for TaskTests.Delay_Simple (#5410)
Alexander Köplinger [Mon, 21 Aug 2017 11:45:58 +0000 (13:45 +0200)]
Bump timeout for TaskTests.Delay_Simple (#5410)

Should be reverted once https://bugzilla.xamarin.com/show_bug.cgi?id=58877 is investigated and fixed.

6 years agoUse absolute paths to avoid ambiguity
Marek Safar [Mon, 21 Aug 2017 11:04:34 +0000 (13:04 +0200)]
Use absolute paths to avoid ambiguity

6 years agoCODEOWNERS update
Marek Safar [Mon, 21 Aug 2017 08:45:30 +0000 (10:45 +0200)]
CODEOWNERS update

6 years agoAdd null check for target to optimized delegate constructor code path. Fixes case...
Jonathan Chambers [Sat, 19 Aug 2017 01:34:29 +0000 (21:34 -0400)]
Add null check for target to optimized delegate constructor code path. Fixes case 58888 (#5404)

6 years agoUpdate CODEOWNERS
Alexander Köplinger [Sat, 19 Aug 2017 00:40:54 +0000 (02:40 +0200)]
Update CODEOWNERS

6 years agoRemove lingering bits from removed prj2make tool (#5405)
Miguel de Icaza [Sat, 19 Aug 2017 00:05:32 +0000 (20:05 -0400)]
Remove lingering bits from removed prj2make tool (#5405)

6 years ago[pedump] Have the assembly search hook look at the same directory of the assembly...
Rodrigo Kumpera [Fri, 18 Aug 2017 22:40:03 +0000 (15:40 -0700)]
[pedump] Have the assembly search hook look at the same directory of the assembly being verified.

Unfortunately using mono_set_assemblies_path is not much of an option as it disables the MONO_PATH env var
and that's needed when working with an in-tree pedump - cuz having to `make install` all the time is BS.

6 years ago[verifier] Base constructors can only be called on uninit'd this pointers. Fix #12157.
Rodrigo Kumpera [Fri, 18 Aug 2017 22:00:45 +0000 (15:00 -0700)]
[verifier] Base constructors can only be called on uninit'd this pointers. Fix #12157.

6 years agoMore codeowners updates
Marek Safar [Fri, 18 Aug 2017 21:13:29 +0000 (23:13 +0200)]
More codeowners updates

6 years agoMerge pull request #5396 from kumpera/fix_11696
Rodrigo Kumpera [Fri, 18 Aug 2017 20:04:34 +0000 (13:04 -0700)]
Merge pull request #5396 from kumpera/fix_11696

[verifier] Check methodimpl table for duplicated. Fixes #11696

6 years agoMerge pull request #5397 from kumpera/fix_41279
Rodrigo Kumpera [Fri, 18 Aug 2017 20:04:08 +0000 (13:04 -0700)]
Merge pull request #5397 from kumpera/fix_41279

[runtime] Format MethodAccessException method names to use the same formating as reflection. Fixes #41279

6 years ago[jit] Don't emit a redundant move in lazy fetch trampolines on AMD64. (#5346)
vkargov [Fri, 18 Aug 2017 15:09:30 +0000 (08:09 -0700)]
[jit] Don't emit a redundant move in lazy fetch trampolines on AMD64. (#5346)

6 years ago[threads] Use designated initializer syntax in MAKE_SPECIAL_STATIC_OFFSET
Aleksey Kliger [Thu, 17 Aug 2017 22:56:49 +0000 (18:56 -0400)]
[threads] Use designated initializer syntax in MAKE_SPECIAL_STATIC_OFFSET

Originally we used a C90-style struct initializer `{ (index), (offset), (type)
}`.  Unfortunately, SpecialStaticOffset is defined with fields in a different
order on big-endian and little-endian machines.  Using a designated
initializer, we don't have to care about the order.

6 years ago[runtime] Format MethodAccessException method names to use the same formating as...
Rodrigo Kumpera [Thu, 17 Aug 2017 22:47:27 +0000 (15:47 -0700)]
[runtime] Format MethodAccessException method names to use the same formating as reflection. Fixes #41279

Add mono_method_get_reflection_name that returns the string managed is expecting.

6 years agoMerge pull request #5390 from kumpera/fix_58637
Rodrigo Kumpera [Thu, 17 Aug 2017 22:37:16 +0000 (18:37 -0400)]
Merge pull request #5390 from kumpera/fix_58637

[corlib] When parsing the ECMA key, don't produce a public key. Fixes #58637

6 years agoBump bockbuild to remove gtk+ screen patch
Alexander Köplinger [Thu, 17 Aug 2017 19:12:17 +0000 (21:12 +0200)]
Bump bockbuild to remove gtk+ screen patch

6 years ago[runtime] Don't set pkey to a value that will be freed immediately after.
Rodrigo Kumpera [Thu, 17 Aug 2017 18:33:37 +0000 (11:33 -0700)]
[runtime] Don't set pkey to a value that will be freed immediately after.

6 years agoupdate CODEOWNERS
Rodrigo Kumpera [Thu, 17 Aug 2017 18:01:04 +0000 (11:01 -0700)]
update CODEOWNERS

6 years ago[verifier] Check methodimpl table for duplicated. Fixes #11696
Rodrigo Kumpera [Wed, 16 Aug 2017 22:42:33 +0000 (15:42 -0700)]
[verifier] Check methodimpl table for duplicated. Fixes #11696

6 years ago[marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384)
Ludovic Henry [Thu, 17 Aug 2017 17:11:23 +0000 (19:11 +0200)]
[marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384)

* [marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace

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

* [interp] disable tests for 58782 as they rely on appdomains

6 years ago[w32error] Add ENODEV -> ERROR_DEV_NOT_EXIST error translation (#5385)
Ludovic Henry [Thu, 17 Aug 2017 17:03:40 +0000 (19:03 +0200)]
[w32error] Add ENODEV -> ERROR_DEV_NOT_EXIST error translation (#5385)

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

6 years agoBump bockbuild
Alexander Köplinger [Thu, 17 Aug 2017 16:46:12 +0000 (18:46 +0200)]
Bump bockbuild

6 years ago[SWF] Fix string drawing truncation in combo boxes
Eberhard Beilharz [Wed, 16 Aug 2017 18:33:18 +0000 (12:33 -0600)]
[SWF] Fix string drawing truncation in combo boxes

This fixes Xamarin-10321. This change fixes the problem in SWF rather
than in libgdiplus which has the advantage that it works with both
Cairo and Pango renderers.

Without the additional NoWrap flag the text will wrap at a word boundary,
which results in the combo box showing lines with potentially a lot of
empty space at the end. With the NoWrap flag we render only one line,
displaying as many characters as possible in that one line.

6 years agoUse the `Unlocked* ()` functions to blacklist specific load / store operations (...
Armin Hasitzka [Thu, 17 Aug 2017 07:54:26 +0000 (09:54 +0200)]
Use the `Unlocked* ()` functions to blacklist specific load / store operations (#5387)

- avoid blacklisting whole functions with `MONO_NO_SANITIZE_THREAD`
- change `long` to `gint64` as it is more portable

6 years ago[corlib] When parsing the ECMA key, don't produce a public key. Fixes #58637
Rodrigo Kumpera [Wed, 16 Aug 2017 23:43:11 +0000 (16:43 -0700)]
[corlib] When parsing the ECMA key, don't produce a public key. Fixes #58637

The key was incorrectly encoded and triggered heap corruption.

6 years ago[corlib] Increase timeout for MonoTests.System.Runtime.Remoting.TestSynchronizationRe...
Ludovic Henry [Wed, 16 Aug 2017 20:21:13 +0000 (22:21 +0200)]
[corlib] Increase timeout for MonoTests.System.Runtime.Remoting.TestSynchronizationReleasedOnMultipleAcquire (#5373)

6 years agoBump bockbuild
Alexander Köplinger [Wed, 16 Aug 2017 17:09:28 +0000 (19:09 +0200)]
Bump bockbuild

6 years agoUpdate list of denied assemblies
Marek Safar [Wed, 16 Aug 2017 11:15:41 +0000 (13:15 +0200)]
Update list of denied assemblies

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