Johan Lorensson [Mon, 27 Mar 2017 07:04:53 +0000 (09:04 +0200)]
Merge pull request #4570 from lateralusX/jlorenss/visual_studio_msbuild_fix
Windows msbuild triggers too much to rebuild.
Jb Evain [Sun, 26 Mar 2017 13:33:34 +0000 (06:33 -0700)]
Add FieldInfoMirror.FullName (#4588)
Bernhard Urban [Sun, 26 Mar 2017 02:06:10 +0000 (22:06 -0400)]
[interp] call mono_unhandled_exception, so exit() is called with proper return code
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] enable more tests for CI
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] support floating point in runtime_invoke
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] allow more gregs, enable pinvoke17.exe
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] throw NRE in mint_strlen
Bernhard Urban [Fri, 24 Mar 2017 23:32:20 +0000 (00:32 +0100)]
[interp] add write barriers
issues found with
`MONO_GC_DEBUG=3,collect-before-allocs,check-remset-consistency ../mini/mono-sgen --interpreter /Users/bernhardu/work/mono/b/lib/mono/4.5/mcs.exe hello.cs`
Bernhard Urban [Fri, 24 Mar 2017 23:32:20 +0000 (00:32 +0100)]
[interp] respect reference type in stobj insn
stackval_from_data does everything for us.
Jon Purdy [Fri, 10 Mar 2017 21:10:49 +0000 (13:10 -0800)]
[docs] Update formatting in mono-api-utils.
Jon Purdy [Fri, 10 Mar 2017 21:10:02 +0000 (13:10 -0800)]
[docs] Update formatting in mono-api-unsorted.
Jon Purdy [Fri, 10 Mar 2017 21:04:17 +0000 (13:04 -0800)]
[docs] Update formatting in mono-api-type.
Jon Purdy [Fri, 10 Mar 2017 20:59:51 +0000 (12:59 -0800)]
[docs] Update formatting in mono-api-threads.
Jon Purdy [Fri, 10 Mar 2017 20:55:58 +0000 (12:55 -0800)]
[docs] Update formatting in mono-api-string.
Jon Purdy [Fri, 10 Mar 2017 00:32:53 +0000 (16:32 -0800)]
[docs] Update formatting in mono-api-security.
Jon Purdy [Fri, 10 Mar 2017 00:28:18 +0000 (16:28 -0800)]
[docs] Update formatting in mono-api-reflection.
Jon Purdy [Fri, 10 Mar 2017 00:22:39 +0000 (16:22 -0800)]
[docs] Update formatting in mono-api-profiler.
Jon Purdy [Fri, 10 Mar 2017 00:19:29 +0000 (16:19 -0800)]
[docs] Update formatting in mono-api-object.
Jon Purdy [Fri, 10 Mar 2017 00:09:45 +0000 (16:09 -0800)]
[docs] Update formatting in mono-api-methods.
Jon Purdy [Thu, 9 Mar 2017 22:53:58 +0000 (14:53 -0800)]
[docs] Update formatting in mono-api-metadata.
Jon Purdy [Thu, 9 Mar 2017 21:45:59 +0000 (13:45 -0800)]
[docs] Update formatting in mono-api-jitinternal.
Jon Purdy [Thu, 9 Mar 2017 21:29:09 +0000 (13:29 -0800)]
[docs] Update formatting in mono-api-jit.
Jon Purdy [Thu, 9 Mar 2017 21:23:27 +0000 (13:23 -0800)]
[docs] Update formatting in mono-api-internal.
Jon Purdy [Thu, 9 Mar 2017 20:57:31 +0000 (12:57 -0800)]
[docs] Update formatting in mono-api-image.
Jon Purdy [Thu, 9 Mar 2017 20:19:13 +0000 (12:19 -0800)]
[docs] Update formatting in mono-api-gchandle.
Jon Purdy [Thu, 9 Mar 2017 20:16:58 +0000 (12:16 -0800)]
[docs] Update formatting in mono-api-gc.
Jon Purdy [Thu, 9 Mar 2017 01:45:48 +0000 (17:45 -0800)]
[docs] Update formatting in mono-api-exc.
Jon Purdy [Thu, 9 Mar 2017 01:20:48 +0000 (17:20 -0800)]
[docs] Update formatting in mono-api-embedding.
Jon Purdy [Thu, 9 Mar 2017 01:14:15 +0000 (17:14 -0800)]
[docs] Update formatting in mono-api-dynamic-codegen.
Jon Purdy [Thu, 9 Mar 2017 01:04:16 +0000 (17:04 -0800)]
[docs] Update formatting in mono-api-domains.
Jon Purdy [Thu, 9 Mar 2017 00:41:50 +0000 (16:41 -0800)]
[docs] Update formatting in mono-api-debug.
Jon Purdy [Thu, 9 Mar 2017 00:41:33 +0000 (16:41 -0800)]
[docs] Update formatting in mono-api-counters.
Jon Purdy [Wed, 8 Mar 2017 23:24:44 +0000 (15:24 -0800)]
[docs] Update formatting in mono-api-class.
Jon Purdy [Wed, 8 Mar 2017 23:24:44 +0000 (15:24 -0800)]
[docs] Update formatting in mono-api-class.
Jon Purdy [Wed, 8 Mar 2017 02:43:28 +0000 (18:43 -0800)]
[docs] Update formatting in mono-api-assembly.
Jon Purdy [Wed, 8 Mar 2017 23:44:13 +0000 (15:44 -0800)]
[exdoc] Enable formatting in deprecated annotations.
Jon Purdy [Wed, 8 Mar 2017 02:42:39 +0000 (18:42 -0800)]
[exdoc] Handle punctuation better in code formatting.
Jon Purdy [Tue, 28 Feb 2017 00:58:33 +0000 (16:58 -0800)]
[docs] Use Doxygen syntax for Monodoc.
Jon Purdy [Wed, 1 Mar 2017 02:34:06 +0000 (18:34 -0800)]
[exdoc] Update warnings.
Jon Purdy [Tue, 28 Feb 2017 00:58:09 +0000 (16:58 -0800)]
[exdoc] Support Doxygen syntax.
Jon Purdy [Thu, 23 Feb 2017 02:29:29 +0000 (18:29 -0800)]
[docs] Fix exdoc warnings.
Jon Purdy [Thu, 23 Feb 2017 02:27:54 +0000 (18:27 -0800)]
[exdoc] Refactor.
Avoid globals, use proper data structures instead of strings, and
produce some warnings for documentation errors.
Jon Purdy [Tue, 21 Feb 2017 23:41:15 +0000 (15:41 -0800)]
[exdoc] Add missing dependency.
Jon Purdy [Tue, 21 Feb 2017 23:40:59 +0000 (15:40 -0800)]
[exdoc] Enable 'warnings' and 'strict'.
Jon Purdy [Tue, 21 Feb 2017 23:15:20 +0000 (15:15 -0800)]
[exdoc] Fix whitespace.
Jon Purdy [Mon, 13 Feb 2017 23:42:55 +0000 (15:42 -0800)]
[docs] Remove redundant filename.
Jon Purdy [Mon, 13 Feb 2017 23:33:41 +0000 (15:33 -0800)]
[docs] Fix Doxygen errors.
Doxygen treats '@code' as the start of a '@code'...'@endcode' block, so
it raised spurious "reached end of file while inside code block" errors
when '@code' was used to denote a parameter. Change these instances to
'\param code' (declaration) and '\p code' (mention).
Jon Purdy [Mon, 13 Feb 2017 23:10:40 +0000 (15:10 -0800)]
[docs] Enable documentation for utils.
Jon Purdy [Sat, 11 Feb 2017 01:17:57 +0000 (17:17 -0800)]
[docs] Enable documentation for mini.
Jon Purdy [Fri, 10 Feb 2017 23:32:44 +0000 (15:32 -0800)]
[docs] Enable documentation for sgen.
Jon Purdy [Fri, 10 Feb 2017 01:43:01 +0000 (17:43 -0800)]
[docs] Enable documentation for metadata.
Jon Purdy [Fri, 10 Feb 2017 01:43:07 +0000 (17:43 -0800)]
[docs] Improve Doxygen config.
Marek Safar [Fri, 24 Mar 2017 19:04:55 +0000 (20:04 +0100)]
Revert "Update corefx"
This reverts commit
2a2c317d07e389088737b391e97853fdb6dbc390.
Marek Safar [Fri, 24 Mar 2017 19:04:03 +0000 (20:04 +0100)]
[tests] Remove duplicate property
Andi McClure [Fri, 24 Mar 2017 18:42:43 +0000 (14:42 -0400)]
Merge pull request #4590 from xmcclure/master
Improve "Could not resolve type with token" exception message
Andi McClure [Fri, 24 Mar 2017 18:37:26 +0000 (14:37 -0400)]
Improve "Could not resolve type with token" exception message
Marek Safar [Fri, 24 Mar 2017 18:36:23 +0000 (19:36 +0100)]
Update corefx
Marek Safar [Fri, 24 Mar 2017 14:36:31 +0000 (15:36 +0100)]
[mcs] Reset also all partial parts current-type
Vlad Brezae [Fri, 24 Mar 2017 14:21:30 +0000 (16:21 +0200)]
Merge pull request #4503 from BrzVlad/fix-appdomain-unload
[runtime] Fix abort issues
Miguel de Icaza [Fri, 24 Mar 2017 14:01:01 +0000 (10:01 -0400)]
A few fixes to the man page
Zoltan Varga [Thu, 23 Mar 2017 17:34:57 +0000 (13:34 -0400)]
[bcl] Add a finalizer to MemoryMappedFile.
Marek Safar [Fri, 24 Mar 2017 13:15:14 +0000 (14:15 +0100)]
[System.Data] Update tests for mobile profiles
Vlad Brezae [Thu, 23 Mar 2017 22:17:30 +0000 (00:17 +0200)]
[runtime] Don't reset abort exception in invoke wrapper
It leads to missing self aborts on full-aot.
Vlad Brezae [Mon, 20 Mar 2017 23:34:49 +0000 (01:34 +0200)]
[runtime] Improve debugging of thread interruptions
Vlad Brezae [Mon, 20 Mar 2017 23:00:17 +0000 (01:00 +0200)]
[runtime] Defer async requests during abort protected blocks
We avoid unnecessary checks for each interruption checkpoint.
Vlad Brezae [Fri, 17 Mar 2017 21:45:50 +0000 (23:45 +0200)]
[runtime] Fix detecting abort at end of abort protected block
If we have a pending abort then we know we will have the thread_state set and the thread_interruption_requested bumped. We used to consume this request and set the MonoError with the exception. The problems with this is that not all callsites handle the passed MonoError and handling it means converting it back to a pending exception anyway. We just leave the interruption request untouched now.
If the cctor self aborts it means that we consumed the abort exception so we do need to call mono_thread_resume_interruption to reactivate it. We need to make sure that we still don't throw a TypeInitializationException if we had a self abort.
Martin Baulig [Thu, 23 Mar 2017 20:29:47 +0000 (16:29 -0400)]
[AppleTls]: Use correct definition of `SecTrustResult`. (#4586)
* [AppleTls]: Use correct definition of `SecTrustResult`.
We need all the values in this enum because `SecTrustResult.Unspecified`
means success - which currently has an integer value of 4, not 0.
* Oops, make it build.
* Don't make it public.
* Revert whitespace change.
Andi McClure [Thu, 23 Mar 2017 20:29:06 +0000 (16:29 -0400)]
Bump version to 5.1.0
Filip Navara [Thu, 23 Mar 2017 11:36:58 +0000 (12:36 +0100)]
Add test for AutomaticDecompression behaviour
Test that HttpWebRequest.AutomaticDecompression actually performs the
decompression and that it removes the Content-Encoding header. Also fix
the value of Content-Encoding for other tests to follow the HTTP
specification.
Filip Navara [Thu, 23 Mar 2017 09:54:18 +0000 (10:54 +0100)]
Remove Content-Encoding header after doing automatic decompression
Match the .NET Framework behaviour by removing the Content-Encoding
header after doing automatic decompression.
monojenkins [Thu, 23 Mar 2017 16:21:08 +0000 (16:21 +0000)]
[msvc] Update csproj files
Aleksey Kliger [Wed, 22 Mar 2017 19:08:59 +0000 (15:08 -0400)]
[reflection] Set correct reflected type in MonoMethod.get_base_method
It can be the case that we have two different System.MonoMethod objects that both
point to the same native MonoMethod* but have two different reflected types.
(For example if we call derivedType.GetMethod("f") where f is virtual and
derivedType corresponds to a class that did not override a base definition. In
that case, the MonoMethod* corresponds to the parent type's f method, but the
reflected type is derivedType)
In this case, GetBaseDefinition will return the same MonoMethod* but the
reflected type of the result should be the base type, not the derived type.
Aleksey Kliger [Wed, 22 Mar 2017 20:19:25 +0000 (16:19 -0400)]
[tests] Additional tests of System.Reflection.MethodInfo.GetBaseDefinition
Ludovic Henry [Thu, 23 Mar 2017 14:09:33 +0000 (10:09 -0400)]
[threadpool-io] Ensure selector thread is running before waiting on it (#4572)
This could result in a unecessary wait on shutdown where the selector thread would have exited, and the finalizer thread would try to dispose a Socket, which would try to remove the socket from the IOSelector. This removal operation would wait on the selector thread to acknowledge the removal, but because the selector thread would have alreday exited, we would wait on an event that would never happen.
Andoni Morales Alastruey [Thu, 20 Oct 2016 09:17:38 +0000 (11:17 +0200)]
[mkbundle] Use correctly link paths when loading assembly deps
Brian Raderman [Wed, 8 Mar 2017 19:13:02 +0000 (14:13 -0500)]
invoke_array_extract_argument() will create objects and set them in the parameters array when it detects a null parameter, but when we return a by-value parameter may no longer be null, which is an error. This fix detects the change and sets the parameter back to null for by-value parameters before we return.
Adrian Cheng [Wed, 15 Mar 2017 12:57:53 +0000 (20:57 +0800)]
One brace missed
Adrian Cheng [Wed, 15 Mar 2017 12:47:58 +0000 (20:47 +0800)]
Clean unrelated changes left
Adrian Cheng [Wed, 15 Mar 2017 12:40:34 +0000 (20:40 +0800)]
Try hardly to fix the revert the style changes I made...
Adrian Cheng [Wed, 15 Mar 2017 10:53:57 +0000 (18:53 +0800)]
Put the spaces back before calling function and indexing to follow coding guidelins
Adrian Cheng [Wed, 15 Mar 2017 02:40:41 +0000 (10:40 +0800)]
Change brace style to follow coding guidelines
Adrian Cheng [Wed, 15 Mar 2017 02:32:46 +0000 (10:32 +0800)]
Replace whitespaces to 8-spaces tabs
Adrian Cheng [Tue, 14 Mar 2017 11:08:48 +0000 (19:08 +0800)]
Fix Bug #40969
Marek Safar [Tue, 21 Mar 2017 18:24:58 +0000 (19:24 +0100)]
Bump cecil
Aaron Bockover [Wed, 22 Mar 2017 14:30:36 +0000 (10:30 -0400)]
csharp: support command line arguments for scripts
This adds a command line argument preprocessor that splits command line
arguments into two groups, delimited by the "standard" `--` "stop
processing" argument, or by the `-s` argument which can be used with
Unix shebang syntax (where the path of the file being executed will
be appended to the command line specified on the shebang line).
- anything before `--` or `-s` will be passed to mcs/csharp as usual
- anything after `--` or `-s` will _not_ be processed by mcs/csharp,
and will be made available in an `Args` builtin, like `csi`
This _finally_ (after almost 10 years) allows `csharp` to be used for
proper script authoring!
Document the new arguments in the man page. Also remove references to
'gsharp' from the man page.
Marek Safar [Thu, 23 Mar 2017 09:14:56 +0000 (10:14 +0100)]
[System.Data] Fixes tests build with mobile profiles
Marek Safar [Wed, 22 Mar 2017 22:59:07 +0000 (23:59 +0100)]
[System.Configuration] Refactor InitForConfiguration to be readable
Vlad Brezae [Fri, 17 Mar 2017 20:41:04 +0000 (22:41 +0200)]
[runtime] Fix missing abort during abort protected regions
When aborting a thread we set the thread's interruption request and we also increment the global interruption request. If we were trying to abort a thread when it is in an abort protected region, it will just set an interruption deferred and not do anything else (in async_abort_critical). When the thread exited the abort protected region, it was missing the abort request since we didn't increment the global interruption request.
Refactor thread_interruption_requested modifications, making sure we always bump it when requesting an interruption and decrease it when we clear an interruption.
Vlad Brezae [Fri, 17 Mar 2017 13:05:10 +0000 (15:05 +0200)]
[runtime] Rework abort deferring
The problem with previous implementation was that we were not able to account for two pending exceptions at the same time, since when we execute an interruption request we clear all the state and there is no clear way to account for two exceptions at the same time. This means that, if we have a pending abort in a cctor, all exception handling inside the cctor will be broken (for the provided test case we were only throwing the cctor internal exception outside of it).
In order to fix this, we split into two types of interruptions SYNC and ASYNC (in order to separate mainly between abort and pending exceptions). Sync interruptions are interruptions requested by the thread itself (pending exceptions and self aborts) and they are processed as soon as possible. Async interruptions are requested by other threads (abort, interrupt, suspend) and we defer them as we were doing before (we have a deferred interruption if we have an async exception and abort block count is non zero).
Marek Safar [Wed, 22 Mar 2017 16:45:33 +0000 (17:45 +0100)]
[xbuild] Copy csc/mcs GC settings to xbuild script
Chris Hamons [Wed, 22 Mar 2017 18:15:02 +0000 (13:15 -0500)]
AppleTls Support (#4470)
monojenkins [Wed, 22 Mar 2017 16:30:36 +0000 (16:30 +0000)]
[msvc] Update csproj files
Egor Bogatov [Wed, 22 Mar 2017 12:51:57 +0000 (15:51 +0300)]
[System.Data] Integration tests (#4538)
lateralusX [Wed, 22 Mar 2017 10:52:42 +0000 (11:52 +0100)]
Windows msbuild triggers too much to rebuild.
When building mono solution from Visual Studio it correctly handles incremental
builds just rebuilding what's needed. When doing the same from msbuild it rebuilds
to much. This happens due to two different issues.
First, a change in winconfig.h setting up a define for corlib version was not
included in our compare config file script, so diff was detected as a change in
config file causing a replace of config.h triggering a complete rebuild.
Second, once above was fixed there was still a rebuild of mini-amd64.c when not needed.
This was due to a difference in how post build events are handled in Visual Studio
and msbuild. Visual Studio will detect that the complete project won't need to be
rebuild and then it doesn't trigger any of the events. msbuild on the other hand
will trigger events even if nothing needs to be rebuild and that triggered creation of cpu-amd64.h
that in turn will trigger rebuild of mini-amd64.c. Switching from post build event
to a custom build step with proper input/output files will work as expected in both
Visual Studio and msbuild.
Commit also disables the build of test projects that are part of solution
but won't provide any build output. These projects are mainly there to make launching of test
configurations easier and doesn't need to be included in solution build.
EgorBo [Wed, 15 Mar 2017 22:11:11 +0000 (01:11 +0300)]
[System.Data] Fix bug-53217: use AddressFamily.InterNetworkV6 when needed
Zoltan Varga [Wed, 22 Mar 2017 08:20:28 +0000 (04:20 -0400)]
[runtime] Fix another typo in get_errno_from_g_file_error ().
Zoltan Varga [Wed, 22 Mar 2017 08:17:30 +0000 (04:17 -0400)]
[runtime] Fix a typo causing an assert in get_errno_from_g_file_error (). Fixes #53684.
Marek Safar [Tue, 21 Mar 2017 22:24:51 +0000 (23:24 +0100)]
[msvc] Fixes Cecil project update
Zoltan Varga [Tue, 21 Mar 2017 20:46:08 +0000 (16:46 -0400)]
[runtime] Add some documentation for the offsets stuff.
monojenkins [Tue, 21 Mar 2017 16:22:38 +0000 (16:22 +0000)]
[msvc] Update csproj files