mono.git
13 years agoFix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files
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

13 years agoNo longer include glib binaries in build-mingw32.sh builds.
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.

13 years agoLet build-mingw32.sh script also work on dist tarballs
Hib Eris [Mon, 14 Jun 2010 15:59:50 +0000 (17:59 +0200)]
Let build-mingw32.sh script also work on dist tarballs

13 years agoOptimize Enumerable::ToArray
Marek Safar [Tue, 8 Feb 2011 13:55:53 +0000 (13:55 +0000)]
Optimize Enumerable::ToArray

13 years agoUse winternl.h instead of ddk (when available)
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.

13 years agoRemove implementation details from public header io-layer.h
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.

13 years ago[657099] Fix cloning of remapped blocks
Marek Safar [Tue, 8 Feb 2011 12:51:25 +0000 (12:51 +0000)]
[657099] Fix cloning of remapped blocks

13 years agoSimple content restriction was not validated when it is in further reference.
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.

13 years agoMoonlight build: we need to create the deps dir
Rolf Bjarne Kvinge [Tue, 8 Feb 2011 11:36:00 +0000 (12:36 +0100)]
Moonlight build: we need to create the deps dir

13 years agoNew test.
Marek Safar [Tue, 8 Feb 2011 11:20:54 +0000 (11:20 +0000)]
New test.

13 years agoFix remapping of cloned block parent when already in cloned context
Marek Safar [Tue, 8 Feb 2011 11:15:23 +0000 (11:15 +0000)]
Fix remapping of cloned block parent when already in cloned context

13 years agoDisable vs hosting
Marek Safar [Tue, 8 Feb 2011 11:15:01 +0000 (11:15 +0000)]
Disable vs hosting

13 years agoFor complexType simpleContent restriction, fill attributes from base type.
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.

13 years agoThere's a tricky namespace-mismatching deserialization in .NET implementation.
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.

13 years agoMake the 4.0 profile the default if no is given on the make line in mcs/.
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/.

13 years agoMoonlight build: use system tools to compile. This means we don't need a bootstrappin...
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

13 years agoDo not distribute eglib-config.h
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.

13 years agoUse _vscprintf() for mingw-w64 compilers
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).

13 years ago[crypto] Added missing 4.0 algorithm names
Marek Habersack [Mon, 7 Feb 2011 23:28:03 +0000 (00:28 +0100)]
[crypto] Added missing 4.0 algorithm names

13 years agoInclude config.h in mono-profiler-aot.c
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.

13 years agoCast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build.
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.

13 years agoInclude sys/types.h for pid_t on mingw. Fixes #670076.
Zoltan Varga [Mon, 7 Feb 2011 22:30:52 +0000 (23:30 +0100)]
Include sys/types.h for pid_t on mingw. Fixes #670076.

13 years agoMove variable declaration to top of function for msvc.
Jonathan Pobst [Mon, 7 Feb 2011 22:06:19 +0000 (16:06 -0600)]
Move variable declaration to top of function for msvc.

13 years agomoonlight build fix
Marek Safar [Mon, 7 Feb 2011 17:19:07 +0000 (17:19 +0000)]
moonlight build fix

13 years agoPinvoke symbols according to the new moonlight naming convention.
Larry Ewing [Mon, 7 Feb 2011 16:56:50 +0000 (10:56 -0600)]
Pinvoke symbols according to the new moonlight naming convention.

13 years agoHandle patching with shared opt enabled.
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

13 years agoUse mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes...
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.

13 years agoOpen and close client/service runtime channels in chains. Fixed bug #663278.
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.

13 years agohandle IsTerminating.
Atsushi Eno [Mon, 7 Feb 2011 14:14:53 +0000 (23:14 +0900)]
handle IsTerminating.

13 years agoFix a warning.
Zoltan Varga [Sun, 6 Feb 2011 21:25:32 +0000 (22:25 +0100)]
Fix a warning.

13 years agoRemove a duplicate call to mini_gc_init ().
Zoltan Varga [Sun, 6 Feb 2011 19:41:47 +0000 (20:41 +0100)]
Remove a duplicate call to mini_gc_init ().

