mono.git
13 years agoLog profiler: prevent possible corruption from writing to the same file.
Paolo Molaro [Fri, 12 Nov 2010 11:55:29 +0000 (12:55 +0100)]
Log profiler: prevent possible corruption from writing to the same file.

* proflog.c: we now unlink the output file before creating it to
prevent possible corruption from multiple processes writing to the
file. Added also extra checks for async events (which shouldn't happen).
* decode.c: fix file offset when using zlib.

13 years agoReturn XamlLanguage.Items for dictionary and ContentProperty as implicit member.
Atsushi Eno [Fri, 12 Nov 2010 12:26:18 +0000 (21:26 +0900)]
Return XamlLanguage.Items for dictionary and ContentProperty as implicit member.

13 years agoFix wrong attribute value string indexing.
Atsushi Eno [Fri, 12 Nov 2010 12:09:46 +0000 (21:09 +0900)]
Fix wrong attribute value string indexing.

13 years agoXamlSchemaContext.GetXamlType(XamlTypeName) now resolves assemblies then types.
Atsushi Eno [Fri, 12 Nov 2010 11:54:03 +0000 (20:54 +0900)]
XamlSchemaContext.GetXamlType(XamlTypeName) now resolves assemblies then types.

And use it in appropriate place.
Fixed part of XamlXmlReaderTest.PositionalParameters2().

13 years agoNew tests
Marek Safar [Fri, 12 Nov 2010 11:18:45 +0000 (11:18 +0000)]
New tests

13 years agoExtension types may have omitted "Extension" from XML name.
Atsushi Eno [Fri, 12 Nov 2010 10:56:28 +0000 (19:56 +0900)]
Extension types may have omitted "Extension" from XML name.

13 years agoAdd MessageQueue::GetMessageEnumerator2
Marek Safar [Fri, 12 Nov 2010 10:08:46 +0000 (10:08 +0000)]
Add MessageQueue::GetMessageEnumerator2

13 years agoCRLF->LF conversion
Marek Safar [Fri, 12 Nov 2010 09:56:56 +0000 (09:56 +0000)]
CRLF->LF conversion

13 years agoFix QueuePathDialog signature
Marek Safar [Fri, 12 Nov 2010 09:56:01 +0000 (09:56 +0000)]
Fix QueuePathDialog signature

13 years agoShow more details for CS1061 eror
Marek Safar [Fri, 12 Nov 2010 09:49:20 +0000 (09:49 +0000)]
Show more details for CS1061 eror

13 years agoInflate nested non-generic interfaces inside generic type
Marek Safar [Fri, 12 Nov 2010 09:36:20 +0000 (09:36 +0000)]
Inflate nested non-generic interfaces inside generic type

13 years ago[asp.net] Fix for bug #653192. making MasterPageFile handle relative paths
Daniel J Sell [Fri, 12 Nov 2010 01:57:49 +0000 (17:57 -0800)]
[asp.net] Fix for bug #653192. making MasterPageFile handle relative paths

MasterPageFile should be relative to the file being parsed, not the
request path

13 years agoFix XamlMember comparison and get relevant tests working.
Atsushi Eno [Fri, 12 Nov 2010 08:51:38 +0000 (17:51 +0900)]
Fix XamlMember comparison and get relevant tests working.

13 years ago[652390] Return type inference can inflate using type parameters out of the reach
Marek Safar [Fri, 12 Nov 2010 08:24:05 +0000 (08:24 +0000)]
[652390] Return type inference can inflate using type parameters out of the reach

13 years agoNew tests.
Marek Safar [Thu, 11 Nov 2010 18:34:42 +0000 (18:34 +0000)]
New tests.

13 years agoAdd support for MarkupExtension attribute in XamlXmlReader.
Atsushi Eno [Fri, 12 Nov 2010 06:11:19 +0000 (15:11 +0900)]
Add support for MarkupExtension attribute in XamlXmlReader.

13 years agoDon't cache child nodes when security trimming is enabled.
Gonzalo Paniagua Javier [Fri, 12 Nov 2010 02:16:17 +0000 (21:16 -0500)]
Don't cache child nodes when security trimming is enabled.

When SecurityTrimmingEnabled is set to true for the node, the cached children
collection also depends on the IPrincipal set for the current context.

Fixes bug #641449.

13 years agoActually XamlXmlReader was already working for PropertyDefinition.
Atsushi Eno [Fri, 12 Nov 2010 01:02:25 +0000 (10:02 +0900)]
Actually XamlXmlReader was already working for PropertyDefinition.

13 years agoAdd test for writing PropertyDefinition.
Atsushi Eno [Fri, 12 Nov 2010 00:59:26 +0000 (09:59 +0900)]
Add test for writing PropertyDefinition.

13 years agoAdd new ValueSerializerContext and use it everywhere appropriate.
Atsushi Eno [Fri, 12 Nov 2010 00:51:52 +0000 (09:51 +0900)]
Add new ValueSerializerContext and use it everywhere appropriate.

This change was basically for string serialization of XamlTypeName, namely
PropertyDefinition serialization.
Turned out it should be used in a lot of places where IServiceProvider
and ITypeDescriptorContext is expected.
IServiceProvider implementations in XamlWriters are replaced.

13 years agoAvoid 'sgen not supported' warnings when no --with-sgen=yes argument was passed to...
Zoltan Varga [Fri, 12 Nov 2010 00:41:01 +0000 (01:41 +0100)]
Avoid 'sgen not supported' warnings when no --with-sgen=yes argument was passed to configure.

13 years agoRemove obsolete cygwin glib checks.
Zoltan Varga [Fri, 12 Nov 2010 00:36:50 +0000 (01:36 +0100)]
Remove obsolete cygwin glib checks.

13 years agoFix the definition of G_BREAKPOINT on x86 when cross compiling.
Zoltan Varga [Fri, 12 Nov 2010 00:34:58 +0000 (01:34 +0100)]
Fix the definition of G_BREAKPOINT on x86 when cross compiling.

13 years agoFix a ppc cross compile problem.
Zoltan Varga [Fri, 12 Nov 2010 00:14:14 +0000 (01:14 +0100)]
Fix a ppc cross compile problem.

13 years agoUse dolt for eglib too.
Zoltan Varga [Thu, 11 Nov 2010 23:04:13 +0000 (00:04 +0100)]
Use dolt for eglib too.

13 years agoPass -mno-cygwin to eglib's configure.
Zoltan Varga [Thu, 11 Nov 2010 22:56:18 +0000 (23:56 +0100)]
Pass -mno-cygwin to eglib's configure.

13 years agoDon't disable IPv6 if bulding with VS.
Gonzalo Paniagua Javier [Thu, 11 Nov 2010 21:39:40 +0000 (16:39 -0500)]
Don't disable IPv6 if bulding with VS.

When building with Cygwin or a cross-compiler there are at least 4
functions that are not present (inet_ntop, getaddrinfo, getnameinfo and
freeaddringo) so in these cases we just disable IPv6. Note that
Socket.OSSupportsIPv6 will still return true.

When building with VS, IPv6 will be supported without a problem.

13 years agoQuery SupportsCookieContainer ini Moonlight build
Sebastien Pouliot [Thu, 11 Nov 2010 14:39:13 +0000 (09:39 -0500)]
Query SupportsCookieContainer ini Moonlight build

* HttpRequestChannel.cs: Do not use CookieContainer unless we know its
supported (e.g. client stack) otherwise we'll throw (browser stack)

13 years agoAdd internal SetCompatibilitySwitch to AppDomain
Sebastien Pouliot [Thu, 11 Nov 2010 13:37:55 +0000 (08:37 -0500)]
Add internal SetCompatibilitySwitch to AppDomain

* AppDomain.cs: Add internal SetCompatibilitySwitch so it is possible
to set values that will be returned by (public) IsCompatibilitySwitchSet
(needed by Moonlight)

13 years ago[moon] Allow creating AES with the fully qualified name in S.Core
Sebastien Pouliot [Thu, 11 Nov 2010 13:35:29 +0000 (08:35 -0500)]
[moon] Allow creating AES with the fully qualified name in S.Core

* CryptoConfig_2_1.cs: Add fully qualified name (to simple name) to
allow the creation of AES using (internal) CryptoConfig

13 years agoRefine precedent algorithm for Parallel.For index stealing.
Jérémie Laval [Thu, 11 Nov 2010 18:12:08 +0000 (18:12 +0000)]
Refine precedent algorithm for Parallel.For index stealing.

13 years agoAdd a new lightweight stealing algorithm to Parallel.For
Jérémie Laval [Thu, 11 Nov 2010 15:30:45 +0000 (15:30 +0000)]
Add a new lightweight stealing algorithm to Parallel.For

13 years agoIn Parallel.For, returns immediately if the initial bound is superior or equal to...
Jérémie Laval [Thu, 11 Nov 2010 15:29:08 +0000 (15:29 +0000)]
In Parallel.For, returns immediately if the initial bound is superior or equal to the upper bound.

13 years agoSmall logic fix in choosing step in Parallel.For
Jérémie Laval [Thu, 11 Nov 2010 14:06:31 +0000 (14:06 +0000)]
Small logic fix in choosing step in Parallel.For

13 years ago[650850] Inflate all hoisted type parameter constraints
Marek Safar [Thu, 11 Nov 2010 17:15:16 +0000 (17:15 +0000)]
[650850] Inflate all hoisted type parameter constraints

13 years agoAdded the mprof-report manpage.
Paolo Molaro [Thu, 11 Nov 2010 15:37:59 +0000 (16:37 +0100)]
Added the mprof-report manpage.

13 years agoAdded a proper define for the external zlib and check for sched_getcpu().
Paolo Molaro [Thu, 11 Nov 2010 14:56:33 +0000 (15:56 +0100)]
Added a proper define for the external zlib and check for sched_getcpu().

13 years agoLog profiler: implemented the reverse reference feature in the heapshot report.
Paolo Molaro [Thu, 11 Nov 2010 13:34:06 +0000 (14:34 +0100)]
Log profiler: implemented the reverse reference feature in the heapshot report.

13 years agoRemove one more compile-time dependency on sgen.
Zoltan Varga [Thu, 11 Nov 2010 12:02:48 +0000 (13:02 +0100)]
Remove one more compile-time dependency on sgen.

13 years agoSynchronize event add/remove using CAS
Marek Safar [Thu, 11 Nov 2010 11:57:11 +0000 (11:57 +0000)]
Synchronize event add/remove using CAS

13 years agoUnwraped equality operators cannot use a user operator of different types
Marek Safar [Wed, 10 Nov 2010 19:50:59 +0000 (19:50 +0000)]
Unwraped equality operators cannot use a user operator of different types

13 years agoDefine mono_gc_get_card_table () for boehm/null gc too, to reduce the number of sgen...
Zoltan Varga [Thu, 11 Nov 2010 11:53:01 +0000 (12:53 +0100)]
Define mono_gc_get_card_table () for boehm/null gc too, to reduce the number of sgen dependencies in mini/.

13 years agoXamlMember.TypeConverter should return correct converter now.
Atsushi Eno [Thu, 11 Nov 2010 08:48:41 +0000 (17:48 +0900)]
XamlMember.TypeConverter should return correct converter now.

Also adding usage of that member, but not perfectly working yet.

Disabled broken tests that depends on not-implemented XamlObjectWriter part.

13 years agoWhen collection instance returned null, do not try to GetItems().
Atsushi Eno [Thu, 11 Nov 2010 06:46:11 +0000 (15:46 +0900)]
When collection instance returned null, do not try to GetItems().

13 years agoRemove old code (overwrite).
Atsushi Eno [Thu, 11 Nov 2010 03:24:30 +0000 (12:24 +0900)]
Remove old code (overwrite).

13 years agoRemove extra copy lines.
Atsushi Eno [Thu, 11 Nov 2010 03:19:44 +0000 (12:19 +0900)]
Remove extra copy lines.

13 years agoSplit XamlNode.cs to object-reader specific code and else.
Atsushi Eno [Thu, 11 Nov 2010 03:17:23 +0000 (12:17 +0900)]
Split XamlNode.cs to object-reader specific code and else.

13 years agoFix readonly collection check (should use IsWritePublic).
Atsushi Eno [Thu, 11 Nov 2010 03:15:53 +0000 (12:15 +0900)]
Fix readonly collection check (should use IsWritePublic).

13 years agoremoved xml output code (mostly harmless but could break xml files).
Atsushi Eno [Thu, 11 Nov 2010 03:14:04 +0000 (12:14 +0900)]
removed xml output code (mostly harmless but could break xml files).

13 years ago[corlib] Fix for bug #652807. Handle RegistryValueKind.QWord in Win32RegistryApi...
Marek Habersack [Thu, 11 Nov 2010 00:57:20 +0000 (01:57 +0100)]
[corlib] Fix for bug #652807. Handle RegistryValueKind.QWord in Win32RegistryApi.{Get,Set}Value

13 years ago[OSX] Dont use nested functions to determine if we can use the system zlib
Geoff Norton [Wed, 10 Nov 2010 19:30:48 +0000 (14:30 -0500)]
[OSX] Dont use nested functions to determine if we can use the system zlib

13 years agoMerge branch 'gc_oom'
Rodrigo Kumpera [Wed, 10 Nov 2010 19:36:27 +0000 (17:36 -0200)]
Merge branch 'gc_oom'

13 years agoAssert if we OOM during major evacuation.
Rodrigo Kumpera [Wed, 10 Nov 2010 19:34:25 +0000 (17:34 -0200)]
Assert if we OOM during major evacuation.

* sgen-marksweep.c (major_copy_or_mark_object): Until we
figure out how to handle OOM while evacuating major objects
lets assert.

13 years agoHandle OOM on string intern icall.
Rodrigo Kumpera [Wed, 10 Nov 2010 19:07:33 +0000 (17:07 -0200)]
Handle OOM on string  intern icall.

13 years agoAdd test for string interning OOM.
Rodrigo Kumpera [Fri, 5 Nov 2010 22:01:53 +0000 (20:01 -0200)]
Add test for string interning OOM.

13 years agoHandle OOM with string interning.
Rodrigo Kumpera [Fri, 5 Nov 2010 22:01:19 +0000 (20:01 -0200)]
Handle OOM with string interning.

13 years agoHandle OOM with string interning.
Rodrigo Kumpera [Fri, 5 Nov 2010 21:59:37 +0000 (19:59 -0200)]
Handle OOM with string interning.

13 years agoAdd tests for OOM handling.
Rodrigo Kumpera [Fri, 5 Nov 2010 18:49:28 +0000 (16:49 -0200)]
Add tests for OOM handling.

13 years agoMake the parallel OOM handling code more resilient.
Rodrigo Kumpera [Wed, 10 Nov 2010 18:56:15 +0000 (16:56 -0200)]
Make the parallel OOM handling code more resilient.

* sgen-marksweep.c (major_copy_or_mark_object): Use
a loop around CAS'ng on failed memory allocation to make
sure we have the right behavior in place.

13 years agoImplement oom handling for MS.
Rodrigo Kumpera [Fri, 5 Nov 2010 18:39:14 +0000 (16:39 -0200)]
Implement oom handling for MS.

* sgen-gc.c (collect_nursery): If any object was pinned
after initial pinning, sort the queue so build_nursery_fragments
will see the aditional objects.
If pinning due to OOM happened ask for a major collection.

* sgen-gc.c (major_do_collection): Adjust the pin queue if
OOM happened. Here we have to clean discarded entries before
optimizing the queue or we might end with interior pointers
in the mix.

* sgen-gc.c (sgen_collect_major_no_lock): New function so
major collectors can trigger a collection. They can't
use public API since the gc lock is not meant to be reentrant.

* sgen-major-copy-object.h (copy_object_no_checks): Pin
the object if we can't promote it.

* sgen-marksweep.c (alloc_obj): Return null if we fail
to allocate a block for a given freelist size.

* sgen-marksweep.c (major_alloc_degraded): Ditto.

* sgen-marksweep.c (major_copy_or_mark_object): Handle OOM.

* sgen-marksweep.c (major_alloc_small_pinned_obj): If allocation
fails, try a major collection since this is memory requested by
the runtime and it's much harder to handle failure.

13 years agoAdjust major collection heuristics for OOM scenarios.
Rodrigo Kumpera [Fri, 5 Nov 2010 16:01:49 +0000 (14:01 -0200)]
Adjust major collection heuristics for OOM scenarios.

* sgen-gc.c (need_major_collection): Add a space_needed
parameter that is checked against the available space
quota.

* sgen-gc.c (alloc_degraded): Adjust call to
need_major_collection. Pass zero as space_needed since
it's won't help to do a major gc if we're already doing
degrated alloc and old gen is full.

* sgen-gc.c (alloc_large_inner): Pass size to
need_major_collection as shrinking major might be needed
to meet the space quota for.

13 years agoAdd heap size accounting.
Rodrigo Kumpera [Fri, 5 Nov 2010 15:38:44 +0000 (13:38 -0200)]
Add heap size accounting.

* sgen-gc.c: Simple accounting with no los/major reserve.

* sgen-los.c:
* sgen-marksweep.c: Account for allocation and release of
memory. Fail to allocate if above alloc quota.

13 years agoHandle failure on allocation functions.
Rodrigo Kumpera [Fri, 5 Nov 2010 15:30:03 +0000 (13:30 -0200)]
Handle failure on allocation functions.

* sgen-gc.c (mono_gc_alloc_obj_nolock):
* sgen-gc.c (mono_gc_alloc_obj):
* sgen-gc.c (mono_gc_alloc_vector):
* sgen-gc.c (mono_gc_alloc_array):
* sgen-gc.c (mono_gc_alloc_string):
* sgen-gc.c (mono_gc_alloc_pinned_obj): Handle
allocation failure.

13 years agoAdd max-heap-size parameter to MONO_GC_PARAMS
Rodrigo Kumpera [Fri, 5 Nov 2010 13:28:38 +0000 (11:28 -0200)]
Add max-heap-size parameter to MONO_GC_PARAMS

* sgen-gc.c (mono_gc_base_init): Added new parameter.
Right now it is not used.

13 years agoAdd boehm support for max-heap-size.
Rodrigo Kumpera [Thu, 28 Oct 2010 19:50:21 +0000 (17:50 -0200)]
Add boehm support for max-heap-size.

boehm-gc.c (mono_gc_base_init): Check MONO_GC_PARAMS environment
variable for max-heap-size.

13 years agoMove function from sgen to gc so boehm can use it too.
Rodrigo Kumpera [Fri, 5 Nov 2010 13:26:08 +0000 (11:26 -0200)]
Move function from sgen to gc so boehm can use it too.

* sgen-gc.c (mono_sgen_parse_environment_string_extract_number):
Move this function to gc.c and rename.

13 years agoHandle OOM better.
Rodrigo Kumpera [Thu, 28 Oct 2010 14:47:52 +0000 (12:47 -0200)]
Handle OOM better.

* object.c (mono_print_unhandled_exception): We can't really
do a ToString () during an OOM.

13 years ago[wcf] .NET allows for service contract methods to be decorated only by Web{Get,Invoke...
Marek Habersack [Wed, 10 Nov 2010 18:17:29 +0000 (19:17 +0100)]
[wcf] .NET allows for service contract methods to be decorated only by Web{Get,Invoke}Attribute

Usually WCF requires that each service method is marked with the OperationContract attribute with the exception
of methods decorated with the Web{Get,Invoke}Attribute attributes which are defined in System.ServiceModel.Web.
This patch adds a simple way to extend the ContractDescriptionGenerator in order to provide this functionality
without circular dependency of System.ServiceModel on System.ServiceModel.Web. Several extenders can be registered
with the description generator and they will be invoked in the registration order until any of them returns 'true'.
Extenders are passed a reference to the OperationContract attribute with which the current method is decorated - if
the reference is null, the extender should create a default instance of the attribute so that the description generator
considers the method as one to be included in the contract description.

13 years agoNew test.
Marek Safar [Wed, 10 Nov 2010 17:52:43 +0000 (17:52 +0000)]
New test.

13 years agoImplement dynamic mutator over dynamic indexer
Marek Safar [Wed, 10 Nov 2010 17:49:01 +0000 (17:49 +0000)]
Implement dynamic mutator over dynamic indexer

13 years agoMore tweaks for nullable binary operation
Marek Safar [Wed, 10 Nov 2010 14:18:34 +0000 (14:18 +0000)]
More tweaks for nullable binary operation

13 years agoFalse user-operator has priority over logical not user-operator
Marek Safar [Wed, 10 Nov 2010 09:36:53 +0000 (09:36 +0000)]
False user-operator has priority over logical not user-operator

13 years agoWhen single stepping from a exception throw site, single step to the catch site....
Zoltan Varga [Wed, 10 Nov 2010 17:23:25 +0000 (18:23 +0100)]
When single stepping from a exception throw site, single step to the catch site. Fixes #652590.

13 years agoRemove compat-4.0 dir (nothing there anymore)
Andrew Jorgensen [Wed, 10 Nov 2010 17:18:04 +0000 (10:18 -0700)]
Remove compat-4.0 dir (nothing there anymore)

13 years agoSimplify Parallel.For execution.
Jérémie Laval [Wed, 10 Nov 2010 16:31:29 +0000 (16:31 +0000)]
Simplify Parallel.For execution.

This commit remove the stealing path until a better solution for it is devised.

13 years agoAllocate MonoInternalThread/MonoThread objects using mono_gc_alloc_pinned () when...
Zoltan Varga [Wed, 10 Nov 2010 13:43:27 +0000 (14:43 +0100)]
Allocate MonoInternalThread/MonoThread objects using mono_gc_alloc_pinned () when using sgen, since they will be pinned anyway.

13 years agoFinal performance improvement on ReaderWriterLockSlim
Jérémie Laval [Wed, 10 Nov 2010 13:38:20 +0000 (13:38 +0000)]
Final performance improvement on ReaderWriterLockSlim

13 years agoFix the --enable-shared=no build.
Zoltan Varga [Wed, 10 Nov 2010 12:55:15 +0000 (13:55 +0100)]
Fix the --enable-shared=no build.

13 years agoFix a warning.
Zoltan Varga [Wed, 10 Nov 2010 12:52:48 +0000 (13:52 +0100)]
Fix a warning.

13 years agoLog profiler: fixed timeout heapshot mode and sorted heapshots.
Paolo Molaro [Wed, 10 Nov 2010 09:48:26 +0000 (10:48 +0100)]
Log profiler: fixed timeout heapshot mode and sorted heapshots.

* proflog.c: fixed heapshot timeout mode (setting the last time it was performed).
* decode.c: sort heap shot list according to the time sequence.

13 years agoLog profiler: track thread names with the new profiler API.
Paolo Molaro [Wed, 10 Nov 2010 09:38:17 +0000 (10:38 +0100)]
Log profiler: track thread names with the new profiler API.

13 years agoSet the name of some runtime threads.
Paolo Molaro [Wed, 10 Nov 2010 09:37:00 +0000 (10:37 +0100)]
Set the name of some runtime threads.

* gc.c: set the name of the finalizer thread.
* threadpool.c: set the name of the threadpool worker threads.

13 years agoProfiler: added new API for notification of thread names.
Paolo Molaro [Wed, 10 Nov 2010 09:34:05 +0000 (10:34 +0100)]
Profiler: added new API for notification of thread names.

* profiler-private.h, profiler.c, profiler.h: users can now get a callback
when the name of a thread gets set when MONO_PROFILE_THREADS is enabled.
* threads.c: notify profilers about thread name changes.

13 years agoLog profiler: added support for GC handles tracking.
Paolo Molaro [Tue, 9 Nov 2010 13:57:39 +0000 (14:57 +0100)]
Log profiler: added support for GC handles tracking.

* proflog.c, proflog.h: added support for tracking GC handle creation
and destruction. Updated profiler version.
* decode.c: added support for GC handles in the GC report, including
backtraces.

13 years agoAdded profiler interface to track GC handles.
Paolo Molaro [Tue, 9 Nov 2010 13:55:31 +0000 (14:55 +0100)]
Added profiler interface to track GC handles.

* profiler-private.h, profiler.c, profiler.h: new API to get notiffications
when GC handles are created or destroyed.
* gc.c: notify the profiler on GC handle creation/destruction.

13 years agoReorder logic in DMO type conversion
Marek Safar [Wed, 10 Nov 2010 09:04:48 +0000 (09:04 +0000)]
Reorder logic in DMO type conversion

13 years agoFixes a logic error in filtering out operators like methods
Marek Safar [Wed, 10 Nov 2010 09:00:51 +0000 (09:00 +0000)]
Fixes a logic error in filtering out operators like methods

13 years agoDon't crash on liften null left/right shift
Marek Safar [Tue, 9 Nov 2010 19:23:24 +0000 (19:23 +0000)]
Don't crash on liften null left/right shift

13 years agoLogical binary operarions with dynamic arguments have to be unfolded
Marek Safar [Tue, 9 Nov 2010 18:59:05 +0000 (18:59 +0000)]
Logical binary operarions with dynamic arguments have to be unfolded

13 years agoAdd an AOT flag for aot images compiled with soft-debugging support, and avoid loadin...
Zoltan Varga [Wed, 10 Nov 2010 08:24:34 +0000 (09:24 +0100)]
Add an AOT flag for aot images compiled with soft-debugging support, and avoid loading aot images without this flag when running with the soft debugger.

13 years ago[xbuild] Emit /platform: for *mcs
Ankit Jain [Wed, 10 Nov 2010 05:18:42 +0000 (10:48 +0530)]
[xbuild] Emit /platform: for *mcs

Emit /platform:foo for the *mcs. Based on patch from
technomage1972 <dellis1972@googlemail.com> .

13 years ago[OSX] Prevent an invalid write to mono_lmf_addr
Geoff Norton [Wed, 10 Nov 2010 04:39:11 +0000 (23:39 -0500)]
[OSX] Prevent an invalid write to mono_lmf_addr

mono_set_lmf () calls *(mono_get_lmf_addr ()) = lmf, but
mono_get_lmf_addr could potentially point to the address we just
g_free'd.  Ensure that we clear the settings, before freeing the memory.

13 years ago[OSX] Disabled eglib tests build by default
Geoff Norton [Wed, 10 Nov 2010 04:37:03 +0000 (23:37 -0500)]
[OSX] Disabled eglib tests build by default

On OSX our local system glib might be 32 or 64 bit, and we have
no simple way of testing wether it meeds the needs of the current
built, lets just disable tests by default for now

13 years agoAdd support for the CancelKeyPress event on Windows
Alex Fort [Tue, 9 Nov 2010 20:22:49 +0000 (15:22 -0500)]
Add support for the CancelKeyPress event on Windows

Adds a call to the Win32 function SetConsoleCtrlHandler for Windows,
which adds the DoWindowsConsoleCancelEvent wrapper for
DoConsoleCancelEvent to the Ctrl-C handler when an event handler is
added, and removes the handler once all event handlers are removed.

13 years agoAdd test for transitive constraint validation.
Rodrigo Kumpera [Tue, 9 Nov 2010 20:04:32 +0000 (18:04 -0200)]
Add test for transitive constraint validation.

13 years agoFix banshee breakage with trunk.
Rodrigo Kumpera [Tue, 9 Nov 2010 20:00:53 +0000 (18:00 -0200)]
Fix banshee breakage with trunk.

* verify.c (mono_generic_param_is_constraint_compatible):
Handle transitive constraints where one type can only satisfy
the constraints required by means of the other types it's
constainted to. For example:

Bar<K> where K : IFace
Foo<T, U> where T : U where U : IFace
Bar<T>

On the above example, T can only satisfy K constraint by means
of the constraints that U has.

13 years agoFix the previous change.
Zoltan Varga [Tue, 9 Nov 2010 19:00:23 +0000 (20:00 +0100)]
Fix the previous change.

13 years agoSpeed up Thread.ManagedThreadId.
Zoltan Varga [Tue, 9 Nov 2010 18:52:33 +0000 (19:52 +0100)]
Speed up Thread.ManagedThreadId.

13 years ago[Xml] Only call Close on the base Writer if it hasn't been closed yet. Fixes #651647
Andreia Gaita [Tue, 9 Nov 2010 17:48:28 +0000 (17:48 +0000)]
[Xml] Only call Close on the base Writer if it hasn't been closed yet. Fixes #651647

The serialization classes provided by the SL toolkit
(System.Runtime.Serialization.dll) don't like having Close called more than
once, so it seems that they don't check their own state and we have to do it
to avoid making repeated Close calls.

13 years agoAdd and/or altered a bunch of XamlXmlReader tests based on common reader tests.
Atsushi Eno [Tue, 9 Nov 2010 16:11:44 +0000 (01:11 +0900)]
Add and/or altered a bunch of XamlXmlReader tests based on common reader tests.

Lots of tests are duplicate for the same XML inputs, so they are just removed.