Miguel de Icaza [Fri, 7 Dec 2012 21:58:25 +0000 (13:58 -0800)]
Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
Unit test for issue2907
Miguel de Icaza [Fri, 7 Dec 2012 21:57:58 +0000 (13:57 -0800)]
Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
Fix for issue 2907: XML "choice" not correctly processed during deserialization
Zoltan Varga [Fri, 7 Dec 2012 15:58:08 +0000 (16:58 +0100)]
Treat valuetype arguments precisely during precise stack marking.
Atsushi Eno [Fri, 7 Dec 2012 09:05:57 +0000 (18:05 +0900)]
Fix mobile builds.
Martin Baulig [Fri, 7 Dec 2012 00:05:06 +0000 (01:05 +0100)]
Add missing '#if NET_4_5'.
Rodrigo Kumpera [Thu, 6 Dec 2012 17:25:47 +0000 (12:25 -0500)]
Enable MOBILE mmap support under ios-simulator. Fixes #8786.
Martin Baulig [Wed, 5 Dec 2012 21:47:09 +0000 (22:47 +0100)]
[WCF]: Implement and improve missing WsdlExporter pieces.
* We now export simple <wsp:Policy>, currently supporting only
those elements that WsdlImporter can import.
WsdlImporter:
https://github.com/mono/mono/commit/
cdc98dba1b83341c25a1daab4ae7c217d4961ad1
* Implement `MetadataExporter.Errors' and use it for error
reporting.
* Fixed WsdlExporter's caching to correclty deal with duplicate
ExportContract() and ExportEndpoint() calls.
* Emit <soap12:operation> depending on the binding's MessageVersion.
(FIXME: I didn't implement soap faults yet).
* MetadataTests: Check whether the policy elements are correct.
* MetadataTests: Add test containing simple [OperationContract] method
for http and net.tcp; checks the <soap:operation> / <soap12:operation>
elements.
* New test to check WsdlExporter's behavior regarding duplicate
contracts and endpoints.
* ConnectionOrientedTransportBindingElement.cs, CustomBindingTests.cs,
HttpTransportBindingElementTest.cs: Added test for custom message
encodings.
Rodrigo Kumpera [Wed, 5 Dec 2012 20:38:34 +0000 (15:38 -0500)]
Bump mono to 3.0.3
Zoltan Varga [Wed, 5 Dec 2012 17:35:25 +0000 (18:35 +0100)]
technomage [Wed, 5 Dec 2012 14:24:17 +0000 (14:24 +0000)]
[Mono] TimeZoneInfo.FindSystemTimeZoneById returns null
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=7966
If we cannot find the requiested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
Zoltan Varga [Wed, 5 Dec 2012 12:49:15 +0000 (13:49 +0100)]
Treat param area stack slots as being part of the callee frame, not the caller, so precise stack marking works for methods with tail calls as well.
Zoltan Varga [Wed, 5 Dec 2012 12:46:12 +0000 (13:46 +0100)]
Avoid computing the remset size in sgen_ssb_record_pointer ().
Marek Safar [Wed, 5 Dec 2012 11:11:16 +0000 (12:11 +0100)]
Bring back 2.10 based System.Json and move aspnet stack version to System.Json.Microsoft
Marek Safar [Wed, 5 Dec 2012 10:14:10 +0000 (11:14 +0100)]
Add new test
Marek Safar [Wed, 5 Dec 2012 09:17:41 +0000 (10:17 +0100)]
Update mcs translations
Marek Safar [Wed, 5 Dec 2012 09:17:24 +0000 (10:17 +0100)]
Add resx to dist files
Jonathan Pryor [Wed, 5 Dec 2012 04:08:44 +0000 (23:08 -0500)]
Don't version shared libraries on Android.
Wanted: profiler support on Android. ;-)
...which seems sane enough: we have this nifty pluggable profiler
mechanism already, we have profilers built as separate shared libs
(e.g. libmono-profiler-log.so), let's just "somehow" load one, call
the init function, and we're off to the races, right?
void* h = dlopen ("path/to/libmono-profiler-log.so", RTLD_LAZY)
// h == null; dlerror() is:
// Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library
// "libmonosgen-2.0.so.0" needed by "libmono-profiler-log.so"; caused by
// load_library(linker.cpp:745): library "libmonosgen-2.0.so.0" not found
Ouch. So the problem is that libmonosgen-2.0.so contains a versioned
SONAME ("libmonosgen-2.0.so.0"), and thus libmono-profiler-log.so
contains a versioned SONAME reference, which cannot be resolved.
(Android doesn't allow versioned .so's to be placed within .apks.)
Fix the first: make libmonosgen-2.0.so unversioned. That way,
libmono-profiler-log.so contains an unversioned library reference, and
Android is appeased!
(Unversion libmono-profiler-log.so for good measure.)
Fix the second: with the above fix in place, libmono-profiler-log.so
SITLL won't be loaded, with dlerror(3) reporting:
Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate
symbol "monoeg_g_log" referenced by "libmono-profiler-log.so"
The issue here is that libmonosgen-2.0.so contains unexported symbol
references from eglib, e.g. monoeg_g_log(), and dlopen() won't use
those unexported symbols. So just add the glib link references to
libmono-profiler-log.so, and everything is kosher. Yay.
Zoltan Varga [Tue, 4 Dec 2012 23:58:02 +0000 (00:58 +0100)]
Add support for interior pointers for oldspace objects to describe_ptr ().
Zoltan Varga [Tue, 4 Dec 2012 18:28:09 +0000 (19:28 +0100)]
Call the specialized SortImpl<T> implementation from Sort<T>.
Zoltan Varga [Tue, 4 Dec 2012 18:15:37 +0000 (19:15 +0100)]
Avoid using hand-specialized qsort<K,T> instantiations in SortImpl<TKey,TValue> when using full-aot, as it leads to a code blowup. Inline swap methods.
Marek Safar [Tue, 4 Dec 2012 17:46:38 +0000 (18:46 +0100)]
Enable 4.x api for MonoTouch
Marek Safar [Tue, 4 Dec 2012 17:44:24 +0000 (18:44 +0100)]
Move System.Json sources from external before they are removed
Marek Safar [Tue, 4 Dec 2012 17:28:38 +0000 (18:28 +0100)]
Add MOBILE defines to 4.0 code
Marek Safar [Tue, 4 Dec 2012 17:27:35 +0000 (18:27 +0100)]
ifdef same extension method which exists in 4.5 mscorlib
Zoltan Varga [Tue, 4 Dec 2012 17:36:58 +0000 (18:36 +0100)]
Optimize the emission of dwarf line number info by mostly ordering the methods by their line numbers. dlsymutil becomes very slow otherwise.
Zoltan Varga [Tue, 4 Dec 2012 13:30:53 +0000 (14:30 +0100)]
Reduce the number of non-temporary symbols in AOT output files on mach.
Zoltan Varga [Tue, 4 Dec 2012 13:30:01 +0000 (14:30 +0100)]
Delete .dSYM directories using rm -rf.
Marek Safar [Tue, 4 Dec 2012 14:10:19 +0000 (15:10 +0100)]
Disable some of tests which MT cannot handle
Marek Safar [Tue, 4 Dec 2012 14:08:23 +0000 (15:08 +0100)]
Bump ikvm (fixes stream references leak)
Marek Safar [Tue, 4 Dec 2012 13:46:36 +0000 (14:46 +0100)]
Pass empty array to Main methods
Jeffrey Stedfast [Mon, 3 Dec 2012 18:58:43 +0000 (13:58 -0500)]
Don't return a shared CFProxy instance
Marek Safar [Mon, 3 Dec 2012 18:15:33 +0000 (19:15 +0100)]
Update tests
Marek Safar [Mon, 3 Dec 2012 17:06:50 +0000 (18:06 +0100)]
Add MonoTouch test skeleton project
Jeffrey Stedfast [Mon, 3 Dec 2012 17:23:08 +0000 (12:23 -0500)]
Fixed MacOS proxy support for proxies requiring authentication
Marek Safar [Mon, 3 Dec 2012 17:00:37 +0000 (18:00 +0100)]
Make Main method public
Marek Safar [Mon, 3 Dec 2012 17:00:13 +0000 (18:00 +0100)]
Add MonoTouch mode
Marek Safar [Mon, 3 Dec 2012 16:56:08 +0000 (17:56 +0100)]
Add MonoTouch compatible run mode
Marek Safar [Mon, 3 Dec 2012 16:24:26 +0000 (17:24 +0100)]
Workaround ikvm filestream dispose bug
Zoltan Varga [Mon, 3 Dec 2012 09:42:57 +0000 (10:42 +0100)]
Optimize the GC map construction code a bit.
Martin Baulig [Fri, 30 Nov 2012 19:37:30 +0000 (20:37 +0100)]
[WCF]: Support embedded <wsp:Policy> elements.
Zoltan Varga [Sat, 1 Dec 2012 09:22:15 +0000 (10:22 +0100)]
Avoid a newline in some mono_trace () calls, it already adds one.
Rodrigo Kumpera [Fri, 30 Nov 2012 22:42:39 +0000 (17:42 -0500)]
Handle a loader generic type hierarchy corner case. Fixes bxc #8549
* class.c: Handle the case when the parent of a GTD needs a generic
instance of the child type leading to a generic instance with
inconsistent values.
Say we have this set of types:
class TextBoxBase<T> : TextInput<TextBox> where T : TextBoxBase<T> {}
class TextBox : TextBoxBase<TextBox> {}
class TextInput<T> : Input<T> where T: TextInput<T> {}
class Input<T> {}
Now the runtime tries to load TextBoxBase<>, this is the sequence of events:
1)Load type TextBoxBase<>
2.1)Type has parent, find it
2.2)Lookup parent TextInput<TextBox>
3.1)Lookup TextInput<>
4)Load type TextInput<> //OK
3.2)Lookup TextBok
5)Load type TextBox
6.1)Type has parent, find it
6.2)Lookup TextBoxBase<TextBox>
7.1)Lookup TextBoxBase<> //OK
7.2)Lookup TextBox //OK
7.3)Create generic instance TextBoxBase<TextBox> //BOOM
Let's examine what happens in (7.3), we try to create the generic class instance TextBoxBase<TextBox>
which means we must inflate all of its MonoClass fields. One field in particular, parent, will be set to null
because the lookup for TextBoxBase parent in (2.2) still running which means the current value is null.
What does it mean? It means that TextBoxBase<TextBox> extends object and our program will misbehave.
Fixes bxc #8549
Rodrigo Kumpera [Fri, 30 Nov 2012 19:54:22 +0000 (14:54 -0500)]
RegistrationServices from the Mobile profile. This is only required for COM.
Rodrigo Kumpera [Fri, 30 Nov 2012 17:56:30 +0000 (09:56 -0800)]
Merge pull request #513 from pruiz/xamarin-bug-8565-v2
Fixed xamarin-bug #8565: System.Runtime.Serialization assembly remapping bug when targeting 2/3/3.5 profile.
Marek Habersack [Fri, 30 Nov 2012 09:59:01 +0000 (01:59 -0800)]
Merge pull request #498 from Unroll-Me/master
Fix HttpContextWrapper.Session when Session State is disabled
Marek Safar [Fri, 30 Nov 2012 08:04:46 +0000 (00:04 -0800)]
Merge pull request #515 from pruiz/syswebrouting-fixes
Fixes xamarin-bug #8646: Inconsistencies with MS.NET on Sys.Web.Routing logic
Rodrigo Kumpera [Thu, 29 Nov 2012 17:47:40 +0000 (12:47 -0500)]
Add stats for cards remarked by the gc and left untouched by the mutator after.
* sgen-cardtable.c: A nursery object might not be promoted if it's pinned
or, unlikely, the major heap is full. Under those circumstances we need
to remark the card and leave the object behind.
With this we can see how many extra cards are kept due to pinning.
Jeremie Laval [Thu, 29 Nov 2012 17:38:15 +0000 (17:38 +0000)]
[monkeydoc] Precise the HelpSource that is tested in the error output
Jeremie Laval [Thu, 29 Nov 2012 17:37:42 +0000 (17:37 +0000)]
[monkeydoc] Robustify EcmaDesc equality checking and fix unit tests
Jeremie Laval [Thu, 29 Nov 2012 17:35:33 +0000 (17:35 +0000)]
[monkeydoc] Due to some existing doc, revert to Ordinal instead of OrdinalIgnoreCase
Mark Probst [Thu, 29 Nov 2012 16:35:34 +0000 (17:35 +0100)]
[tests] Fix pinning in finalizer-exception.cs.
The finalizable object got pinned, so it wouldn't be finalised. Just
recurse a bit and allocate it there.
Pablo Ruiz Garcia [Thu, 29 Nov 2012 16:00:21 +0000 (17:00 +0100)]
Fix style to adhere to mono's coding guidelines.
Jeremie Laval [Thu, 29 Nov 2012 15:21:19 +0000 (15:21 +0000)]
Revert "Revert "[monkeydoc] Remove debug spew""
This reverts commit
783bcfb735b17b48eee7670a896a29dfd6023174.
Jeremie Laval [Thu, 29 Nov 2012 15:20:28 +0000 (15:20 +0000)]
[monkeydoc] Disable now unneeded hack
Jeremie Laval [Thu, 29 Nov 2012 15:19:59 +0000 (15:19 +0000)]
[monkeydoc] Handle more special generation case
Jeremie Laval [Thu, 29 Nov 2012 15:18:52 +0000 (15:18 +0000)]
[monkeydoc] Proxy back GetCachedHelpStream to the right member
Jeremie Laval [Thu, 29 Nov 2012 15:17:01 +0000 (15:17 +0000)]
[monkeydoc] Only calculate internal id if necessary
Jeremie Laval [Thu, 29 Nov 2012 15:14:44 +0000 (15:14 +0000)]
[monkeydoc] Use a map to quickly access zip archive content.
Jeremie Laval [Thu, 29 Nov 2012 15:13:57 +0000 (15:13 +0000)]
[monkeydoc] Avoid variable name clash
Jeremie Laval [Wed, 28 Nov 2012 16:59:48 +0000 (16:59 +0000)]
Revert "[monkeydoc] Remove debug spew"
This reverts commit
8344309a7b2285db8ebb0af5ec8651d6bf02f375.
Jeremie Laval [Wed, 28 Nov 2012 16:59:15 +0000 (16:59 +0000)]
[monkeydoc] Create the summary files in ecma-provider
Jeremie Laval [Wed, 28 Nov 2012 16:58:22 +0000 (16:58 +0000)]
[monkeydoc] Don't mistakenly close the zip out stream when storing text.
Jeremie Laval [Wed, 28 Nov 2012 14:56:46 +0000 (14:56 +0000)]
[monkeydoc] Fill in more details about the node for rendering to work correctly
Jeremie Laval [Wed, 28 Nov 2012 14:55:59 +0000 (14:55 +0000)]
[monkeydoc] Correctly process arguments given to the ecma html-izer
Jeremie Laval [Wed, 28 Nov 2012 14:55:09 +0000 (14:55 +0000)]
[monkeydoc] Enable ecma XML rendering
Jeremie Laval [Wed, 28 Nov 2012 13:36:31 +0000 (13:36 +0000)]
[monkeydoc] Purge extra id parameters in ecma-provider
Jeremie Laval [Wed, 28 Nov 2012 13:36:06 +0000 (13:36 +0000)]
[monkeydoc] Fix generated ecma: url format
Jeremie Laval [Wed, 28 Nov 2012 13:25:21 +0000 (13:25 +0000)]
[Microsoft.Build.Tasks] Put failing test into NotWorking category as they are dependent on environment.
Jeremie Laval [Wed, 28 Nov 2012 11:28:10 +0000 (11:28 +0000)]
[monkeydoc] Use Lucene.Net via a submodule set on their 3.0.3 release
Jeremie Laval [Wed, 28 Nov 2012 11:25:41 +0000 (11:25 +0000)]
[monkeydoc] Implement GetHashCode for EcmaDesc
Jeremie Laval [Wed, 28 Nov 2012 10:40:11 +0000 (10:40 +0000)]
[monkeydoc] Remove hard-copy of Lucene.net
Jeremie Laval [Wed, 28 Nov 2012 10:32:47 +0000 (10:32 +0000)]
[monkeydoc] Remove debug spew
Pablo Ruiz Garcia [Thu, 29 Nov 2012 14:46:49 +0000 (15:46 +0100)]
Fixed routes with CatchAll argument, in order to make them succesfully
match requests with empty (or null) catch-all portion.
Included a couple of unit-tests which pass both here, and on ms.net land.
License: This patch is under MIT/X11 license.
Pablo Ruiz Garcia [Thu, 29 Nov 2012 04:21:37 +0000 (05:21 +0100)]
One line typo bug which passed unoticed on previous commit.
Pablo Ruiz Garcia [Thu, 29 Nov 2012 00:33:55 +0000 (01:33 +0100)]
Fixes xamarin-bug #8646: Inconsistencies with MS.NET on Sys.Web.Routing logic.
This patch fixes some inconsistencies on Sys.Web.Routing between our implementation
and the one found on MS.NET.. Both relating to URL Generation code inside of
Route.GetVirtualPath().
1) When defining a route with a parameter with both a default value and some
constraint, Route.GetVirtualPath() fails to match if no parameter values is specified.
2) HttpMethodConstraint, does not take into account RouteDirection.UrlGeneration.
See: https://bugzilla.xamarin.com/show_bug.cgi?id=8646
License: This patch is under MIT/X11 license.
Rodrigo Kumpera [Wed, 28 Nov 2012 23:12:20 +0000 (18:12 -0500)]
Make each test output to a different file to make it easy to figure out which configuration crashed.
Rodrigo Kumpera [Wed, 28 Nov 2012 23:11:25 +0000 (18:11 -0500)]
Add a domain unloading test to the sgen test suite.
Rodrigo Kumpera [Wed, 28 Nov 2012 23:09:11 +0000 (18:09 -0500)]
Fix GC logging and make output neater.
Rodrigo Kumpera [Wed, 28 Nov 2012 23:07:13 +0000 (18:07 -0500)]
Lazy sweep blocks when walking the heap.
* sgen-marksweep.c (major_iterate_objects): We must lazy sweep blocks
before we enumerate them to correctly account liveness.
Rodrigo Kumpera [Wed, 28 Nov 2012 22:04:27 +0000 (17:04 -0500)]
Make sure we don't corrupt the heap when serializing a unix domain socketaddr.
* socket-io.c (create_object_from_sockaddr): The resulting array size must
be two bytes larger than the sockaddr one since we always serialize the family
kind at the beginning.
This fixes a crash on MD-linux-amd64-mono-sgen-3.0 running unit tests.
Martin Baulig [Wed, 28 Nov 2012 15:04:56 +0000 (16:04 +0100)]
[WCF]: Metadata test improvements.
Only check whether 'System.Web.Services.Binding.Extensions' contains
the policy XmlElement when importing metadata, not when creating it
programmatically.
Zoltan Varga [Wed, 28 Nov 2012 14:28:21 +0000 (15:28 +0100)]
Add some debug logging to lookup_data_table () to help track down why it asserts sometimes.
Zoltan Varga [Wed, 28 Nov 2012 14:24:27 +0000 (15:24 +0100)]
Remove the setup_jit_tls_data () call from mini_init (), it is done later by mono_thread_attach ().
Martin Baulig [Wed, 28 Nov 2012 13:59:23 +0000 (14:59 +0100)]
[WCF]: Add and improve MetadataImport tests.
We now run the same tests from ImportTests.cs three times
using the following profiles:
* We load the metadata from an XML file.
* We create the metadata programmatically.
* We create the metadata programmatically, export it into
XML, then import it back (round-trip).
Martin Baulig [Wed, 28 Nov 2012 11:35:24 +0000 (12:35 +0100)]
[WCF]: Fix accessibility of 'ClientBase<T>.ChannelBase<T>'.
Mark it as 'protected internal' in .NET 4.0 and Monotouch and
'internal' otherwise. According to the MSDN docs, the class
is 'protected' and exists in Silverlight, .NET 4.0 and .4.5.
See http://stackoverflow.com/questions/
13389652/how-to-override-clientbase-createchannel-in-mono-on-ios.
Marek Safar [Wed, 28 Nov 2012 07:35:35 +0000 (23:35 -0800)]
Merge pull request #514 from pmarks/FixNoWarnXBuild
[xbuild] handle <NoWarn> tags of the form <NoWarn>1234, 5678</NoWarn>
Patrick Marks [Wed, 28 Nov 2012 06:28:08 +0000 (22:28 -0800)]
[xbuild] handle <NoWarn> tags of the form <NoWarn>1234, 5678</NoWarn>,
for improved compatibility with msbuild
Rolf Bjarne Kvinge [Fri, 23 Nov 2012 12:07:42 +0000 (13:07 +0100)]
Make WaitHandle.Wait* behave the same wrt WAIT_IO_COMPLETION. Fixes #8566.
Make the all check for exceptions if interrupted, and wait again
with a re-calculated timeout if no exceptions were to be thrown.
This fixes a deadlock in WaitAny, because WaitAny wasn't checking
for exceptions, just re-calculating the timeout. It also makes
the methods behave the same wrt other APC reasons.
Jeremie Laval [Tue, 27 Nov 2012 18:14:57 +0000 (18:14 +0000)]
[monkeydoc] Special case pluralization of 'Property'.
Pablo Ruiz Garcia [Tue, 27 Nov 2012 17:53:58 +0000 (18:53 +0100)]
Fixed xamarin-bug #8565: System.Runtime.Serialization assembly remapping bug when targeting 2/3/3.5 profile.
The problem is related to a fix for issues #8037 & #6528
(
e3b9881) which seems to be breaking shadow copy
with programs targeting .net35 and referencing System.Runtime.Serialization.dll
The fix consists on adding a new version_set entry to each supported_runtime
at mono/metadata/domain.c so I we cope with the case of assemblies which must
be remapped to v4.0 on net4/net45, but which should be remapped to v3.0 (instead
of v3.5) when targeting net2 or net3x.
See: https://bugzilla.xamarin.com/show_bug.cgi?id=8565
License: This patch is under the MIT/X11 license.
Jeremie Laval [Tue, 27 Nov 2012 17:06:40 +0000 (17:06 +0000)]
[monkeydoc] Correctly instantiate read and write zip handles for ZipStorage.
Jeremie Laval [Tue, 27 Nov 2012 17:06:12 +0000 (17:06 +0000)]
[monkeydoc] Fix ecma doc generation
Jeremie Laval [Tue, 27 Nov 2012 17:04:40 +0000 (17:04 +0000)]
[monkeydoc] Don't allow empty caption or element when creating nodes.
Jeremie Laval [Tue, 27 Nov 2012 16:28:06 +0000 (16:28 +0000)]
[build] Always report full stack-trace when running mdoc in mcs/docs.
Jeremie Laval [Tue, 27 Nov 2012 16:26:30 +0000 (16:26 +0000)]
[System.Windows.Forms] Fix documentation to remove illegal XML characters.
Jeremie Laval [Tue, 27 Nov 2012 13:56:44 +0000 (13:56 +0000)]
[mdoc] Remove obsolete warning
Jeremie Laval [Tue, 27 Nov 2012 13:53:31 +0000 (13:53 +0000)]
[monkeydoc] Allow to set RootTree on HelpSource. Required by mdoc.
Jeremie Laval [Tue, 27 Nov 2012 13:52:56 +0000 (13:52 +0000)]
[monkeydoc] Move Node class to its own file
Jeremie Laval [Tue, 27 Nov 2012 12:23:19 +0000 (12:23 +0000)]
[monkeydoc] Add support for multiple input directory in ecma-provider
Jeremie Laval [Tue, 27 Nov 2012 12:22:10 +0000 (12:22 +0000)]
[monkeydoc] Restore mono.addins provider