mono.git
13 years agoAvoid freeing type_initialization_hash () for now because of shutdown races.
Zoltan Varga [Fri, 20 Aug 2010 13:09:54 +0000 (15:09 +0200)]
Avoid freeing type_initialization_hash () for now because of shutdown races.

13 years agoFree the handle data in handles_cleanup().
Zoltan Varga [Fri, 20 Aug 2010 13:09:39 +0000 (15:09 +0200)]
Free the handle data in handles_cleanup().

13 years agoFix another bunch of shutdown leaks.
Zoltan Varga [Fri, 20 Aug 2010 12:55:36 +0000 (14:55 +0200)]
Fix another bunch of shutdown leaks.

13 years agoCleanup generic sharing data structures correctly.
Zoltan Varga [Fri, 20 Aug 2010 12:16:28 +0000 (14:16 +0200)]
Cleanup generic sharing data structures correctly.

13 years agoAdd a 'mono_remove_image_unload_hook' function, store image unload hooks as a GSList.
Zoltan Varga [Fri, 20 Aug 2010 12:15:49 +0000 (14:15 +0200)]
Add a 'mono_remove_image_unload_hook' function, store image unload hooks as a GSList.

13 years agoFree a few hash tables in object.c.
Zoltan Varga [Fri, 20 Aug 2010 12:15:35 +0000 (14:15 +0200)]
Free a few hash tables in object.c.

13 years agoAvoid leaking 'generic_array_method_info' by allocating it from the mscorlib
Zoltan Varga [Fri, 20 Aug 2010 12:15:07 +0000 (14:15 +0200)]
Avoid leaking 'generic_array_method_info' by allocating it from the mscorlib
mempool.

13 years agoFree the wsq data even if the thread pool was not started.
Zoltan Varga [Fri, 20 Aug 2010 11:36:06 +0000 (13:36 +0200)]
Free the wsq data even if the thread pool was not started.

13 years agoAvoid a crash in if image->references [i] is REFERENCE_MISSING.
Zoltan Varga [Fri, 20 Aug 2010 11:35:43 +0000 (13:35 +0200)]
Avoid a crash in if image->references [i] is REFERENCE_MISSING.

13 years agoFree rgctx_lazy_fetch_trampoline_hash at shutdown.
Zoltan Varga [Fri, 20 Aug 2010 11:18:25 +0000 (13:18 +0200)]
Free rgctx_lazy_fetch_trampoline_hash at shutdown.

13 years agoFix memory leaks in io-layer. Avoid starting the collection thread if SHM is disabled.
Zoltan Varga [Fri, 20 Aug 2010 11:12:56 +0000 (13:12 +0200)]
Fix memory leaks in io-layer. Avoid starting the collection thread if SHM is disabled.

13 years agoFree the global dllmap at shutdown.
Zoltan Varga [Fri, 20 Aug 2010 11:05:45 +0000 (13:05 +0200)]
Free the global dllmap at shutdown.

13 years agoCreate dynamic sites in the scope where used to overcome visibility issues
Marek Safar [Fri, 20 Aug 2010 10:56:46 +0000 (11:56 +0100)]
Create dynamic sites in the scope where used to overcome visibility issues

13 years agoWhen closing the listeners, TryDequeueRequest() could be somehow invoked after the...
Atsushi Eno [Fri, 20 Aug 2010 09:47:57 +0000 (18:47 +0900)]
When closing the listeners, TryDequeueRequest() could be somehow invoked after the listener entry was removed, so expect null search result.

13 years ago[633037] Resolve instance expression of dynamic members
Marek Safar [Fri, 20 Aug 2010 07:54:09 +0000 (08:54 +0100)]
[633037] Resolve instance expression of dynamic members

13 years agoFixes delegate creation with dynamic parameters
Marek Safar [Thu, 19 Aug 2010 19:13:12 +0000 (20:13 +0100)]
Fixes delegate creation with dynamic parameters

13 years agoMore dynamic conversion fixes
Marek Safar [Thu, 19 Aug 2010 18:31:11 +0000 (19:31 +0100)]
More dynamic conversion fixes

13 years agoOptimize few common paths
Marek Safar [Thu, 19 Aug 2010 17:37:37 +0000 (18:37 +0100)]
Optimize few common paths

