mono.git
13 years agoMove IL verifier test to the right folder.
Rodrigo Kumpera [Mon, 11 Oct 2010 19:19:56 +0000 (16:19 -0300)]
Move IL verifier test to the right folder.

13 years agoAdd regression test for #562771
Rodrigo Kumpera [Mon, 11 Oct 2010 19:19:04 +0000 (16:19 -0300)]
Add regression test for #562771

13 years agoDon't allow a GTD to be used as a generic argument.
Rodrigo Kumpera [Mon, 11 Oct 2010 19:07:36 +0000 (16:07 -0300)]
Don't allow a GTD to be used as a generic argument.

* verify.c (is_valid_generic_instantiation): A GTD cannot
be used as generic argument. Check for those conditions
even if the argument has no constraints.

Fixes #562771

13 years agoHandle dynamic methods as managed.
Rodrigo Kumpera [Mon, 11 Oct 2010 17:12:32 +0000 (14:12 -0300)]
Handle dynamic methods as managed.

* mini-exceptions.c (mono_find_jit_info): Treat
dynamic method wrappers as managed methods.

* DynamicMethodTest.cs: Add test for GetCurrentMethod.

Fixes #640702

13 years agoAdd regression test for #644935
Rodrigo Kumpera [Mon, 11 Oct 2010 16:41:22 +0000 (13:41 -0300)]
Add regression test for #644935

13 years agoCheck if generic constraint are valid generic instantiations.
Rodrigo Kumpera [Mon, 11 Oct 2010 16:34:45 +0000 (13:34 -0300)]
Check if generic constraint are valid generic instantiations.

* verify.c (verify_generic_parameters): If a generic constraint
is a generic instance, it must respect the constraint of that
type too.

Fixes #644935

13 years agoCompound assignments over reference type array cannot use ldelema
Marek Safar [Mon, 11 Oct 2010 16:24:24 +0000 (17:24 +0100)]
Compound assignments over reference type array cannot use ldelema

13 years agoRemove warnings
Gonzalo Paniagua Javier [Mon, 11 Oct 2010 15:28:14 +0000 (11:28 -0400)]
Remove warnings

13 years agoSet the wrapper info for the virtual stelemref wrappers to a non-NULL value.
Zoltan Varga [Mon, 11 Oct 2010 09:18:21 +0000 (11:18 +0200)]
Set the wrapper info for the virtual stelemref wrappers to a non-NULL value.

13 years agoFix full-aot support for the stelemref wrappers.
Zoltan Varga [Mon, 11 Oct 2010 09:15:06 +0000 (11:15 +0200)]
Fix full-aot support for the stelemref wrappers.

13 years ago[xbuild] Log TaskFinished even when task fails to initialize.
Ankit Jain [Sun, 10 Oct 2010 22:57:09 +0000 (04:27 +0530)]
[xbuild] Log TaskFinished even when task fails to initialize.

13 years ago[645232] Implement ITypeDefinition for internal types.
Marek Safar [Sun, 10 Oct 2010 16:13:12 +0000 (17:13 +0100)]
[645232] Implement ITypeDefinition for internal types.

13 years agoAdd missing file.
Atsushi Eno [Sat, 9 Oct 2010 04:53:57 +0000 (13:53 +0900)]
Add missing file.

13 years agoAdd couple of (not-working) object reader testcases. Add some comments and commented...
Atsushi Eno [Sat, 9 Oct 2010 04:52:36 +0000 (13:52 +0900)]
Add couple of (not-working) object reader testcases. Add some comments and commented code on XamlObjectReader.

13 years agoAdd fast stelem.ref for interfaces too.
Rodrigo Kumpera [Sat, 9 Oct 2010 01:13:13 +0000 (22:13 -0300)]
Add fast stelem.ref for interfaces too.

* marshal.c (mono_marshal_get_virtual_stelemref): Add a custom
wrapper for interface casts.

This was the most frequent array kind left without a fast
stelem.ref wrapper. During testing the only easy target
left was arrays of arrays, but those are so rare that
won't make a different on any workload.

13 years agoImplement fast stelemref.
Rodrigo Kumpera [Fri, 8 Oct 2010 19:32:08 +0000 (16:32 -0300)]
Implement fast stelemref.

* class.c (mono_class_setup_vtable_general): Inject
the array stelemref method on vectors of reference types.

