Paolo Molaro [Tue, 30 Nov 2010 10:05:18 +0000 (11:05 +0100)]
Log profiler: BSD/win32 portability fixes.
Atsushi Eno [Tue, 30 Nov 2010 09:22:11 +0000 (18:22 +0900)]
Call GetObject only once per current member.
Previous code was errorneous if there is an array inside a collection.
Atsushi Eno [Tue, 30 Nov 2010 06:45:43 +0000 (15:45 +0900)]
Fill List's implementation details gap.
Atsushi Eno [Tue, 30 Nov 2010 06:40:19 +0000 (15:40 +0900)]
Do not retrive properties with get parameters (indexers).
Atsushi Eno [Tue, 30 Nov 2010 06:20:03 +0000 (15:20 +0900)]
Add another test xml file.
Atsushi Eno [Tue, 30 Nov 2010 06:19:09 +0000 (15:19 +0900)]
Add another reader/writer test, for List of Array.
Atsushi Eno [Tue, 30 Nov 2010 05:48:47 +0000 (14:48 +0900)]
Renamed test files.
Atsushi Eno [Tue, 30 Nov 2010 05:45:17 +0000 (14:45 +0900)]
Extract XamlObjectReaderTest class into another file. Files are to be renamed.
Sebastien Pouliot [Tue, 30 Nov 2010 03:21:52 +0000 (22:21 -0500)]
Fix randomly failing unit test
* MachineKeySectionUtilsTest.cs: Do not assume xor will change a byte
Jb Evain [Mon, 29 Nov 2010 21:51:38 +0000 (22:51 +0100)]
Add MakeBinary test for ArrayIndex expressions
Daniel Sell [Mon, 29 Nov 2010 21:49:31 +0000 (22:49 +0100)]
Fix Expression.MakeBinary so it can return ArrayIndex nodes
Rodrigo Kumpera [Mon, 29 Nov 2010 21:58:08 +0000 (19:58 -0200)]
Don't allow zero index tokens on IL streams.
* verify.c (token_bounds_check): Check if token index is zero.
Fixes #651682
Marek Safar [Mon, 29 Nov 2010 18:41:24 +0000 (18:41 +0000)]
Check imported custom attributes based on name only
Marek Safar [Mon, 29 Nov 2010 16:15:14 +0000 (16:15 +0000)]
Made type member kind logic more flexible
Marek Safar [Mon, 29 Nov 2010 14:57:02 +0000 (14:57 +0000)]
Don't special case value type constraint
Marek Safar [Mon, 29 Nov 2010 12:52:58 +0000 (12:52 +0000)]
Add sanity check for imported static fixed buffer
Rodrigo Kumpera [Mon, 29 Nov 2010 21:25:57 +0000 (19:25 -0200)]
Remove some junk I left by accident
Rodrigo Kumpera [Mon, 29 Nov 2010 21:20:42 +0000 (19:20 -0200)]
Fix crasher in core clr security.
* security-core-clr.c (get_default_ctor): Handle nulls in
MonoClass::methods.
Fixes #569542
Rodrigo Kumpera [Mon, 29 Nov 2010 21:06:54 +0000 (19:06 -0200)]
Don't mono_class_init when creating a token.
* reflection.c (mono_image_create_token): Don't mono_class_init
here as it's not needed and break mcs for cases doing
typeof() over broken types.
Fixes a TLE in #653211
Rodrigo Kumpera [Mon, 29 Nov 2010 20:13:31 +0000 (18:13 -0200)]
WIP
Mark Probst [Thu, 25 Nov 2010 14:08:32 +0000 (15:08 +0100)]
[sgen] Recompute heap boundaries at each major collection.
Previously we updated heap boundaries when a new block was allocated,
but no updates were performed for freed blocks, resulting in a
constant increase in the heap boundaries which can lead to unnecessary
work during pinning.
Now we recompute the heap boundaries during the sweep phase at each
major collection.
Zoltan Varga [Mon, 29 Nov 2010 16:34:10 +0000 (17:34 +0100)]
Fix amd64 build.
Paolo Molaro [Mon, 29 Nov 2010 16:16:07 +0000 (17:16 +0100)]
Forgot old header file in profiler.c.
Paolo Molaro [Mon, 29 Nov 2010 16:12:58 +0000 (17:12 +0100)]
Make dist fixed in profiler.
Rodrigo Kumpera [Mon, 29 Nov 2010 16:22:04 +0000 (14:22 -0200)]
Fix a crash on MassTransit.
* class.c (make_generic_param_class): Don't assert if parent
is broken.
Fixes #653211
Robert Nagy [Mon, 29 Nov 2010 14:56:37 +0000 (15:56 +0100)]
Add support for the internal boehm-gc on OpenBSD
Robert Nagy [Mon, 29 Nov 2010 14:53:41 +0000 (15:53 +0100)]
Add support for the internal boehm-gc on OpenBSD
Paolo Molaro [Mon, 29 Nov 2010 15:15:41 +0000 (16:15 +0100)]
Profiler: reomved the old builtin default profiler.
The new log profiler is now used automatically instead of the old
default profiler.
Paolo Molaro [Mon, 29 Nov 2010 15:14:06 +0000 (16:14 +0100)]
M linux performance counters.
Added missing file for
Atsushi Eno [Mon, 29 Nov 2010 15:10:36 +0000 (00:10 +0900)]
Support attribute validation.
Atsushi Eno [Mon, 29 Nov 2010 15:09:13 +0000 (00:09 +0900)]
Use AttributeSchemaType as it is 2.0 API. This fixes incorrectly skipped type validation.
Atsushi Eno [Mon, 29 Nov 2010 15:08:40 +0000 (00:08 +0900)]
Handle more type conversion.
Paolo Molaro [Mon, 29 Nov 2010 14:44:21 +0000 (15:44 +0100)]
Log profiler: portability checks.
Paolo Molaro [Mon, 29 Nov 2010 11:04:23 +0000 (12:04 +0100)]
Log profiler: added statistical sampling mode.
* man/mprof-report.1, log-profiler.txt: updated the documentation.
* decode.c: added jit report and sample report.
* proflog.h, proflog.c: implemented statistical sampling mode, using
either the mono built-in signal based sampling and the Linux
perforamnce counters perf subsystem. Unmanaged symbols are
currently available for ELF systems implementing dl_iterate_phdr()
or systems implementing dladdr().
Atsushi Eno [Mon, 29 Nov 2010 12:39:16 +0000 (21:39 +0900)]
Implemented XDocument.Validate().
Atsushi Eno [Mon, 29 Nov 2010 12:36:50 +0000 (21:36 +0900)]
Return different instances of XmlSchemaInfo for each validated node in XmlSchemaValidatingReader.
Atsushi Eno [Mon, 29 Nov 2010 11:33:55 +0000 (20:33 +0900)]
TypeExtension and StaticExtension should now be correctly written and read.
Atsushi Eno [Mon, 29 Nov 2010 07:13:46 +0000 (16:13 +0900)]
Refactoring Instance handling for consistent MarkupExtension reading.
Removed tricky GetWrappedValue() while attempting to reduce its use (could
totally remove it out) to identify which parts these readers and writers need
it. Now It is in TypeExtensionMethods. Still needs fix for StaticExtension.
Add another tricky test case: List of Array (not working) which also involves
MarkupExtension.
Miguel de Icaza [Sun, 28 Nov 2010 16:14:52 +0000 (11:14 -0500)]
Awesome doc contributions from Adrian Kummerlaender
Miguel de Icaza [Sun, 28 Nov 2010 16:12:38 +0000 (11:12 -0500)]
Awesome doc contributions from Adrian Kummerlaender
Rodrigo Kumpera [Sat, 27 Nov 2010 18:11:46 +0000 (16:11 -0200)]
Enable test for #318677
Rodrigo Kumpera [Sat, 27 Nov 2010 17:26:46 +0000 (15:26 -0200)]
Handle fallthru to out of line blocks.
* mini.c (mini_method_compile): Add a BR to all basic blocks
that fallthru blocks that are out of line.
* branch-opts.c (mono_optimize_branches): Don't eliminate
a BR to the next block if is out of line.
Fixes #318677
Zoltan Varga [Sat, 27 Nov 2010 08:17:24 +0000 (09:17 +0100)]
Disable finally_guard.exe on amd64 until it is fixed.
Rodrigo Kumpera [Sat, 27 Nov 2010 05:20:29 +0000 (03:20 -0200)]
Fix corlib regression
Rodrigo Kumpera [Sat, 27 Nov 2010 05:05:50 +0000 (03:05 -0200)]
Remove some culture caching dead code
Rodrigo Kumpera [Sat, 27 Nov 2010 04:52:13 +0000 (02:52 -0200)]
Move culture handling to Thread from InternalThread.
* Thread.cs: Move culture data from InternalThread to Thread
and thus completely avoid the whole caching and serialization
nightmare. Even thou this is a cleanup it should speed up
multi-appdomain setups.
* threads.c: Remove culture caching machinery.
* icall-def.h: Ditto.
Fixes #318750 as a byproduct.
Zoltan Varga [Sat, 27 Nov 2010 02:59:53 +0000 (03:59 +0100)]
Fix an aot crash if field->type is not initialized.
Rodrigo Kumpera [Sat, 27 Nov 2010 02:13:33 +0000 (00:13 -0200)]
Add regression test for #317488
Rodrigo Kumpera [Sat, 27 Nov 2010 02:00:19 +0000 (00:00 -0200)]
Handle another extension to delegates.
* mini-trampolines.c (mono_delegate_trampoline): Handle the
case of a delegate created with ldftn on which the method token
points to an abstract method. This case behaves in the same way
as ldvirtftn.
Fixes #317488
Zoltan Varga [Sat, 27 Nov 2010 01:31:05 +0000 (02:31 +0100)]
Throw an exception if a custom attr cannot be decoded. Fixes #656058.
Zoltan Varga [Sat, 27 Nov 2010 00:53:58 +0000 (01:53 +0100)]
Update the help message for --verify-all.
Zoltan Varga [Fri, 26 Nov 2010 21:43:52 +0000 (22:43 +0100)]
Define MONO_ARCH_INIT_TOP_LMF_ENTRY for all architectures.
Zoltan Varga [Fri, 26 Nov 2010 21:28:09 +0000 (16:28 -0500)]
Merge branch 'master' of github.com:mono/mono
Zoltan Varga [Fri, 26 Nov 2010 21:24:23 +0000 (16:24 -0500)]
Remove unused lmf->ebp field on arm.
Rodrigo Kumpera [Fri, 26 Nov 2010 17:42:05 +0000 (15:42 -0200)]
Fix typo
Rodrigo Kumpera [Fri, 26 Nov 2010 17:29:47 +0000 (15:29 -0200)]
Fix those tests so they are verifiable.
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
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.
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
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
Jérémie Laval [Fri, 26 Nov 2010 16:50:11 +0000 (16:50 +0000)]
[Task] Set continuation status to WaitingForActivation in ContinueWithCore
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
Marek Safar [Fri, 26 Nov 2010 15:46:46 +0000 (15:46 +0000)]
Removed few custom attribute IsDefined calls
Marek Safar [Fri, 26 Nov 2010 12:26:55 +0000 (12:26 +0000)]
Import constants using their raw values only
Jérémie Laval [Fri, 26 Nov 2010 14:09:38 +0000 (14:09 +0000)]
[PLinq] Split long running test in two
Jérémie Laval [Fri, 26 Nov 2010 14:05:48 +0000 (14:05 +0000)]
Adjust sleeping values
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
Jérémie Laval [Fri, 26 Nov 2010 14:04:04 +0000 (14:04 +0000)]
Remove debugging spew wrongly introduced by earlier commit
Zoltan Varga [Fri, 26 Nov 2010 11:02:55 +0000 (12:02 +0100)]
Avoid parsing of /proc entries on ppc when cross-compiling.
Zoltan Varga [Fri, 26 Nov 2010 11:02:29 +0000 (12:02 +0100)]
Avoid emitting uninitialized memory into the AOT image.
Marek Safar [Fri, 26 Nov 2010 10:27:27 +0000 (10:27 +0000)]
New test
Marek Safar [Fri, 26 Nov 2010 10:21:23 +0000 (10:21 +0000)]
[655766] Encode string null attribute argument
Marek Safar [Fri, 26 Nov 2010 09:48:50 +0000 (09:48 +0000)]
Cleanup typed constants
Marek Safar [Fri, 26 Nov 2010 09:07:13 +0000 (09:07 +0000)]
Switch symbol writer to public api
Marek Safar [Thu, 25 Nov 2010 15:57:16 +0000 (15:57 +0000)]
More using cleanup
Marek Safar [Thu, 25 Nov 2010 14:26:00 +0000 (14:26 +0000)]
Remove TypeBuilder from DefineType
Marek Safar [Wed, 24 Nov 2010 20:51:28 +0000 (20:51 +0000)]
Unify System.Reflection usings
Atsushi Eno [Fri, 26 Nov 2010 08:39:41 +0000 (17:39 +0900)]
Add missing test xml files.
Atsushi Eno [Fri, 26 Nov 2010 08:38:54 +0000 (17:38 +0900)]
Add List of Type test case, and some FIXMEs.
Atsushi Eno [Fri, 26 Nov 2010 07:31:48 +0000 (16:31 +0900)]
Add not-working tets for some MarkupExtension wrapper types.
Zoltan Varga [Fri, 26 Nov 2010 07:08:27 +0000 (08:08 +0100)]
Make Int32.MinValue/-1 throw OverflowException on ppc too.
Zoltan Varga [Fri, 26 Nov 2010 06:46:28 +0000 (07:46 +0100)]
Fix the DISABLE_REFLECTION_EMIT build.
Zoltan Varga [Fri, 26 Nov 2010 06:26:38 +0000 (07:26 +0100)]
Fix crashes inside find_method_in_metadata (). Fixes #561728.
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.
Zoltan Varga [Fri, 26 Nov 2010 03:09:29 +0000 (04:09 +0100)]
Update a http link.
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.
Zoltan Varga [Fri, 26 Nov 2010 02:41:29 +0000 (03:41 +0100)]
Commit the iphone abi support changes for ARM.
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.
Zoltan Varga [Fri, 26 Nov 2010 00:25:22 +0000 (01:25 +0100)]
Implement frame pointer elimination for arm.
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.
Rodrigo Kumpera [Thu, 25 Nov 2010 22:22:56 +0000 (20:22 -0200)]
Add regression test for #655741
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
Zoltan Varga [Thu, 25 Nov 2010 21:50:12 +0000 (22:50 +0100)]
Fix another place.
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.
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.
Rodrigo Kumpera [Thu, 25 Nov 2010 16:25:18 +0000 (14:25 -0200)]
Add regression test for #655847
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
Rodrigo Kumpera [Thu, 25 Nov 2010 16:23:11 +0000 (14:23 -0200)]
Fix argument name on the exception
Rodrigo Kumpera [Thu, 25 Nov 2010 14:27:40 +0000 (12:27 -0200)]
Add regression test for #655669
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