mono.git
12 years agoInstall cccheck script
Marek Safar [Tue, 30 Aug 2011 08:30:08 +0000 (09:30 +0100)]
Install cccheck script

12 years agoDisable the new suspend code when using sdb, it doesn't seem to work yet (bxc #525).
Zoltan Varga [Tue, 30 Aug 2011 01:55:39 +0000 (03:55 +0200)]
Disable the new suspend code when using sdb, it doesn't seem to work yet (bxc #525).

12 years agoAOT the v4.0 monitor enter fastpath, not the unused 2.0.
Zoltan Varga [Mon, 29 Aug 2011 23:19:53 +0000 (01:19 +0200)]
AOT the v4.0 monitor enter fastpath, not the unused 2.0.

12 years agoFix the taken==true argument check in the v4 monitor fastpath.
Zoltan Varga [Mon, 29 Aug 2011 23:10:37 +0000 (01:10 +0200)]
Fix the taken==true argument check in the v4 monitor fastpath.

12 years agoEliminate the by-name encoding for all wrapper methods, instead, encode them directly...
Zoltan Varga [Tue, 12 Jul 2011 00:47:52 +0000 (02:47 +0200)]
Eliminate the by-name encoding for all wrapper methods, instead, encode them directly by encoding signatures etc. using a binary encoding. This saves 30k from the mscorlib AOT image at the cost of some runtime C code.

12 years agoUpdate Mono.Cecil
Jb Evain [Mon, 29 Aug 2011 13:59:34 +0000 (15:59 +0200)]
Update Mono.Cecil

12 years agoComplete README
Jb Evain [Mon, 29 Aug 2011 13:58:46 +0000 (15:58 +0200)]
Complete README

12 years agoAdd README to specify Cecil's update procedure
Jb Evain [Mon, 29 Aug 2011 13:56:26 +0000 (15:56 +0200)]
Add README to specify Cecil's update procedure

12 years agoDelete deprecated solution file
Jb Evain [Mon, 29 Aug 2011 13:52:51 +0000 (15:52 +0200)]
Delete deprecated solution file

12 years agoFix bug #380. Patch from bnc#605795 were not committed to master but part of MonoTouc...
Sebastien Pouliot [Mon, 29 Aug 2011 12:56:33 +0000 (08:56 -0400)]
Fix bug #380. Patch from bnc#605795 were not committed to master but part of MonoTouch 3.x (ended up missing in MT4)

12 years agoFix mingw32 cross-build on a git no-branch checkout. Fixes #698446.
Hin-Tak Leung [Sun, 28 Aug 2011 23:22:57 +0000 (01:22 +0200)]
Fix mingw32 cross-build on a git no-branch checkout. Fixes #698446.

12 years agoAllow pointers to structures to be passed in pinvoke, MS seems to allow this at least...
Zoltan Varga [Sun, 28 Aug 2011 15:50:52 +0000 (17:50 +0200)]
Allow pointers to structures to be passed in pinvoke, MS seems to allow this at least in some cases. Fixes bxc #158.
This partially reverts c4d9097c5719bc9455593a47d8d7d2585f1219ec.

12 years agoChange the way unbox trampolines are handled in AOT. Instead of emitting a global...
Zoltan Varga [Mon, 11 Jul 2011 22:12:56 +0000 (00:12 +0200)]
Change the way unbox trampolines are handled in AOT. Instead of emitting a global 'ut_...' symbol for them, which takes up space in the symbol table, emit a sorted table mapping method indexes to their unbox trampolines. This cuts the size of the static mscorlib AOT image by about 20k.

12 years agoDo not set WaitingToRun status when trying to run synchronously. Fix #471.
Jérémie Laval [Sun, 28 Aug 2011 13:18:04 +0000 (15:18 +0200)]
Do not set WaitingToRun status when trying to run synchronously. Fix #471.

12 years agoCheck and throw if a task reportedly executed isn't actually ran. Fix #470.
Jérémie Laval [Sun, 28 Aug 2011 13:10:03 +0000 (15:10 +0200)]
Check and throw if a task reportedly executed isn't actually ran. Fix #470.

