mono.git
12 years agoFixed SKEL_DIRECTORY pre-processor definition in Release build of jay2010.vcxproj
Spencer Hakim [Wed, 20 Jul 2011 14:37:46 +0000 (10:37 -0400)]
Fixed SKEL_DIRECTORY pre-processor definition in Release build of jay2010.vcxproj

12 years agoEnsure the linker can eliminate most CAS-related types in the MOBILE-based profiles
Sebastien Pouliot [Wed, 20 Jul 2011 12:12:49 +0000 (08:12 -0400)]
Ensure the linker can eliminate most CAS-related types in the MOBILE-based profiles

12 years agoEnsure the linker can eliminate the *RequestCreator code without extra instructions.
Sebastien Pouliot [Wed, 20 Jul 2011 11:58:29 +0000 (07:58 -0400)]
Ensure the linker can eliminate the *RequestCreator code without extra instructions.

12 years agoHonour command line checked option during emit phase
Marek Safar [Wed, 20 Jul 2011 08:03:11 +0000 (09:03 +0100)]
Honour command line checked option during emit phase

12 years agoType matching is fun
Geoff Norton [Wed, 20 Jul 2011 02:33:09 +0000 (22:33 -0400)]
Type matching is fun

12 years agoinfo->signal does not exist on MACH either
Geoff Norton [Wed, 20 Jul 2011 02:28:17 +0000 (22:28 -0400)]
info->signal does not exist on MACH either

12 years agoinfo->stop_count does not exist on MACH
Geoff Norton [Wed, 20 Jul 2011 02:27:01 +0000 (22:27 -0400)]
info->stop_count does not exist on MACH

12 years agoFix build
Miguel de Icaza [Tue, 19 Jul 2011 23:35:08 +0000 (19:35 -0400)]
Fix build

12 years agoNew function: mono_valloc_aligned().
Mark Probst [Tue, 19 Jul 2011 16:48:12 +0000 (18:48 +0200)]
New function: mono_valloc_aligned().

Some platforms have APIs for this, so it makes sense to
use them instead of our wasteful approach of allocing more
memory and then freeing off the edges.

12 years ago[sgen] rehash_roots() must take an int, not a boolean.
Mark Probst [Tue, 19 Jul 2011 15:48:35 +0000 (17:48 +0200)]
[sgen] rehash_roots() must take an int, not a boolean.

12 years ago[sgen] Use g_usleep() instead of usleep().
Mark Probst [Tue, 19 Jul 2011 12:51:38 +0000 (14:51 +0200)]
[sgen] Use g_usleep() instead of usleep().

12 years ago[sgen] Include config.h in all of SGen's compilation units.
Mark Probst [Tue, 19 Jul 2011 11:57:55 +0000 (13:57 +0200)]
[sgen] Include config.h in all of SGen's compilation units.

12 years agoAdd System.Data.Services.Client to monotouch and monodroid profiles.
Jonathan Pryor [Tue, 19 Jul 2011 16:01:08 +0000 (12:01 -0400)]
Add System.Data.Services.Client to monotouch and monodroid profiles.

12 years agoremove unrequired using clauses
Sebastien Pouliot [Tue, 19 Jul 2011 14:34:31 +0000 (10:34 -0400)]
remove unrequired using clauses

12 years agoavoid potential InvalidCastException when we already deal with bad/non-present extens...
Sebastien Pouliot [Thu, 14 Jul 2011 20:40:41 +0000 (16:40 -0400)]
avoid potential InvalidCastException when we already deal with bad/non-present extensions (reduce error message when -E:all is used)

12 years agoFix resolving referenced extension methods used in nested namespace
Marek Safar [Tue, 19 Jul 2011 13:34:50 +0000 (14:34 +0100)]
Fix resolving referenced extension methods used in nested namespace

12 years agoEmit valid code for nullable mutators used as an expression
Marek Safar [Tue, 19 Jul 2011 07:55:52 +0000 (08:55 +0100)]
Emit valid code for nullable mutators used as an expression

