Miguel de Icaza [Tue, 10 Mar 2015 18:40:33 +0000 (14:40 -0400)]
Merge pull request #977 from jasonleenaylor/bug-18558
Fix for Bug 18558
Marcos Henrich [Tue, 10 Mar 2015 16:33:32 +0000 (16:33 +0000)]
Merge pull request #1579 from esdrubal/aotsp
Sequence points and symbolicate improvements
Marcos Henrich [Tue, 10 Mar 2015 16:22:12 +0000 (16:22 +0000)]
Merge pull request #1612 from esdrubal/socketsh
Changed Socket to used SafeHandle instead of IntPtr.
Zoltan Varga [Tue, 10 Mar 2015 05:28:57 +0000 (01:28 -0400)]
Fix the build.
Zoltan Varga [Tue, 10 Mar 2015 04:36:45 +0000 (00:36 -0400)]
Zoltan Varga [Tue, 10 Mar 2015 02:07:44 +0000 (22:07 -0400)]
[runtime] Add support for generic params with gshared constraints to mono_type_get_basic_type_from_generic ().
Zoltan Varga [Tue, 10 Mar 2015 00:57:25 +0000 (20:57 -0400)]
[runtime] Make the image->gsharedvt_types into an array.
Zoltan Varga [Tue, 10 Mar 2015 00:53:28 +0000 (20:53 -0400)]
[runtime] Handle gparams constrained to vtypes correctly in mono_class_array_element_size ().
Marek Safar [Mon, 9 Mar 2015 23:12:13 +0000 (00:12 +0100)]
[system] Remove closed connection groups from service point manager. Fixes #25254
João Matos [Mon, 9 Mar 2015 20:39:41 +0000 (20:39 +0000)]
Merge pull request #1620 from alexanderkyte/bug-27755
Fixed early termination of string parsing on non-space whitespace.
Marcos Henrich [Fri, 27 Feb 2015 15:59:26 +0000 (15:59 +0000)]
[mono-symbolicate] make check now tests aot with and w/o .msym.
Marcos Henrich [Fri, 27 Feb 2015 15:55:50 +0000 (15:55 +0000)]
[runtime] Added --aot option gen-seq-points-file.
.msym file is now only generated if option gen-seq-points-file is used.
Marcos Henrich [Thu, 19 Feb 2015 15:09:28 +0000 (15:09 +0000)]
[mono-symbolicate] Updated README to the same content as man page.
Marcos Henrich [Wed, 18 Feb 2015 19:22:39 +0000 (19:22 +0000)]
[mono-symbolicate] Added tool man page and script.
Marcos Henrich [Wed, 18 Feb 2015 17:44:50 +0000 (17:44 +0000)]
[mono-symbolicate] Replaced mcs --debug flag usage with -debug.
Marcos Henrich [Wed, 18 Feb 2015 17:41:52 +0000 (17:41 +0000)]
[mono-symbolicate] Fixed wrong Directory.Exists check.
Marcos Henrich [Tue, 17 Feb 2015 15:14:49 +0000 (15:14 +0000)]
[runtime] Updated comment with wrong corlib path.
Marcos Henrich [Tue, 17 Feb 2015 15:12:23 +0000 (15:12 +0000)]
[runtime] emit_exception_debug_info no longer adds seq point flag on release.
Marcos Henrich [Tue, 17 Feb 2015 14:29:26 +0000 (14:29 +0000)]
[runtime] ves_icall_get_trace can now return a -1 IL offset.
This change was made so StackFrame dumps now show a native offset when the IL offset is unknown.
The native offset can be used by mono-symbolicate tool to retrieve an IL offset from a .msym file.
Marcos Henrich [Tue, 17 Feb 2015 14:27:14 +0000 (14:27 +0000)]
[mono-symbolicate] make check now also runs test with AOT.
Marcos Henrich [Tue, 17 Feb 2015 14:18:54 +0000 (14:18 +0000)]
[mono-symbolicate] Tool is now using .msym files with AOT.
With AOT sequence points are stored in a .msym file.
As the sequence point data is not avaible at run time, AOT stack traces display a native offset.
mono-symbolicate tool is now able to retrieve an IL offset from a method name, native offset, and the data stored on the .msym file.
The IL offset can then be use to retrieve a filename and line from a .mdb file.
Marcos Henrich [Tue, 17 Feb 2015 14:15:01 +0000 (14:15 +0000)]
[corlib] Added icall System.Diagnostic.StackFrame.GetILOffsetFromFile.
This method is required by the tool mono-symbolicate.
Zoltan Varga [Mon, 9 Mar 2015 19:15:04 +0000 (15:15 -0400)]
Disable SecurityFrame, the runtime code in declsec.c creates cross-domain references which cause GC crashes when running the System.Web testsuite.
Marcos Henrich [Mon, 16 Feb 2015 15:22:13 +0000 (15:22 +0000)]
[runtime] Moved some seq point code from mono/mini to mono/metadata.
Created files metadata/seq-points-data.c and .h.
Sequence points data structures were moved to metadata so we can perform icalls on them.
Marcos Henrich [Tue, 3 Feb 2015 18:32:41 +0000 (18:32 +0000)]
[runtime] AOT now uses file to store release mode sequence points.
Sequence point data is now stored in a .msym file.
This change removes the sequence points memory overhead from assemblies to be deployed on devices.
Marcos Henrich [Fri, 13 Feb 2015 11:07:42 +0000 (11:07 +0000)]
[runtime] Added SeqPointData used to write/load sequence points.
Marcos Henrich [Fri, 13 Feb 2015 10:59:28 +0000 (10:59 +0000)]
[runtime] Improved seq_point_info_write/read has_debug_data encode.
Marcos Henrich [Wed, 4 Feb 2015 16:21:24 +0000 (16:21 +0000)]
[mono-symbolicate] Changed files to use new tool name.
Marcos Henrich [Wed, 4 Feb 2015 16:06:18 +0000 (16:06 +0000)]
[symbolicate] Renamed symbolicate to mono-symbolicate.
Renamed the tool to a name that will not conflict with other installed tools.
Marcos Henrich [Mon, 9 Mar 2015 17:35:47 +0000 (17:35 +0000)]
[runtime] Fixed Process.GetProcesses ().
Process.GetProcesses () was not returning any processes.
Alexander Kyte [Sun, 8 Mar 2015 19:18:27 +0000 (15:18 -0400)]
Fixed early termination of string parsing on non-space whitespace.
João Matos [Mon, 9 Mar 2015 14:23:56 +0000 (14:23 +0000)]
Merge pull request #1622 from akoeplinger/fix-datetime-test
[corlib] Fix timezone dependent DateTimeOffset test
João Matos [Mon, 9 Mar 2015 14:20:36 +0000 (14:20 +0000)]
[runtime] Fixed Windows mono_threads_core_get_stack_bounds to work with cross-compiled targets.
Alexander Köplinger [Mon, 9 Mar 2015 14:21:49 +0000 (10:21 -0400)]
[corlib] Fix timezone dependent DateTimeOffset test
Instead of trying to recreate the date with the current timezone, we should make the date assume UTC and compare against that.
Alexis Christoforides [Mon, 9 Mar 2015 05:23:27 +0000 (01:23 -0400)]
[DataContractJsonSerializer] Allow abstract base classes in lists. Fixes #26998
Abstract classes can still have subclasses with KnownType attributes, which are allowed in deserialization.
This used to work as the '__type' hint was always honored no matter the type, and broke with https://github.com/mono/mono/commit/
71e152accc727089faffa6b4fd6bf58cb62636cf which removed that behavior.
Alex Rønne Petersen [Sun, 8 Mar 2015 21:05:47 +0000 (22:05 +0100)]
Merge pull request #1619 from akoeplinger/flaky-dataflow-test
[Dataflow] Disable flaky FaultExecutingConsume () test
Alexander Köplinger [Sun, 8 Mar 2015 08:10:46 +0000 (09:10 +0100)]
[Dataflow] Disable flaky FaultExecutingConsume () test
It fails randomly on Jenkins and my own CI. To reproduce, just wrap the body of the test in while(true) and run for a few minutes.
I tested on MS.NET as well and it fails the same way there, so it's not Mono's implementation of Dataflow.
Filed https://bugzilla.xamarin.com/show_bug.cgi?id=27757 for tracking.
Zoltan Varga [Sun, 8 Mar 2015 03:59:25 +0000 (22:59 -0500)]
[jit] Rename MonoGenericParam->serial to 'gshared_constraint', use it to calculate object sizes/layouts correctly if a generic param matches a non-reference type during gsharing.
Miguel de Icaza [Sat, 7 Mar 2015 02:18:42 +0000 (21:18 -0500)]
[UnixRegistry] Fix leak (#25559), remove races.
There was a memory leak caused by not having a lookup mechanism for
the RegistryKey. In addition, the entire code to dispose code was
never used (due to the leak), and it was wrong.
In addition, added locking to the "values" field, which currently was
racy.
No test cases, the repro is to run the above code for about 5 minutes.
João Matos [Fri, 6 Mar 2015 18:14:25 +0000 (18:14 +0000)]
Enable x86 cross compilation on Windows.
João Matos [Fri, 6 Mar 2015 17:40:43 +0000 (17:40 +0000)]
Do not try to use the native GCC linker when targeting Android from Windows.
João Matos [Fri, 6 Mar 2015 17:40:07 +0000 (17:40 +0000)]
Fixed Windows system commands calls with non-ASCII paths.
This is a bit of an hack but it works for now... ideally we should be processing the Unicode command line flags passed by the CRT at startup instead of trying to convert the MBCS string to a wide string.
Sebastien Pouliot [Fri, 6 Mar 2015 15:35:27 +0000 (10:35 -0500)]
Remove the EXPORT ciphers and related code path
That was still useful in 2003/2004 but the technical and legal landscape
changed a lot since then. Removing the old, limited key size, cipher
suites also allow removed additional parts of the code that deals with
them.
Sebastien Pouliot [Fri, 6 Mar 2015 15:34:59 +0000 (10:34 -0500)]
Remove the client-side SSLv2 fallback.
There's almost no SSLv3 web site left so a v2 fallback is only extra
code we do not need to carry forward.
Sebastien Pouliot [Fri, 6 Mar 2015 15:34:14 +0000 (10:34 -0500)]
TLS protocol: add handshake state validation
Miguel de Icaza [Fri, 6 Mar 2015 14:47:56 +0000 (09:47 -0500)]
Merge pull request #1155 from steffen-kiess/json-string
Fix System.Json string handling and make order of JsonObject entries deterministic
Zoltan Varga [Thu, 5 Mar 2015 22:59:42 +0000 (17:59 -0500)]
[jit] Use mini_get_underlying_type () in one more place.
Zoltan Varga [Thu, 5 Mar 2015 22:53:55 +0000 (17:53 -0500)]
[jit] Add a make target for running the jit tests without the nunit output wrapper.
Zoltan Varga [Thu, 5 Mar 2015 22:46:10 +0000 (17:46 -0500)]
[jit] Use mini_get_underlying_type () in a few more places.
Zoltan Varga [Thu, 5 Mar 2015 22:06:29 +0000 (17:06 -0500)]
[runtime] Remove the usage of MONO_INTERNAL, use MONO_API to mark exported functions and -fvisibility=hidden to exclude everything else.
Zoltan Varga [Thu, 5 Mar 2015 21:02:21 +0000 (16:02 -0500)]
[runtime] Remove the usage of MONO_INTERNAL, use MONO_API to mark exported functions and -fvisibility=hidden to exclude everything else.
Rodrigo Kumpera [Mon, 2 Feb 2015 16:04:37 +0000 (11:04 -0500)]
[loader] If probing for a pinvoke fails, log the error mono_dl_symbol gives us.
We used to swallow the error, which is unhelpful.
The reason for that might be because we probe multiple names before giving up but
even then, it's ok log all attempts. It will make troubleshooting easy, even if we
have to go through a lot more log entries.
Zoltan Varga [Thu, 5 Mar 2015 20:02:20 +0000 (15:02 -0500)]
[sdb] Avoid asserts on darwin when the thread deregistration code is ran from a pthread dtor. Fixes #27697.
Zoltan Varga [Thu, 5 Mar 2015 19:24:43 +0000 (14:24 -0500)]
[runtime] Fix byref out marshalling of arrays with a size parameter. Fixes #27614.
Sebastien Pouliot [Thu, 5 Mar 2015 19:03:04 +0000 (14:03 -0500)]
[tests] IPInterfaceProperties DNS address does not currently work on iOS devices (since it read /etc/resolve.conf). Ignore it for XI until #27707 is fixed
Marek Safar [Thu, 5 Mar 2015 17:40:36 +0000 (18:40 +0100)]
[corlib] BaseType of by-ref types is null
Miguel de Icaza [Thu, 5 Mar 2015 16:33:12 +0000 (11:33 -0500)]
[System.ServiceModel.Web/WebMessageFormatter] Fix OperationContracts with void returns
WebMessageFormatter crashes when the OperationContracts had a void return type.
Fixes #20764, patch from <renee_geoffrion@hotmail.com>
Marek Safar [Thu, 5 Mar 2015 13:36:41 +0000 (14:36 +0100)]
[corlib] Enum from reference sources
Marek Safar [Thu, 5 Mar 2015 06:42:38 +0000 (07:42 +0100)]
Merge pull request #1615 from akoeplinger/fix-consolelogger-race
[Microsoft.Build.Enginge] Fix race in ConsoleLogger
Marek Safar [Thu, 5 Mar 2015 06:41:19 +0000 (07:41 +0100)]
Merge pull request #1614 from akoeplinger/fix-memorycache-tests
[System.Runtime.Caching] Make some MemoryCache tests more reliable
Alexander Köplinger [Thu, 5 Mar 2015 02:46:50 +0000 (03:46 +0100)]
[Microsoft.Build.Enginge] Fix race in ConsoleLogger
This occasionally made the BasicManualParallelBuilds test fail on Jenkins.
Zoltan Varga [Thu, 5 Mar 2015 01:09:22 +0000 (20:09 -0500)]
[build] Avoid redefining clean target in mcs/class/Makefile.
Zoltan Varga [Thu, 5 Mar 2015 01:03:24 +0000 (20:03 -0500)]
[jit] Add a new mini_get_underlying_type () function which handles byref, enums, native types, and generic sharing. Use it in places where possible.
Alexander Köplinger [Wed, 4 Mar 2015 21:40:02 +0000 (13:40 -0800)]
[System.Runtime.Caching] Make some MemoryCache tests more reliable
After MemoryCache was imported from referencesources, some tests started
failing occasionally. Cross-testing on MS.NET showed that you need to
access the cached item to make MemoryCache.GetCount() reliably return the
correct number after an item was expired from the cache.
Also removed __MonoTimerPeriod and __MonoEmulateOneCPU configuration variables,
they were used in Mono code before and don't make sense with the new code.
jason_naylor [Wed, 4 Mar 2015 15:58:01 +0000 (09:58 -0600)]
Fix for the XMLSerializer bug 18558
* Find the type map element that is the most-specific to the
object in question, not the first type it is an instance of
Change-Id: I1867e790bf9f377ce0ae02871f4561b760e27624
jason_naylor [Wed, 4 Mar 2015 16:25:12 +0000 (10:25 -0600)]
Test to reveal defect in XmlSerializer (Bug 18558)
Given the test data in this patch the wrong element name
is used when serializing TestSerializeSecondType
Change-Id: I8aff732dfd22f4f654fb42f2d3b987d7ce58d600
Atsushi Eno [Wed, 4 Mar 2015 15:47:57 +0000 (23:47 +0800)]
Remove old System.Xml.Linq code.
Marek Safar [Wed, 4 Mar 2015 12:45:25 +0000 (13:45 +0100)]
[system.xml] Clean up build output
Atsushi Eno [Wed, 4 Mar 2015 12:28:13 +0000 (20:28 +0800)]
bump referencesource, bring in the fix for bug #27258.
Marcos Henrich [Wed, 4 Mar 2015 12:22:40 +0000 (12:22 +0000)]
[System] Replaced while loop logic with an if.
The while loop is unnecessary because Interlocked.CompareExchange in this case already guarantees that blocking_threads is not null.
Atsushi Eno [Wed, 4 Mar 2015 08:05:42 +0000 (16:05 +0800)]
Merge pull request #1613 from atsushieno/import-system-xml-linq
Import System.Xml.Linq from referencesource.
Atsushi Eno [Wed, 4 Mar 2015 04:59:51 +0000 (12:59 +0800)]
Merge branch 'master' into import-system-xml-linq
Atsushi Eno [Wed, 4 Mar 2015 04:58:42 +0000 (12:58 +0800)]
bump referencesource.
Atsushi Eno [Wed, 4 Mar 2015 03:44:16 +0000 (11:44 +0800)]
XLinq in referencesource depends on S.R.Serialization.
Atsushi Eno [Wed, 4 Mar 2015 03:44:07 +0000 (11:44 +0800)]
Merge branch 'master' into import-system-xml-linq
Miguel de Icaza [Wed, 4 Mar 2015 02:59:07 +0000 (21:59 -0500)]
[Registry] Revert
826060172f668401a8e69e7ec7fc7e838941c556 until I fix the regression
Zoltan Varga [Wed, 4 Mar 2015 00:11:36 +0000 (19:11 -0500)]
Fix Microsoft.Build tests which got broken by some newline changes in
ef380e3712af86ef7f8064fab19400523c7510c0.
Zoltan Varga [Tue, 3 Mar 2015 22:47:54 +0000 (17:47 -0500)]
Fix make dist.
Miguel de Icaza [Tue, 3 Mar 2015 22:25:14 +0000 (17:25 -0500)]
Style consistency with the rest of Mono's code
Zoltan Varga [Tue, 3 Mar 2015 21:55:23 +0000 (16:55 -0500)]
[build] Delete class/lib/$(PROFILE) on clean.
Zoltan Varga [Tue, 3 Mar 2015 21:46:28 +0000 (16:46 -0500)]
[jit] Really enable partial generic sharing.
Alexander Köplinger [Tue, 3 Mar 2015 21:35:36 +0000 (22:35 +0100)]
appveyor.yml: switch away from unstable image and simplify script
The unstable image seemed to cause problems recently.
We should just use the default image and fetch Cygwin ourselves.
Also added caching of the Cygwin files and simplified the script a bit.
Miguel de Icaza [Tue, 3 Mar 2015 21:18:51 +0000 (16:18 -0500)]
[UnixRegistry] Fix leak (#25559), remove races.
There was a memory leak caused by not having a lookup mechanism for
the RegistryKey. In addition, the entire code to dispose code was
never used (due to the leak), and it was wrong.
In addition, added locking to the "values" field, which currently was
racy.
No test cases, the repro is to run the above code for about 5 minutes.
Zoltan Varga [Tue, 3 Mar 2015 20:59:16 +0000 (15:59 -0500)]
Rename Managed.Windows.Forms to System.Windows.Forms for consistency.
Zoltan Varga [Tue, 3 Mar 2015 20:25:19 +0000 (15:25 -0500)]
[jit] Enable partial generic sharing when not using AOT as an experiment.
Atsushi Eno [Tue, 3 Mar 2015 19:31:00 +0000 (03:31 +0800)]
Remove old System.Xml sources. bye bye.
Atsushi Eno [Sat, 28 Feb 2015 04:34:03 +0000 (12:34 +0800)]
import System.Xml.Linq from referencesource.
Marek Safar [Tue, 3 Mar 2015 16:49:35 +0000 (17:49 +0100)]
[corlib] Peek to attribute import from reference souces
Marek Safar [Tue, 3 Mar 2015 16:42:52 +0000 (17:42 +0100)]
[corlib] Apply activation attributes for IsContextful types only
João Matos [Tue, 3 Mar 2015 16:27:07 +0000 (16:27 +0000)]
Support multiple options when processing the AOT flag "ld-flags".
Marcos Henrich [Mon, 2 Mar 2015 14:29:58 +0000 (14:29 +0000)]
[runtime] Implemented mach and windows mono_threads_core_abort_syscall.
call_cancel_blocking_socket_operation relies on mono_threads_core_abort_syscall which will now work on mach and windows.
Marcos Henrich [Mon, 2 Mar 2015 13:59:16 +0000 (13:59 +0000)]
[System] Moved blocking system calls logic to SafeSocketHandle.
All the blocking system calls are now registered.
SafeSocketHandle.ReleaseHandle now aborts system calls before closing the socket.
Atsushi Eno [Tue, 3 Mar 2015 14:43:22 +0000 (22:43 +0800)]
Update expected error message to match System.Xml referencesource.
João Matos [Tue, 3 Mar 2015 14:40:32 +0000 (14:40 +0000)]
Merge pull request #1611 from mono/akoeplinger-patch-1
Readme: add badges for armel/armhf and split off community supported archs
Alexander Köplinger [Tue, 3 Mar 2015 14:06:18 +0000 (15:06 +0100)]
Readme: add badges for armel/armhf and split off community supported archs
Marek Safar [Tue, 3 Mar 2015 13:28:03 +0000 (14:28 +0100)]
[corlib] Activator from reference sources
Atsushi Eno [Tue, 3 Mar 2015 12:04:43 +0000 (20:04 +0800)]
Merge pull request #1608 from atsushieno/import-system-xml-4
Import large chunk of System.Xml sources from referencesource.
Zoltan Varga [Tue, 3 Mar 2015 03:37:43 +0000 (22:37 -0500)]
[aot] Fix thumb support with separate llvm modules.
Zoltan Varga [Tue, 3 Mar 2015 03:37:20 +0000 (22:37 -0500)]
[arm] Fix support for backward branches in mono_arm_get_thumb_plt_entry ().
Zoltan Varga [Tue, 3 Mar 2015 01:39:01 +0000 (20:39 -0500)]
Disable bug-Xamarin-5278.exe for now to make the build green again, it was broken by
5d26590e79da139a284459299aee95c25f4cd835.