12 years agoCheck that CancellationToken coming from OperationCanceledException isn't None. Fix...
Jérémie Laval [Sun, 28 Aug 2011 12:44:07 +0000 (14:44 +0200)]
Check that CancellationToken coming from OperationCanceledException isn't None. Fix #472.

12 years agoAvoid pinning a few stack slots on amd64.
Zoltan Varga [Sun, 28 Aug 2011 12:37:12 +0000 (14:37 +0200)]
Avoid pinning a few stack slots on amd64.

12 years agoImplement precise stack marking for ARM.
Zoltan Varga [Sat, 27 Aug 2011 20:50:29 +0000 (22:50 +0200)]
Implement precise stack marking for ARM.

12 years agoImprove precise stack marking on x86.
Zoltan Varga [Sat, 27 Aug 2011 17:06:31 +0000 (19:06 +0200)]
Improve precise stack marking on x86.

12 years agoFix the precise stack marking code on x86. Mark x86 register save locations as NOREF.
Zoltan Varga [Sat, 27 Aug 2011 12:47:55 +0000 (14:47 +0200)]
Fix the precise stack marking code on x86. Mark x86 register save locations as NOREF.

12 years agoAdd new file to project.
Jonathan Chambers [Fri, 26 Aug 2011 03:24:46 +0000 (23:24 -0400)]
Add new file to project.

12 years agoFix the scanning of the register save areas in the precise stack marking code, we...
Zoltan Varga [Thu, 25 Aug 2011 23:52:55 +0000 (01:52 +0200)]
Fix the scanning of the register save areas in the precise stack marking code, we were scanning 4/8 slots conservatively instead of just 1.

12 years agoMake the plt symbols used by llvm+aot code more descriptive.
Zoltan Varga [Thu, 25 Aug 2011 23:18:50 +0000 (01:18 +0200)]
Make the plt symbols used by llvm+aot code more descriptive.

12 years agoName llvm structure types.
Zoltan Varga [Thu, 25 Aug 2011 23:07:56 +0000 (01:07 +0200)]
Name llvm structure types.

12 years agoUpdate the LLVM backend to the latest code in the llvm-mono repository.
Zoltan Varga [Thu, 25 Aug 2011 22:18:37 +0000 (00:18 +0200)]
Update the LLVM backend to the latest code in the llvm-mono repository.

12 years agoThe base architecture for code-contracts analysis
Alexander Chebaturkin [Wed, 13 Jul 2011 22:47:34 +0000 (02:47 +0400)]
The base architecture for code-contracts analysis

12 years agoCheck TaskFactory continuation options
Marek Safar [Wed, 24 Aug 2011 13:59:34 +0000 (14:59 +0100)]
Check TaskFactory continuation options

12 years ago[mdoc] Remove monodocer.cs.orig, .monodocer.cs.swp.
Jonathan Pryor [Wed, 24 Aug 2011 13:41:01 +0000 (09:41 -0400)]
[mdoc] Remove monodocer.cs.orig, .monodocer.cs.swp.

These never should have been added in the first place. Oops.

12 years agoRevert GET switch for serializing requests. BodyWriter handles it better.
Atsushi Eno [Thu, 25 Aug 2011 01:11:25 +0000 (18:11 -0700)]
Revert GET switch for serializing requests. BodyWriter handles it better.

12 years agofor GET request, just skip the member. It does not contain xml for null.
Atsushi Eno [Wed, 24 Aug 2011 23:46:08 +0000 (16:46 -0700)]
for GET request, just skip the member. It does not contain xml for null.

12 years agoSkip serialization when the return type is void.
Atsushi Eno [Wed, 24 Aug 2011 19:14:48 +0000 (12:14 -0700)]
Skip serialization when the return type is void.

This batch should fix bug #206.

12 years agoDo not try to output empty message body to logs.
Atsushi Eno [Wed, 24 Aug 2011 19:12:04 +0000 (12:12 -0700)]
Do not try to output empty message body to logs.

12 years agoWhen there is void return, the common message formatter should ignore it.
Atsushi Eno [Wed, 24 Aug 2011 19:10:31 +0000 (12:10 -0700)]
When there is void return, the common message formatter should ignore it.