12 years agoAwait support for more expressions
Marek Safar [Fri, 15 Jul 2011 15:08:36 +0000 (16:08 +0100)]
Await support for more expressions

12 years agofix build regarding ContentType.
Atsushi Eno [Tue, 19 Jul 2011 00:05:27 +0000 (09:05 +0900)]
fix build regarding ContentType.

12 years agoFix the altstack check so it works under osx.
Rodrigo Kumpera [Mon, 18 Jul 2011 18:38:35 +0000 (15:38 -0300)]
Fix the altstack check so it works under osx.

12 years agoDo some portability adjustments so altstack works on osx.
Rodrigo Kumpera [Mon, 18 Jul 2011 18:42:45 +0000 (15:42 -0300)]
Do some portability adjustments so altstack works on osx.

* mini-exceptions.c (mono_setup_altstack): Use stack_t instead
of struct sigaltstack. Don't set ss_flags as OSX doesn't like it.

* mini-exceptions.c (mono_free_altstack): Use stack_t instead
of struct sigaltstack.

12 years agoOn OSX do SIGBUS on altstack as well since it's used for *0.
Rodrigo Kumpera [Mon, 18 Jul 2011 18:13:16 +0000 (15:13 -0300)]
On OSX do SIGBUS on altstack as well since it's used for *0.

12 years agoHandle altstack exceptions in a more portable way on x86.
Rodrigo Kumpera [Mon, 18 Jul 2011 18:09:15 +0000 (15:09 -0300)]
Handle altstack exceptions in a more portable way on x86.

* exceptions-x86.c (mono_arch_handle_altstack_exception): Push a
MonoContext to the stack instead of an ucontext. It's smaller
and more portable since we don't have to bother with internal
pointers.

12 years agoFix stack overflow code to work under darwin-x86.
Rodrigo Kumpera [Sun, 17 Jul 2011 16:42:34 +0000 (13:42 -0300)]
Fix stack overflow code to work under darwin-x86.

* mini-x86.h: Respect MINSIGSTKSZ under OSX.

* mini-amd64.h: Ditto.

12 years agoFix mono_thread_get_stack_bounds thread bounds.
Rodrigo Kumpera [Sun, 17 Jul 2011 01:32:10 +0000 (22:32 -0300)]
Fix mono_thread_get_stack_bounds thread bounds.

12 years ago[sgen] Use ptrdiff_t instead of ssize_t.
Mark Probst [Mon, 18 Jul 2011 17:59:45 +0000 (19:59 +0200)]
[sgen] Use ptrdiff_t instead of ssize_t.

12 years ago[sgen] Move all signal stuff into sgen-os-posix.c.
Mark Probst [Mon, 18 Jul 2011 17:58:11 +0000 (19:58 +0200)]
[sgen] Move all signal stuff into sgen-os-posix.c.

This might make Mach stop working or uncompilable.

12 years ago[gc] Don't do unaligned loads in mono_gc_memmove ().
Mark Probst [Mon, 18 Jul 2011 15:27:13 +0000 (17:27 +0200)]
[gc] Don't do unaligned loads in mono_gc_memmove ().

This caused problems on S390x, at least.

12 years agosupport action parameter in SOAP 1.2 content type. Close pull request #133.
Atsushi Eno [Mon, 18 Jul 2011 17:28:59 +0000 (02:28 +0900)]
support action parameter in SOAP 1.2 content type. Close pull request #133.

12 years agoFix bug 704813: just ignore members of type IEnumerable`1 without Add().
Atsushi Eno [Sat, 16 Jul 2011 13:48:41 +0000 (06:48 -0700)]
Fix bug 704813: just ignore members of type IEnumerable`1 without Add().

12 years agoIf a thread abort is fatal, print the exception before dying.
Rodrigo Kumpera [Fri, 15 Jul 2011 20:54:38 +0000 (17:54 -0300)]
If a thread abort is fatal, print the exception before dying.

