Rodrigo Kumpera [Wed, 23 Aug 2017 23:03:16 +0000 (19:03 -0400)]
Merge pull request #5415 from kumpera/wasm-support
WebAssembly port
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
Rodrigo Kumpera [Tue, 22 Aug 2017 20:02:10 +0000 (13:02 -0700)]
[utils] Fix mono_valloc and mono_valloc_aligned malloc-based implementation.
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:33 +0000 (11:42 -0700)]
[wasm] Add wasm stubs for object-offsets and sgen-archdep.
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:01 +0000 (11:42 -0700)]
[wasm] Add wasm strings to mono-config.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
Rodrigo Kumpera [Tue, 22 Aug 2017 18:36:45 +0000 (11:36 -0700)]
[readme] Document --enable-wasm
Rodrigo Kumpera [Mon, 21 Aug 2017 23:26:04 +0000 (16:26 -0700)]
[wasm] Add threading, dl and hwcap support for wasm.
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.
Marek Safar [Tue, 22 Aug 2017 16:30:08 +0000 (18:30 +0200)]
[threadpool] Reduce logging verbosity level. Fixes #58829
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}
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…
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.
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.
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
Jo Shields [Tue, 22 Aug 2017 14:18:20 +0000 (10:18 -0400)]
Infko [Tue, 22 Aug 2017 13:11:43 +0000 (21:11 +0800)]
[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)
Alexander Köplinger [Tue, 22 Aug 2017 13:05:59 +0000 (15:05 +0200)]
[bcl] Remove unused left over .args files
Alexander Köplinger [Tue, 22 Aug 2017 10:49:35 +0000 (12:49 +0200)]
[MacSDK] Whitelist the csi script
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.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:31:05 +0000 (15:31 -0700)]
[utils] Fix atomic fallout implementation function naming.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:30:16 +0000 (15:30 -0700)]
[wasm] Add wasm stubs for MonoContext and membar ops.
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
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.
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.
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.
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.
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)
Alexander Köplinger [Mon, 21 Aug 2017 13:28:44 +0000 (15:28 +0200)]
Bump libgdiplus (#5393)
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.
Marek Safar [Mon, 21 Aug 2017 11:04:34 +0000 (13:04 +0200)]
Use absolute paths to avoid ambiguity
Marek Safar [Mon, 21 Aug 2017 08:45:30 +0000 (10:45 +0200)]
CODEOWNERS update
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)
Alexander Köplinger [Sat, 19 Aug 2017 00:40:54 +0000 (02:40 +0200)]
Update CODEOWNERS
Miguel de Icaza [Sat, 19 Aug 2017 00:05:32 +0000 (20:05 -0400)]
Remove lingering bits from removed prj2make tool (#5405)
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.
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.
Marek Safar [Fri, 18 Aug 2017 21:13:29 +0000 (23:13 +0200)]
More codeowners updates
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
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
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)
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.
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.
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
Alexander Köplinger [Thu, 17 Aug 2017 19:12:17 +0000 (21:12 +0200)]
Bump bockbuild to remove gtk+ screen patch
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.
Rodrigo Kumpera [Thu, 17 Aug 2017 18:01:04 +0000 (11:01 -0700)]
update CODEOWNERS
Rodrigo Kumpera [Wed, 16 Aug 2017 22:42:33 +0000 (15:42 -0700)]
[verifier] Check methodimpl table for duplicated. Fixes #11696
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
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
Alexander Köplinger [Thu, 17 Aug 2017 16:46:12 +0000 (18:46 +0200)]
Bump bockbuild
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.
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
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.
Ludovic Henry [Wed, 16 Aug 2017 20:21:13 +0000 (22:21 +0200)]
[corlib] Increase timeout for MonoTests.System.Runtime.Remoting.TestSynchronizationReleasedOnMultipleAcquire (#5373)
Alexander Köplinger [Wed, 16 Aug 2017 17:09:28 +0000 (19:09 +0200)]
Bump bockbuild
Marek Safar [Wed, 16 Aug 2017 11:15:41 +0000 (13:15 +0200)]
Update list of denied assemblies
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
Ankit Jain [Wed, 16 Aug 2017 03:50:09 +0000 (23:50 -0400)]
[msbuild] bump to xplat-master branch HEAD
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 .
Ankit Jain [Wed, 16 Aug 2017 02:55:13 +0000 (22:55 -0400)]
[msbuild] bump to xplat-master branch HEAD
Rodrigo Kumpera [Tue, 15 Aug 2017 21:56:09 +0000 (14:56 -0700)]
[verifier] Add workaround for verifying corlib and valid-only output.
Rodrigo Kumpera [Tue, 15 Aug 2017 21:54:47 +0000 (14:54 -0700)]
[verifier] Handle csc encoding of enums in cattr blobs. Fixes #58168.
Rodrigo Kumpera [Tue, 15 Aug 2017 21:53:17 +0000 (14:53 -0700)]
[runtime] Add WINDOWS_RUNTIME type attribute that csc generates
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
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.
Marek Safar [Tue, 15 Aug 2017 21:14:36 +0000 (23:14 +0200)]
netstandard dependant facades update after 2.0 release (#5371)
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.
Ankit Jain [Tue, 15 Aug 2017 20:39:27 +0000 (16:39 -0400)]
[msbuild] bump to help debug wrench build failure
Martin Baulig [Tue, 15 Aug 2017 17:25:00 +0000 (13:25 -0400)]
Add scripts/csi to .gitignore.
Martin Baulig [Tue, 15 Aug 2017 17:12:47 +0000 (13:12 -0400)]
Cosmetic; remove unnecessary cast and fix compiler warning.
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.
Martin Baulig [Tue, 15 Aug 2017 17:00:18 +0000 (13:00 -0400)]
[System]: Fix major AppleTls memory leak. Bug #56814. (#5370)
Zoltan Varga [Tue, 15 Aug 2017 15:16:48 +0000 (11:16 -0400)]
[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)
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.
Ankit Jain [Tue, 15 Aug 2017 01:07:15 +0000 (21:07 -0400)]
[msbuild] bump to help debug wrench build failure
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.
Rodrigo Kumpera [Mon, 14 Aug 2017 20:22:20 +0000 (13:22 -0700)]
[mini] Add test for implicit widen on argument stores.
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
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.
Zoltan Varga [Mon, 14 Aug 2017 18:51:55 +0000 (14:51 -0400)]
[runtime] Fix a warning.
Alexander Köplinger [Mon, 14 Aug 2017 17:27:13 +0000 (19:27 +0200)]
Bump nuget to latest 4.3.0 release (#5368)
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
Zoltan Varga [Mon, 14 Aug 2017 04:28:50 +0000 (00:28 -0400)]
Fix a warning.
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
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
Jonathan Chambers [Sat, 12 Aug 2017 14:54:01 +0000 (10:54 -0400)]
Use eglib g_* allocators rather than malloc/calloc (#5359)
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.
Zoltan Varga [Sat, 12 Aug 2017 07:07:47 +0000 (03:07 -0400)]
Bump roslyn-binaries.
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.
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.
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.
Rodrigo Kumpera [Fri, 11 Aug 2017 21:53:37 +0000 (14:53 -0700)]
Address reviewer feedback.
Ankit Jain [Fri, 11 Aug 2017 21:29:29 +0000 (17:29 -0400)]
[msbuild] Bump to xplat-master branch HEAD
Alexander Köplinger [Fri, 11 Aug 2017 20:20:53 +0000 (22:20 +0200)]
[acceptance-tests] Bump coreclr submodule
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
Alexis Christoforides [Fri, 11 Aug 2017 18:13:09 +0000 (14:13 -0400)]
[MacSDK] Switch to HTTPS for downloading SQLite
Alex Rønne Petersen [Fri, 11 Aug 2017 17:31:05 +0000 (19:31 +0200)]
[profiler] Fix code coverage support.
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)
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