This case occurs when MessageContract is used and there is no member for
the return value.

12 years agoReturnValue in MessageDescription was missing when there was MessageContract.
Atsushi Eno [Wed, 24 Aug 2011 19:09:16 +0000 (12:09 -0700)]
ReturnValue in MessageDescription was missing when there was MessageContract.

12 years agoDifferentiate GET query parameter binding from another request binding.
Atsushi Eno [Wed, 24 Aug 2011 19:05:05 +0000 (12:05 -0700)]
Differentiate GET query parameter binding from another request binding.

This is one core of the bugfix for #206.

12 years agoWhen there was no path parameter, it ignored the whole path part.
Atsushi Eno [Wed, 24 Aug 2011 19:02:38 +0000 (12:02 -0700)]
When there was no path parameter, it ignored the whole path part.

12 years agoThis filter should ignore port, and should not filter out anonymous URIs.
Atsushi Eno [Wed, 24 Aug 2011 19:00:59 +0000 (12:00 -0700)]
This filter should ignore port, and should not filter out anonymous URIs.

12 years agoAdd System.Threading.Tasks.Dataflow assembly to the 4.0 build
Jérémie Laval [Tue, 23 Aug 2011 20:27:53 +0000 (22:27 +0200)]
Add System.Threading.Tasks.Dataflow assembly to the 4.0 build

12 years ago[mdoc-update] Fix interaction between --delete, -fno-assembly-versions.
Jonathan Pryor [Tue, 23 Aug 2011 19:51:09 +0000 (15:51 -0400)]
[mdoc-update] Fix interaction between --delete, -fno-assembly-versions.

`mdoc update --delete` is supposed to remove XML for types and type
members that are no longer present. This works sanely if the
type/member has only one assembly version in it, but once a member is
found in multiple versions, --delete only removes for the assembly
version currently being processed, and thus the member may stay in.

Ordinarily this is sufficient, and is why the HTML output lists the
assembly versions the type/member is found in.

However, then we introduce -fno-assembly-versions, which removes the
version store (if present) and doesn't re-generate. Thus, when both
are present, we would expect types and members to be removed,
irregardless of any pre-existing version information (because that
version information will be removed). This didn't happen. Worse,
because we kept re-processing version information, we'd ~never remove
any members even after repeated invocations, because we weren't
properly skipping the version store. Oops.

Fix the interaction, and Add tests so we ensure this works.

12 years agoAllow ldfld/stfld/ldflda to work on static fields by merging the relevant JIT code...
Zoltan Varga [Tue, 23 Aug 2011 16:50:23 +0000 (18:50 +0200)]
Allow ldfld/stfld/ldflda to work on static fields by merging the relevant JIT code with the ldsfld/stsfld code. Fixes #705383.

12 years agoVoid type is not convertible to reference types
Marek Safar [Tue, 23 Aug 2011 14:24:02 +0000 (15:24 +0100)]
Void type is not convertible to reference types

12 years agoRemove wrong assembly attribute
Marek Safar [Tue, 23 Aug 2011 13:59:20 +0000 (14:59 +0100)]
Remove wrong assembly attribute

12 years agoFix struct cycle detection for static generic type fields
Marek Safar [Tue, 23 Aug 2011 13:58:03 +0000 (14:58 +0100)]
Fix struct cycle detection for static generic type fields

12 years agoUse inflated version of interfaces when checking base method type parameter contraints
Marek Safar [Tue, 23 Aug 2011 09:22:30 +0000 (10:22 +0100)]
Use inflated version of interfaces when checking base method type parameter contraints

12 years agoRework self suspend to avoid a race on Mach.
Rodrigo Kumpera [Mon, 22 Aug 2011 22:43:19 +0000 (19:43 -0300)]
Rework self suspend to avoid a race on Mach.

* mono-threads.c (mono_thread_info_self_suspend): Implement
self suspend using semaphores in the same way it's done on
posix.

* mono-threads-posix.c:
* mono-threads-mach.c: Remove mono_threads_core_self_suspend
as this is now done on the platform independent bits.

* mono-threads.h: Add suspend bits to the state enum.