* class.c (mono_class_init): Properly handle the fact
that arrays have different vtable sizes.

* marshal.c (mono_marshal_get_virtual_stelemref): New
function that returns a better tailored stelemref wrapper
for a given array type.

* method-to-ir.c (mono_method_to_ir): Emit a virtual
call to the new faster stelemref wrapper.

This schema uses 4 wrappers instead of one and puts
it into the vtable of vectors of reference types.

This change improves a synthetic benchmark of an
equal mix of stores as compiling corlib by 25%.

It improves pystones by 3-4%.

13 years agoRemove unneeded 'using' clauses
Sebastien Pouliot [Fri, 8 Oct 2010 20:08:49 +0000 (16:08 -0400)]
Remove unneeded 'using' clauses

13 years agoRemove unneeded 'using' clauses
Sebastien Pouliot [Fri, 8 Oct 2010 15:57:25 +0000 (11:57 -0400)]
Remove unneeded 'using' clauses

13 years agoFix ASP.NET HttpResponse not to depend on a (fixed) bug in UriBuilder
Sebastien Pouliot [Fri, 8 Oct 2010 15:54:36 +0000 (11:54 -0400)]
Fix ASP.NET HttpResponse not to depend on a (fixed) bug in UriBuilder

* System.Web/System.Web/HttpResponse.cs: Ensure '?' is not encoded as
%3F while redirecting (e.g. aspxerrorpath) since this can cause a loop.
i.e. not found leading to not found...

* System/System/Test/System/UriBuilderTest.cs: Add test to confirm the
right behavior of UriBuilder wrt how it was used by Mono's ASP.NET

13 years agoBuffer sizes
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 01:15:55 +0000 (21:15 -0400)]
Buffer sizes

workingBlock should be the InputBlockSize and currentBlock the
OutputBlockSize. Allocate currentBlock lazily.

Test contributed by Bassam Tabbara.
Fixes bug #644740.

13 years ago[CryptoStream] Invalid enum in ctor
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 00:59:29 +0000 (20:59 -0400)]
[CryptoStream] Invalid enum in ctor

Throw on invalid enum value in the ctor.

13 years agoDispose calls FlushFinalBlock
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 00:52:59 +0000 (20:52 -0400)]
Dispose calls FlushFinalBlock

Dispose calls FlushFinalBlock (even for Read mode) and this in turn
calls either FlushFinalBlock or Flush on the underlying stream.

13 years agoFix Marshal.SizeOf() for structs with explicit layout
Gonzalo Paniagua Javier [Wed, 6 Oct 2010 17:46:16 +0000 (13:46 -0400)]
Fix Marshal.SizeOf() for structs with explicit layout

Marshal.SizeOf is now returning the expected values for explicit layout
in 32 and 64 bits systems.

Fixes bug #641535.

13 years agoDon't assume the system.object does not have any fields
Marek Safar [Fri, 8 Oct 2010 17:37:08 +0000 (18:37 +0100)]
Don't assume the system.object does not have any fields

13 years ago[642975] Fix initializer of partially static multidimensional arrays
Marek Safar [Fri, 8 Oct 2010 16:20:23 +0000 (17:20 +0100)]
[642975] Fix initializer of partially static multidimensional arrays

13 years ago[644673] Import of modules got broken
Marek Safar [Fri, 8 Oct 2010 16:00:42 +0000 (17:00 +0100)]
[644673] Import of modules got broken

13 years agoUndo mach_dep change.
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 15:55:31 +0000 (11:55 -0400)]
Undo mach_dep change.

13 years agoAllow imported members cache to be setup in 2 phases as compiled one is to deal with...
Marek Safar [Fri, 8 Oct 2010 14:46:05 +0000 (15:46 +0100)]
Allow imported members cache to be setup in 2 phases as compiled one is to deal with generics recursions

13 years agoAllow -jX when compiling libgc
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 14:39:21 +0000 (10:39 -0400)]
Allow -jX when compiling libgc

Add mach_dep.c to the sources.
Fixes bug #644933.
Thanks to Mathias Ruediger.

13 years agoAdd support generic arguments in ModuleBuilder.Resolve*Token icalls
Jb Evain [Fri, 8 Oct 2010 12:21:44 +0000 (14:21 +0200)]
Add support generic arguments in ModuleBuilder.Resolve*Token icalls