13 years agoongoing DiscoveryClient work. May need further contract fixes.
Atsushi Eno [Fri, 20 Aug 2010 00:50:43 +0000 (09:50 +0900)]
ongoing DiscoveryClient work. May need further contract fixes.

13 years agoImplemented the RangeAttribute class.
Marek Habersack [Fri, 20 Aug 2010 00:21:59 +0000 (02:21 +0200)]
Implemented the RangeAttribute class.

13 years agoAvoid leaking 'image_sets' in metadata.c.
Zoltan Varga [Thu, 19 Aug 2010 22:46:14 +0000 (00:46 +0200)]
Avoid leaking 'image_sets' in metadata.c.

13 years agoDon't return malloc-ed memory from g_get_charset ().
Zoltan Varga [Thu, 19 Aug 2010 22:45:30 +0000 (00:45 +0200)]
Don't return malloc-ed memory from g_get_charset ().

13 years agoFix some AOT memory leaks.
Zoltan Varga [Thu, 19 Aug 2010 22:45:11 +0000 (00:45 +0200)]
Fix some AOT memory leaks.

13 years agoFix a bunch of shutdown leaks in the JIT+LLVM backend.
Zoltan Varga [Thu, 19 Aug 2010 22:02:31 +0000 (00:02 +0200)]
Fix a bunch of shutdown leaks in the JIT+LLVM backend.

13 years agoQuote arguments in Environment.CommandLineArgs
Gonzalo Paniagua Javier [Thu, 19 Aug 2010 21:20:15 +0000 (17:20 -0400)]
Quote arguments in Environment.CommandLineArgs

Arguments with spaces need to be quoted. If the argument contains
spaces and quotes itself, these quotes are escaped.
Fixes bug #632657.

13 years agoClose mscorlib on shutdown to avoid leaking it.
Zoltan Varga [Thu, 19 Aug 2010 20:44:45 +0000 (22:44 +0200)]
Close mscorlib on shutdown to avoid leaking it.

13 years agoHandle some members of mono_jit_stats using the counters API, so the compiled/AOT...
Zoltan Varga [Thu, 19 Aug 2010 19:53:09 +0000 (21:53 +0200)]
Handle some members of mono_jit_stats using the counters API, so the compiled/AOT/LLVM stats are in one place in the stats output.

13 years agoAllow LLVM compiled AOT code to be loaded into a non-LLVM runtime.
Zoltan Varga [Thu, 19 Aug 2010 19:38:51 +0000 (21:38 +0200)]
Allow LLVM compiled AOT code to be loaded into a non-LLVM runtime.

13 years agoAdd more trampoline stats.
Zoltan Varga [Thu, 19 Aug 2010 19:29:44 +0000 (21:29 +0200)]
Add more trampoline stats.

13 years agoCompute methods_with_llvm/without_llvm correctly even if --llvm is not given.
Zoltan Varga [Thu, 19 Aug 2010 18:14:18 +0000 (20:14 +0200)]
Compute methods_with_llvm/without_llvm correctly even if --llvm is not given.