12 years agoMerge pull request #162 from garuma/tpl-dataflow-blocks
Marek Safar [Tue, 23 Aug 2011 12:48:04 +0000 (05:48 -0700)]
Merge pull request #162 from garuma/tpl-dataflow-blocks

@marek - TPL Dataflow part 4

12 years agoUriTemplate should not be mandatory, make it optional. Fix unit test.
Atsushi Eno [Tue, 23 Aug 2011 18:31:06 +0000 (11:31 -0700)]
UriTemplate should not be mandatory, make it optional. Fix unit test.

12 years agoUse events to wait for completion (where applicable) in dataflow unit tests
Jérémie Laval [Mon, 22 Aug 2011 15:49:23 +0000 (17:49 +0200)]
Use events to wait for completion (where applicable) in dataflow unit tests

12 years agoFix file name in source comment
Jérémie Laval [Mon, 22 Aug 2011 15:07:12 +0000 (17:07 +0200)]
Fix file name in source comment

12 years agoRemove #if NET_4_0 and add MonoTODO attribute
Jérémie Laval [Thu, 11 Aug 2011 12:27:39 +0000 (14:27 +0200)]
Remove #if NET_4_0 and add MonoTODO attribute

12 years agoAdd blocks implementation
Jérémie Laval [Wed, 10 Aug 2011 16:40:37 +0000 (18:40 +0200)]
Add blocks implementation

12 years agoLink libmono-profiler-cov against eglib as well.
Zoltan Varga [Mon, 22 Aug 2011 22:51:29 +0000 (00:51 +0200)]
Link libmono-profiler-cov against eglib as well.

12 years agoDisable some failing LLVM passes. Should fix bxc #280.
Zoltan Varga [Thu, 18 Aug 2011 14:58:26 +0000 (16:58 +0200)]
Disable some failing LLVM passes. Should fix bxc #280.

12 years agoFix mobile builds in the latest Tasks change.
Atsushi Eno [Mon, 22 Aug 2011 05:06:15 +0000 (14:06 +0900)]
Fix mobile builds in the latest Tasks change.

12 years agoUpdate System build too
Jérémie Laval [Sat, 20 Aug 2011 15:53:07 +0000 (17:53 +0200)]
Update System build too

12 years agoSplit internal types in their own files
Jérémie Laval [Sat, 20 Aug 2011 15:05:11 +0000 (17:05 +0200)]
Split internal types in their own files

12 years agoThrow when a non-finished task is started
Jérémie Laval [Sat, 20 Aug 2011 12:59:31 +0000 (14:59 +0200)]
Throw when a non-finished task is started

12 years agoMake TaskCompletionSource methods thread-safe
Jérémie Laval [Sat, 20 Aug 2011 12:51:45 +0000 (14:51 +0200)]
Make TaskCompletionSource methods thread-safe

12 years agoMove old default task scheduler to Mono.Parallel
Jérémie Laval [Sat, 20 Aug 2011 12:12:09 +0000 (14:12 +0200)]
Move old default task scheduler to Mono.Parallel

12 years agoRevert "Remove the old PFX Scheduler from the build"
Jérémie Laval [Sat, 20 Aug 2011 11:49:13 +0000 (13:49 +0200)]
Revert "Remove the old PFX Scheduler from the build"

This reverts commit d3f95a523031f569eb823f28685fbad113f33bae.

12 years agoRemove the old PFX Scheduler from the build
Miguel de Icaza [Sat, 20 Aug 2011 03:50:40 +0000 (23:50 -0400)]
Remove the old PFX Scheduler from the build

12 years agoFix variance test involving nullable types.
Rodrigo Kumpera [Fri, 19 Aug 2011 21:54:15 +0000 (18:54 -0300)]
Fix variance test involving nullable types.

* class.c (mono_class_is_variant_compatible): Reject valuetypes
if not the same straight away. This fixes testing IEnumerable<int?>
with IEnumerable<int>.

Fixes bxc #185

12 years agoSplit TaskFactory.cs file
Marek Safar [Fri, 19 Aug 2011 15:33:46 +0000 (16:33 +0100)]
Split TaskFactory.cs file