For ResolveTypeToken, ResolveFieldToken and ResolveMethodToken,
resolve definitions directly and try to instantiate only types
that can be instantiated, such as MemberRef, MethodSpec and TypeSpec.
Also validate the memberref token type for ResolveField and
ResolveMethod when passing them a MemberRef token.

13 years agoAdd tests for ModuleBuilder.ResolveMember on different kind of tokens
Jb Evain [Fri, 8 Oct 2010 12:17:14 +0000 (14:17 +0200)]
Add tests for ModuleBuilder.ResolveMember on different kind of tokens

13 years agoFix a warning.
Zoltan Varga [Fri, 8 Oct 2010 09:47:13 +0000 (11:47 +0200)]
Fix a warning.

13 years agoDo not reject contract from the same method, could happen by a type with multiple...
Atsushi Eno [Fri, 8 Oct 2010 06:55:12 +0000 (15:55 +0900)]
Do not reject contract from the same method, could happen by a type with multiple service contracts within the typie hierarchy.

For details, see: http://lists.ximian.com/pipermail/mono-devel-list/2010-September/035940.html

13 years ago[asp.net] Fix for bug #643763. BuildManager must not fail with BuildProviders lacking...
Kornél Pál [Fri, 8 Oct 2010 06:41:39 +0000 (08:41 +0200)]
[asp.net] Fix for bug #643763. BuildManager must not fail with BuildProviders lacking the BuildProviderAppliesTo attribute.

13 years agoAdd support for EnableSsl in smtp config.
Gonzalo Paniagua Javier [Fri, 8 Oct 2010 04:33:59 +0000 (00:33 -0400)]
Add support for EnableSsl in smtp config.

Ditto.
Fixes bug #644816.

13 years agoFix the sparc build.
Zoltan Varga [Fri, 8 Oct 2010 03:15:44 +0000 (05:15 +0200)]
Fix the sparc build.

13 years agoeglib: Make g_malloc and friends abort in case of failure (like glib does)
Rolf Bjarne Kvinge [Fri, 24 Sep 2010 10:21:38 +0000 (12:21 +0200)]
eglib: Make g_malloc and friends abort in case of failure (like glib does)

* eglib/src/glib.h:
* eglib/src/gmem.c: Make g_malloc and friends abort in case of failure, like
  glib does.

* eglib/src/eglib-remap.h: Remap all allocation functions.

13 years agoImplement managed versions of the caching icalls.
Rodrigo Kumpera [Thu, 7 Oct 2010 20:35:09 +0000 (17:35 -0300)]
Implement managed versions of the caching icalls.

* marshal.c: Add mono_marshal_get_isinst_with_cache
and mono_marshal_get_castclass_with_cache.

        * marshal.h: Export those 2 new functions.

        * method-to-ir.c: Call those functions instead of their
        icall versions. This speeds up non gshared cases by up to 3x
        and gshared by up to 2x.

        Those wrappers are not inlined since the register allocator
        doesn't handle well so the minor speedup is not worth be
        significant bloat introduced.

13 years agoAdd gsharing support for cached casts.
Rodrigo Kumpera [Thu, 7 Oct 2010 18:45:57 +0000 (15:45 -0300)]
Add gsharing support for cached casts.

* class-internals.h: Add new kind of rgctx slot.

* method-to-ir.c (handle_castclass): Emit gsharing code
for cast with caching.

* method-to-ir.c (handle_isinst):

* mini-generic-sharing.c: Implement MONO_RGCTX_INFO_CAST_CACHE
slot type. It's a 2 word domain allocated memory block with the
cache on the first word and the vtable on the second.

This design does a single rgctx fetch instead of two. It's
a bit faster and can potentialy save some slots.

13 years agoAdd single entry cache to casts of types with variant generic arguments.
Rodrigo Kumpera [Thu, 7 Oct 2010 18:33:04 +0000 (15:33 -0300)]
Add single entry cache to casts of types with variant generic arguments.

        * jit-icall.c (mono_object_castclass_with_cache): Check
        single entry cache before calling mono_object_isinst.

        * jit-icall.c (mono_object_isinst_with_cache): Check
        single entry cache before calling mono_object_isinst.
        This uses a positive and negative cache as it is used
        for type queries quite often.

        * jit-icalls.h: Export new icalls.

        * mini.c (mini_init): Register new icalls.

        * method-to-ir.c: Call into cache aware version of type
        test ops for types with variant generic arguments.

        This patch replaces direct calls to mono_object_castclass
        mono_object_isisnt to functions that check a cache first.
        The cache is per managed code callsite so the hit ratio
        is very high.

