mono.git
13 years agoMerge branch 'master' of github.com:mono/mono
Zoltan Varga [Fri, 26 Nov 2010 21:28:09 +0000 (16:28 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoRemove unused lmf->ebp field on arm.
Zoltan Varga [Fri, 26 Nov 2010 21:24:23 +0000 (16:24 -0500)]
Remove unused lmf->ebp field on arm.

13 years agoFix typo
Rodrigo Kumpera [Fri, 26 Nov 2010 17:42:05 +0000 (15:42 -0200)]
Fix typo

13 years agoFix those tests so they are verifiable.
Rodrigo Kumpera [Fri, 26 Nov 2010 17:29:47 +0000 (15:29 -0200)]
Fix those tests so they are verifiable.

13 years agoCheck TOS for compatibility with return type.
Rodrigo Kumpera [Fri, 26 Nov 2010 15:44:01 +0000 (13:44 -0200)]
Check TOS for compatibility with return type.

* method-to-ir.c (mono_method_to_ir): Check if TOS
is store compatible with the return type of the
current method.

Fixes #655497

13 years agoHandle dynamic methods inside the verifier.
Rodrigo Kumpera [Fri, 26 Nov 2010 14:31:11 +0000 (12:31 -0200)]
Handle dynamic methods inside the verifier.

* verify.c (mono_verifier_is_enabled_for_method):
A dynamic method has a different wrapper kind than regular
methods.

* verify.c (mono_verifier_is_method_full_trust): Dynamic
methods can't be handled as fulltrust since they don't
store proper origin for verifying it.

* mini.c (mini_assembly_can_skip_verification): Dynamic
methods have a different wrapper kind than regular
methods.

FIxes #655497 under sandbox.

13 years ago[Task] In every TaskFactory method accepting a Task array, we have to make a private...
Jérémie Laval [Fri, 26 Nov 2010 16:52:14 +0000 (16:52 +0000)]
[Task] In every TaskFactory method accepting a Task array, we have to make a private copy to avoid changes to the array content from the moment we register the continuation to when we call the callback

13 years ago[Task] Check if Task isn't finished before going into the Scheduler for Wait
Jérémie Laval [Fri, 26 Nov 2010 16:51:03 +0000 (16:51 +0000)]
[Task] Check if Task isn't finished before going into the Scheduler for Wait

13 years ago[Task] Set continuation status to WaitingForActivation in ContinueWithCore
Jérémie Laval [Fri, 26 Nov 2010 16:50:11 +0000 (16:50 +0000)]
[Task] Set continuation status to WaitingForActivation in ContinueWithCore

13 years ago[Task] Only launch continuation synchronously when the corresponding option in TaskCo...
Jérémie Laval [Fri, 26 Nov 2010 16:49:16 +0000 (16:49 +0000)]
[Task] Only launch continuation synchronously when the corresponding option in TaskContinuationOptions is set

13 years agoRemoved few custom attribute IsDefined calls
Marek Safar [Fri, 26 Nov 2010 15:46:46 +0000 (15:46 +0000)]
Removed few custom attribute IsDefined calls

13 years agoImport constants using their raw values only
Marek Safar [Fri, 26 Nov 2010 12:26:55 +0000 (12:26 +0000)]
Import constants using their raw values only

13 years ago[PLinq] Split long running test in two
Jérémie Laval [Fri, 26 Nov 2010 14:09:38 +0000 (14:09 +0000)]
[PLinq] Split long running test in two

13 years agoAdjust sleeping values
Jérémie Laval [Fri, 26 Nov 2010 14:05:48 +0000 (14:05 +0000)]
Adjust sleeping values

13 years ago[PLinq] Remove double delegate cost when non indexed in SelectMany query node
Jérémie Laval [Fri, 26 Nov 2010 14:05:00 +0000 (14:05 +0000)]
[PLinq] Remove double delegate cost when non indexed in SelectMany query node

13 years agoRemove debugging spew wrongly introduced by earlier commit
Jérémie Laval [Fri, 26 Nov 2010 14:04:04 +0000 (14:04 +0000)]
Remove debugging spew wrongly introduced by earlier commit

13 years agoAvoid parsing of /proc entries on ppc when cross-compiling.
Zoltan Varga [Fri, 26 Nov 2010 11:02:55 +0000 (12:02 +0100)]
Avoid parsing of /proc entries on ppc when cross-compiling.

13 years agoAvoid emitting uninitialized memory into the AOT image.
Zoltan Varga [Fri, 26 Nov 2010 11:02:29 +0000 (12:02 +0100)]
Avoid emitting uninitialized memory into the AOT image.

13 years agoNew test
Marek Safar [Fri, 26 Nov 2010 10:27:27 +0000 (10:27 +0000)]
New test

13 years ago[655766] Encode string null attribute argument
Marek Safar [Fri, 26 Nov 2010 10:21:23 +0000 (10:21 +0000)]
[655766] Encode string null attribute argument

13 years agoCleanup typed constants
Marek Safar [Fri, 26 Nov 2010 09:48:50 +0000 (09:48 +0000)]
Cleanup typed constants

13 years agoSwitch symbol writer to public api
Marek Safar [Fri, 26 Nov 2010 09:07:13 +0000 (09:07 +0000)]
Switch symbol writer to public api

13 years agoMore using cleanup
Marek Safar [Thu, 25 Nov 2010 15:57:16 +0000 (15:57 +0000)]
More using cleanup

13 years agoRemove TypeBuilder from DefineType
Marek Safar [Thu, 25 Nov 2010 14:26:00 +0000 (14:26 +0000)]
Remove TypeBuilder from DefineType

13 years agoUnify System.Reflection usings
Marek Safar [Wed, 24 Nov 2010 20:51:28 +0000 (20:51 +0000)]
Unify System.Reflection usings

13 years agoAdd missing test xml files.
Atsushi Eno [Fri, 26 Nov 2010 08:39:41 +0000 (17:39 +0900)]
Add missing test xml files.

13 years agoAdd List of Type test case, and some FIXMEs.
Atsushi Eno [Fri, 26 Nov 2010 08:38:54 +0000 (17:38 +0900)]
Add List of Type test case, and some FIXMEs.

13 years agoAdd not-working tets for some MarkupExtension wrapper types.
Atsushi Eno [Fri, 26 Nov 2010 07:31:48 +0000 (16:31 +0900)]
Add not-working tets for some MarkupExtension wrapper types.

13 years agoMake Int32.MinValue/-1 throw OverflowException on ppc too.
Zoltan Varga [Fri, 26 Nov 2010 07:08:27 +0000 (08:08 +0100)]
Make Int32.MinValue/-1 throw OverflowException on ppc too.

13 years agoFix the DISABLE_REFLECTION_EMIT build.
Zoltan Varga [Fri, 26 Nov 2010 06:46:28 +0000 (07:46 +0100)]
Fix the DISABLE_REFLECTION_EMIT build.

13 years agoFix crashes inside find_method_in_metadata (). Fixes #561728.
Zoltan Varga [Fri, 26 Nov 2010 06:26:38 +0000 (07:26 +0100)]
Fix crashes inside find_method_in_metadata (). Fixes #561728.

13 years agoDo not add 'zzz' to all DateTime formats blindly. Fixed bug #655089.
Atsushi Eno [Fri, 26 Nov 2010 05:36:31 +0000 (14:36 +0900)]
Do not add 'zzz' to all DateTime formats blindly. Fixed bug #655089.

13 years agoUpdate a http link.
Zoltan Varga [Fri, 26 Nov 2010 03:09:29 +0000 (04:09 +0100)]
Update a http link.

13 years agoUse $build instead of $target in a few places in configure.in, $target is about build...
Zoltan Varga [Fri, 26 Nov 2010 02:44:44 +0000 (03:44 +0100)]
Use $build instead of $target in a few places in configure.in, $target is about building cross compilers, not cross compiling itself.

13 years agoCommit the iphone abi support changes for ARM.
Zoltan Varga [Fri, 26 Nov 2010 02:41:29 +0000 (03:41 +0100)]
Commit the iphone abi support changes for ARM.

13 years agoSimplify the arm prolog/epilog generation by not saving the sp to the stack, its...
Zoltan Varga [Fri, 26 Nov 2010 02:09:19 +0000 (03:09 +0100)]
Simplify the arm prolog/epilog generation by not saving the sp to the stack, its not needed.

13 years agoImplement frame pointer elimination for arm.
Zoltan Varga [Fri, 26 Nov 2010 00:25:22 +0000 (01:25 +0100)]
Implement frame pointer elimination for arm.

13 years agoFix stack alignment when resuming from a signal handler in the soft debugger. Fixes...
Zoltan Varga [Thu, 25 Nov 2010 22:31:25 +0000 (23:31 +0100)]
Fix stack alignment when resuming from a signal handler in the soft debugger. Fixes #647464.

13 years agoAdd regression test for #655741
Rodrigo Kumpera [Thu, 25 Nov 2010 22:22:56 +0000 (20:22 -0200)]
Add regression test for #655741

13 years agoHandle abstract methods in Delegate::CreateDelegate.
Rodrigo Kumpera [Thu, 25 Nov 2010 22:11:44 +0000 (20:11 -0200)]
Handle abstract methods in Delegate::CreateDelegate.

* icall.c (ves_icall_System_Delegate_CreateDelegate_internal):
CreateDelegate can be called with an abstract method in a
similar fashion to how ldvirtftn works.

Fixes #655741

13 years agoFix another place.
Zoltan Varga [Thu, 25 Nov 2010 21:50:12 +0000 (22:50 +0100)]
Fix another place.

13 years agoThrow an OverflowException on Int32.MinValue/-1 when using the JIT icall too.
Zoltan Varga [Thu, 25 Nov 2010 21:48:20 +0000 (22:48 +0100)]
Throw an OverflowException on Int32.MinValue/-1 when using the JIT icall too.

13 years agoFix a bug introduced by the last change to mono_marshal_get_virtual_stelemref ()...
Zoltan Varga [Thu, 25 Nov 2010 21:37:04 +0000 (22:37 +0100)]
Fix a bug introduced by the last change to mono_marshal_get_virtual_stelemref () in r038598e503d3db631224288ca5295988c3d22288.

13 years agoAdd regression test for #655847
Rodrigo Kumpera [Thu, 25 Nov 2010 16:25:18 +0000 (14:25 -0200)]
Add regression test for #655847

13 years agoHandle invalid instantiation of generic methods.
Rodrigo Kumpera [Thu, 25 Nov 2010 16:23:31 +0000 (14:23 -0200)]
Handle invalid instantiation of generic methods.

* verify.c: Add new function to internal verifier API to check
method instantiations.

* reflection.c (mono_reflection_bind_generic_method_parameters):
Check the instantiation before returning it.

Fixes #655847

13 years agoFix argument name on the exception
Rodrigo Kumpera [Thu, 25 Nov 2010 16:23:11 +0000 (14:23 -0200)]
Fix argument name on the exception

13 years agoAdd regression test for #655669
Rodrigo Kumpera [Thu, 25 Nov 2010 14:27:40 +0000 (12:27 -0200)]
Add regression test for #655669

13 years agoStore the domain id of weak references.
Rodrigo Kumpera [Thu, 25 Nov 2010 14:26:45 +0000 (12:26 -0200)]
Store the domain id  of weak references.

* gc.c (alloc_handle): Set domain_ids if it's a weak ref handle.

* gc.c (mono_gchandle_set_target): Ditto.

Fixes #655669

13 years agoRemove extra CWL.
Atsushi Eno [Thu, 25 Nov 2010 03:26:50 +0000 (12:26 +0900)]
Remove extra CWL.

13 years agoAdd refresh XamlObjectWriter implementation.
Atsushi Eno [Thu, 25 Nov 2010 03:24:35 +0000 (12:24 +0900)]
Add refresh XamlObjectWriter implementation.

This writer can process a lot more xaml inputs. It is now unified to
XamlXmlWriter, sharing some internals (already existed in XamlXmlWriter.cs).

Had to disable a few minor tests that used to pass for invalid inputs.

13 years agoMore changes for XamlObjectWriter unification.
Atsushi Eno [Thu, 25 Nov 2010 03:24:06 +0000 (12:24 +0900)]
More changes for XamlObjectWriter unification.

13 years agoEliminate XamlObjectWriter-dependent test lines.
Atsushi Eno [Thu, 25 Nov 2010 03:23:33 +0000 (12:23 +0900)]
Eliminate XamlObjectWriter-dependent test lines.

13 years agoParseNameList() failed to parse nested generic type names.
Atsushi Eno [Thu, 25 Nov 2010 02:29:35 +0000 (11:29 +0900)]
ParseNameList() failed to parse nested generic type names.

13 years agoRecover from broken for statement
Marek Safar [Wed, 24 Nov 2010 20:25:34 +0000 (20:25 +0000)]
Recover from broken for statement

13 years agoInflate imported type arguments types with type definition type arguments
Marek Safar [Wed, 24 Nov 2010 17:02:24 +0000 (17:02 +0000)]
Inflate imported type arguments types with type definition type arguments

13 years agoPort mcs/tests to cecil-light
Jb Evain [Wed, 24 Nov 2010 17:32:49 +0000 (18:32 +0100)]
Port mcs/tests to cecil-light

13 years agoAdd a fast path in EnumerablePartitioner for strip partitioning
Jérémie Laval [Wed, 24 Nov 2010 17:21:17 +0000 (17:21 +0000)]
Add a fast path in EnumerablePartitioner for strip partitioning

13 years ago[PLinq] Remove layer of unneeded indirections in OrderingEnumerator
Jérémie Laval [Wed, 24 Nov 2010 17:20:27 +0000 (17:20 +0000)]
[PLinq] Remove layer of unneeded indirections in OrderingEnumerator

13 years ago[PLinq] Fix the mess out of SelectMany node and speed it up (avoid Tuples creation)
Jérémie Laval [Wed, 24 Nov 2010 17:18:14 +0000 (17:18 +0000)]
[PLinq] Fix the mess out of SelectMany node and speed it up (avoid Tuples creation)

13 years ago[PLinq] Improve Where query node speed by avoiding creation of dozen of Tuples everyt...
Jérémie Laval [Wed, 24 Nov 2010 17:11:15 +0000 (17:11 +0000)]
[PLinq] Improve Where query node speed by avoiding creation of dozen of Tuples everytime and instead use static struct

13 years agoFix broken free call.
Rodrigo Kumpera [Wed, 24 Nov 2010 17:06:27 +0000 (15:06 -0200)]
Fix broken free call.

* class.c (mono_class_setup_interfaces): Don't free
MonoClass::interfaces on failure since this is now
allocated from a mempool.

Fixes #655749

13 years ago[Linker] fix the moonlight tuning wrt debug symbols
Jb Evain [Wed, 24 Nov 2010 16:13:40 +0000 (17:13 +0100)]
[Linker] fix the moonlight tuning wrt debug symbols

13 years ago[Linker] properly read symbols
Jb Evain [Wed, 24 Nov 2010 15:27:44 +0000 (16:27 +0100)]
[Linker] properly read symbols

13 years agoMerge branch 'master' of github.com:mono/mono
Atsushi Eno [Wed, 24 Nov 2010 15:16:30 +0000 (00:16 +0900)]
Merge branch 'master' of github.com:mono/mono

13 years ago[Linker] fix custom AssemblyResolver
Jb Evain [Wed, 24 Nov 2010 15:15:20 +0000 (16:15 +0100)]
[Linker]  fix custom AssemblyResolver

13 years agoParse() and ToString() array type name correctly.
Atsushi Eno [Wed, 24 Nov 2010 15:15:10 +0000 (00:15 +0900)]
Parse() and ToString() array type name correctly.

13 years ago[Linker] refactorize how symbols are loaded
Jb Evain [Wed, 24 Nov 2010 14:28:44 +0000 (15:28 +0100)]
[Linker] refactorize how symbols are loaded

13 years agoAdd overloads to IAssemblyResolver.Resolve which take a ReaderParameters for better...
Jb Evain [Wed, 24 Nov 2010 14:21:39 +0000 (15:21 +0100)]
Add overloads to IAssemblyResolver.Resolve which take a ReaderParameters for better control

13 years ago[Sockets] Support Remote/LocalEndPoint for AF_UNIX
Gonzalo Paniagua Javier [Wed, 24 Nov 2010 05:47:51 +0000 (00:47 -0500)]
[Sockets] Support Remote/LocalEndPoint for AF_UNIX

We were not handling correctly the AF_UNIX family when getting the
socket name or the peer name.

Fixes bug #655637.

13 years ago[Moon] Speed up the moonlight build by stripping it down to the bare basics
Andreia Gaita [Wed, 24 Nov 2010 04:13:22 +0000 (04:13 +0000)]
[Moon] Speed up the moonlight build by stripping it down to the bare basics

13 years agoMake some changes to the stack overflow handling code so it works to some degree...
Zoltan Varga [Wed, 24 Nov 2010 03:50:22 +0000 (04:50 +0100)]
Make some changes to the stack overflow handling code so it works to some degree even if the kernel doesn't give us the fault address.

13 years agoDisable a test which exposes mcs bug #646744.
Zoltan Varga [Wed, 24 Nov 2010 03:49:42 +0000 (04:49 +0100)]
Disable a test which exposes mcs bug #646744.

13 years agoHandle another case of binding to first arg of static method.
Rodrigo Kumpera [Tue, 23 Nov 2010 20:52:13 +0000 (18:52 -0200)]
Handle another case of binding to first arg of static method.

* Delegate.cs (CreateDelegate): Fix visibility and make
sure that we fail to bind to first argument of static
arguments to overloads that don't pass it.

* DelegateTest.cs: Add tests for the previous change.

Fixes #655439

13 years agoFix corlib testsuite crash.
Rodrigo Kumpera [Tue, 23 Nov 2010 20:51:22 +0000 (18:51 -0200)]
Fix corlib testsuite crash.

* icall.c (ves_icall_Type_MakeGenericType): We can inflate
into the gtd and the verifier function is not able to handle
it.

13 years agoFix typo.
Rodrigo Kumpera [Tue, 23 Nov 2010 18:45:43 +0000 (16:45 -0200)]
Fix typo.

13 years agoFix some array overflow bugs
Rodrigo Kumpera [Tue, 23 Nov 2010 18:23:54 +0000 (16:23 -0200)]
Fix some array overflow bugs

13 years agoRemove typeof comparisons
Marek Safar [Tue, 23 Nov 2010 17:34:27 +0000 (17:34 +0000)]
Remove typeof comparisons

13 years agoRemove typeof usage from DefaultCharSet
Marek Safar [Mon, 22 Nov 2010 19:25:47 +0000 (19:25 +0000)]
Remove typeof usage from DefaultCharSet

13 years agoCheck generic instantions for constraint violations.
Rodrigo Kumpera [Tue, 23 Nov 2010 14:18:35 +0000 (12:18 -0200)]
Check generic instantions for constraint violations.

* class.c (mono_class_init): Check instantiations of generic
instances.

* icall.c (ves_icall_Type_MakeGenericType): Ditto.

* verify.c: Add mono_verifier_class_is_valid_generic_instantiation
to the internal API so generic instances can be checked.

Fixes #654136

13 years agoRemove the processing of the Cecil docs
Jb Evain [Tue, 23 Nov 2010 14:02:23 +0000 (15:02 +0100)]
Remove the processing of the Cecil docs

13 years agoMore linker fixes for moonlight
Jb Evain [Tue, 23 Nov 2010 11:14:23 +0000 (12:14 +0100)]
More linker fixes for moonlight

13 years agoFix ReaderWriterLockSlim Exit methods in SupportsRecursion mode and add corresponding...
Jérémie Laval [Tue, 23 Nov 2010 10:59:07 +0000 (10:59 +0000)]
Fix ReaderWriterLockSlim Exit methods in SupportsRecursion mode and add corresponding unit tests

13 years agoRemove dead code
Jb Evain [Tue, 23 Nov 2010 10:17:06 +0000 (11:17 +0100)]
Remove dead code

13 years agoFix sweeping of nested types
Jb Evain [Tue, 23 Nov 2010 10:12:44 +0000 (11:12 +0100)]
Fix sweeping of nested types

13 years agoFix corlib type lookup
Jb Evain [Tue, 23 Nov 2010 10:11:20 +0000 (11:11 +0100)]
Fix corlib type lookup

13 years agoDisable a PS3 test, fix up the argument processing in the Test Driver.
Zoltan Varga [Tue, 23 Nov 2010 00:20:56 +0000 (01:20 +0100)]
Disable a PS3 test, fix up the argument processing in the Test Driver.

13 years agoMerge branch 'cecil-light'
Jb Evain [Mon, 22 Nov 2010 23:37:13 +0000 (00:37 +0100)]
Merge branch 'cecil-light'

13 years agoFacilitate the merge
Jb Evain [Mon, 22 Nov 2010 23:28:22 +0000 (00:28 +0100)]
Facilitate the merge

13 years agoRemove IVT from System.ServiceModel on MonoDroid, MonoTouch profiles.
Jonathan Pryor [Mon, 22 Nov 2010 22:30:15 +0000 (17:30 -0500)]
Remove IVT from System.ServiceModel on MonoDroid, MonoTouch profiles.

This is ~identical to commit a3ba2ab7a091b96c9e8917aab9bd9ad042a5d639,
just applied to the MonoDroid and MonoTouch profiles.

Furthermore, without this patch the MonoDroid & MonoTouch profiles fail to
build, as current versions of mcs (nicely) attempt to verify that the output
assembly name matches the IVT of a referenced assembly, which isn't possible
when System.Xml.dll has an IVT entry for System.ServiceModel.Web.dll which
differs from System.ServiceModel.dll's IVT entry for
System.ServiceModel.Web.dll.

13 years agoRemove IVT from System.ServiceModel on Moonlight profile
Sebastien Pouliot [Mon, 22 Nov 2010 19:54:56 +0000 (14:54 -0500)]
Remove IVT from System.ServiceModel on Moonlight profile

* AssemblyInfo.cs: Remove IVT from System.ServiceModel on Moonlight
profile since SL use a different public key and it is not required
for the limited build provided by SL.

13 years agoImprove fallback SpinWait to include the initial logic of SpinWait
Jérémie Laval [Mon, 22 Nov 2010 13:48:38 +0000 (13:48 +0000)]
Improve fallback SpinWait to include the initial logic of SpinWait

13 years agoPlug SplitOrderedList inside TemplateControl.
Jérémie Laval [Fri, 12 Nov 2010 15:50:07 +0000 (15:50 +0000)]
Plug SplitOrderedList inside TemplateControl.

13 years agoDefine more correctly
Jérémie Laval [Fri, 12 Nov 2010 15:49:31 +0000 (15:49 +0000)]
Define more correctly

13 years agoAdd a default implementation of SpinWait when SplitOrderedList is built with Sys...
Jérémie Laval [Fri, 12 Nov 2010 15:46:55 +0000 (15:46 +0000)]
Add a default implementation of SpinWait when SplitOrderedList is built with Sys.Web 2.0 and add it to the build

13 years agoFix a memory leak.
Zoltan Varga [Mon, 22 Nov 2010 17:48:16 +0000 (18:48 +0100)]
Fix a memory leak.

13 years agoDon't multiply fixed buffer size (it's done by runtime). Fixes #654058
Marek Safar [Mon, 22 Nov 2010 17:37:12 +0000 (17:37 +0000)]
Don't multiply fixed buffer size (it's done by runtime). Fixes #654058

13 years agoRemoved SetCharSet
Marek Safar [Mon, 22 Nov 2010 16:50:33 +0000 (16:50 +0000)]
Removed SetCharSet

13 years agoEmit fixed buffers using standard api only
Marek Safar [Mon, 22 Nov 2010 16:49:47 +0000 (16:49 +0000)]
Emit fixed buffers using standard api only

13 years agoFix retrieving of StructLayoutAttribute.Pack
Marek Safar [Mon, 22 Nov 2010 16:37:36 +0000 (16:37 +0000)]
Fix retrieving of StructLayoutAttribute.Pack

13 years agogroup all fixed buffer tests
Marek Safar [Mon, 22 Nov 2010 15:18:12 +0000 (15:18 +0000)]
group all fixed buffer tests