12 years agoImprove stacktraces when facing a runtime invoke wrapper.
Rodrigo Kumpera [Fri, 15 Jul 2011 20:49:41 +0000 (17:49 -0300)]
Improve stacktraces when facing a runtime invoke wrapper.

* mini-exceptions.c (mono_handle_exception_internal_first_pass):
Don't trim the trace list if we find a filter clause from a wrapper.
This makes stacktraces across MRI's work.
Extract trace trimming into a macro to reduce code duplication.

12 years agoAwait support for more expressions
Marek Safar [Fri, 15 Jul 2011 14:53:17 +0000 (15:53 +0100)]
Await support for more expressions

12 years agoAdd await support for more expressions
Marek Safar [Thu, 14 Jul 2011 12:22:37 +0000 (13:22 +0100)]
Add await support for more expressions

12 years agoUse array index instead of an iterator when checking interfaces
Marek Safar [Thu, 14 Jul 2011 08:16:16 +0000 (09:16 +0100)]
Use array index instead of an iterator when checking interfaces

12 years ago[sgen] Option for an allowance limit.
Mark Probst [Wed, 13 Jul 2011 17:07:52 +0000 (19:07 +0200)]
[sgen] Option for an allowance limit.

The metric for deciding when to trigger a major collection assumes
that there's unlimited memory, so it does, especially since it's
probably buggy and certainly not very smart, sometimes allow too much
allocation to happen.  This new option is a way to tell SGen where to
draw the line.  Note that memory will still be allocated, it's just
that once the limit is overstepped, major collections happen more
frequently to keep memory usage down.

12 years agoImplement await for new expressions
Marek Safar [Wed, 13 Jul 2011 16:25:06 +0000 (17:25 +0100)]
Implement await for new expressions

12 years agoImplement async inside a method with MVARs and contraints
Marek Safar [Wed, 13 Jul 2011 16:00:22 +0000 (17:00 +0100)]
Implement async inside a method with MVARs and contraints

12 years agoAwait for array access expression
Marek Safar [Wed, 13 Jul 2011 08:39:18 +0000 (09:39 +0100)]
Await for array access expression

12 years agoReturn from async method has to also skip following code block
Marek Safar [Tue, 12 Jul 2011 12:45:59 +0000 (13:45 +0100)]
Return from async method has to also skip following code block

12 years agoAvoid a .cctor on the initialization path.
Rodrigo Kumpera [Tue, 12 Jul 2011 14:01:16 +0000 (11:01 -0300)]
Avoid a .cctor on the initialization path.

12 years agoAdd shared_perfcounters option to enable minimal.
Rodrigo Kumpera [Tue, 12 Jul 2011 14:01:10 +0000 (11:01 -0300)]
Add shared_perfcounters option to enable minimal.

12 years ago[gc] Fix a bug in atomic memmove.
Mark Probst [Tue, 12 Jul 2011 15:37:32 +0000 (17:37 +0200)]
[gc] Fix a bug in atomic memmove.

12 years agoModify few emits to deal with await expression
Marek Safar [Tue, 12 Jul 2011 08:26:47 +0000 (09:26 +0100)]
Modify few emits to deal with await expression

12 years agoDo DISABLE_PORTABILITY more agressively.
Rodrigo Kumpera [Tue, 12 Jul 2011 04:32:25 +0000 (01:32 -0300)]
Do DISABLE_PORTABILITY more agressively.

12 years agoStore precise wrapper info for native-to-managed wrappers, needed by AOT.
Zoltan Varga [Tue, 12 Jul 2011 00:49:42 +0000 (02:49 +0200)]
Store precise wrapper info for native-to-managed wrappers, needed by AOT.

12 years agoAvoid register allocation problems when a try clause is nested inside a handler block.
Zoltan Varga [Tue, 12 Jul 2011 00:08:29 +0000 (02:08 +0200)]
Avoid register allocation problems when a try clause is nested inside a handler block.

12 years agoGet rid of the 'ut_e_' symbols in AOT, use the normal 'ut_' symbols for them.
Zoltan Varga [Mon, 11 Jul 2011 21:16:40 +0000 (23:16 +0200)]
Get rid of the 'ut_e_' symbols in AOT, use the normal 'ut_' symbols for them.