13 years agoFast cast for some cases of generic variant types.
Rodrigo Kumpera [Thu, 7 Oct 2010 15:16:25 +0000 (12:16 -0300)]
Fast cast for some cases of generic variant types.

* method-to-ir.c: Casts to generic types with variant argument
can use the regular fast path if all variant arguments are
valuetypes.

13 years agoDo the right check for arrays.
Rodrigo Kumpera [Thu, 7 Oct 2010 20:37:15 +0000 (17:37 -0300)]
Do the right check for arrays.

* marshal.c (mono_marshal_load_type_info): Properly check for
array types.

13 years agoFix CryptoStream.Dispose
Gonzalo Paniagua Javier [Thu, 7 Oct 2010 18:22:35 +0000 (14:22 -0400)]
Fix CryptoStream.Dispose

-Dispose will call TransformFinalBlock() for Read streams. Fixes bug #644648.
-Dispose () will call Dispose (bool). Fixes bug #644654.
-Stream.Close calls GC.SuppressFinalize(). Fixes bug #644660.

13 years agoFix compound event assigments with dynamic side effect
Marek Safar [Thu, 7 Oct 2010 18:14:48 +0000 (19:14 +0100)]
Fix compound event assigments with dynamic side effect

13 years agoAdd tests for ModuleBuilder.ResolveMemberToken
Jb Evain [Thu, 7 Oct 2010 18:02:59 +0000 (20:02 +0200)]
Add tests for ModuleBuilder.ResolveMemberToken

13 years agoFix resolution of memberref tokens in the dynamic case.
Jb Evain [Thu, 7 Oct 2010 18:02:09 +0000 (20:02 +0200)]
Fix resolution of memberref tokens in the dynamic case.

mono_metadata_memberref_is_method: rename to mono_memberref_is_method
and deal with the case where the assembly is dynamic. This prevents
a runtime crash when calling ModuleBuilder.ResolveMemberToken with
a MemberRef token pointing to a field.

13 years agoAdd --debug=casts support for ArrayTypeMismatchException's.
Zoltan Varga [Thu, 7 Oct 2010 17:21:27 +0000 (19:21 +0200)]
Add --debug=casts support for ArrayTypeMismatchException's.

13 years agoCentralize the setting of cfg->exception_type and the branching to load_error to...
Zoltan Varga [Thu, 7 Oct 2010 16:59:49 +0000 (18:59 +0200)]
Centralize the setting of cfg->exception_type and the branching to load_error to ease debugging.

13 years agoExpose ICredentialsByHost on NetworkCredential in the MOBILE profiles
Geoff Norton [Thu, 7 Oct 2010 17:01:25 +0000 (13:01 -0400)]
Expose ICredentialsByHost on NetworkCredential in the MOBILE profiles

13 years agoFix test
Jb Evain [Thu, 7 Oct 2010 14:43:41 +0000 (16:43 +0200)]
Fix test

13 years ago[Test] Add test for ModuleBuilder.ResolveFieldToken on generic fields.
Jb Evain [Thu, 7 Oct 2010 14:40:15 +0000 (16:40 +0200)]
[Test] Add test for ModuleBuilder.ResolveFieldToken on generic fields.

13 years ago[Fix] Properly compute the tokens for FieldBuilders.
Jb Evain [Thu, 7 Oct 2010 14:39:04 +0000 (16:39 +0200)]
[Fix] Properly compute the tokens for FieldBuilders.

mono_reflection_get_token: For FieldBuilders, now reuse the token
computed when the FieldBuilder are instantiated, instead of
re-creating them. This avoids registering field definitions
as MemberRefs.

13 years ago[Fix] FieldBuilder.ctor: properly register FieldBuilder token.
Jb Evain [Thu, 7 Oct 2010 14:36:37 +0000 (16:36 +0200)]
[Fix] FieldBuilder.ctor: properly register FieldBuilder token.

We were previously relying on the runtime to register the token
for FieldBuilders, but this has issues with fields on generics types
as it would create a MemberRef token instead of a Field token.