13 years agoFix a warning/bug.
Zoltan Varga [Sun, 6 Feb 2011 19:27:02 +0000 (20:27 +0100)]
Fix a warning/bug.

13 years agoReally fix the ia64 build.
Zoltan Varga [Sun, 6 Feb 2011 14:54:39 +0000 (15:54 +0100)]
Really fix the ia64 build.

13 years agoFix the ia64 build.
Zoltan Varga [Sat, 5 Feb 2011 23:07:47 +0000 (00:07 +0100)]
Fix the ia64 build.

13 years agoAdd regression test to #666008
Rodrigo Kumpera [Sat, 5 Feb 2011 12:38:07 +0000 (13:38 +0100)]
Add regression test to #666008

13 years agoFixes ldfnt to ldvtftn conversion.
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

13 years agoApplied small changes/reorganizations from the unity repo.
Zoltan Varga [Fri, 4 Feb 2011 18:44:28 +0000 (19:44 +0100)]
Applied small changes/reorganizations from the unity repo.

13 years agoPrint a normal stack trace even if a hard stack overflow happens in unmanaged code.
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.

13 years agoDuplex client has its own listener loop, so special care on reply is needed.
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.

13 years agoCallback contract should be distinguished from others for DispatchOperation.
Atsushi Eno [Fri, 4 Feb 2011 03:50:25 +0000 (12:50 +0900)]
Callback contract should be distinguished from others for DispatchOperation.

13 years agoPrint a normal stack trace on a hard stack overflow.
Zoltan Varga [Thu, 3 Feb 2011 22:03:42 +0000 (23:03 +0100)]
Print a normal stack trace on a hard stack overflow.

13 years agoFix the handling of CompareExchange icalls in AOT, we were using the 'object' version...
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.

13 years ago[webservices] Extensions can be unknown XmlElements also, fix.
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.

13 years agoEnable system AOT on arm.
Zoltan Varga [Thu, 3 Feb 2011 18:45:14 +0000 (19:45 +0100)]
Enable system AOT on arm.