13 years agoAdapt deep sleep operation in BlockingCollection and fix Try* method (simplest form...
Jérémie Laval [Thu, 19 Aug 2010 17:47:45 +0000 (18:47 +0100)]
Adapt deep sleep operation in BlockingCollection and fix Try* method (simplest form) behavior

13 years agoAdd some documentation to BlockingCollection
Jérémie Laval [Thu, 19 Aug 2010 17:45:08 +0000 (18:45 +0100)]
Add some documentation to BlockingCollection

13 years agoLittle 4.0 API signature tweaks
Jérémie Laval [Thu, 19 Aug 2010 16:27:00 +0000 (17:27 +0100)]
Little 4.0 API signature tweaks

13 years ago[PLinq] Replace calls to ToArray by ToList in query nodes to avoid the unnecessary...
Jérémie Laval [Thu, 19 Aug 2010 15:20:50 +0000 (16:20 +0100)]
[PLinq] Replace calls to ToArray by ToList in query nodes to avoid the unnecessary copying and double array creation

13 years ago[PLinq] Remove unnecessary iteration of the internal dictionary in OrderedEnumerator...
Jérémie Laval [Thu, 19 Aug 2010 15:03:59 +0000 (16:03 +0100)]
[PLinq] Remove unnecessary iteration of the internal dictionary in OrderedEnumerator and use deep sleeping

13 years agoRemove timed deep sleep in ManualResetEventSlim and instead combine several WaitHandl...
Jérémie Laval [Thu, 19 Aug 2010 15:02:49 +0000 (16:02 +0100)]
Remove timed deep sleep in ManualResetEventSlim and instead combine several WaitHandle to wait on

13 years agoUpdate Task unit tests to reflect behavior change with cancellation
Jérémie Laval [Thu, 19 Aug 2010 13:16:32 +0000 (14:16 +0100)]
Update Task unit tests to reflect behavior change with cancellation

13 years ago[Fix] HashSet: fix different sets operations. Fixes #572084
Jb Evain [Thu, 19 Aug 2010 14:52:00 +0000 (16:52 +0200)]
[Fix] HashSet: fix different sets operations. Fixes #572084

13 years agoAdd test for #572084, issue with SymmetricWith and duplicate items
Jb Evain [Thu, 19 Aug 2010 14:51:20 +0000 (16:51 +0200)]
Add test for #572084, issue with SymmetricWith and duplicate items

13 years ago[520151] Fail on invalid directive inside pre-processed block
Marek Safar [Thu, 19 Aug 2010 12:00:06 +0000 (13:00 +0100)]
[520151] Fail on invalid directive inside pre-processed block

13 years agoRefactor preprocessor parsing to use less string operations.
Marek Safar [Thu, 19 Aug 2010 11:38:58 +0000 (12:38 +0100)]
Refactor preprocessor parsing to use less string operations.

13 years ago[Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821.
Jb Evain [Thu, 19 Aug 2010 10:37:24 +0000 (12:37 +0200)]
[Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821.

13 years agoAdd test for #611821
Jb Evain [Thu, 19 Aug 2010 10:34:38 +0000 (12:34 +0200)]
Add test for #611821

13 years ago[Fix] update the System.ServiceModel assembly version
Jb Evain [Thu, 19 Aug 2010 09:59:23 +0000 (11:59 +0200)]
[Fix] update the System.ServiceModel assembly version

13 years agoMade a couple of listener channel fixes.
Atsushi Eno [Thu, 19 Aug 2010 09:52:36 +0000 (18:52 +0900)]
Made a couple of listener channel fixes.

13 years agoUse expected MessageVersion for OutgoingMessageHeaders (and raise errors whenever...
Atsushi Eno [Thu, 19 Aug 2010 09:50:43 +0000 (18:50 +0900)]
Use expected MessageVersion for OutgoingMessageHeaders (and raise errors whenever expected).

13 years agoTargetInvocationException is often unexpected. Throw InnerException if applicable.
Atsushi Eno [Thu, 19 Aug 2010 06:23:44 +0000 (15:23 +0900)]
TargetInvocationException is often unexpected. Throw InnerException if applicable.

13 years agoUdpClient.Receive() often returns null. Not sure this undocumented behavior is correc...
Atsushi Eno [Thu, 19 Aug 2010 06:00:26 +0000 (15:00 +0900)]
UdpClient.Receive() often returns null. Not sure this undocumented behavior is correct, but workaround anyways.

13 years agoFix GetDelegateForFunctionPointer for generic types
Geoff Norton [Thu, 19 Aug 2010 02:10:13 +0000 (22:10 -0400)]
Fix GetDelegateForFunctionPointer for generic types

MSFT .NET throws an ArgumentException if you attempt to call
GetDelegateForFunctionPointer for a generic type.

13 years agoSimplify test for MIPS imm16 operands.
Mark Mason [Wed, 18 Aug 2010 15:39:36 +0000 (23:39 +0800)]
Simplify test for MIPS imm16 operands.

Code contributed under the MIT/X11 license.

13 years agoSupport for large stackframes on MIPS.
Mark Mason [Wed, 18 Aug 2010 15:36:28 +0000 (23:36 +0800)]
Support for large stackframes on MIPS.

Increase the sizes of the various load/store opcodes in order
to support the expansion when large stack frames (>32k) are
produced. Update prologue and epilogue code to generate the
frame in two steps.

Code contributed under the MIT/X11 license.

13 years agoMake long_branch a runtime switch. Factor mips_call() code generation.
Mark Mason [Tue, 17 Aug 2010 21:44:16 +0000 (05:44 +0800)]
Make long_branch a runtime switch. Factor mips_call() code generation.
Code contributed under the MIT/X11 license.

13 years agoFix codegen for LOAD*_MEMBASE, add assert to catch mangled spill loads.
Mark Mason [Fri, 13 Aug 2010 16:35:32 +0000 (00:35 +0800)]
Fix codegen for LOAD*_MEMBASE, add assert to catch mangled spill loads.
Code contributed under the MIT/X11 license.

13 years ago[Fix] SetConsoleMode on the input handle, not the output handle, fixing #632009
Alex Fort [Wed, 18 Aug 2010 21:25:17 +0000 (05:25 +0800)]
[Fix] SetConsoleMode on the input handle, not the output handle, fixing #632009

Because we were using the wrong handle in SetConsoleMode, newlines were breaking when TreatControlCAsInput was enabled. This no longer happens now that we're setting the correct mode on the input handle instead of the output handle.

13 years ago[xbuild] Evaluate Import only if its condition evaluates to true.
Ankit Jain [Wed, 18 Aug 2010 20:54:13 +0000 (02:24 +0530)]
[xbuild] Evaluate Import only if its condition evaluates to true.

13 years ago[xbuild] Support extra paths for MSBuildExtensionsPath32/64 .
Ankit Jain [Wed, 18 Aug 2010 20:48:10 +0000 (02:18 +0530)]
[xbuild] Support extra paths for MSBuildExtensionsPath32/64 .

Support extra search paths via env variables for
MSBuildExtensionsPath32/64 also.

Update man page.

13 years ago[xbuild] Add reserved property MSBuildExtensionsPath64 .
Ankit Jain [Wed, 18 Aug 2010 20:45:17 +0000 (02:15 +0530)]
[xbuild] Add reserved property MSBuildExtensionsPath64 .

13 years agoMerge branch 'work'
Gonzalo Paniagua Javier [Wed, 18 Aug 2010 17:13:52 +0000 (13:13 -0400)]
Merge branch 'work'

13 years agoIgnore TestResult.xml too
Gonzalo Paniagua Javier [Wed, 18 Aug 2010 17:13:26 +0000 (13:13 -0400)]
Ignore TestResult.xml too

13 years ago[xbuild] Update man page.
Ankit Jain [Wed, 18 Aug 2010 16:42:14 +0000 (22:12 +0530)]
[xbuild] Update man page.

13 years ago[xbuild] Add env var to dump details of reference resolution.
Ankit Jain [Wed, 18 Aug 2010 16:03:36 +0000 (21:33 +0530)]
[xbuild] Add env var to dump details of reference resolution.

If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.

Update the man page also.

13 years agoFix building with MSVC.
Zoltan Varga [Wed, 18 Aug 2010 15:52:07 +0000 (17:52 +0200)]
Fix building with MSVC.

13 years agoFix building with MSVC.
Zoltan Varga [Wed, 18 Aug 2010 15:50:46 +0000 (17:50 +0200)]
Fix building with MSVC.

13 years agoFix handling of stdio in g_spawn_async_with_pipes ().
Zoltan Varga [Wed, 18 Aug 2010 15:47:56 +0000 (17:47 +0200)]
Fix handling of stdio in g_spawn_async_with_pipes ().

13 years agoFix cancellation tracking and reporting in Task.
Jérémie Laval [Wed, 18 Aug 2010 13:33:22 +0000 (14:33 +0100)]
Fix cancellation tracking and reporting in Task.

13 years ago[asp.net] Fix for bug #621837. Rewriting a path must take path info into account.
Marek Habersack [Wed, 18 Aug 2010 12:28:50 +0000 (14:28 +0200)]
[asp.net] Fix for bug #621837. Rewriting a path must take path info into account.

When HttpContext.RewritePath is used, the path info of the new path must be taken
into account and the HttpRequest.Path propert must contain it.

13 years agoUse correct Uri to connect in UDP client.
Atsushi Eno [Wed, 18 Aug 2010 13:02:01 +0000 (22:02 +0900)]
Use correct Uri to connect in UDP client.

13 years agoBump the size of the epoll threads to 256k on 64 bit systems to avoid problems on...
Zoltan Varga [Wed, 18 Aug 2010 12:34:36 +0000 (14:34 +0200)]
Bump the size of the epoll threads to 256k on 64 bit systems to avoid problems on ppc64 with 64k page sizes.

13 years agoAdd an assert to protect against the altstack clobbering the current stack.
Zoltan Varga [Wed, 18 Aug 2010 12:33:53 +0000 (14:33 +0200)]
Add an assert to protect against the altstack clobbering the current stack.

13 years agoReduce memory footprint
Marek Safar [Wed, 18 Aug 2010 12:30:47 +0000 (13:30 +0100)]
Reduce memory footprint

13 years agoUpdated error message
Marek Safar [Wed, 18 Aug 2010 12:27:25 +0000 (13:27 +0100)]
Updated error message

13 years agoWhen merging sessions error messages don't get confused by warnings.
Marek Safar [Wed, 18 Aug 2010 09:04:22 +0000 (10:04 +0100)]
When merging sessions error messages don't get confused by warnings.

13 years agoCannot skip on the first type match for multiple inheritances
Marek Safar [Tue, 17 Aug 2010 19:34:43 +0000 (20:34 +0100)]
Cannot skip on the first type match for multiple inheritances

13 years agoDefer checks until all base types are ready
Marek Safar [Tue, 17 Aug 2010 19:15:26 +0000 (20:15 +0100)]
Defer checks until all base types are ready

13 years agoSeveral fixes to get client Via URI used correctly.
Atsushi Eno [Wed, 18 Aug 2010 12:00:14 +0000 (21:00 +0900)]
Several fixes to get client Via URI used correctly.

13 years agoDo not overwrite Via URI on ClientRuntime after applying behaviors.
Atsushi Eno [Wed, 18 Aug 2010 11:58:16 +0000 (20:58 +0900)]
Do not overwrite Via URI on ClientRuntime after applying behaviors.

13 years agoFix running of tests under net 4.0.
Zoltan Varga [Wed, 18 Aug 2010 10:00:20 +0000 (12:00 +0200)]
Fix running of tests under net 4.0.

13 years ago[PLinq] Tune SkipWhile operator, re-enable its unit tests
Jérémie Laval [Wed, 18 Aug 2010 09:33:17 +0000 (10:33 +0100)]
[PLinq] Tune SkipWhile operator, re-enable its unit tests

13 years ago[PLinq] Re-enable tests that were previously [Ignore]'ed
Jérémie Laval [Wed, 18 Aug 2010 09:10:22 +0000 (10:10 +0100)]
[PLinq] Re-enable tests that were previously [Ignore]'ed

13 years agoImplemented basic UDP transport.
Atsushi Eno [Wed, 18 Aug 2010 08:40:12 +0000 (17:40 +0900)]
Implemented basic UDP transport.

13 years ago[PLinq] Reflect directory hierarchy change on namespace names
Jérémie Laval [Wed, 18 Aug 2010 08:25:12 +0000 (09:25 +0100)]
[PLinq] Reflect directory hierarchy change on namespace names

13 years agoFix the corlib tests build.
Zoltan Varga [Wed, 18 Aug 2010 02:36:28 +0000 (04:36 +0200)]
Fix the corlib tests build.

13 years agoUpdate file hierarchy change in System too
Jérémie Laval [Tue, 17 Aug 2010 22:33:47 +0000 (23:33 +0100)]
Update file hierarchy change in System too

13 years agoDiscard modifier key presses from ReadKey
Alex Fort [Tue, 17 Aug 2010 21:22:08 +0000 (17:22 -0400)]
Discard modifier key presses from ReadKey

Modifier key presses were still being recorded by ReadKey, such as Control, Alt and Shift. This adds a method to ensure that doesn't happen anymore.

13 years agoCopyright fix: the owner is Chris, not Novell
Miguel de Icaza [Tue, 17 Aug 2010 17:22:59 +0000 (13:22 -0400)]
Copyright fix: the owner is Chris, not Novell

13 years agoAdd test for dynamic methods with invalid unicode name
Jb Evain [Tue, 17 Aug 2010 17:17:44 +0000 (19:17 +0200)]
Add test for dynamic methods with invalid unicode name

13 years agoFlatten file hierarchy in System.Threading.Tasks
Jérémie Laval [Tue, 17 Aug 2010 17:04:49 +0000 (18:04 +0100)]
Flatten file hierarchy in System.Threading.Tasks

13 years ago[PLinq] Move NET_4_0 define check under licence text
Jérémie Laval [Tue, 17 Aug 2010 17:00:17 +0000 (18:00 +0100)]
[PLinq] Move NET_4_0 define check under licence text

13 years ago[PLinq] Tidy up file hierarchy in System.Linq
Jérémie Laval [Tue, 17 Aug 2010 16:52:58 +0000 (17:52 +0100)]
[PLinq] Tidy up file hierarchy in System.Linq

13 years agoAdd ServiceDiscoveryBehavior hosting test case.
Atsushi Eno [Tue, 17 Aug 2010 16:12:15 +0000 (01:12 +0900)]
Add ServiceDiscoveryBehavior hosting test case.

13 years ago[PLinq] Fix and improve Skip operator and use two different versions of the predicate...
Jérémie Laval [Tue, 17 Aug 2010 15:59:01 +0000 (16:59 +0100)]
[PLinq] Fix and improve Skip operator and use two different versions of the predicate depending on the relative order of the query.

This actually make the operator complies to the behavior described in MSDN "Order Preservation" table.

13 years ago[PLinq] Fix ToArray and ToList operator to also conservatively keep order when an...
Jérémie Laval [Tue, 17 Aug 2010 15:56:09 +0000 (16:56 +0100)]
[PLinq] Fix ToArray and ToList operator to also conservatively keep order when an explicit order guard is in the query.

13 years ago[PLinq] Fix ProcessAndAggregate to correctly initialize its seed with all workers...
Jérémie Laval [Tue, 17 Aug 2010 15:53:46 +0000 (16:53 +0100)]
[PLinq] Fix ProcessAndAggregate to correctly initialize its seed with all workers when no seedFunc is supplied.

13 years ago[PLinq] Add a IsOrdered internal operator that naively says if the current node is...
Jérémie Laval [Tue, 17 Aug 2010 15:51:08 +0000 (16:51 +0100)]
[PLinq] Add a IsOrdered internal operator that naively says if the current node is behind an ordered guard.

This is necessary for some PLinq operator that can provide a better optimized version of themselves when there is no ordering constraint whithout having to create yet another query node. Note that the method can be optimized with a more specialized version of the visitor.

13 years ago[PLinq] Remove unused Process overload.
Jérémie Laval [Tue, 17 Aug 2010 15:50:30 +0000 (16:50 +0100)]
[PLinq] Remove unused Process overload.

13 years agoIncrement Barrier's phase number before signaling to threads that they can proceed.
Jérémie Laval [Tue, 17 Aug 2010 15:47:43 +0000 (16:47 +0100)]
Increment Barrier's phase number before signaling to threads that they can proceed.

13 years agoMove the count increment at a semantically more correct place in ConcurrentQueue
Jérémie Laval [Tue, 17 Aug 2010 15:45:49 +0000 (16:45 +0100)]
Move the count increment at a semantically more correct place in ConcurrentQueue

13 years ago[PLinq] Add more twist to unit tests by forcing use of a standard IEnumerable.
Jérémie Laval [Tue, 17 Aug 2010 15:36:45 +0000 (16:36 +0100)]
[PLinq] Add more twist to unit tests by forcing use of a standard IEnumerable.

13 years agoFix whitespace mess in ParallelEnumerable methods.
Jérémie Laval [Tue, 17 Aug 2010 15:34:45 +0000 (16:34 +0100)]
Fix whitespace mess in ParallelEnumerable methods.

13 years ago[PLinq] Fix visitor behavior when on a QueryOrderGuardNode.
Jérémie Laval [Tue, 17 Aug 2010 15:32:19 +0000 (16:32 +0100)]
[PLinq] Fix visitor behavior when on a QueryOrderGuardNode.

Previously the case of Unordered wasn't taken in account and the control flow wasn't properly forwarded to the following nodes in the query# Please enter the commit message for your changes. Lines starting