13 years ago[644507] Don't use nested type cache until declaring type is setup.
Marek Safar [Thu, 7 Oct 2010 14:26:00 +0000 (15:26 +0100)]
[644507] Don't use nested type cache until declaring type is setup.

13 years agoSignificant XamlObjectWriter rewrite for solid state transition. And now it supports...
Atsushi Eno [Thu, 7 Oct 2010 13:43:10 +0000 (22:43 +0900)]
Significant XamlObjectWriter rewrite for solid state transition. And now it supports Array(Extension) and other MarkupExtension types.

13 years agoClear the domain before unloading assemblies in mono_domain_free ().
Zoltan Varga [Thu, 7 Oct 2010 13:27:18 +0000 (15:27 +0200)]
Clear the domain before unloading assemblies in mono_domain_free ().

13 years agoFix more wrappers of dynamic methods.
Zoltan Varga [Thu, 7 Oct 2010 13:26:26 +0000 (15:26 +0200)]
Fix more wrappers of dynamic methods.

13 years agoFix compound assigments with dynamic side effect
Marek Safar [Thu, 7 Oct 2010 12:43:25 +0000 (13:43 +0100)]
Fix compound assigments with dynamic side effect

13 years agoFix make test for corlib.
Zoltan Varga [Thu, 7 Oct 2010 11:50:34 +0000 (13:50 +0200)]
Fix make test for corlib.

13 years agoRe-enable the tests.
Zoltan Varga [Thu, 7 Oct 2010 11:50:21 +0000 (13:50 +0200)]
Re-enable the tests.

13 years agoAvoid clearing nursery fragments before pinning, instead place arrays at the start...
Zoltan Varga [Thu, 30 Sep 2010 02:39:36 +0000 (04:39 +0200)]
Avoid clearing nursery fragments before pinning, instead place arrays at the start of each fragment which cover the whole fragment.

13 years agoRemove the MonoGenericContext/MonoMethod arguments from the get_this_arg () and get_u...
Zoltan Varga [Thu, 7 Oct 2010 10:01:24 +0000 (12:01 +0200)]
Remove the MonoGenericContext/MonoMethod arguments from the get_this_arg () and get_unbox_trampoline () family of functions, they are no longer needed after the this parameter passing changes.

13 years agoDisabled test until ?mcs is fixed.
Gonzalo Paniagua Javier [Wed, 6 Oct 2010 19:59:30 +0000 (15:59 -0400)]
Disabled test until ?mcs is fixed.

This test failed to compile (internal error). Large changes required in
?mcs before this can be compiled.

13 years agoURL moved and use the raw format for certdata
Gonzalo Paniagua Javier [Wed, 6 Oct 2010 15:21:09 +0000 (11:21 -0400)]
URL moved and use the raw format for certdata

The URL has been moved permanently. Use the raw format instead of
downloading the HTML page.

13 years agoAvoid warning
Gonzalo Paniagua Javier [Wed, 6 Oct 2010 15:31:08 +0000 (11:31 -0400)]
Avoid warning

_GNU_SOURCE was redefined

13 years agoAvoid a warning
Gonzalo Paniagua Javier [Wed, 6 Oct 2010 15:25:33 +0000 (11:25 -0400)]
Avoid a warning

Use MONO_TYPE_BOOLEAN instead of MONO_NATIVE_BOOLEAN. Same value,
different enums.

13 years agoX509Chain always uses the LM store
Gonzalo Paniagua Javier [Tue, 5 Oct 2010 23:18:43 +0000 (19:18 -0400)]
X509Chain always uses the LM store

X509Chain will now add the LM store certificates always, even when the
CU store is selected.

13 years agoFix CRLF
Marek Safar [Wed, 6 Oct 2010 11:09:57 +0000 (12:09 +0100)]
Fix CRLF

13 years agoVerify type parameter constraints type parameters
Marek Safar [Wed, 6 Oct 2010 11:01:04 +0000 (12:01 +0100)]
Verify type parameter constraints type parameters

13 years agoVerify type parameter constraints type parameters
Marek Safar [Wed, 6 Oct 2010 10:57:59 +0000 (11:57 +0100)]
Verify type parameter constraints type parameters