12 years ago[sgen] Pinning and remset statistics per class.
Mark Probst [Fri, 19 Aug 2011 13:14:15 +0000 (15:14 +0200)]
[sgen] Pinning and remset statistics per class.

12 years ago[sgen] Optional equality function for the hash table.
Mark Probst [Thu, 18 Aug 2011 09:31:45 +0000 (11:31 +0200)]
[sgen] Optional equality function for the hash table.

12 years ago[sgen] Use GLib's hash func typedef instead of our own.
Mark Probst [Thu, 18 Aug 2011 09:21:52 +0000 (11:21 +0200)]
[sgen] Use GLib's hash func typedef instead of our own.

12 years agoTaskCompletionSource.SetException cannot be used with empty array
Marek Safar [Fri, 19 Aug 2011 11:50:18 +0000 (12:50 +0100)]
TaskCompletionSource.SetException cannot be used with empty array

12 years agoCorrectly calculate the size of the freed array buffer.
Rodrigo Kumpera [Fri, 19 Aug 2011 00:52:58 +0000 (21:52 -0300)]
Correctly calculate the size of the freed array buffer.

* sgen-bridge.c (dyn_array_ensure_capacity): We must correctly
calculate the size as our allocator asserts when we do it with
very large allocs.

12 years agoRun scheduled continuation on current context
Marek Safar [Thu, 18 Aug 2011 17:06:22 +0000 (18:06 +0100)]
Run scheduled continuation on current context

12 years agoremove bom
Marek Safar [Thu, 18 Aug 2011 15:26:30 +0000 (16:26 +0100)]
remove bom

12 years agoMake await contextual keyword
Marek Safar [Thu, 18 Aug 2011 15:20:24 +0000 (16:20 +0100)]
Make await contextual keyword

12 years agoWarn about misused async modifier
Marek Safar [Thu, 18 Aug 2011 15:19:53 +0000 (16:19 +0100)]
Warn about misused async modifier

12 years ago[LinkedList] Optimise Clear slightly.
Alan McGovern [Thu, 18 Aug 2011 15:00:23 +0000 (16:00 +0100)]
[LinkedList] Optimise Clear slightly.

12 years agoMerge pull request #161 from LogosBible/master
Alan McGovern [Thu, 18 Aug 2011 14:58:36 +0000 (07:58 -0700)]
Merge pull request #161 from LogosBible/master

Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.

12 years agoMerge pull request #160 from garuma/tpl-dataflow-plumbing
Marek Safar [Thu, 18 Aug 2011 13:44:38 +0000 (06:44 -0700)]
Merge pull request #160 from garuma/tpl-dataflow-plumbing

@marek - TPL Dataflow part 3

12 years agoMake async keyword context sensitive
Marek Safar [Thu, 18 Aug 2011 09:09:48 +0000 (10:09 +0100)]
Make async keyword context sensitive

12 years agoAnonymous methods cannot be used as infered type
Marek Safar [Wed, 17 Aug 2011 10:12:29 +0000 (11:12 +0100)]
Anonymous methods cannot be used as infered type

12 years agoRemove unused field
Marek Safar [Wed, 17 Aug 2011 10:03:16 +0000 (11:03 +0100)]
Remove unused field

12 years agoAdd new test
Marek Safar [Wed, 17 Aug 2011 09:08:04 +0000 (10:08 +0100)]
Add new test

12 years agoHandle android's broken pthread_kill in sgen too.
Rodrigo Kumpera [Thu, 18 Aug 2011 01:55:46 +0000 (22:55 -0300)]
Handle android's broken pthread_kill in sgen too.

12 years agoHandle android's broken pthread_kill.
Rodrigo Kumpera [Thu, 18 Aug 2011 01:40:51 +0000 (22:40 -0300)]
Handle android's broken pthread_kill.

* mono-threads-posix.c: Add mono_threads_pthread_kill
to handle android's pthread bug in which the main-thread
has an invalid tid.

12 years agoFix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.
Todd Foster [Wed, 17 Aug 2011 17:23:58 +0000 (10:23 -0700)]
Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.

12 years agoRemove #if NET_4_0
Jérémie Laval [Thu, 11 Aug 2011 12:23:19 +0000 (14:23 +0200)]
Remove #if NET_4_0

