mono.git
13 years agoRemove the unused and incomplete CMake build scripts for now.
Zoltan Varga [Sun, 14 Nov 2010 00:21:43 +0000 (01:21 +0100)]
Remove the unused and incomplete CMake build scripts for now.

13 years agoConvert MONO_MARSHAL_CONV_LPSTR_STR to mono_string_to_utf16 on windows.
Vincent Povirk [Sat, 13 Nov 2010 16:00:20 +0000 (17:00 +0100)]
Convert MONO_MARSHAL_CONV_LPSTR_STR to mono_string_to_utf16 on windows.

13 years agoFix the DISABLE_JIT build.
Zoltan Varga [Sat, 13 Nov 2010 13:29:15 +0000 (14:29 +0100)]
Fix the DISABLE_JIT build.

13 years agoFix the previous change.
Zoltan Varga [Sat, 13 Nov 2010 13:14:40 +0000 (14:14 +0100)]
Fix the previous change.

13 years agoFix build breakage on platforms without execvp.
Zoltan Varga [Sat, 13 Nov 2010 13:05:18 +0000 (14:05 +0100)]
Fix build breakage on platforms without execvp.

13 years agoFix a typo (DISABLE_SOCKET->DISABLE_SOCKETS).
Zoltan Varga [Sat, 13 Nov 2010 12:53:48 +0000 (13:53 +0100)]
Fix a typo (DISABLE_SOCKET->DISABLE_SOCKETS).

13 years agoUse CloseHandle () for closing process handles if HOST_WIN32 is defined, so it works...
Zoltan Varga [Sat, 13 Nov 2010 12:28:45 +0000 (13:28 +0100)]
Use CloseHandle () for closing process handles if HOST_WIN32 is defined, so it works on windows based cross compilers.

13 years ago[asp.net] Cache + SessionInProcHandler memory usage improvements
Marek Habersack [Sat, 13 Nov 2010 03:10:13 +0000 (04:10 +0100)]
[asp.net] Cache + SessionInProcHandler memory usage improvements

* Cache.cs: cache removes old/least recently used items when the item count exceeds 15000. Items
  are removed until they reach the count of 10000.
* SessionInProcHandler.cs: replaced ReaderWriterLock with ReaderWriterLockSlim and added a Dispose
  method to the InProcSessionItem type which disposes the associated lock and other resources.

13 years agoAdd new profiler to mono-devel package
Andrew Jorgensen [Fri, 12 Nov 2010 23:44:40 +0000 (16:44 -0700)]
Add new profiler to mono-devel package

13 years agomake -jX should work in libgc/ now.
Gonzalo Paniagua Javier [Fri, 12 Nov 2010 22:37:28 +0000 (17:37 -0500)]
make -jX should work in libgc/ now.

13 years agoLog profiler: removed the hsmode option, use heapshot=MODE instead.
Paolo Molaro [Fri, 12 Nov 2010 19:54:10 +0000 (20:54 +0100)]
Log profiler: removed the hsmode option, use heapshot=MODE instead.

13 years agoLog profiler: updated to the new heap walk API.
Paolo Molaro [Fri, 12 Nov 2010 19:02:10 +0000 (20:02 +0100)]
Log profiler: updated to the new heap walk API.

The GC now provides also offset information for each referenced object
in the heap walk API: this info is saved in the profile data now.
Updated the data version for the file format change.

13 years agoGC: changed the heap walk API to also report the offset of referenced objects.
Paolo Molaro [Fri, 12 Nov 2010 18:59:20 +0000 (19:59 +0100)]
GC: changed the heap walk API to also report the offset of referenced objects.

13 years agoLog profiler: use the output value as a filename when report is specified.
Paolo Molaro [Fri, 12 Nov 2010 18:22:55 +0000 (19:22 +0100)]
Log profiler: use the output value as a filename when report is specified.

* proflog.c: if the output option is used together with report, the report
is saved to the named file instead of being printed to stdout.
* decode.c: zlib seems to get confused with a non-compressed strem
coming from stdin: disable it in that case...
Also deal with reading 0 bytes from a buffer.

13 years agoLog profiler: allow overwriting data files and name them from date and pid.
Paolo Molaro [Fri, 12 Nov 2010 17:22:03 +0000 (18:22 +0100)]
Log profiler: allow overwriting data files and name them from date and pid.

* utils.h, utils.c: added getpid() wrapper.
* decode.c: display the program pid if available.
* proflog.c: added substitutions for the output name, change the default
behaviour to not overwrite a file and allow '-' at the start of the
file name to force overwrite.

13 years agoImprove tests.
Rodrigo Kumpera [Fri, 12 Nov 2010 19:08:41 +0000 (17:08 -0200)]
Improve tests.

* gc-oom-handling.cs: Modify this test to test major
fragmentation too.

* gc-oom-handling2.cs: Add tests for some heavy reflection
allocators.

13 years agoHandle OOM under evacuation.
Rodrigo Kumpera [Fri, 12 Nov 2010 19:07:16 +0000 (17:07 -0200)]
Handle OOM under evacuation.

* sgen-marksweep.c (major_copy_or_mark_object): Stop evacuating
major objects if we fail to alloc them.

13 years ago[Xml] duh, don't hide the stacktrace
Andreia Gaita [Fri, 12 Nov 2010 16:52:24 +0000 (16:52 +0000)]
[Xml] duh, don't hide the stacktrace

13 years agoMove an assembly declaration handling into a new file
Marek Safar [Fri, 12 Nov 2010 16:12:52 +0000 (16:12 +0000)]
Move an assembly declaration handling into a new file

13 years agoAdd local version of constructor info constants
Marek Safar [Fri, 12 Nov 2010 15:56:15 +0000 (15:56 +0000)]
Add local version of constructor info constants

13 years agoRemove unused namespaces
Marek Safar [Fri, 12 Nov 2010 11:42:29 +0000 (11:42 +0000)]
Remove unused namespaces

13 years ago[Xml] Check if the underlying writer supports LookupPrefix and return empty
Andreia Gaita [Fri, 12 Nov 2010 15:55:32 +0000 (15:55 +0000)]
[Xml] Check if the underlying writer supports LookupPrefix and return empty
instead of blowing up.

13 years agoThrow an an exception when Break and Stop are used in combination.
Jérémie Laval [Fri, 12 Nov 2010 14:02:41 +0000 (14:02 +0000)]
Throw an an exception when Break and Stop are used in combination.

13 years agoSimplify Parallel.ForEach loop execution
Jérémie Laval [Fri, 12 Nov 2010 14:02:12 +0000 (14:02 +0000)]
Simplify Parallel.ForEach loop execution

13 years agoCleanup ForEach overloads in Parallel
Jérémie Laval [Fri, 12 Nov 2010 13:52:54 +0000 (13:52 +0000)]
Cleanup ForEach overloads in Parallel

13 years agoDirectory cleanup for System.Collections.Concurrent partitioners
Jérémie Laval [Fri, 12 Nov 2010 13:19:10 +0000 (13:19 +0000)]
Directory cleanup for System.Collections.Concurrent partitioners

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)