13 years agoFixes allowed interface method modifiers
Marek Safar [Wed, 6 Oct 2010 10:44:27 +0000 (11:44 +0100)]
Fixes allowed interface method modifiers

13 years agoAdd more complicated state transition to XamlXmlReader and now it can handle GetObject.
Atsushi Eno [Wed, 6 Oct 2010 10:31:02 +0000 (19:31 +0900)]
Add more complicated state transition to XamlXmlReader and now it can handle GetObject.

13 years agoUse MarkupExtension.ProvideValue() so that XamlObjectReader can return expected Resul...
Atsushi Eno [Wed, 6 Oct 2010 07:31:18 +0000 (16:31 +0900)]
Use MarkupExtension.ProvideValue() so that XamlObjectReader can return expected Result. Implement internal IXamlNameResolver for Reference resolution.

13 years agoAdd ContentProperty support in XamlXmlReader. Add some testcases.
Atsushi Eno [Wed, 6 Oct 2010 06:47:00 +0000 (15:47 +0900)]
Add ContentProperty support in XamlXmlReader. Add some testcases.

13 years agoFix a warning.
Zoltan Varga [Tue, 5 Oct 2010 23:05:37 +0000 (01:05 +0200)]
Fix a warning.

13 years agoNew test.
Marek Safar [Tue, 5 Oct 2010 20:07:25 +0000 (21:07 +0100)]
New test.

13 years agoInflate imported nested type correctly.
Marek Safar [Tue, 5 Oct 2010 19:57:28 +0000 (20:57 +0100)]
Inflate imported nested type correctly.

13 years agoCompare all type arguments for nested generic types.
Marek Safar [Tue, 5 Oct 2010 10:41:18 +0000 (11:41 +0100)]
Compare all type arguments for nested generic types.

13 years agoline ending
Marek Safar [Tue, 5 Oct 2010 08:15:29 +0000 (09:15 +0100)]
line ending

13 years agoFix the build on windows
Geoff Norton [Tue, 5 Oct 2010 19:58:09 +0000 (15:58 -0400)]
Fix the build on windows

13 years agoThe nested in type should not be inflated.
Rodrigo Kumpera [Tue, 5 Oct 2010 19:23:56 +0000 (16:23 -0300)]
The nested in type should not be inflated.

* class.c (mono_generic_class_get_class): Don't inflated
nested_in since it's not the expected behavior from managed
land. It's a safety issue as well since the outer type can
have more generic arguments.

* TypeTest.cs: Add regression test.

Fixes #643890

13 years ago[io-layer] Cope with pids > 16 bits
Michael Hutchinson [Tue, 5 Oct 2010 17:38:52 +0000 (13:38 -0400)]
[io-layer] Cope with pids > 16 bits

Fixes an issue in Process where "pseudo-handles" for processes with
pids > 16 bits would overflow and start getting treated as normal
handles. This would frequently segfault MonoDevelop on MacOS.

13 years agoIts possible that we're calling Process_free_internal on a pseudo-handle.
Geoff Norton [Tue, 5 Oct 2010 17:00:42 +0000 (13:00 -0400)]
Its possible that we're calling Process_free_internal on a pseudo-handle.

When we are not using SHM we use psuedo handles to return processes from pids,
however we dont guard against pseudo-handles in CloseProcess, which could lead to
calling unref on a fake handle.

13 years ago[xbuild] Update regex to not require EndProject in a sln file.
Ankit Jain [Tue, 5 Oct 2010 16:35:45 +0000 (22:05 +0530)]
[xbuild] Update regex to not require EndProject in a sln file.

In a solution file, a Project might not have a corresponding
EndProject. This seems to be supported by VS, so updating xbuild
to support that too. Updated the regex.

13 years agoImplement asm monitor/enter exit for amd64-sgen.
Rodrigo Kumpera [Tue, 5 Oct 2010 15:44:28 +0000 (12:44 -0300)]
Implement asm monitor/enter exit for amd64-sgen.

13 years agoImplement x86 support for monitor enter/exit fastpaths under sgen
Rodrigo Kumpera [Mon, 4 Oct 2010 01:06:39 +0000 (22:06 -0300)]
Implement x86 support for monitor enter/exit fastpaths under sgen

13 years agoEnable delegate .ctor optimization under sgen.
Rodrigo Kumpera [Thu, 30 Sep 2010 20:06:17 +0000 (17:06 -0300)]
Enable delegate .ctor optimization under sgen.