12 years agoAdd plumbing internal classes used throughout the framework
Jérémie Laval [Wed, 10 Aug 2011 16:28:53 +0000 (18:28 +0200)]
Add plumbing internal classes used throughout the framework

12 years agoFix coding style
Jérémie Laval [Wed, 17 Aug 2011 18:00:05 +0000 (20:00 +0200)]
Fix coding style

12 years agoMerge branch 'sgen-hash-table'
Mark Probst [Wed, 17 Aug 2011 17:32:06 +0000 (19:32 +0200)]
Merge branch 'sgen-hash-table'

12 years ago[sgen] Use the reusable hash table for the bridge hash.
Mark Probst [Wed, 17 Aug 2011 17:01:09 +0000 (19:01 +0200)]
[sgen] Use the reusable hash table for the bridge hash.

12 years ago[sgen] Use the reusable hash table for the weak link hashes.
Mark Probst [Wed, 17 Aug 2011 15:33:03 +0000 (17:33 +0200)]
[sgen] Use the reusable hash table for the weak link hashes.

12 years ago[sgen] Use the reusable hash table for the roots hashes.
Mark Probst [Wed, 17 Aug 2011 13:50:44 +0000 (15:50 +0200)]
[sgen] Use the reusable hash table for the roots hashes.

12 years ago[sgen] Factor out the finalize hash tables into a reusable hash table implementation.
Mark Probst [Sun, 31 Jul 2011 22:44:25 +0000 (00:44 +0200)]
[sgen] Factor out the finalize hash tables into a reusable hash table implementation.

12 years agoFix wrong references to Cecil
Jb Evain [Wed, 17 Aug 2011 16:30:54 +0000 (18:30 +0200)]
Fix wrong references to Cecil

12 years agoProvide an error message if an instance method is decorated with [MonoPInvokeCallback...
Sebastien Pouliot [Wed, 17 Aug 2011 14:17:28 +0000 (10:17 -0400)]
Provide an error message if an instance method is decorated with [MonoPInvokeCallback]. Ease finding issues like bug #296

12 years agoupdate Cecil
Jb Evain [Wed, 17 Aug 2011 14:09:36 +0000 (16:09 +0200)]
update Cecil

12 years ago[System.IO.Packaging] Add another test
Alan McGovern [Wed, 17 Aug 2011 12:44:54 +0000 (13:44 +0100)]
[System.IO.Packaging] Add another test

12 years ago[minizip] Ensure we don't ever accidentally change calling convention
Alan McGovern [Wed, 17 Aug 2011 12:23:05 +0000 (13:23 +0100)]
[minizip] Ensure we don't ever accidentally change calling convention

Make sure we always #define ZCALLBACK to empty so we don't change
the calling convention on windows by including a header which defines
'CALLBACK'. This will keep things as cdecl as required by the c#
pinvokes.

12 years ago[System.IO.Packaging] Fix calling convention related issues
Alan McGovern [Wed, 17 Aug 2011 10:52:22 +0000 (11:52 +0100)]
[System.IO.Packaging] Fix calling convention related issues

The P/Invokes should be Cdecl as the library is compiled with that
calling convention. The delegates passed to native code must also
be marshalled as Cdecl. Fixes BXC #223.

12 years agoUpdate to the latest IKVM reflect
Marek Safar [Wed, 17 Aug 2011 08:28:35 +0000 (09:28 +0100)]
Update to the latest IKVM reflect

12 years agoDo full identity conversion when converting variant interface types. Fixes #293
Marek Safar [Wed, 17 Aug 2011 08:26:31 +0000 (09:26 +0100)]
Do full identity conversion when converting variant interface types. Fixes #293

12 years agoFix resolving of named arguments which break optional arguments into more than 2...
Marek Safar [Tue, 16 Aug 2011 20:44:56 +0000 (21:44 +0100)]
Fix resolving of named arguments which break optional arguments into more than 2 sets

12 years agoMore updates
Miguel de Icaza [Wed, 17 Aug 2011 05:18:27 +0000 (01:18 -0400)]
More updates