Sebastien Pouliot [Thu, 2 Apr 2015 19:41:38 +0000 (15:41 -0400)]
[tools] Fix mono-cil-strip to return non-zero on failure [#28617]
Zoltan Varga [Thu, 2 Apr 2015 16:39:28 +0000 (12:39 -0400)]
Revert "[runtime] Use mono_set_pending_exception () in a few more places."
This reverts commit
0ae611a9eb55c5ac9dec8b97cee87f65b734692e.
Revert this as it causes crashes in the System.ServiceModel tests.
Marek Safar [Thu, 2 Apr 2015 15:22:29 +0000 (17:22 +0200)]
[mcs] Check best dynamic candidate type parameters constrains only if it's single candidate. Fixes #28653
Marek Safar [Thu, 2 Apr 2015 14:10:00 +0000 (16:10 +0200)]
[mcs] Contextual var keywork cannot be shadowed by a namespace. Fixes #28648
Marek Safar [Thu, 2 Apr 2015 13:56:02 +0000 (15:56 +0200)]
[mcs] DefaultParameterValue treats dynamic as object. Fixes #28645
João Matos [Thu, 2 Apr 2015 14:53:29 +0000 (15:53 +0100)]
Merge pull request #1677 from ninjarobot/fix-test-again
Fix XmlSerializationTest again.
Dave Curylo [Thu, 2 Apr 2015 14:51:31 +0000 (10:51 -0400)]
Fix XmlSerializationTest again.
João Matos [Thu, 2 Apr 2015 14:43:41 +0000 (15:43 +0100)]
Merge pull request #1676 from ninjarobot/fix-xml-ser-tests
Corrects error in XmlSerializerTests.
Dave Curylo [Thu, 2 Apr 2015 14:38:33 +0000 (10:38 -0400)]
Corrects error in XmlSerializerTests.
Marek Safar [Thu, 2 Apr 2015 13:22:45 +0000 (15:22 +0200)]
[mcs] Handle null operator inside parenthesis expression. Fixes #28172
Marek Safar [Thu, 2 Apr 2015 12:49:21 +0000 (14:49 +0200)]
[mcs] Type parameter hidden methods should consider default parameters. Fixes #28651
João Matos [Thu, 2 Apr 2015 12:05:43 +0000 (13:05 +0100)]
Merge pull request #1672 from ninjarobot/patch-2
XmlSerializer should set *non* readonly {V}Specified fields
Marek Safar [Thu, 2 Apr 2015 10:52:47 +0000 (12:52 +0200)]
[corlib] CompareInfo from reference sources
Dave Curylo [Wed, 1 Apr 2015 15:23:08 +0000 (11:23 -0400)]
XmlSerializer should set *non* readonly {V}Specified fields
Addresses an oversight in PR 1257 that caused {V}Specified fields to not be set during XML deserialization in some circumstances.
Adds test for optional value serialization round trip
Zoltan Varga [Wed, 1 Apr 2015 23:32:40 +0000 (19:32 -0400)]
Merge pull request #1674 from alexanderkyte/gdb_support
[runtime] Disable XDEBUG on OSX
Zoltan Varga [Wed, 1 Apr 2015 23:30:37 +0000 (19:30 -0400)]
[runtime] Use mono_set_pending_exception () in a few more places.
Zoltan Varga [Wed, 1 Apr 2015 20:53:58 +0000 (16:53 -0400)]
[jit] Avoid a crash if constrained_gsharedvt_call_setup () fails.
Miguel de Icaza [Wed, 1 Apr 2015 20:18:13 +0000 (16:18 -0400)]
[doc] Format comment so our tools can process this
Rodrigo Kumpera [Wed, 1 Apr 2015 20:12:00 +0000 (16:12 -0400)]
[threading] Fix compilation of coop suspend on windows.
Alexander Kyte [Wed, 1 Apr 2015 19:13:52 +0000 (15:13 -0400)]
[Runtime] Disable xdebug on OSX because it does not work and prevents gdb use.
Rodrigo Kumpera [Wed, 1 Apr 2015 18:29:24 +0000 (14:29 -0400)]
[corlib] FEATURE_STRONGNAME_MIGRATION should be used in all profiles to avoid breaking compat.
Rodrigo Kumpera [Wed, 1 Apr 2015 17:04:49 +0000 (13:04 -0400)]
Merge pull request #1671 from kumpera/mobile_static_fixication
Fix some of the issues with the mobile_static profile.
João Matos [Wed, 1 Apr 2015 15:48:07 +0000 (16:48 +0100)]
Merge pull request #1673 from alexanderkyte/minor_cpp_fixes
[runtime] Fixed index comparison typo in class.c
Alexander Kyte [Wed, 1 Apr 2015 15:45:11 +0000 (11:45 -0400)]
[runtime] Fixed index comparison typo in class.c
Ludovic Henry [Wed, 1 Apr 2015 15:38:02 +0000 (16:38 +0100)]
[threadpool] Fix potential infinite loop
Atsushi Eno [Wed, 1 Apr 2015 14:05:08 +0000 (23:05 +0900)]
bump referencesource to fix Sys.Data mobile_static build.
Rodrigo Kumpera [Wed, 1 Apr 2015 03:46:34 +0000 (23:46 -0400)]
[mobile] Fix the build order between System.Numerics and System.Data due to dependencies between them.
Rodrigo Kumpera [Wed, 1 Apr 2015 03:16:47 +0000 (23:16 -0400)]
[corlib] Fix the mobile_static profile.
Marek Safar [Wed, 1 Apr 2015 12:22:16 +0000 (14:22 +0200)]
[corlib] Update more decimal separators. Further fixes for #17615
Marek Safar [Wed, 1 Apr 2015 08:00:03 +0000 (10:00 +0200)]
[system.net.http] Use correct separator for headers tostring
Sebastien Pouliot [Wed, 1 Apr 2015 01:30:15 +0000 (21:30 -0400)]
[tests] ManualResetEventSlim.SpinCount depends on the number of CPU/cores and we can't assume everything as multiple CPU/cores [#28611]
Zoltan Varga [Wed, 1 Apr 2015 01:26:35 +0000 (21:26 -0400)]
[jit] Use mono_error_set_pending_exception () in jit icalls.
Zoltan Varga [Wed, 1 Apr 2015 01:23:36 +0000 (21:23 -0400)]
[runtime] Move mono_error_raise_exception () to metadata/ to fix a layering issue. Add mono_error_set_pending_exception () helper function.
Zoltan Varga [Tue, 31 Mar 2015 22:36:11 +0000 (18:36 -0400)]
[jit] Increase some trampoline sizes.
Zoltan Varga [Tue, 31 Mar 2015 22:32:27 +0000 (18:32 -0400)]
[llvm] Reenable support for nested clauses.
Zoltan Varga [Tue, 31 Mar 2015 22:32:10 +0000 (18:32 -0400)]
[runtime] Add more caches to mono_marshal_get_native_wrapper () to avoid mixing wrappers with/without exception checks.
Zoltan Varga [Tue, 31 Mar 2015 21:01:11 +0000 (17:01 -0400)]
[llvm] Disable support for nested clauses for now as it causes regressions in the corlib tests.
Zoltan Varga [Tue, 31 Mar 2015 20:30:59 +0000 (16:30 -0400)]
[llvm] Implement support for nested clauses.
Zoltan Varga [Tue, 31 Mar 2015 16:50:08 +0000 (12:50 -0400)]
[amd64] Enable thunk creation when using LLVM as well.
Ludovic Henry [Tue, 31 Mar 2015 19:34:09 +0000 (20:34 +0100)]
[threadpool] Fix typo
Ludovic Henry [Sat, 28 Mar 2015 19:05:38 +0000 (19:05 +0000)]
[threadpool] Add IO support + Needed refactoring of threadpool
Ludovic Henry [Thu, 26 Mar 2015 17:33:26 +0000 (17:33 +0000)]
[threadpool] Move MonoAsyncResult invocation out of the ThreadPool
Ludovic Henry [Thu, 26 Mar 2015 17:19:16 +0000 (17:19 +0000)]
[threadpool] Move threadpool-microsoft.{c,h} to threadpool-ms.{c,h}
Avoid having really long filenames when adding threadpool-ms-io.{c,h}
Ludovic Henry [Thu, 19 Mar 2015 15:57:26 +0000 (15:57 +0000)]
[threadpool] Remove RegisteredWaitHandle runtime code, as it is all in managed
Marek Safar [Tue, 31 Mar 2015 14:04:11 +0000 (16:04 +0200)]
[corlib] NumberFormatInfo from reference sources
Rodrigo Kumpera [Tue, 31 Mar 2015 02:52:56 +0000 (22:52 -0400)]
[socket-io] Fix crasher in System test suite.
Alexander Köplinger [Mon, 30 Mar 2015 23:13:29 +0000 (01:13 +0200)]
[readme] Fix monolite instructions
EXTERNAL_MCS is misleading and wrong there, the build uses monolite automatically when appropriate.
Zoltan Varga [Mon, 30 Mar 2015 20:53:28 +0000 (16:53 -0400)]
Add an --enable-gsharedvt configure option, same as the misnamed --enable-gsharing.
Marek Safar [Mon, 30 Mar 2015 16:34:03 +0000 (18:34 +0200)]
[corlib] More globalization from reference sources
Marek Safar [Mon, 30 Mar 2015 16:33:33 +0000 (18:33 +0200)]
[corlib] Fix commonly used encoding names
Marek Safar [Mon, 30 Mar 2015 15:23:19 +0000 (17:23 +0200)]
[corlib] Update culture currency separators
João Matos [Mon, 30 Mar 2015 16:21:43 +0000 (17:21 +0100)]
[runtime] Fixed a warning.
It can happen that THREAD_INFO_TYPE is already defined by a previously included header to just undefine it before re-redefining it.
João Matos [Mon, 30 Mar 2015 16:20:57 +0000 (17:20 +0100)]
[mini] Fixed the build.
LLVM_FAILURE will try to `goto FAILURE` so we need to add a label to the function to make the compiler happy.
João Matos [Mon, 30 Mar 2015 16:20:21 +0000 (17:20 +0100)]
[runtime] Enable the complex math support code on Android.
Previously I thought these implementations were not needed but dlopen () was complaining when loading libmonosgen.so on Android so we do need them.
João Matos [Mon, 30 Mar 2015 16:17:56 +0000 (17:17 +0100)]
[runtime] Add some complex math support code.
This is adapted from FreeBSD's code.
Zoltan Varga [Mon, 30 Mar 2015 15:32:37 +0000 (11:32 -0400)]
Marek Safar [Mon, 30 Mar 2015 09:06:47 +0000 (11:06 +0200)]
Remove old files
Rodrigo Kumpera [Mon, 30 Mar 2015 15:07:54 +0000 (11:07 -0400)]
[runtime] Fix the build.
Zoltan Varga [Mon, 30 Mar 2015 12:27:52 +0000 (08:27 -0400)]
[llvm] Fix an uninitialized variable error.
Marek Safar [Fri, 27 Mar 2015 19:11:53 +0000 (20:11 +0100)]
[corlib] Replace more system exceptions from reference sources
Zoltan Varga [Mon, 30 Mar 2015 02:22:29 +0000 (22:22 -0400)]
[llvm] Generate code at the start of exception clauses to branch to the proper nesting clause so the EH code can branch to the innermost landing pad in the future. This is needed because LLVM always expects the innermost landing pad to be called.
Zoltan Varga [Mon, 30 Mar 2015 02:18:36 +0000 (22:18 -0400)]
[runtime] Fix the passing of arguments to the stringbuilder ctor in mono_string_builder_new ().
Rodrigo Kumpera [Sun, 29 Mar 2015 00:40:43 +0000 (20:40 -0400)]
[threading] Wrap socket code with coop suspend.
Rodrigo Kumpera [Sat, 28 Mar 2015 23:42:12 +0000 (19:42 -0400)]
[threading] Wrap IO icalls.
Rodrigo Kumpera [Sat, 28 Mar 2015 22:52:31 +0000 (18:52 -0400)]
[threading] type init lock is complex enough that needs suspend protection.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:49:39 +0000 (20:49 -0400)]
[threading] Make the loader and domain locks coop suspend aware.
Rodrigo Kumpera [Mon, 2 Feb 2015 16:04:37 +0000 (11:04 -0500)]
[runtime] When interning strings, allocate without holding the ldstr lock.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:47:04 +0000 (20:47 -0400)]
[threading] Wrap monitor code with coop suspend.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:46:42 +0000 (20:46 -0400)]
[threading] Make thread management coop suspend aware.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:46:09 +0000 (20:46 -0400)]
[threading] Make the GC lock coop suspend aware.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:45:45 +0000 (20:45 -0400)]
[threading] Make n2m and m2n wrappers coop suspend aware.
Rodrigo Kumpera [Sun, 29 Mar 2015 00:44:09 +0000 (20:44 -0400)]
[threading] Make thread start suspend aware
Marek Safar [Sat, 28 Mar 2015 08:20:05 +0000 (09:20 +0100)]
Merge pull request #1666 from akoeplinger/fix-mono-options-messages
[Mono.Options] Fix messages in tests that changed after
bf66c00bc7379c71de1669799a1801ec7174c7df
Zoltan Varga [Fri, 27 Mar 2015 22:49:08 +0000 (18:49 -0400)]
[llvm] Extract some of the eh code into a separate function.
Alexander Köplinger [Fri, 27 Mar 2015 21:37:11 +0000 (22:37 +0100)]
[Mono.Options] Fix messages in tests that changed after
bf66c00bc7379c71de1669799a1801ec7174c7df
Zoltan Varga [Fri, 27 Mar 2015 19:24:29 +0000 (15:24 -0400)]
Add a test for the interning of String.Empty.
Zoltan Varga [Fri, 27 Mar 2015 19:21:13 +0000 (15:21 -0400)]
[runtime] Intern String.Empty.
Miguel de Icaza [Fri, 27 Mar 2015 18:46:05 +0000 (14:46 -0400)]
Relicense socket-io.c to MIT
Marek Safar [Fri, 27 Mar 2015 17:15:00 +0000 (18:15 +0100)]
[corlib] System exception from reference sources. Some had broken serialization support
Atsushi Eno [Fri, 27 Mar 2015 16:46:09 +0000 (01:46 +0900)]
Use common consts in [InternalsVisibleTo] PublicKey specifications.
João Matos [Fri, 27 Mar 2015 16:27:32 +0000 (16:27 +0000)]
Merge pull request #1664 from jbraswell/master
Fix issue with inserting null values into integer and datetime columns i...
Marek Safar [Fri, 27 Mar 2015 10:26:00 +0000 (11:26 +0100)]
[mcs] Import of interface member which is hidden by parameterless member. Fixes #28201
Zoltan Varga [Fri, 27 Mar 2015 10:22:09 +0000 (06:22 -0400)]
[jit] Avoid emitting seq points in inlined methods.
Marek Safar [Fri, 27 Mar 2015 10:12:50 +0000 (11:12 +0100)]
Fixes System.Design build, the missing file does not apper to be needed
Marek Safar [Fri, 27 Mar 2015 09:59:15 +0000 (10:59 +0100)]
Fixes System.Data build
Zoltan Varga [Fri, 27 Mar 2015 09:47:36 +0000 (05:47 -0400)]
[runtime] Synchronize the overflow checks between mono_string_new_size () and mono_gc_alloc_string ().
Marek Safar [Fri, 27 Mar 2015 06:34:15 +0000 (07:34 +0100)]
Bump reference sources to fix the build
Marek Safar [Fri, 27 Mar 2015 06:33:16 +0000 (07:33 +0100)]
[mcs] Reset flowanalysis finally scope per parameters block. Fixes #28196
Jonathan Braswell [Fri, 27 Mar 2015 03:43:12 +0000 (23:43 -0400)]
Fix issue with inserting null values into integer and datetime columns in Sql Server.
This resolves https://bugzilla.xamarin.com/show_bug.cgi?id=26546.
Atsushi Eno [Fri, 27 Mar 2015 01:37:21 +0000 (10:37 +0900)]
Merge pull request #1662 from atsushieno/import-system-data-partial
Import System.Data from referencesource
Rodrigo Kumpera [Mon, 2 Feb 2015 16:04:37 +0000 (11:04 -0500)]
[threading] Add a coop backend. This paves the way to introduce cooperativeness into the runtime.
Coop requires the following set of rules:
-blocking code must be wrapped with MONO_PREPARE_BLOCKING / MONO_FINISH_BLOCKING
Must not read managed refs read/writes inside the block
Managed memory (i.e. inside a byte[]) must be previously pinned[1]
-state escaping transitions (lazy thunks and others sneaky n2m transitions) must be wrapped with MONO_PREPARE_RESET_BLOCKING / MONO_FINISH_RESET_BLOCKING
This lands the thread in runnable state, so be careful to keep it suspendable by following the target environment rules.
The set of rules for what runtime code can/can't are still in flux, but here's the tentative list:
== On Wrapping syscall/waits
- Wrap it on the callee. We can't necessarily know in which context the syscall will be called. This will reduce reentrancy issues as blocking is not reentrant.
- Don't go blocking while holding locks as this will certainly deadlock.
- Avoid allocating memory while holding locks.
- Annotate blocking restrictions in the comments in the same way we do it for locking.
== On aborting blocking
- Avoid it as much as possible as it might lead to unbound pauses.
- Make sure you can always restore back to blocking.
[1] Since we conservatively scan the native stack, acquiring the ref outside of the block is enough for now.
Rodrigo Kumpera [Mon, 2 Feb 2015 16:04:37 +0000 (11:04 -0500)]
[threading] Improve logging and troubleshooting helpers in coop suspend code.
Make sure all logging include the thread tid to ease correlation.
Add counters to check for proper balance of post/wait on the suspend semaphore.
Massive improvement in the coop suspend wait timeout crasher. It will now print
a cue card on the internal states. This makes finding the offending threads much easier.
Marek Safar [Thu, 26 Mar 2015 22:45:15 +0000 (23:45 +0100)]
[system.net.http] Parse range values using long range. Fixes #26109
Marek Safar [Thu, 26 Mar 2015 22:09:32 +0000 (23:09 +0100)]
Merge pull request #1663 from JetBrains/valueserializerattribute
Move System.Windows.Markup.ValueSerializerAttribute to System assembly
Marek Safar [Thu, 26 Mar 2015 21:50:30 +0000 (22:50 +0100)]
[mcs] The left-hand side of an assignment cannot contain a null propagating operator. Fixes #28435
Leonid Shalupov [Mon, 2 Mar 2015 17:20:53 +0000 (18:20 +0100)]
move System.Windows.Markup.ValueSerializerAttribute to System assembly, as Microsoft does in .NET Framework 4.5
See MSDN https://msdn.microsoft.com/en-us/library/system.windows.markup.valueserializerattribute(v=vs.110).aspx
Zoltan Varga [Thu, 26 Mar 2015 16:28:07 +0000 (12:28 -0400)]
[llvm] Avoid registering an exception table handler in jit mode, the same info is already available using another callback.
Marek Safar [Thu, 26 Mar 2015 15:57:36 +0000 (16:57 +0100)]
[mcs] Special case flowanalysis of primitive structs. Fixes #28296
Zoltan Varga [Thu, 26 Mar 2015 15:45:33 +0000 (11:45 -0400)]
[runtime] Update some comments.
Zoltan Varga [Thu, 26 Mar 2015 15:29:01 +0000 (11:29 -0400)]
Merge pull request #1659 from alexanderkyte/stringbuilder-referencesource
Fixed StringBuilder marshaling capacity error, and then the tests broken by fixing it.