* method-to-ir.c (handle_delegate_ctor): Emit write barriers
under sgen.

* method-to-ir.c (mono_method_to_ir): Enable delegate .ctor
optimization under sgen.

13 years agoWhen finding SerializationMap for resolved type, use type as the key rather than...
Atsushi Eno [Tue, 5 Oct 2010 14:59:01 +0000 (23:59 +0900)]
When finding SerializationMap for resolved type, use type as the key rather than name.

Make the fixed WCF test show more specific failure details.

13 years agoDo not overwrite properly configured ServiceBehaviorElement.Name.
Atsushi Eno [Tue, 5 Oct 2010 09:56:27 +0000 (18:56 +0900)]
Do not overwrite properly configured ServiceBehaviorElement.Name.

13 years agoFix DataContractResolver.ResolveName() support in deserializer. Add roundtrip test.
Atsushi Eno [Tue, 5 Oct 2010 08:43:32 +0000 (17:43 +0900)]
Fix DataContractResolver.ResolveName() support in deserializer. Add roundtrip test.

13 years agoGet List<int> working with XamlXmlReader and XamlObjectWriter.
Atsushi Eno [Tue, 5 Oct 2010 06:37:00 +0000 (15:37 +0900)]
Get List<int> working with XamlXmlReader and XamlObjectWriter.

XamlObjectWriter needs stack of content object list so that List can store items correctly with nested state.
XamlXmlReader now outputs Items, and to handle it I needed special reader states.

13 years ago[asp.net] Fix for bug #643298. A typo prevented the EnableViewStateMac from being...
Marek Habersack [Tue, 5 Oct 2010 06:03:13 +0000 (08:03 +0200)]
[asp.net] Fix for bug #643298. A typo prevented the EnableViewStateMac from being recognized in the Page directive.

13 years agoMake cards_in_range more accurate
Rodrigo Kumpera [Tue, 5 Oct 2010 02:15:22 +0000 (23:15 -0300)]
Make cards_in_range more accurate

13 years agoFix a bunch of issues with cardtable code.
Rodrigo Kumpera [Tue, 5 Oct 2010 02:02:59 +0000 (23:02 -0300)]
Fix a bunch of issues with cardtable code.

* sgen-cardtable.c (sgen_card_table_is_range_marked): Use
card_in_range here since this is used for objects that can
start at the middle of a card.

* sgen-cardtable.c (move_cards_to_shadow_table): Properly
copy the tail bytes of an object that spam around the cardtable.
Don't copy more bytes than required.

* sgen-cardtable.c (sgen_cardtable_scan_object): Add extra_idx
variable that tracks the card offset that we're scanning. This
is required when we wrap around.

* sgen-cardtable.c (sgen_cardtable_scan_object): Properly reset
card_base when at wrap around.

13 years agoKill some dead code and fix a function name
Rodrigo Kumpera [Tue, 5 Oct 2010 01:13:17 +0000 (22:13 -0300)]
Kill some dead code and fix a function name

13 years agoProperly check the ImplMap table.
Rodrigo Kumpera [Tue, 5 Oct 2010 00:20:07 +0000 (21:20 -0300)]
Properly check the ImplMap table.

* loader.c (mono_lookup_pinvoke_call): Don't assert on bad
row indexes.

* metadata-verify.c (verify_implmap_table): Fix the bounds
check for the module table.

Fix #563956

13 years agoFix again.
Martin Baulig [Tue, 5 Oct 2010 00:35:35 +0000 (02:35 +0200)]
Fix again.

13 years agoFix my previous commit.
Martin Baulig [Mon, 4 Oct 2010 23:04:43 +0000 (01:04 +0200)]
Fix my previous commit.

13 years agoDisable System.Configuration on the mobile profiles.
Martin Baulig [Mon, 4 Oct 2010 23:01:11 +0000 (01:01 +0200)]
Disable System.Configuration on the mobile profiles.

13 years agoMap SO_EXCLUSIVEADDRUSE to !SO_REUSEADDR
Gonzalo Paniagua Javier [Mon, 4 Oct 2010 20:15:24 +0000 (16:15 -0400)]
Map SO_EXCLUSIVEADDRUSE to !SO_REUSEADDR

This will make windows app that use that property work on *nix.
Fixes bug #643475.