João Matos [Wed, 22 Apr 2015 14:27:21 +0000 (15:27 +0100)]
Merge pull request #1726 from jaredpar/build-roslyn
Improve Visual Basic build support
Sebastien Pouliot [Wed, 22 Apr 2015 01:42:11 +0000 (21:42 -0400)]
[linker] Mark SecurityDeclarations [#28918]
Security declarations looks very similar to custom attributes - but
they are not (e.g. a different metadata table).
They need to be marked, just like other metadata, by the linker because
they can encode types that won't show up in the type (or assembly)
references.
Ignoring this can create an invalid binary (the kind that even Cecil
can't load back for further processing).
Sebastien Pouliot [Wed, 22 Apr 2015 01:29:56 +0000 (21:29 -0400)]
[linker] Resolve AssemblyName[Reference] when sweeping [#29211]
The exact name (e.g. version) might differ between the original
AssemblyNameReference and the one being used (e.g. PCL).
To make sure we remove unused references we need to resolve
the AssemblyNameReference into AssemblyDefinition and then
continue the sweep based on the _new_ AssemblyNameReference.
Sebastien Pouliot [Wed, 22 Apr 2015 01:26:15 +0000 (21:26 -0400)]
Bump referencesources to restore compatibility with UnmanagedType enum
Zoltan Varga [Tue, 21 Apr 2015 23:07:23 +0000 (19:07 -0400)]
[sdb] Remove more unused code.
Zoltan Varga [Tue, 21 Apr 2015 23:01:51 +0000 (19:01 -0400)]
[sdb] Remove more unused interrupt code.
Zoltan Varga [Tue, 21 Apr 2015 22:54:44 +0000 (18:54 -0400)]
[sdb] Remove unused mono_debugger_agent_thread_interrupt () function.
Zoltan Varga [Tue, 21 Apr 2015 22:50:07 +0000 (18:50 -0400)]
[sdb] Remove an osx workaround which isn't needed with the new suspend code.
Zoltan Varga [Tue, 21 Apr 2015 22:39:53 +0000 (18:39 -0400)]
Fix some warnings.
Rodrigo Kumpera [Tue, 21 Apr 2015 22:03:22 +0000 (17:03 -0500)]
Merge pull request #1723 from madewokherd/winvista
Bump Windows requirement to Vista.
Rodrigo Kumpera [Tue, 21 Apr 2015 21:50:50 +0000 (17:50 -0400)]
[runtime] It's spring cleaning in MonoInternalThread. Remove 8 (yes, eight) unused fields.
Rodrigo Kumpera [Tue, 21 Apr 2015 21:09:37 +0000 (17:09 -0400)]
[threading] Remove old suspend code now that all targets support it.
The new suspend code works on all major targets, so it's time to remove old suspend.
This change removes all relevant native code, managed code could see some cleanup.
jaredpar [Mon, 20 Apr 2015 15:35:07 +0000 (08:35 -0700)]
Improve Visual Basic build support
This fixes a couple of small issues with the Visual Basic build support:
- The VBC task now respects the $(NoStdLib) MSBuild option.
- The field @(ReferencePath) should be used for References in the VBC
target as it is for the CSC target.
- The CreateVisualBasicManifestResourceNames task is compiled and used
in the same manner as CreateCSharpManifestResourceNames hence it should
be loaded via UsingTask in the same manner as well.
- Include the VisualBasic Portable targets files.
Rodrigo Kumpera [Tue, 21 Apr 2015 16:41:01 +0000 (11:41 -0500)]
Merge pull request #1699 from ludovic-henry/threadpool-managed
[threadpool-io] Move (Socket)AsyncResult invocation code to managed + Various improvements
Alexander Köplinger [Tue, 21 Apr 2015 16:35:24 +0000 (18:35 +0200)]
Merge pull request #1721 from jaredpar/fix-attribute-gen
Emit assembly attributes after Import statements
jaredpar [Fri, 17 Apr 2015 22:19:27 +0000 (15:19 -0700)]
Emit assembly attributes after Import statements
The VB language requires that code files have statements in the
following order:
- Option
- Import
- Assembly level attributes
- Namespaces / other declarations
The VBCodeGenerator type when given both import and assembly level
attribute statements was generating the attributes first. This lead to
compilation errors in the generated file.
This change fixes the generator to emit assembly level attributes in
the proper location in the file (and adds the corresponding unit tests
as well).
Chris Hamons [Tue, 21 Apr 2015 14:58:51 +0000 (09:58 -0500)]
Fix Options.cs warning on mobile builds
- Explictly disable warning CS0618 for Options.cs in Mono.Options
Marcos Henrich [Tue, 21 Apr 2015 14:54:08 +0000 (15:54 +0100)]
[System] Replaced System.Process lock(this)
To avoid concurrency problems lock(this) should not be used in public
classes.
Marcos Henrich [Tue, 21 Apr 2015 13:09:20 +0000 (14:09 +0100)]
[System] Process.Exited is now thread safe.
Fixes Exited event triggering multiple times.
Miguel de Icaza [Tue, 21 Apr 2015 02:00:09 +0000 (22:00 -0400)]
Merge pull request #1720 from blucz/master
Fix NullReferenceException in timer thread
Rodrigo Kumpera [Mon, 20 Apr 2015 20:46:13 +0000 (16:46 -0400)]
[threading] Fix coop+windows compilation.
Vincent Povirk [Mon, 20 Apr 2015 20:14:22 +0000 (15:14 -0500)]
Bump Windows version requirement to Vista.
Vincent Povirk [Mon, 20 Apr 2015 20:05:50 +0000 (15:05 -0500)]
Add configure check for inet_pton on Windows.
Rodrigo Kumpera [Mon, 20 Apr 2015 19:57:25 +0000 (15:57 -0400)]
[threading] Just skipping GC is not enough, we need to transition the threadpool to blocking.
Rodrigo Kumpera [Mon, 20 Apr 2015 19:58:02 +0000 (15:58 -0400)]
[threading] Add coop support to sdb.
Miguel de Icaza [Mon, 20 Apr 2015 19:55:26 +0000 (15:55 -0400)]
[Socket] Add DualMode property and adjust to Mono semantics (continuation to #20048)
The new socket constructor that only takes a SocketType and a
ProtocolType defaults to InterNetworkV6 (this was done on a previous patch).
In addition, we explicitly set "DualMode" to true, so that on Windows,
this gets set explicitly (it does not matter on Unix).
We surface the DualMode property to allow servers that want to just
bind to the IPv6 address to do so by creating the socket and then
changing DualMode to false.
This is *not* the same setting that Windows has, but it is the
semantics that Mono applications depend on. So a test has been added
to ensure that we do not regress.
This also switches to use SocketOptionName from the ReferenceSources.
Ludovic Henry [Mon, 20 Apr 2015 13:10:26 +0000 (14:10 +0100)]
[threadpool-io] Fix epoll init
Ludovic Henry [Tue, 14 Apr 2015 21:40:21 +0000 (22:40 +0100)]
[threadpool-io] Move epoll/kqueue/poll specific code to dedicated files
This is to make the addition of backends easier
Ludovic Henry [Tue, 7 Apr 2015 13:47:58 +0000 (14:47 +0100)]
[threadpool-io] Move Mono(Socket)RuntimeWorkItem ExecuteWorkItem code to (Socket)AsyncResult in managed
Marek Safar [Mon, 20 Apr 2015 14:49:59 +0000 (16:49 +0200)]
[corlib] cryptography from reference sources
Marcos Henrich [Mon, 20 Apr 2015 14:04:32 +0000 (15:04 +0100)]
Merge pull request #1691 from esdrubal/exitevent
Improved Process.Exited
Marcos Henrich [Mon, 20 Apr 2015 13:06:22 +0000 (14:06 +0100)]
Merge pull request #1222 from LogosBible/uri-trycreate
Lower-case the host in Uri.TryCreate to match behavior of constructors
Marek Safar [Mon, 20 Apr 2015 11:46:23 +0000 (13:46 +0200)]
[corlib] Fix mobile tests
Ludovic Henry [Tue, 7 Apr 2015 14:42:29 +0000 (15:42 +0100)]
[threadpool-io] Make updates non backend specific
Ludovic Henry [Tue, 7 Apr 2015 19:02:11 +0000 (20:02 +0100)]
[threadpool-io] Do not wait on socket if there are no SocketAsyncResults to call
Zoltan Varga [Sun, 19 Apr 2015 03:47:28 +0000 (23:47 -0400)]
[llvm] Refactor the intrinsics registration code a bit.
Miguel de Icaza [Sun, 19 Apr 2015 02:01:33 +0000 (22:01 -0400)]
[Socket] Fix the socket ctor base call, and document the reason; Fixes #20048
Zoltan Varga [Sun, 19 Apr 2015 00:17:37 +0000 (20:17 -0400)]
[runtime] Fix a regression in the socket code introduced by
6999fc26772e73c26069ce09e7fc19794d619d7d.
Zoltan Varga [Sat, 18 Apr 2015 16:03:15 +0000 (12:03 -0400)]
[runtime] Add a checked version of mono_class_from_name ().
Zoltan Varga [Sat, 18 Apr 2015 15:43:02 +0000 (11:43 -0400)]
Fix a warning.
Zoltan Varga [Sat, 18 Apr 2015 04:24:52 +0000 (00:24 -0400)]
Revert "[runtime] Add a _checked version for mono_class_from_name ()."
This reverts commit
652c882f3d84309fdb1b97978871c8aa76916fd2.
Revert this as it breaks tests.
Zoltan Varga [Sat, 18 Apr 2015 03:55:03 +0000 (23:55 -0400)]
[runtime] Remove unused mono_metadata_parse_signature_full () function.
Zoltan Varga [Sat, 18 Apr 2015 03:51:35 +0000 (23:51 -0400)]
[runtime] Add a _checked version for mono_class_from_name ().
Rodrigo Kumpera [Fri, 17 Apr 2015 21:01:12 +0000 (17:01 -0400)]
[jit] Fix the build.
Zoltan Varga [Fri, 17 Apr 2015 20:49:05 +0000 (16:49 -0400)]
[jit] Allow the storage of trampolines in the jit info tables. Currently, this is only used by mono_print_method_from_ip ().
Zoltan Varga [Fri, 17 Apr 2015 20:42:46 +0000 (16:42 -0400)]
[runtime] Enable the managed test runner for the gshared tests as well.
Rodrigo Kumpera [Fri, 17 Apr 2015 19:27:54 +0000 (15:27 -0400)]
[threading] [jit] Fix non coop osx build.
Brian Luczkiewicz [Fri, 17 Apr 2015 19:22:40 +0000 (15:22 -0400)]
Fix NullReferenceException in timer thread
Every once in a while, we run into a NullReferenceException attempting to dispose a null timer. It's very rare and we can't reproduce. However, reading this code, it seems possible that two timer callbacks could pile up, and if they did, the first one might dispose the timer, and then the second one would attempt to dispose null.
Rodrigo Kumpera [Fri, 17 Apr 2015 00:13:11 +0000 (20:13 -0400)]
[coop] Add missing coop checks for WFSO and WFMO.
Rodrigo Kumpera [Thu, 16 Apr 2015 23:56:27 +0000 (19:56 -0400)]
Revert "[threading] Move the safe pointing of WFSO and WFMO into the io-layer, since it's simpler to have it there."
This reverts commit
0327832893092c2dd6f36c72a188d7819bff3f30.
Rodrigo Kumpera [Thu, 16 Apr 2015 23:56:03 +0000 (19:56 -0400)]
[coop] get_addrinfo_family_hint could call into managed, which is not allowed while in blocking mode.
Rodrigo Kumpera [Thu, 16 Apr 2015 23:49:02 +0000 (19:49 -0400)]
[jit] Rework the managed code suspend polling and add COOP_GC support.
This change enables managed polling to work with both NaCL and coop as they are exactly the same except for the variables used.
We cleanup how safepoints are injects to be done on a separate pass instead of having in spread around the JIT.
We now inject safepoints at EH handler entry as those did not previously have them.
The generated AOT code was greatly optimized by having the polling variable checked before doing the icall. This more
than doubles the performance of the generated code.
Rodrigo Kumpera [Thu, 16 Apr 2015 23:12:28 +0000 (19:12 -0400)]
[jit] Fix the loop recognition pass to handle single BB loops and enable logging by default.
Rodrigo Kumpera [Thu, 16 Apr 2015 23:01:13 +0000 (19:01 -0400)]
[threading] Add a global variable that is set while a global suspend is hapening.
This global var is meant to be used by JIT'd code to efficiently implement polling.
Zoltan Varga [Fri, 17 Apr 2015 19:05:51 +0000 (15:05 -0400)]
[runtime] Fix the creation of multi-dimensional arrays using ConstructorInfo.Invoke (). Fixes #29183.
Ludovic Henry [Fri, 17 Apr 2015 16:53:17 +0000 (17:53 +0100)]
[threadpool-ms] Change boolean return type from gboolean to MonoBoolean for icalls
Ludovic Henry [Fri, 17 Apr 2015 16:42:23 +0000 (17:42 +0100)]
[threadpool-ms] Fix sgen runtime test crash
João Matos [Fri, 17 Apr 2015 16:35:56 +0000 (17:35 +0100)]
[runtime] Revert this change as it strips the volatileness of the load.
Marek Safar [Fri, 17 Apr 2015 14:59:49 +0000 (16:59 +0200)]
[corlib] Security attributes from reference sources
Marek Safar [Fri, 17 Apr 2015 14:06:05 +0000 (16:06 +0200)]
[corlib] Update public api
Marek Safar [Fri, 17 Apr 2015 13:38:03 +0000 (15:38 +0200)]
[corlib] Versioning from reference sources
Ludovic Henry [Fri, 17 Apr 2015 12:53:26 +0000 (13:53 +0100)]
[runtime] Fix call to task_for_pid in proclib utils
task_for_pid requires special privileges on osx 10.5+ and ios, so it's better to avoid calling it.
Marek Safar [Fri, 17 Apr 2015 12:31:46 +0000 (14:31 +0200)]
[corlib] SafeHandles from reference sources
João Matos [Fri, 17 Apr 2015 11:28:23 +0000 (12:28 +0100)]
Merge pull request #1717 from jaredpar/vb-build-props
Expand Visual Basic build support
João Matos [Fri, 17 Apr 2015 11:10:45 +0000 (12:10 +0100)]
Merge pull request #1716 from esdrubal/jsdeserialize
[System.Web.Extension] Fixes JavaScriptSerializer.Deserialize.
Marek Safar [Fri, 17 Apr 2015 10:09:08 +0000 (12:09 +0200)]
[system] Fixes mobile build
Marek Safar [Fri, 17 Apr 2015 09:34:57 +0000 (11:34 +0200)]
[corlib] Fixes build
Marek Safar [Fri, 17 Apr 2015 09:01:59 +0000 (11:01 +0200)]
Bump reference sources for build fix
Marek Safar [Fri, 17 Apr 2015 08:36:34 +0000 (10:36 +0200)]
[corlib] Mobile build fixes
Marek Safar [Fri, 17 Apr 2015 08:36:11 +0000 (10:36 +0200)]
[facades] Add missing attributes
Marek Safar [Fri, 17 Apr 2015 08:35:18 +0000 (10:35 +0200)]
[corlib] More exceptions from reference sources
jaredpar [Thu, 16 Apr 2015 20:27:03 +0000 (13:27 -0700)]
Expand Visual Basic build support
This change adds support for the following MSBuild properties which are specific to VB compilation:
- OptionInfer: controls the /optioninfer switch
- VBRuntime: controls the /vbruntime switch
Neale Ferguson [Thu, 16 Apr 2015 20:14:19 +0000 (16:14 -0400)]
Add support for mono_arch_create_monitor_[enter|exit]_trampoline
Zoltan Varga [Thu, 16 Apr 2015 19:10:03 +0000 (15:10 -0400)]
[runtime] Fix support for delegates with a byref first argument bound to a valuetype method. Fixes #25717.
Marcos Henrich [Thu, 16 Apr 2015 18:12:29 +0000 (19:12 +0100)]
[System.Web.Extension] Fixes js deserialization.
Fixes JavaScriptSerializer.Deserialize of values with trailing spaces.
Fixes #4148.
Marcos Henrich [Thu, 16 Apr 2015 18:11:33 +0000 (19:11 +0100)]
[System.Web.Extension] Added tests.
Tests JavaScriptSerializer.Deserialize with trailing white spaces.
Covers #4148
João Matos [Thu, 16 Apr 2015 16:56:32 +0000 (17:56 +0100)]
[runtime] While we're here update the code to match the style guide.
João Matos [Thu, 16 Apr 2015 16:42:35 +0000 (17:42 +0100)]
[runtime] Fixed extra address-of in lock free code.
Marek Safar [Thu, 16 Apr 2015 15:46:46 +0000 (17:46 +0200)]
[corlib] Update reference sources com sources
Rodrigo Kumpera [Thu, 16 Apr 2015 15:28:28 +0000 (10:28 -0500)]
Merge pull request #1715 from tritao/cpp_fixes
C++ compliance fixes
João Matos [Thu, 16 Apr 2015 15:10:30 +0000 (16:10 +0100)]
[runtime] C++ compliance fixes.
Marek Safar [Thu, 16 Apr 2015 14:31:56 +0000 (16:31 +0200)]
[corlib] Remove useless TypeLib assembly attribute (it's not always available)
Marek Safar [Thu, 16 Apr 2015 14:30:21 +0000 (16:30 +0200)]
[mcs] Better error reporting for incorrect implicitly typed local variable declaration. Fixes #28069
Miguel de Icaza [Thu, 16 Apr 2015 13:49:55 +0000 (09:49 -0400)]
[man/certmgr] Update documentation
Marek Safar [Thu, 16 Apr 2015 09:28:13 +0000 (11:28 +0200)]
[corlib] Claims from reference sources
Mark Probst [Wed, 15 Apr 2015 22:55:42 +0000 (15:55 -0700)]
[sgen] Fix a concurrent mark bug.
This made `sgen-descriptors.exe` crash with an assertion.
Marek Safar [Wed, 15 Apr 2015 22:08:01 +0000 (00:08 +0200)]
[system.xml] Update failing test
Marek Safar [Wed, 15 Apr 2015 18:02:38 +0000 (20:02 +0200)]
[corlib] Remove duplicate file entry
Marek Safar [Wed, 15 Apr 2015 18:02:06 +0000 (20:02 +0200)]
[mcs] Update failing test
João Matos [Wed, 15 Apr 2015 20:15:53 +0000 (21:15 +0100)]
Merge pull request #1714 from madewokherd/condwait
Release the mutex in mono_cond_[timed]wait on Windows.
Vincent Povirk [Wed, 15 Apr 2015 19:54:52 +0000 (14:54 -0500)]
Release the mutex in mono_cond_[timed]wait on Windows.
This commit is licensed as MIT/X11.
Marek Safar [Wed, 15 Apr 2015 16:05:07 +0000 (18:05 +0200)]
[corlib] Runtime attributes from reference sources
Marek Safar [Wed, 15 Apr 2015 10:47:49 +0000 (12:47 +0200)]
[corlib] Return custom attributes in order they were compiled. Fixes #28692
Marek Safar [Wed, 15 Apr 2015 09:00:37 +0000 (11:00 +0200)]
[corlib] Update failing test
Marek Safar [Wed, 15 Apr 2015 08:50:56 +0000 (10:50 +0200)]
Merge pull request #1693 from Garciat/fix-assembly-get-satellite
[corlib] Check for missing/empty Assembly.Location. Fixes #28876
Marek Safar [Wed, 15 Apr 2015 08:48:04 +0000 (10:48 +0200)]
[corlib] Add test for in memory assemblies (#28876)
Miguel de Icaza [Wed, 15 Apr 2015 04:20:11 +0000 (00:20 -0400)]
Merge pull request #1713 from joelmartinez/docs-monodoc-getassembly
[monodoc] Updated how generators load resource streams.
Atsushi Eno [Wed, 15 Apr 2015 03:42:41 +0000 (12:42 +0900)]
remove unused CodeDom sources.
Atsushi Eno [Wed, 15 Apr 2015 03:21:12 +0000 (12:21 +0900)]
Merge pull request #1709 from atsushieno/import-codedom-core
Import CodeDom types and Compiler.CodeGenerator class from referencesource
Mark Probst [Tue, 24 Mar 2015 20:17:25 +0000 (13:17 -0700)]
[sgen] Free mod-union tables for LOS objects.