mono.git
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

12 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

12 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

12 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

12 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

12 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

12 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.

12 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.

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

12 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.

12 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.

12 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

12 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.

12 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.

12 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.

12 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.

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

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

12 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

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

12 years agoMake continuation jump more explicit
Marek Safar [Mon, 27 Jun 2011 17:08:59 +0000 (18:08 +0100)]
Make continuation jump more explicit

12 years agoRemove redundant override
Marek Safar [Sat, 25 Jun 2011 13:54:06 +0000 (14:54 +0100)]
Remove redundant override

12 years ago[PATCH 2/2] Improve code readability
Eberhard Beilharz [Wed, 29 Jun 2011 06:25:44 +0000 (08:25 +0200)]
[PATCH 2/2] Improve code readability

Use enum instead of hard coded values for XLookupStatus values.

12 years ago[PATCH 1/2] Improved fix for mono bug #692206
Eberhard Beilharz [Wed, 29 Jun 2011 06:23:21 +0000 (08:23 +0200)]
[PATCH 1/2] Improved fix for mono bug #692206

In contrast to Xutf8LookupString, XLookupString returns the number
of characters stored in the buffer instead of a status. If the buffer
is too small the output is truncated, but we don't know it. However, it
seems pretty unlikely that a buffer of 24 chars shouldn't be enough for a
single key press, so I simplified the code a little bit.
Also, XLookupString converts the keySym to an ISO Latin-1
character so that there is no need to do an explicit conversion.

Add variable to store Ansi encoding so that we have to get it only once.

Fix a few problems encountered debugging this problem.

13 years agoWe can accidently swallow out of FD errors here since this function is called from...
Jackson Harper [Wed, 29 Jun 2011 03:22:44 +0000 (23:22 -0400)]
We can accidently swallow out of FD errors here since this function is called from a threadpool thread.

13 years agoFix typo.
Rodrigo Kumpera [Tue, 28 Jun 2011 21:16:10 +0000 (18:16 -0300)]
Fix typo.

13 years agoImplement support for Stream param with WebHttpBinding raw content format.
Atsushi Eno [Tue, 28 Jun 2011 11:43:13 +0000 (20:43 +0900)]
Implement support for Stream param with WebHttpBinding raw content format.

13 years agoImplement support for generic data contract type name with "{x}".
Atsushi Eno [Tue, 28 Jun 2011 09:01:38 +0000 (18:01 +0900)]
Implement support for generic data contract type name with "{x}".

13 years agoMerge pull request #112 from skolima/master
Marek Habersack [Mon, 27 Jun 2011 17:59:03 +0000 (10:59 -0700)]
Merge pull request #112 from skolima/master

[MSBuild] Preserve comments in build files & use LinkedList to store children

13 years agoAdd an aot option to override the value of readonly static fields.
Paolo Molaro [Mon, 27 Jun 2011 13:49:48 +0000 (15:49 +0200)]
Add an aot option to override the value of readonly static fields.

If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.

13 years agoRemove the data field from MonoVTable to reduce memory usage.
Paolo Molaro [Fri, 10 Jun 2011 13:08:33 +0000 (15:08 +0200)]
Remove the data field from MonoVTable to reduce memory usage.

We now store a pointer to the static fields area of a type at the
end of the vtable array only when needed, so we save memory for all
the types that have no static fields.
All the direct accesses to the field have been changed to use the
already existing function accessor.

13 years ago[MSBuild] Fixed issues found by Paul Selormey.
Leszek 'skolima' Ciesielski [Sat, 25 Jun 2011 13:57:06 +0000 (15:57 +0200)]
[MSBuild] Fixed issues found by Paul Selormey.

Unset attributes should return String.Empty, null is only for invalid.

13 years ago[MSBuild] LinkedList used for storing children
Leszek 'skolima' Ciesielski [Tue, 21 Jun 2011 17:14:32 +0000 (19:14 +0200)]
[MSBuild] LinkedList used for storing children

ProjectElementContainer should now handle modifications faster.

13 years ago[MSBuild] Preserve comments in build files
Leszek 'skolima' Ciesielski [Sat, 4 Jun 2011 15:56:00 +0000 (17:56 +0200)]
[MSBuild] Preserve comments in build files

Contribution by Paul Selormey

13 years ago[sgen] Do the bridge callback after the world has been restarted.
Mark Probst [Thu, 23 Jun 2011 15:05:46 +0000 (17:05 +0200)]
[sgen] Do the bridge callback after the world has been restarted.

13 years agoMerge pull request #122 from rabink/master
Gonzalo Paniagua Javier [Fri, 24 Jun 2011 17:42:44 +0000 (10:42 -0700)]
Merge pull request #122 from rabink/master

Added support for p12 files

13 years agoMerge pull request #121 from LogosBible/processfixes
Gonzalo Paniagua Javier [Fri, 24 Jun 2011 05:03:39 +0000 (22:03 -0700)]
Merge pull request #121 from LogosBible/processfixes

Fixes crash when calling Process.Start on a file with a ' in the path

13 years agoTreat CEE_BREAK the same as Debugger:Break (), i.e. route it through sdb.
Zoltan Varga [Thu, 23 Jun 2011 22:23:08 +0000 (00:23 +0200)]
Treat CEE_BREAK the same as Debugger:Break (), i.e. route it through sdb.