12 years agoFix the length of r4const on arm.
Zoltan Varga [Mon, 11 Jul 2011 15:10:04 +0000 (17:10 +0200)]
Fix the length of r4const on arm.

12 years ago[sgen] Debug option for printing the heap usage and minor collection allowance.
Mark Probst [Fri, 8 Jul 2011 19:47:00 +0000 (21:47 +0200)]
[sgen] Debug option for printing the heap usage and minor collection allowance.

12 years agoFix caching in mono_marshal_get_array_address ().
Zoltan Varga [Sun, 10 Jul 2011 22:23:36 +0000 (00:23 +0200)]
Fix caching in mono_marshal_get_array_address ().

12 years agoFix signal chaining to handle a stupid previous handler.
Rodrigo Kumpera [Sat, 9 Jul 2011 16:10:44 +0000 (13:10 -0300)]
Fix signal chaining to handle a stupid previous handler.

12 years agoDisable the exception thread under iOS since it's neither needed nor working.
Rodrigo Kumpera [Fri, 8 Jul 2011 23:44:21 +0000 (20:44 -0300)]
Disable the exception thread under iOS since it's neither needed nor working.

12 years agoFull equivalence comparison is unnecessary for MessageEncoder ContentType.
Atsushi Eno [Fri, 8 Jul 2011 21:50:58 +0000 (06:50 +0900)]
Full equivalence comparison is unnecessary for MessageEncoder ContentType.

based on https://github.com/mono/mono/pull/130

12 years agoResurrect the AOT profiler.
Zoltan Varga [Fri, 8 Jul 2011 12:37:44 +0000 (14:37 +0200)]
Resurrect the AOT profiler.

12 years agoMerge pull request #131 from txdv/master
Marek Safar [Fri, 8 Jul 2011 07:14:17 +0000 (00:14 -0700)]
Merge pull request #131 from txdv/master

Encoding constants should be in lower case.

12 years agoFix upper case encoding constants.
Andrius Bentkus [Fri, 8 Jul 2011 04:32:57 +0000 (06:32 +0200)]
Fix upper case encoding constants.

name.ToLowerInvariant ().Replace ('-', '_') should ensure that they
are all lowercase.

12 years ago'async' is becoming a keyword. Fix variables named async.
Jonathan Pobst [Thu, 7 Jul 2011 21:52:46 +0000 (16:52 -0500)]
'async' is becoming a keyword.  Fix variables named async.

12 years agoHandle DBNull's.
Jonathan Pobst [Thu, 7 Jul 2011 21:50:49 +0000 (16:50 -0500)]
Handle DBNull's.

12 years agoInitial skeleton of secondary approach of await stack handling
Marek Safar [Thu, 7 Jul 2011 15:34:28 +0000 (16:34 +0100)]
Initial skeleton of secondary approach of await stack handling

12 years agoRemove debug comment
Marek Safar [Tue, 5 Jul 2011 16:29:42 +0000 (17:29 +0100)]
Remove debug comment

12 years agoReverted previous commit, struct sizes vary way too much between platforms
Jeffrey Stedfast [Wed, 6 Jul 2011 22:21:29 +0000 (18:21 -0400)]
Reverted previous commit, struct sizes vary way too much between platforms

12 years agoUse a struct utsname when calling uname() instead of an 8K buffer
Jeffrey Stedfast [Wed, 6 Jul 2011 22:06:14 +0000 (18:06 -0400)]
Use a struct utsname when calling uname() instead of an 8K buffer

12 years agoAdd System/Platform.cs to *System*.dll.sources
Jeffrey Stedfast [Wed, 6 Jul 2011 17:32:05 +0000 (13:32 -0400)]
Add System/Platform.cs to *System*.dll.sources

12 years agoMerge pull request #128 from paszczi/master
Rodrigo Kumpera [Wed, 6 Jul 2011 17:01:15 +0000 (10:01 -0700)]
Merge pull request #128 from paszczi/master

