monojenkins [Sat, 3 Dec 2016 21:21:43 +0000 (22:21 +0100)]
[msvc] Update csproj files (#4087)
Ludovic Henry [Sat, 3 Dec 2016 13:59:47 +0000 (08:59 -0500)]
[io-layer] Remove versioninfo.{c,h} (#4083)
Zoltan Varga [Sat, 3 Dec 2016 03:44:01 +0000 (22:44 -0500)]
[runtime] Add locking to mono_gc_compute_gc_descriptor (). (#4084)
Alexander Köplinger [Sat, 3 Dec 2016 02:37:29 +0000 (03:37 +0100)]
Fix Makefile issue on Windows
"Makefile:25: *** multiple target patterns. Stop.", according to web searches
this is because of colons in the file path. install-local always runs so we
don't really need the source files as dependency -> removing.
Miguel de Icaza [Sat, 3 Dec 2016 02:24:25 +0000 (21:24 -0500)]
[marshal] Only copy the minimum of size/length, not the full size, fixes #46288 (#4031)
Miguel de Icaza [Sat, 3 Dec 2016 02:22:38 +0000 (21:22 -0500)]
[runtime] Provide fallback for Linux systems that lack CPU_COUNT in sched.h, fixes #45683 (#4032)
Alexander Köplinger [Sat, 3 Dec 2016 00:38:08 +0000 (01:38 +0100)]
[build] Another "make dist" fix
Alexander Köplinger [Sat, 3 Dec 2016 00:18:33 +0000 (01:18 +0100)]
[ci] Add aot-test step like on Wrench (#4064)
* [ci] Add aot-test step like on Wrench
* [tests] Fix mktemp argument to work on Linux
* [ci] Only run aot-test step on OSX
It seems to crash on linux with the boehm configuration.
Zoltan Varga [Fri, 2 Dec 2016 23:10:16 +0000 (18:10 -0500)]
[runtime] Set klass->inited under the loader lock.
Zoltan Varga [Fri, 2 Dec 2016 22:22:16 +0000 (17:22 -0500)]
[runtime] Enable thread6.exe test, it should work now. (#4075)
Ludovic Henry [Fri, 2 Dec 2016 21:52:02 +0000 (16:52 -0500)]
[io-layer] Remove FormatMessage (#4055)
Ludovic Henry [Fri, 2 Dec 2016 20:06:09 +0000 (15:06 -0500)]
[io-layer] Remove security.{c,h} (#4079)
Alexander Köplinger [Fri, 2 Dec 2016 19:11:21 +0000 (20:11 +0100)]
Fix "make dist" for roslyn assemblies
Marek Safar [Fri, 2 Dec 2016 18:58:25 +0000 (19:58 +0100)]
[build] Fixes make dist
Aleksey Kliger (λgeek) [Fri, 2 Dec 2016 18:50:24 +0000 (13:50 -0500)]
Fix clang warning about no argument function prototype. (#4080)
Zoltan Varga [Fri, 2 Dec 2016 18:33:33 +0000 (13:33 -0500)]
[runtime] Call mono_class_init () before accessing klass->has_cctor in mono_class_get_cctor ().
Marek Safar [Fri, 2 Dec 2016 17:37:49 +0000 (18:37 +0100)]
[System.Runtime.InteropServices.RuntimeInformation] Updated to reference copied files directly
Johan Lorensson [Fri, 2 Dec 2016 17:23:04 +0000 (18:23 +0100)]
Fix windows build error in type-checking.c. (#4078)
Looks like commit
f3bbd799f0a6b809be3278f30a3a16fd7b323ef5 that added type-checking.c
to the windows builds broke it since it includes mini.h and ir-emit.h using
<> syntax instead of "". All other include of these files uses "" syntax. Fix
makes sure the includes in type-checking.c uses "" syntax.
monojenkins [Fri, 2 Dec 2016 17:16:26 +0000 (18:16 +0100)]
[msvc] Update csproj files (#4081)
Marek Safar [Fri, 2 Dec 2016 10:36:26 +0000 (11:36 +0100)]
[build] Enable full mcs boostrap for mcs compiler mode
Marek Safar [Fri, 2 Dec 2016 17:07:03 +0000 (18:07 +0100)]
[build] Fixes wrong dependency moved in
07c20be565add68c54364d0689c71879ad15571b
Marek Safar [Fri, 2 Dec 2016 16:56:28 +0000 (17:56 +0100)]
[corlib] Cleanup more negative sign cultures with unicode prefixes
Aleksey Kliger (λgeek) [Fri, 2 Dec 2016 16:39:39 +0000 (11:39 -0500)]
[runtime] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_checked everywhere in the runtime. (#4061)
* [runtime] Move domain icall declarations to appdomain-icalls.h
* [coop] Use handles for System.AppDomain.GetAssemblies icall
* [coop handles] Add HANDLE_FUNCTION_RETURN_REF macro
* [runtime] Handles for AppDomain.LoadAssemblyRaw and Assembly.LoadFrom
* [reflection] Coop handles for RuntimeTypeHandle.GetAssembly
* [runtime] Change mono_try_assembly_resolve to return MonoAssembly
instead of managed MonoReflectionAssembly. Update call sites.
Also implement it in terms of mono_try_assembly_resolve_handle (which
also returns MonoAssembly*, not a managed object)
* [runtime] Use handles for System.AppDomain.LoadAssembly
* [reflection] Use mono_assembly_get_object_handle instead of mono_assembly_get_object_checked
Convert all its callers to use handles and get rid of mono_assembly_get_object_checked
Marek Safar [Fri, 2 Dec 2016 16:28:33 +0000 (17:28 +0100)]
[build] Add System.Security.Cryptography.Algorithms to monolite
Ludovic Henry [Fri, 2 Dec 2016 15:33:22 +0000 (10:33 -0500)]
[io-layer] Remove status.h, types.h, timefuncs.h and macros.h (#4069)
* [io-layer] Remove status.h
* [io-layer] Remove types.h
* [io-layer] Remove timefuncs.h
* [io-layer] Remove macros.h
Marek Safar [Fri, 2 Dec 2016 15:11:52 +0000 (16:11 +0100)]
[Facades] Add System.Security.Cryptography.Algorithms to net_4_x profile
Marek Safar [Fri, 2 Dec 2016 13:23:27 +0000 (14:23 +0100)]
[mcs] Don't crash on missing forwarded mscorlib
Marek Safar [Fri, 2 Dec 2016 11:06:53 +0000 (12:06 +0100)]
Merge pull request #4063 from ntherning/fix-culture-info-problem-in-RepeatInfoTest
Ensure the System.Web.UI.WebControls.RepeatInfo_Autogen test runs under en-US
Marek Safar [Fri, 2 Dec 2016 09:25:30 +0000 (10:25 +0100)]
[build] Put back mcs to monolite to support boostrap with mcs only
Zoltan Varga [Fri, 2 Dec 2016 02:09:47 +0000 (21:09 -0500)]
Revert "[build] Put back mcs to monolite to support boostrap with mcs only"
This reverts commit
430e9d64f731e4d2d19672e00531d173e0282e98.
Revert this as it seems to break the build:
https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=2457&host_id=148&revision_id=834314
Zoltan Varga [Fri, 2 Dec 2016 00:07:45 +0000 (19:07 -0500)]
[runtime] Avoid rethrowing ThreadAbortException's from cctors down the stack from where the TAE was first caught. Fixes thread6.cs. (#4073)
Zoltan Varga [Fri, 2 Dec 2016 00:04:18 +0000 (19:04 -0500)]
[runtime] Change the vtable->initialized bitfield into a byte so its easier to load it from JITted code, the previous version was not using offsets infrastructure so it might not work when cross compiling. (#4068)
Zoltan Varga [Fri, 2 Dec 2016 00:02:33 +0000 (19:02 -0500)]
[runtime] Implement support for fixed char arrays. Fixes #48429. (#4072)
Marek Safar [Thu, 1 Dec 2016 22:53:29 +0000 (23:53 +0100)]
[build] Put back mcs to monolite to support boostrap with mcs only
Andi McClure [Thu, 1 Dec 2016 22:01:55 +0000 (17:01 -0500)]
Merge pull request #4053 from xmcclure/babysitter_cygwin
Fix babysitter script to work on Windows (Cygwin) builders
monojenkins [Thu, 1 Dec 2016 21:04:12 +0000 (22:04 +0100)]
[msvc] Update csproj files (#4074)
Zoltan Varga [Thu, 1 Dec 2016 20:53:20 +0000 (15:53 -0500)]
[msvc] Update project files.
Zoltan Varga [Thu, 1 Dec 2016 20:45:57 +0000 (15:45 -0500)]
[jit] Fix the DISABLE_REMOTING build.
Zoltan Varga [Thu, 1 Dec 2016 20:26:30 +0000 (15:26 -0500)]
[sdb] Execute the 'assembly_load' test earlier to avoid races when the finalizer thread would load another assembly.
Zoltan Varga [Thu, 1 Dec 2016 20:18:25 +0000 (15:18 -0500)]
[x86] Increase some instruction lengths.
Alexander Köplinger [Thu, 1 Dec 2016 19:57:24 +0000 (20:57 +0100)]
[genproj] Recognize /deterministic and /runtimemetadataversion
Mike Voorhees [Thu, 1 Dec 2016 19:53:44 +0000 (14:53 -0500)]
Add embedding API to expose empty string instance (#4067)
* Reuse a single empty string instance
* Undo string empty change to mono_string_new_size_checked and add new embedding api for string empty instead
* Add & use mono_string_empty_checked to fix build error on Linux
* Revert "Add & use mono_string_empty_checked to fix build error on Linux"
This reverts commit
47cafae6573115333fa04776c21e5ddc49fe4b40.
* Remove MONO_RT_EXTERNAL_ONLY to fix build error on linux
Rodrigo Kumpera [Thu, 1 Dec 2016 19:16:10 +0000 (11:16 -0800)]
Merge pull request #4048 from kumpera/iface_casting_cleanup
[mini] Reorg casting code + optimize casting of magic array interfaces.
Andi McClure [Thu, 1 Dec 2016 19:08:25 +0000 (14:08 -0500)]
Modify Jenkins scripts to enable babysitter script on Cygwin
Andi McClure [Thu, 1 Dec 2016 19:07:48 +0000 (14:07 -0500)]
Fix babysitter script to work on Windows (Cygwin) builders
The babysitter script used for CI results was previously able to run
either on Windows or standard UNIX. However, the builders run Cygwin,
which turns out to need special support. To make Cygwin work two
changes were made:
1. Paths which are exported to Mono get filtered through `cygpath`.
Paths received back from Mono are filtered in reverse. The script now
tracks two sets of path strings.
2. Under certain circumstances in Cygwin, pgkill() attempts to close a
process group and finds it does not exist. My assumption is that this
is because it has already been closed. I dealt with this by simply
catching the failure and printing a warning.
Ludovic Henry [Mon, 28 Nov 2016 20:50:28 +0000 (15:50 -0500)]
[w32handle] Rename `statuscode` parameter to `abandoned`
This parameter is only used to check if a mutex has been abandonned.
Alexander Köplinger [Thu, 1 Dec 2016 16:48:26 +0000 (17:48 +0100)]
[corlib] Use Directory.GetFiles/GetDirectories implementation from referencesource (#4042)
We already had implementations of the Windows APIs like FindFirstFile/FindNextFile
in native code but we wrapped it with some convenience functions for our implementation.
The referencesource code works directly against those APIs so I added new icall functions
that are just used for passing data to/from native code.
Note that we have the same problem in the DirectoryInfo.GetFiles() implementation.
Right now that one still uses the old Mono implementation, switching it over to
the referencesource implementation will be done in a separate commit.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42715
Alexander Köplinger [Thu, 1 Dec 2016 15:53:37 +0000 (16:53 +0100)]
Merge pull request #4065 from akoeplinger/add-mcs-lane
[ci] Add job configuration for testing Mono with mcs as compiler
Ludovic Henry [Tue, 29 Nov 2016 16:51:00 +0000 (11:51 -0500)]
[io-layer] Remove DuplicateHandle
Alexander Köplinger [Thu, 1 Dec 2016 15:41:27 +0000 (16:41 +0100)]
Fix typo in readme.md
Also format the options without braces like in the other examples.
Aleksey Kliger (λgeek) [Thu, 1 Dec 2016 15:33:25 +0000 (10:33 -0500)]
Merge pull request #4045 from lambdageek/bug-47867
[sre] Ensure generic_context is created before instantiating a TypeBuilder
Niklas Therning [Thu, 1 Dec 2016 12:55:29 +0000 (13:55 +0100)]
Ensure the System.Web.UI.WebControls.RepeatInfo_Autogen test runs under en-US
Niklas Therning [Thu, 1 Dec 2016 14:40:40 +0000 (15:40 +0100)]
Merge pull request #4051 from Unity-Technologies/registry-bug-fixes
Fix a bug in registry API implementation where had wrong assumptions about possible registry size.
Tautvydas Žilys [Thu, 1 Dec 2016 14:02:12 +0000 (16:02 +0200)]
Fix code convention on changed code.
Alexander Köplinger [Thu, 1 Dec 2016 13:49:52 +0000 (14:49 +0100)]
[ci] Add job configuration for testing Mono with mcs as compiler
To ensure it doesn't break now that we're using Roslyn by default.
Alexander Köplinger [Thu, 1 Dec 2016 11:15:21 +0000 (12:15 +0100)]
[acceptance-tests] Use portable pdb for csc
Niklas Therning [Thu, 1 Dec 2016 09:42:25 +0000 (10:42 +0100)]
Merge pull request #4033 from ntherning/no-stdcall-for-icalls-on-windows-32-bit
Use __cdecl rather than __stdcall for icalls on Windows 32-bit
Zoltan Varga [Thu, 1 Dec 2016 07:10:07 +0000 (02:10 -0500)]
[jit] Enable inlining inside gshared methods. (#4059)
Zoltan Varga [Thu, 1 Dec 2016 03:28:41 +0000 (22:28 -0500)]
Revert "Only allocate 1 empty string instance per AppDomain " (#4062)
Marek Safar [Wed, 30 Nov 2016 21:58:46 +0000 (22:58 +0100)]
[build] Don't use runtime flags on basic boostrap (they are too new)
Mike Voorhees [Wed, 30 Nov 2016 21:40:19 +0000 (16:40 -0500)]
Only allocate 1 empty string instance per AppDomain (#4047)
* Reuse a single empty string instance
* Undo string empty change to mono_string_new_size_checked and add new embedding api for string empty instead
Alexander Köplinger [Wed, 30 Nov 2016 21:10:44 +0000 (22:10 +0100)]
[ci] Bump timeout in ms-test-suite
Compiling the test exe's is taking longer now with roslyn.
Miguel de Icaza [Wed, 30 Nov 2016 19:53:43 +0000 (14:53 -0500)]
[configure] Detect endianess and use mcs for big-endian systems.
Renames the flag to be more explicit on the intended purpose. Also,
document the new configuration flag.
The default will probe the right compiler to use.
Alexis Christoforides [Wed, 30 Nov 2016 19:23:04 +0000 (14:23 -0500)]
Bump bockbuild
monojenkins [Wed, 30 Nov 2016 17:09:51 +0000 (17:09 +0000)]
[msvc] Update csproj files
Aleksey Kliger (λgeek) [Wed, 30 Nov 2016 18:54:21 +0000 (13:54 -0500)]
[tests] Use CSC to compile gc-descriptors test (#4052)
Alexander Köplinger [Wed, 30 Nov 2016 18:47:47 +0000 (19:47 +0100)]
Merge pull request #4050 from akoeplinger/profile-speedup
[ci] Only build the additional profiles on one arch instead of everywhere
Ludovic Henry [Mon, 28 Nov 2016 20:47:33 +0000 (15:47 -0500)]
[io-layer] Remove wait.h
Ludovic Henry [Mon, 28 Nov 2016 20:11:11 +0000 (15:11 -0500)]
[io-layer] Remove INFINITE
Ludovic Henry [Mon, 28 Nov 2016 19:55:09 +0000 (14:55 -0500)]
[io-layer] Extract WaitForSingleObjectEx, WaitForMultipleObjectsEx and SignalObjectAndWait
Aleksey Kliger (λgeek) [Wed, 30 Nov 2016 17:20:30 +0000 (12:20 -0500)]
[reflection] Use mono_module_get_object_handle everywhere (#4010)
* [reflection] Refactor managed object caching
Split up all the mono_XXX_get_object_checked functions into a generic
cache check and a specific construction function that's called if
there's a cache miss.
* [reflection] Add mono_assembly_get_object_handle
* [reflection] Add mono_module_get_object_handle
* [reflection] Use mono_module_get_object_handle everywhere
instead of mono_module_get_object_checked.
Also implement mono_module_file_get_object_handle instead of mono_module_file_get_object_checked
Alexis Christoforides [Wed, 30 Nov 2016 16:47:09 +0000 (11:47 -0500)]
Bump bockbuild
Alexander Köplinger [Wed, 30 Nov 2016 16:21:00 +0000 (17:21 +0100)]
Bump corert submodule
Marek Safar [Wed, 30 Nov 2016 10:08:59 +0000 (11:08 +0100)]
[build] Add --with-mcs-compiler config option
Marek Safar [Wed, 30 Nov 2016 10:05:28 +0000 (11:05 +0100)]
[mcs] Fixes runtimemetadataversion option check
Tautvydas Žilys [Wed, 30 Nov 2016 14:40:21 +0000 (16:40 +0200)]
Fix a bug in registry API implementation where had wrong assumptions about possible registry size.
Marek Safar [Wed, 30 Nov 2016 14:29:30 +0000 (15:29 +0100)]
[build] Prepare roslyn 2.0 bootstrap dependencies
Marek Safar [Wed, 30 Nov 2016 14:21:13 +0000 (15:21 +0100)]
[build] Set monolite path also for Facades
Alexander Köplinger [Wed, 30 Nov 2016 13:56:51 +0000 (14:56 +0100)]
Merge pull request #3748 from akoeplinger/fix-rng-monotouch
[corlib] Simplify RNGCryptoServiceProvider file name on MT and enable tests
Marek Safar [Wed, 30 Nov 2016 13:35:54 +0000 (14:35 +0100)]
[xbuild] Add workaround for pre-2.0 csc and convert full to portable debug mode
Alexander Köplinger [Wed, 30 Nov 2016 13:31:12 +0000 (14:31 +0100)]
[ci] Only build the additional profiles on one arch instead of everywhere
The additional profiles like monotouch, monodroid etc. are normal
managed code anyway and are the same no matter where they're built
so we can save a lot of CI time by not building them e.g. on slower
ARM bots.
Marek Safar [Tue, 29 Nov 2016 18:51:14 +0000 (19:51 +0100)]
[build] Use custom nursery size and clean up csc runtime arguments
Alexander Köplinger [Wed, 30 Nov 2016 01:20:55 +0000 (02:20 +0100)]
[referencesource] Fix a regression from
47a6f56439c9deab287be770c902d41e91480799
ResourceSets needs to be initialized on Mono.
Rodrigo Kumpera [Wed, 30 Nov 2016 00:34:33 +0000 (16:34 -0800)]
[mini] Use the array fast path with array magic interfaces. Do the expensive check in the slow path.
Rodrigo Kumpera [Tue, 29 Nov 2016 22:02:42 +0000 (14:02 -0800)]
[mini] Cleanup type casting a bit. Unify cast with with cache setup code.
Zoltan Varga [Tue, 29 Nov 2016 21:46:19 +0000 (16:46 -0500)]
[jit] Add counters for number of JITted method discarded as duplicates and the time spent JITting them. Remove opt set from -v output, it just adds noise.
Marek Safar [Tue, 29 Nov 2016 20:07:54 +0000 (21:07 +0100)]
Merge pull request #4041 from CyberShadow/pull-
20161129-100901
ilasm: Add stub parsing for .data cil attribute
Marek Safar [Tue, 29 Nov 2016 18:20:11 +0000 (19:20 +0100)]
Add CoreRT submodule
Marek Safar [Tue, 29 Nov 2016 18:16:02 +0000 (19:16 +0100)]
[bcl] Clean up some warnings
Aleksey Kliger [Tue, 29 Nov 2016 15:34:39 +0000 (10:34 -0500)]
[sre] Do we ever try to instantiate a generic instance? Assert that we don't.
Aleksey Kliger [Tue, 29 Nov 2016 15:31:08 +0000 (10:31 -0500)]
[sre] Throw a TLE if a generic inst is used before the gtd is created.
This can happen if TypeBuilders are used to construct something like
class S<T> {
...
}
class R {
public S<int> SI;
}
And then CreateType() is called for R and GetField("SI") is called on
the result before CreateType() is called on the builder for S.
Aleksey Kliger [Mon, 28 Nov 2016 23:21:39 +0000 (18:21 -0500)]
[sre] Make sure a generic definition TypeBuilder has its generic_container setup before we try to instantiate it.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=47867
Aleksey Kliger [Tue, 29 Nov 2016 00:40:10 +0000 (19:40 -0500)]
[test] Generic typebuilder field in another typebuilder should work.
Even if the generic typebuilder hasn't had CreateType() called on it
yet.
Regression tests for https://bugzilla.xamarin.com/show_bug.cgi?id=47867
Marek Safar [Tue, 29 Nov 2016 15:29:08 +0000 (16:29 +0100)]
Revert "[build] Enable aot for Microsoft.CodeAnalysis.dll/Microsoft.CodeAnalysis.CSharp.dll, as the aot compiler generates smaller images now."
This reverts commit
e186dcff2c2b6c6f32c72858425ba8b9d8b33efb.
Ludovic Henry [Mon, 28 Nov 2016 18:24:22 +0000 (13:24 -0500)]
[configure.ac] Rename `hybrid` runtime preset to `aot_preferred`
Niklas Therning [Tue, 29 Nov 2016 14:40:27 +0000 (15:40 +0100)]
Merge pull request #4040 from ntherning/disable-symbolicate-tests-on-windows
Disable symbolicate tests on Windows
Marek Safar [Tue, 29 Nov 2016 11:01:19 +0000 (12:01 +0100)]
[System] Report test failure using Assert
Marek Safar [Tue, 29 Nov 2016 10:44:37 +0000 (11:44 +0100)]
[System] Update ClientWebSocket test to use Setup
Vladimir Panteleev [Tue, 29 Nov 2016 10:28:21 +0000 (10:28 +0000)]
ilasm: Add stub parsing for .data cil attribute
The "cil" attribute seems to indicate that the data should be placed
in the .text section, along with the code.
Like the tls attribute, the cil attribute is only implemented insofar
as to recognize it as a valid keyword that can occur in a .data
declaration.
Niklas Therning [Tue, 29 Nov 2016 09:56:08 +0000 (10:56 +0100)]
Disable symbolicate tests on Windows
We will ignore the failing test-with-aot-msym test for now.