13 years ago[xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocum...
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.

13 years ago[asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different
Marek Habersack [Thu, 3 Feb 2011 12:06:00 +0000 (13:06 +0100)]
[asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different

13 years agoDetect VFP support automatically on arm.
Zoltan Varga [Thu, 3 Feb 2011 16:18:34 +0000 (17:18 +0100)]
Detect VFP support automatically on arm.

13 years agoAvoid calling time(NULL) when not needed.
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.

13 years agoAvoid padding in some cases.
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.

13 years agoFix importing of private types under dynamic context
Marek Safar [Thu, 3 Feb 2011 15:13:23 +0000 (15:13 +0000)]
Fix importing of private types under dynamic context

13 years agoFix the passing of vtype arguments for methods which return floats in soft-float...
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.

13 years agoFix a warning.
Zoltan Varga [Wed, 2 Feb 2011 23:29:34 +0000 (00:29 +0100)]
Fix a warning.

13 years agoAdd new test
Marek Safar [Thu, 3 Feb 2011 13:53:41 +0000 (13:53 +0000)]
Add new test

13 years agoAllow any expression to be used in where clause. Some custom linq implementations...
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

13 years agoRemoved unused files
Marek Safar [Thu, 3 Feb 2011 12:22:41 +0000 (12:22 +0000)]
Removed unused files

13 years agoNew test
Marek Safar [Thu, 3 Feb 2011 12:22:12 +0000 (12:22 +0000)]
New test

13 years agoDon't even try to import type when its context is wrong
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

13 years agoSet null object for default timer
Marek Safar [Thu, 3 Feb 2011 12:03:50 +0000 (12:03 +0000)]
Set null object for default timer

13 years agoAdd method into type container as soon the header is ready
Marek Safar [Thu, 3 Feb 2011 11:42:02 +0000 (11:42 +0000)]
Add method into type container as soon the header is ready

13 years agoFix error message text
Marek Safar [Thu, 3 Feb 2011 11:08:57 +0000 (11:08 +0000)]
Fix error message text

13 years agoNeed three valued bool logic for CLSAttribute value
Marek Safar [Thu, 3 Feb 2011 10:25:47 +0000 (10:25 +0000)]
Need three valued bool logic for CLSAttribute value

13 years ago[reflection] Default binder's AdjustArguments method treats ParamArray parameters...
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.

13 years agoAdd support for --debug=casts to Array:SetValue (). Fixes #668851.
Zoltan Varga [Wed, 2 Feb 2011 23:25:29 +0000 (00:25 +0100)]
Add support for --debug=casts to Array:SetValue (). Fixes #668851.

13 years agoAvoid the loader lock in the common path.
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.

13 years agoFix dynamic method cleanup at shutdown.
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.

13 years ago[csharp] Change the signature for print
Miguel de Icaza [Wed, 2 Feb 2011 18:05:03 +0000 (13:05 -0500)]
[csharp] Change the signature for print

13 years agoNew test
Marek Safar [Wed, 2 Feb 2011 17:23:30 +0000 (17:23 +0000)]
New test

13 years agoBetter log details for CS0281
Marek Safar [Wed, 2 Feb 2011 17:23:15 +0000 (17:23 +0000)]
Better log details for CS0281

13 years agoImplement support for implicit user conversion for DefaultParameterValue (very odd)
Marek Safar [Wed, 2 Feb 2011 16:15:31 +0000 (16:15 +0000)]
Implement support for implicit user conversion for DefaultParameterValue (very odd)

13 years agoSteal more agressively once we have found a potential available worker
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

13 years agoMove call to Set a bit higher to avoid calling them to repeatdly in ThreadWorker
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

13 years agoAdjust some ThreadWorker constants
Jérémie Laval [Wed, 2 Feb 2011 16:39:31 +0000 (16:39 +0000)]
Adjust some ThreadWorker constants

13 years agoDon't reset ThreadWorker event when it's not needed
Jérémie Laval [Wed, 2 Feb 2011 16:38:36 +0000 (16:38 +0000)]
Don't reset ThreadWorker event when it's not needed

13 years agoAvoid wrapping task body given as Action into Action<object>
Jérémie Laval [Wed, 2 Feb 2011 16:37:01 +0000 (16:37 +0000)]
Avoid wrapping task body given as Action into Action<object>

13 years agoNow operations are collected per corresponding ContractDescription.
Atsushi Eno [Wed, 2 Feb 2011 16:07:44 +0000 (01:07 +0900)]
Now operations are collected per corresponding ContractDescription.

This fixes naming of MessageDescription Action URI from its type.

13 years agoRebuild mscorlib/mcs AOT images if the runtime changes.
Zoltan Varga [Wed, 2 Feb 2011 15:20:16 +0000 (16:20 +0100)]
Rebuild mscorlib/mcs AOT images if the runtime changes.

13 years agomake mono_print_thread_dump output to the visualstudio debugger window, for better...
Lucas Meijer [Tue, 26 Oct 2010 17:00:46 +0000 (19:00 +0200)]
make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience

13 years agoAlso check directly Task.IsCompleted when we are waiting
Jérémie Laval [Wed, 2 Feb 2011 15:00:11 +0000 (15:00 +0000)]
Also check directly Task.IsCompleted when we are waiting

13 years agoAvoid possible races in ManualResetEventSlim in case handle was already created but...
Jérémie Laval [Wed, 2 Feb 2011 14:58:13 +0000 (14:58 +0000)]
Avoid possible races in ManualResetEventSlim in case handle was already created but not with correct value

13 years agoCache ChildWorkAdder delegate object in ThreadWorker
Jérémie Laval [Wed, 2 Feb 2011 14:56:03 +0000 (14:56 +0000)]
Cache ChildWorkAdder delegate object in ThreadWorker

13 years agoLazy creation of the continuation queue in Task
Jérémie Laval [Wed, 2 Feb 2011 14:52:20 +0000 (14:52 +0000)]
Lazy creation of the continuation queue in Task

13 years agoInline read and write calls in CyclicDeque
Jérémie Laval [Wed, 2 Feb 2011 14:50:16 +0000 (14:50 +0000)]
Inline read and write calls in CyclicDeque

13 years agoMake some CyclicDeque operation faster
Jérémie Laval [Wed, 2 Feb 2011 14:47:31 +0000 (14:47 +0000)]
Make some CyclicDeque operation faster

13 years ago[xbuild] Warn for unknown toolsVersion only on build.
Ankit Jain [Wed, 2 Feb 2011 12:19:05 +0000 (17:49 +0530)]
[xbuild] Warn for unknown toolsVersion only on build.

Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.

* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.

13 years agoUpdate error tests
Marek Safar [Wed, 2 Feb 2011 12:38:44 +0000 (12:38 +0000)]
Update error tests

13 years agoUpdate mono.spec with new mcs.exe location
Marek Safar [Wed, 2 Feb 2011 12:35:37 +0000 (12:35 +0000)]
Update mono.spec with new mcs.exe location

13 years agoCompile&Run runtime tests with 4.0 corlib
Marek Safar [Wed, 2 Feb 2011 12:31:53 +0000 (12:31 +0000)]
Compile&Run runtime tests with 4.0 corlib

13 years agoMove DynamicContext class into a new file
Marek Safar [Wed, 2 Feb 2011 12:14:26 +0000 (12:14 +0000)]
Move DynamicContext class into a new file

13 years agoAdd handling of broken Convert callsite from Orchard Project
Marek Safar [Wed, 2 Feb 2011 12:07:12 +0000 (12:07 +0000)]
Add handling of broken Convert callsite from Orchard Project

13 years agoAlign call instructions to make code patching SMP safe.
Rodrigo Kumpera [Wed, 2 Feb 2011 11:30:35 +0000 (12:30 +0100)]
Align call instructions to make code patching SMP safe.

* mini-x86.c (emit_call): Align call instructions on
3 mod 4 so the address is 4 bytes aligned and can't span
two cache lines. This is required for proper SMP support
as CAS is not atomic across cache lines.

Fixes one of the crashes due to #667921.

13 years agoAnother attempt to build resgen correctly
Marek Safar [Wed, 2 Feb 2011 11:07:50 +0000 (11:07 +0000)]
Another attempt to build resgen correctly

13 years agoNew test
Marek Safar [Wed, 2 Feb 2011 11:07:42 +0000 (11:07 +0000)]
New test

13 years agoUpdate to the latest mcs
Marek Safar [Wed, 2 Feb 2011 10:01:51 +0000 (10:01 +0000)]
Update to the latest mcs

13 years agoUpdate resgen header
Marek Safar [Wed, 2 Feb 2011 09:44:00 +0000 (09:44 +0000)]
Update resgen header

13 years agoUpdate to the latest mcs
Marek Safar [Wed, 2 Feb 2011 09:40:52 +0000 (09:40 +0000)]
Update to the latest mcs

13 years agoMake resgen build profile specific
Marek Safar [Wed, 2 Feb 2011 09:13:59 +0000 (09:13 +0000)]
Make resgen build profile specific

13 years agoClean up resource files
Marek Safar [Wed, 2 Feb 2011 09:09:48 +0000 (09:09 +0000)]
Clean up resource files

13 years agoImplement XamlReader.ReadSubtree().
Atsushi Eno [Wed, 2 Feb 2011 09:18:02 +0000 (18:18 +0900)]
Implement XamlReader.ReadSubtree().

13 years agoAdd missing test files.
Atsushi Eno [Wed, 2 Feb 2011 09:14:24 +0000 (18:14 +0900)]
Add missing test files.

13 years agoImplement GetInheritedContracts(), towards bugfix #668089.
Atsushi Eno [Wed, 2 Feb 2011 07:11:58 +0000 (16:11 +0900)]
Implement GetInheritedContracts(), towards bugfix #668089.