Fix for bug #701733

12 years agoMake internal Platform class static
Jeffrey Stedfast [Wed, 6 Jul 2011 16:42:24 +0000 (12:42 -0400)]
Make internal Platform class static

12 years agoLoad the correct type for MacOSX (as opposed to iOS)
Jeffrey Stedfast [Wed, 6 Jul 2011 16:06:12 +0000 (12:06 -0400)]
Load the correct type for MacOSX (as opposed to iOS)

12 years agoDo some work towards making ARM fp mode runtime configurable, still far from working.
Zoltan Varga [Wed, 6 Jul 2011 14:17:09 +0000 (16:17 +0200)]
Do some work towards making ARM fp mode runtime configurable, still far from working.

12 years agoPrefix ARM FPA codegen macros with 'FPA'.
Zoltan Varga [Wed, 6 Jul 2011 14:16:16 +0000 (16:16 +0200)]
Prefix ARM FPA codegen macros with 'FPA'.

12 years agoAvoid calling add_method () twice.
Zoltan Varga [Wed, 6 Jul 2011 13:37:32 +0000 (15:37 +0200)]
Avoid calling add_method () twice.

12 years agoAdd an ExportSymbol property to MonoPInvokeCallbackAttribute to instruct the AOT...
Zoltan Varga [Wed, 6 Jul 2011 02:12:59 +0000 (04:12 +0200)]
Add an ExportSymbol property to MonoPInvokeCallbackAttribute to instruct the AOT compiler to generate a global symbol for the native-to-managed wrapper.

12 years agoOops, we need Platform.cs too
Jeffrey Stedfast [Tue, 5 Jul 2011 21:53:54 +0000 (17:53 -0400)]
Oops, we need Platform.cs too

12 years agoImplemented a shared way to do MacOSX detection in System.dll
Jeffrey Stedfast [Tue, 5 Jul 2011 21:52:25 +0000 (17:52 -0400)]
Implemented a shared way to do MacOSX detection in System.dll

12 years agoDoh, do proper OSX detection
Jeffrey Stedfast [Tue, 5 Jul 2011 21:00:58 +0000 (17:00 -0400)]
Doh, do proper OSX detection

12 years agoUse runtime detection to decide to use CoreFoundation.CFNetwork.GetDefaultProxy()
Jeffrey Stedfast [Tue, 5 Jul 2011 20:31:47 +0000 (16:31 -0400)]
Use runtime detection to decide to use CoreFoundation.CFNetwork.GetDefaultProxy()

12 years agoOn MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default...
Jeffrey Stedfast [Tue, 5 Jul 2011 18:10:14 +0000 (14:10 -0400)]
On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy

12 years agoEnsure the .mdb file is copied if the linker decides not the link, but copy, an assembly
Sebastien Pouliot [Tue, 5 Jul 2011 14:17:41 +0000 (10:17 -0400)]
Ensure the .mdb file is copied if the linker decides not the link, but copy, an assembly

12 years agoDo not mark all static fields when marking a ValueType (except for enums)
Sebastien Pouliot [Tue, 5 Jul 2011 14:17:06 +0000 (10:17 -0400)]
Do not mark all static fields when marking a ValueType (except for enums)

12 years agoReuse fields used by hoisted stack slots
Marek Safar [Tue, 5 Jul 2011 09:30:11 +0000 (10:30 +0100)]
Reuse fields used by hoisted stack slots

12 years agoFix for bug #701733
Maciej Paszta [Tue, 5 Jul 2011 05:42:02 +0000 (07:42 +0200)]
Fix for bug #701733

12 years agoStack forwarder don't not need explicit this when one of the arguments is this
Marek Safar [Mon, 4 Jul 2011 19:02:58 +0000 (20:02 +0100)]
Stack forwarder don't not need explicit this when one of the arguments is this

13 years agoImplement stack persistance for nested async
Marek Safar [Fri, 1 Jul 2011 19:51:35 +0000 (20:51 +0100)]
Implement stack persistance for nested async

