Rodrigo Kumpera [Wed, 9 Feb 2011 10:36:58 +0000 (11:36 +0100)]
Merge branch 'master' of github.com:mono/mono
Rodrigo Kumpera [Wed, 9 Feb 2011 10:20:37 +0000 (11:20 +0100)]
Cleanup the reference queue on domain unload.
* gc.c (finalize_domain_objects): Clear reference
queues on domain unload after running all finalizers.
Atsushi Eno [Wed, 9 Feb 2011 06:42:40 +0000 (15:42 +0900)]
Support ServiceKnownTypes. Fixed another case on bug #652331.
Jonathan Pobst [Wed, 9 Feb 2011 05:35:22 +0000 (23:35 -0600)]
Fix msvc build for threadpool changes.
Zoltan Varga [Wed, 9 Feb 2011 04:09:24 +0000 (05:09 +0100)]
Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479.
Gonzalo Paniagua Javier [Wed, 9 Feb 2011 02:01:09 +0000 (21:01 -0500)]
[SmtpClient] Don't send empty display name.
If there's no display name, don't send '""'.
Fixes bug #670475.
Marek Habersack [Wed, 9 Feb 2011 01:36:00 +0000 (02:36 +0100)]
[build] Added runtime/_tmpinst/mcs script to unbreak system.web tests for 2.0
Also made gmcs force -sdk=2 since -sdk=4 is now the default. _tmpinst/mcs is needed because
the CSharp CodeDOM provider invokes it and without the script in place it will launch the
first mcs available in the path.
Marek Habersack [Wed, 9 Feb 2011 00:23:39 +0000 (01:23 +0100)]
[asp.net] Be more careful with errors collection when compilation fails.
Marek Habersack [Tue, 8 Feb 2011 23:46:39 +0000 (00:46 +0100)]
[asp.net] Implemented CustomErrorsRedirectMode
Gonzalo Paniagua Javier [Wed, 9 Feb 2011 00:12:28 +0000 (19:12 -0500)]
Just need 1 instance of the generic principal.
Gonzalo Paniagua Javier [Sat, 5 Feb 2011 17:49:01 +0000 (12:49 -0500)]
[threadpool] Added dynamic concurrent queue implementation
Replace the big lock around the list+array used to queue work items
with a dynamic concurrent queue to reduce contention.
Mark Probst [Tue, 8 Feb 2011 21:11:52 +0000 (22:11 +0100)]
[sgen] Two carefully placed prefetches.
Prefetch an object's vtable word when it's put on the gray stack,
because it's likely to be scanned soon.
Also prefetch it right before calling the mark/copy function in the
dynamic heap M&S to win a few cycles on the load. Don't do it for the
fixed heap because there it's unlikely we'll need the vtable anyway,
so the cache can be put to good use elsewhere.
Mark Probst [Tue, 8 Feb 2011 20:50:27 +0000 (21:50 +0100)]
[sgen] Only load an object's vtable word if absolutely necessary in M&S.
Until now we always loaded the vtable word in the mark/copy function.
It is not necessary in most cases for the fixed heap collector,
however. If the object is on the small object major heap and its
block size is not evacuated we don't need to load it.
Mark Probst [Tue, 8 Feb 2011 20:40:23 +0000 (21:40 +0100)]
[sgen] Fix some debug functions.
Mark Probst [Tue, 8 Feb 2011 20:38:37 +0000 (21:38 +0100)]
[sgen] Keep statistics on slots allocated in vain in parallel M&S.
Mark Probst [Tue, 8 Feb 2011 20:28:46 +0000 (21:28 +0100)]
[sgen] Make SGen compile with heavy statistics enabled.
Miguel de Icaza [Tue, 8 Feb 2011 21:01:29 +0000 (16:01 -0500)]
Add new test
Miguel de Icaza [Tue, 8 Feb 2011 19:25:54 +0000 (14:25 -0500)]
Fix Enum.HasValue, previous version crashed with negative values
Miguel de Icaza [Tue, 8 Feb 2011 19:25:36 +0000 (14:25 -0500)]
Update docs
Miguel de Icaza [Thu, 3 Feb 2011 23:37:23 +0000 (18:37 -0500)]
Add prototype to .h file
Lucas Meijer [Mon, 31 Jan 2011 13:52:50 +0000 (14:52 +0100)]
implement mono_set_assemblies_path for platforms that cannot set MONO_PATH environment variable.
Rodrigo Kumpera [Tue, 8 Feb 2011 19:48:03 +0000 (20:48 +0100)]
Avoid allocating memory for the handles.
* threads.c (ves_icall_System_Threading_WaitHandle_WaitAny_internal):
Store the handles on stack memory.
Rodrigo Kumpera [Tue, 8 Feb 2011 19:46:20 +0000 (20:46 +0100)]
Avoid allocating memory.
* wait.c (WaitForMultipleObjectsEx): Use a stack allocated
array and detect duplicated by sorting and doing a linear
search.
Marek Habersack [Tue, 8 Feb 2011 19:41:38 +0000 (20:41 +0100)]
[cross-compilation] Added some flexibility regarding the location of development packages
The script now supports an extra cross-compilation directory in which you can unpack the
library and development packages necessary for the build to succeed (glib, zlib etc). Also
supported now is specifying the location at which Mono will be installed on Windows.
Replaced SVN and GIT-SVN version checks with git checks.
Marek Habersack [Tue, 8 Feb 2011 19:41:09 +0000 (20:41 +0100)]
[aot compiler] runtime_dep uses the correct path when cross-compiling
Marek Safar [Tue, 8 Feb 2011 17:34:09 +0000 (17:34 +0000)]
Fix Mono.CSharp vs solution
Marek Safar [Tue, 8 Feb 2011 17:16:18 +0000 (17:16 +0000)]
Allow both predefined and custom values for mcs -skd option
Rodrigo Kumpera [Tue, 8 Feb 2011 17:21:12 +0000 (18:21 +0100)]
Fix reference queue under boehm.
* gc.c (finalizer_thread): Clean reference queues
after finalizers are called to give boehm a chance
to resurrect it.
Hib Eris [Mon, 14 Jun 2010 16:42:20 +0000 (18:42 +0200)]
Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files
Hib Eris [Mon, 14 Jun 2010 16:22:57 +0000 (18:22 +0200)]
No longer include glib binaries in build-mingw32.sh builds.
By default, Mono now uses an embedded glib implementation, so there
is no need to ship external glib libraries anymore.
Hib Eris [Mon, 14 Jun 2010 15:59:50 +0000 (17:59 +0200)]
Let build-mingw32.sh script also work on dist tarballs
Marek Safar [Tue, 8 Feb 2011 13:55:53 +0000 (13:55 +0000)]
Optimize Enumerable::ToArray
Hib Eris [Mon, 7 Feb 2011 16:43:23 +0000 (17:43 +0100)]
Use winternl.h instead of ddk (when available)
These changes are nescessary for compiling with a mingw-w64 compiler.
Hib Eris [Mon, 7 Feb 2011 16:37:59 +0000 (17:37 +0100)]
Remove implementation details from public header io-layer.h
The macro HAVE_GETPROCESSID is defined in config.h and should not be
exposed in public headers.
Marek Safar [Tue, 8 Feb 2011 12:51:25 +0000 (12:51 +0000)]
[657099] Fix cloning of remapped blocks
Atsushi Eno [Tue, 8 Feb 2011 11:52:20 +0000 (20:52 +0900)]
Simple content restriction was not validated when it is in further reference.
Fixed bug #595947. It was complexType [base]-> complexType [base]-> simpleType.
Rolf Bjarne Kvinge [Tue, 8 Feb 2011 11:36:00 +0000 (12:36 +0100)]
Moonlight build: we need to create the deps dir
Marek Safar [Tue, 8 Feb 2011 11:20:54 +0000 (11:20 +0000)]
New test.
Marek Safar [Tue, 8 Feb 2011 11:15:23 +0000 (11:15 +0000)]
Fix remapping of cloned block parent when already in cloned context
Marek Safar [Tue, 8 Feb 2011 11:15:01 +0000 (11:15 +0000)]
Disable vs hosting
Atsushi Eno [Tue, 8 Feb 2011 09:31:49 +0000 (18:31 +0900)]
For complexType simpleContent restriction, fill attributes from base type.
Part of bugfix #595947.
Atsushi Eno [Tue, 8 Feb 2011 08:09:26 +0000 (17:09 +0900)]
There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
Zoltan Varga [Tue, 8 Feb 2011 00:57:33 +0000 (01:57 +0100)]
Make the 4.0 profile the default if no is given on the make line in mcs/.
Rolf Bjarne Kvinge [Tue, 8 Feb 2011 00:07:42 +0000 (01:07 +0100)]
Moonlight build: use system tools to compile. This means we don't need a bootstrapping profile either
Hib Eris [Mon, 7 Feb 2011 17:22:53 +0000 (18:22 +0100)]
Do not distribute eglib-config.h
The file eglib-config.h is generated when running configure.
Distributing eglib-config.h in tarballs causes errors when building
out of the source tree.
Hib Eris [Mon, 7 Feb 2011 13:47:34 +0000 (14:47 +0100)]
Use _vscprintf() for mingw-w64 compilers
The mingw-w64 compilers implement a vsnprintf() function that do not
conform to the C99 standard (just like MSVC).
Marek Habersack [Mon, 7 Feb 2011 23:28:03 +0000 (00:28 +0100)]
[crypto] Added missing 4.0 algorithm names
Hib Eris [Sat, 3 Oct 2009 14:04:43 +0000 (16:04 +0200)]
Include config.h in mono-profiler-aot.c
This change is nescessary for compiling with a mingw-w64 compiler.
Zoltan Varga [Mon, 7 Feb 2011 22:35:57 +0000 (23:35 +0100)]
Cast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build.
Zoltan Varga [Mon, 7 Feb 2011 22:30:52 +0000 (23:30 +0100)]
Include sys/types.h for pid_t on mingw. Fixes #670076.
Jonathan Pobst [Mon, 7 Feb 2011 22:06:19 +0000 (16:06 -0600)]
Move variable declaration to top of function for msvc.
Marek Safar [Mon, 7 Feb 2011 17:19:07 +0000 (17:19 +0000)]
moonlight build fix
Larry Ewing [Mon, 7 Feb 2011 16:56:50 +0000 (10:56 -0600)]
Pinvoke symbols according to the new moonlight naming convention.
Rodrigo Kumpera [Mon, 7 Feb 2011 16:06:54 +0000 (17:06 +0100)]
Handle patching with shared opt enabled.
* mini-trampilines.c (common_call_trampoline): With
shared optimization enabled code patching doesn't work
if we are running a non root domain.c
Zoltan Varga [Mon, 7 Feb 2011 15:09:43 +0000 (16:09 +0100)]
Use mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes #669808.
Atsushi Eno [Mon, 7 Feb 2011 14:15:22 +0000 (23:15 +0900)]
Open and close client/service runtime channels in chains. Fixed bug #663278.
Atsushi Eno [Mon, 7 Feb 2011 14:14:53 +0000 (23:14 +0900)]
handle IsTerminating.
Zoltan Varga [Sun, 6 Feb 2011 21:25:32 +0000 (22:25 +0100)]
Fix a warning.
Zoltan Varga [Sun, 6 Feb 2011 19:41:47 +0000 (20:41 +0100)]
Remove a duplicate call to mini_gc_init ().
Zoltan Varga [Sun, 6 Feb 2011 19:27:02 +0000 (20:27 +0100)]
Fix a warning/bug.
Zoltan Varga [Sun, 6 Feb 2011 14:54:39 +0000 (15:54 +0100)]
Really fix the ia64 build.
Zoltan Varga [Sat, 5 Feb 2011 23:07:47 +0000 (00:07 +0100)]
Fix the ia64 build.
Rodrigo Kumpera [Sat, 5 Feb 2011 12:38:07 +0000 (13:38 +0100)]
Add regression test to #666008
Rodrigo Kumpera [Sat, 5 Feb 2011 12:30:45 +0000 (13:30 +0100)]
Fixes ldfnt to ldvtftn conversion.
* mini-trampolines.c (mono_delegate_trampoline): The ldftn
to ldvtftn conversion must check if the method is abstract,
otherwise it breaks delegate to base classes.
Fixes #666008
Zoltan Varga [Fri, 4 Feb 2011 18:44:28 +0000 (19:44 +0100)]
Applied small changes/reorganizations from the unity repo.
Zoltan Varga [Fri, 4 Feb 2011 11:55:12 +0000 (12:55 +0100)]
Print a normal stack trace even if a hard stack overflow happens in unmanaged code.
Atsushi Eno [Fri, 4 Feb 2011 03:51:02 +0000 (12:51 +0900)]
Duplex client has its own listener loop, so special care on reply is needed.
Atsushi Eno [Fri, 4 Feb 2011 03:50:25 +0000 (12:50 +0900)]
Callback contract should be distinguished from others for DispatchOperation.
Zoltan Varga [Thu, 3 Feb 2011 22:03:42 +0000 (23:03 +0100)]
Print a normal stack trace on a hard stack overflow.
Zoltan Varga [Thu, 3 Feb 2011 20:56:00 +0000 (21:56 +0100)]
Fix the handling of CompareExchange icalls in AOT, we were using the 'object' versions for everything, which broke with 64 bit types on 32 bit platforms.
Ankit Jain [Thu, 3 Feb 2011 19:23:47 +0000 (00:53 +0530)]
[webservices] Extensions can be unknown XmlElements also, fix.
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
Zoltan Varga [Thu, 3 Feb 2011 18:45:14 +0000 (19:45 +0100)]
Enable system AOT on arm.
Marek Habersack [Thu, 3 Feb 2011 16:40:00 +0000 (17:40 +0100)]
[xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
Marek Habersack [Thu, 3 Feb 2011 12:06:00 +0000 (13:06 +0100)]
[asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different
Zoltan Varga [Thu, 3 Feb 2011 16:18:34 +0000 (17:18 +0100)]
Detect VFP support automatically on arm.
Rodrigo Kumpera [Thu, 3 Feb 2011 15:40:48 +0000 (16:40 +0100)]
Avoid calling time(NULL) when not needed.
* handles.c (_wapi_handle_ref): Avoid calling
time(NULL) for the private case. Some systems implement
it using a syscall.
* handles.c (_wapi_handle_new_from_offset): Ditto.
Rodrigo Kumpera [Thu, 3 Feb 2011 01:01:26 +0000 (02:01 +0100)]
Avoid padding in some cases.
* mini-x86.c (emit_call): nether AOT or icall wrappers
needs padding.
Marek Safar [Thu, 3 Feb 2011 15:13:23 +0000 (15:13 +0000)]
Fix importing of private types under dynamic context
Zoltan Varga [Thu, 3 Feb 2011 15:04:28 +0000 (16:04 +0100)]
Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905.
Zoltan Varga [Wed, 2 Feb 2011 23:29:34 +0000 (00:29 +0100)]
Fix a warning.
Marek Safar [Thu, 3 Feb 2011 13:53:41 +0000 (13:53 +0000)]
Add new test
Marek Safar [Thu, 3 Feb 2011 13:37:41 +0000 (13:37 +0000)]
Allow any expression to be used in where clause. Some custom linq implementations use non-predicate version of where
Marek Safar [Thu, 3 Feb 2011 12:22:41 +0000 (12:22 +0000)]
Removed unused files
Marek Safar [Thu, 3 Feb 2011 12:22:12 +0000 (12:22 +0000)]
New test
Marek Safar [Thu, 3 Feb 2011 12:12:48 +0000 (12:12 +0000)]
Don't even try to import type when its context is wrong
Marek Safar [Thu, 3 Feb 2011 12:03:50 +0000 (12:03 +0000)]
Set null object for default timer
Marek Safar [Thu, 3 Feb 2011 11:42:02 +0000 (11:42 +0000)]
Add method into type container as soon the header is ready
Marek Safar [Thu, 3 Feb 2011 11:08:57 +0000 (11:08 +0000)]
Fix error message text
Marek Safar [Thu, 3 Feb 2011 10:25:47 +0000 (10:25 +0000)]
Need three valued bool logic for CLSAttribute value
Marek Habersack [Thu, 3 Feb 2011 01:20:22 +0000 (02:20 +0100)]
[reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
Zoltan Varga [Wed, 2 Feb 2011 23:25:29 +0000 (00:25 +0100)]
Add support for --debug=casts to Array:SetValue (). Fixes #668851.
Rodrigo Kumpera [Wed, 2 Feb 2011 20:44:27 +0000 (21:44 +0100)]
Avoid the loader lock in the common path.
* class.c (mono_generic_class_get_class): Don't take
the loader lock to check if cached_class was created.
Use full memory barriers to make sure proper visibility.
Rodrigo Kumpera [Wed, 2 Feb 2011 18:24:24 +0000 (19:24 +0100)]
Fix dynamic method cleanup at shutdown.
* gc.c (mono_gc_cleanup): Cleanup all reference
queues after regular finalization.
* reflection.c: The dynamic method ref queue is finalized
by the runtime itself.
* runtime.c: Ditto.
Miguel de Icaza [Wed, 2 Feb 2011 18:05:03 +0000 (13:05 -0500)]
[csharp] Change the signature for print
Marek Safar [Wed, 2 Feb 2011 17:23:30 +0000 (17:23 +0000)]
New test
Marek Safar [Wed, 2 Feb 2011 17:23:15 +0000 (17:23 +0000)]
Better log details for CS0281
Marek Safar [Wed, 2 Feb 2011 16:15:31 +0000 (16:15 +0000)]
Implement support for implicit user conversion for DefaultParameterValue (very odd)
Jérémie Laval [Wed, 2 Feb 2011 16:40:53 +0000 (16:40 +0000)]
Steal more agressively once we have found a potential available worker
Jérémie Laval [Wed, 2 Feb 2011 16:40:01 +0000 (16:40 +0000)]
Move call to Set a bit higher to avoid calling them to repeatdly in ThreadWorker
Jérémie Laval [Wed, 2 Feb 2011 16:39:31 +0000 (16:39 +0000)]
Adjust some ThreadWorker constants