13 years agoMerge pull request #127 from trustme/master
Geoff Norton [Fri, 1 Jul 2011 16:15:26 +0000 (09:15 -0700)]
Merge pull request #127 from trustme/master

Fix crash on Lion when exiting

13 years agoFix crash on Lion when exiting
Duane Wandless [Fri, 1 Jul 2011 12:46:28 +0000 (08:46 -0400)]
Fix crash on Lion when exiting

13 years agoFix a race in continuation setup
Marek Safar [Fri, 1 Jul 2011 11:09:35 +0000 (12:09 +0100)]
Fix a race in continuation setup

13 years agoMigrate more emit specific code to EmitContext and clean it up for stack tracking
Marek Safar [Fri, 1 Jul 2011 11:01:51 +0000 (12:01 +0100)]
Migrate more emit specific code to EmitContext and clean it up for stack tracking

13 years agoFix the Thread.Interrupt () test now that it is implemented.
Zoltan Varga [Fri, 1 Jul 2011 00:49:08 +0000 (02:49 +0200)]
Fix the Thread.Interrupt () test now that it is implemented.

13 years agoFix some tests broken by some NET 4.0 changes.
Zoltan Varga [Fri, 1 Jul 2011 00:32:25 +0000 (02:32 +0200)]
Fix some tests broken by some NET 4.0 changes.

13 years agoFix an enum test.
Zoltan Varga [Thu, 30 Jun 2011 23:00:59 +0000 (01:00 +0200)]
Fix an enum test.

13 years agoFix sorting of ulong[] arrays among others when using the non-generic Sort() overloads.
Zoltan Varga [Thu, 30 Jun 2011 23:00:31 +0000 (01:00 +0200)]
Fix sorting of ulong[] arrays among others when using the non-generic Sort() overloads.

13 years agoDisable a not working delegate test.
Zoltan Varga [Thu, 30 Jun 2011 22:59:52 +0000 (00:59 +0200)]
Disable a not working delegate test.

13 years ago[asp.net] Added FormsAuthentication.Timeout 4.0 property
Marek Habersack [Thu, 30 Jun 2011 21:59:55 +0000 (23:59 +0200)]
[asp.net] Added FormsAuthentication.Timeout 4.0 property

13 years agoRevert delegate-invoke.exe as the commit it depends on, 929c6bc9b6d76a273f251e6f5dfac...
Zoltan Varga [Thu, 30 Jun 2011 20:41:56 +0000 (22:41 +0200)]
Revert delegate-invoke.exe as the commit it depends on, 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd has been removed.

13 years agoDisable a test which fails with AOT.
Zoltan Varga [Thu, 30 Jun 2011 20:29:39 +0000 (22:29 +0200)]
Disable a test which fails with AOT.

13 years agoAvoid creating an AssemblyBuilder in DynamicMethod if not needed.
Zoltan Varga [Thu, 30 Jun 2011 18:46:11 +0000 (20:46 +0200)]
Avoid creating an AssemblyBuilder in DynamicMethod if not needed.

13 years agoFix handling of null in the non generic implementation of EqualityComparer. Fixes...
Jb Evain [Wed, 29 Jun 2011 23:24:50 +0000 (01:24 +0200)]
Fix handling of null in the non generic implementation of EqualityComparer. Fixes 703027.

13 years agoAdd test for bug #703027.
Jb Evain [Wed, 29 Jun 2011 23:23:14 +0000 (01:23 +0200)]
Add test for bug #703027.

13 years agoFix more typos.
Rodrigo Kumpera [Wed, 29 Jun 2011 14:04:18 +0000 (11:04 -0300)]
Fix more typos.

13 years agoUse correct method to declare local variable
Marek Safar [Tue, 28 Jun 2011 21:56:07 +0000 (22:56 +0100)]
Use correct method to declare local variable

13 years agoRemove redundant local variable copy
Marek Safar [Tue, 28 Jun 2011 15:25:14 +0000 (16:25 +0100)]
Remove redundant local variable copy