mono.git
13 years ago[xbuild] Fix bug #674337.
Ankit Jain [Wed, 23 Feb 2011 15:56:28 +0000 (21:26 +0530)]
[xbuild] Fix bug #674337.

Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.

13 years agoEnable locking fast path on darwin-x86.
Rodrigo Kumpera [Wed, 23 Feb 2011 13:36:36 +0000 (14:36 +0100)]
Enable locking fast path on darwin-x86.

13 years agoEnable monitor enter/exit wrappers under sgen.
Rodrigo Kumpera [Wed, 23 Feb 2011 13:12:57 +0000 (14:12 +0100)]
Enable monitor enter/exit wrappers under sgen.

* monitor.c (emit_obj_syncp_check): Add code to
check for thin hashing.

13 years agoMore Rabbit parallel build fixes
Marek Safar [Wed, 23 Feb 2011 11:59:39 +0000 (11:59 +0000)]
More Rabbit parallel build fixes

13 years agoUse new shared code for darwin fast tls.
Rodrigo Kumpera [Wed, 23 Feb 2011 11:17:44 +0000 (12:17 +0100)]
Use new shared code for darwin fast tls.

* mini.c: Replace MINI_FAST_TLS macros with the
new ones from mono-compiler.h.

13 years agoUse darwin fast tls across the board.
Rodrigo Kumpera [Wed, 23 Feb 2011 10:59:01 +0000 (11:59 +0100)]
Use darwin fast tls across the board.

* mono-compiler.h: Under darwin define MONO_THREAD_VAR_OFFSET
to return pthread_key_t as we can generate fast tls get for it.

* mono-compiler.h: Define MONO_FAST_TLS_(GET SET DECLARE INIT)
macros to transparently use __thread and darwin fast tls
transparently.

* mono-compiler.h: Add MONO_HAVE_FAST_TLS define that allows
fast darwin to be used across the board.

* domain.c: Switch to using the new macros.

* threads.c: Ditto.

13 years agoRedude warning spew under darwin
Rodrigo Kumpera [Wed, 23 Feb 2011 10:49:26 +0000 (11:49 +0100)]
Redude warning spew under darwin

13 years agoFix a warning.
Zoltan Varga [Wed, 23 Feb 2011 10:45:06 +0000 (11:45 +0100)]
Fix a warning.

13 years agoFix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization...
Zoltan Varga [Tue, 22 Feb 2011 14:29:37 +0000 (15:29 +0100)]
Fix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization. Fixes #672446.

13 years agoFix gsize for 64-bit Windows
Hib Eris [Sun, 13 Feb 2011 13:35:57 +0000 (14:35 +0100)]
Fix gsize for 64-bit Windows

13 years agoRemove some unneeded copied code.
joncham [Wed, 23 Feb 2011 05:09:28 +0000 (00:09 -0500)]
Remove some unneeded copied code.

13 years agoMore project fixes.
joncham [Wed, 23 Feb 2011 03:22:48 +0000 (22:22 -0500)]
More project fixes.

13 years agoAdd check around unistd.h include to fix windows build.
joncham [Wed, 23 Feb 2011 03:22:06 +0000 (22:22 -0500)]
Add check around unistd.h include to fix windows build.

13 years agoAdd CodeAnalyst profiler and clean up vcxproj files.
joncham [Wed, 23 Feb 2011 01:57:47 +0000 (20:57 -0500)]
Add CodeAnalyst profiler and clean up vcxproj files.

13 years agoAdd simple csproj to build and debug genproj.cs.
joncham [Thu, 17 Feb 2011 01:57:35 +0000 (20:57 -0500)]
Add simple csproj to build and debug genproj.cs.

13 years agoAvoid warnings, should fix OpenSUSE builds
Miguel de Icaza [Wed, 23 Feb 2011 00:30:05 +0000 (19:30 -0500)]
Avoid warnings, should fix OpenSUSE builds

13 years ago[sgen] Break tracking weak references as early as possible.
Mark Probst [Tue, 22 Feb 2011 21:12:55 +0000 (22:12 +0100)]
[sgen] Break tracking weak references as early as possible.

Our tracking references code aimed to transform tracking references
into normal weak references the first time their targets became
unreachable.  It was implemented incorrectly though, and is not the
right thing to do in the first place anyway, because tracking
references have to keep tracking if the target is re-registered for
finalization.  The incorrect implementation inadvertently handled
re-registration correctly, but it kept the reference intact for one
garbage collection cycle too many.

13 years agoRemove misplaced SecurityCritical
Marek Safar [Tue, 22 Feb 2011 16:55:57 +0000 (16:55 +0000)]
Remove misplaced SecurityCritical

13 years ago[xbuild] Add new reserved properties $(MSBuildThisFile*).
Ankit Jain [Tue, 22 Feb 2011 18:36:07 +0000 (00:06 +0530)]
[xbuild] Add new reserved properties $(MSBuildThisFile*).

Also, fixes bug #668955.

Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.

* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.

13 years agoProperly check arguments in List<T> ICollection.CopyTo.
Rodrigo Kumpera [Tue, 22 Feb 2011 17:48:32 +0000 (18:48 +0100)]
Properly check arguments in List<T> ICollection.CopyTo.

* List.cs (ICollection.CopyTo): Properly check
the array argument to match MS semantics.

Fixes #672907

13 years agoFix mcs sdk default
Marek Safar [Tue, 22 Feb 2011 16:50:27 +0000 (16:50 +0000)]
Fix mcs sdk default

13 years agoRemove some weird and unused MONO_PATH acrobatics
Marek Safar [Tue, 22 Feb 2011 16:46:54 +0000 (16:46 +0000)]
Remove some weird and unused MONO_PATH acrobatics

13 years agoRemove existing type when redefined by evaluator
Marek Safar [Tue, 22 Feb 2011 14:47:13 +0000 (14:47 +0000)]
Remove existing type when redefined by evaluator

13 years agoFix tests compilation
Marek Safar [Tue, 22 Feb 2011 14:46:50 +0000 (14:46 +0000)]
Fix tests compilation

13 years ago[xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
Ankit Jain [Tue, 22 Feb 2011 15:52:38 +0000 (21:22 +0530)]
[xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.

Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.

13 years agoFix RabbitMQ.Client parallel build
Marek Safar [Tue, 22 Feb 2011 13:50:44 +0000 (13:50 +0000)]
Fix RabbitMQ.Client parallel build

13 years agoFix a warning.
Zoltan Varga [Tue, 22 Feb 2011 05:22:45 +0000 (06:22 +0100)]
Fix a warning.

13 years agoFix the windows build.
Zoltan Varga [Tue, 22 Feb 2011 05:20:23 +0000 (06:20 +0100)]
Fix the windows build.

13 years agoAvoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes...
Zoltan Varga [Tue, 22 Feb 2011 04:32:43 +0000 (05:32 +0100)]
Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592.

13 years agoAdd a G_UNLIKELY to g_assert ().
Zoltan Varga [Tue, 22 Feb 2011 00:04:58 +0000 (01:04 +0100)]
Add a G_UNLIKELY to g_assert ().

13 years agoFix arm thunk creation in dynamic methods. Fixes #673828.
Zoltan Varga [Mon, 21 Feb 2011 23:38:40 +0000 (00:38 +0100)]
Fix arm thunk creation in dynamic methods. Fixes #673828.

13 years ago[transactions] When cloning a transaction make sure to copy all the stuff that matters.
Marek Habersack [Mon, 21 Feb 2011 22:36:00 +0000 (23:36 +0100)]
[transactions] When cloning a transaction make sure to copy all the stuff that matters.

The volatiles and durables lists must be copied even if they are empty. The calling code
might still be accessing them via the original transaction (as is the case with Orchard+NHibernate)

13 years agoCheck if the override declaration is visible to the body.
Rodrigo Kumpera [Mon, 21 Feb 2011 20:51:01 +0000 (21:51 +0100)]
Check if the override declaration is visible to the body.

* class.c (verify_class_overrides): The override declaration
must be visible to the override body otherwise fail the type.
This protects against types trying to override internal
methods of types from other assemblies.

* class.c (mono_class_setup_vtable_general): Do the same
check for implicit overrides (those based only on name & sig).

Fixes #609813

13 years agoSkip visibility checks from corlib internal assemblies.
Rodrigo Kumpera [Mon, 21 Feb 2011 20:49:16 +0000 (21:49 +0100)]
Skip visibility checks from corlib internal assemblies.

* class.c (can_access_type): Skip visilibity checks for types
from corlib internal assemblies (binary serialization).

* class.c (can_access_member): Ditto.

13 years agoMove declaration to a more appropriate header.
Rodrigo Kumpera [Mon, 21 Feb 2011 20:45:36 +0000 (21:45 +0100)]
Move declaration to a more appropriate header.

13 years ago[asp.net] Fix for bug #669807. Cache session item locks as the item might be cleared...
Marek Habersack [Mon, 21 Feb 2011 18:48:29 +0000 (19:48 +0100)]
[asp.net] Fix for bug #669807. Cache session item locks as the item might be cleared before the lock needs to be released.

13 years agoImplement proper TSD lookup for arm-darwin
Geoff Norton [Mon, 21 Feb 2011 18:36:02 +0000 (13:36 -0500)]
Implement proper TSD lookup for arm-darwin

13 years agoAvoid disassembling pthread_getspecific every time we need to check for fast tls...
Geoff Norton [Mon, 21 Feb 2011 17:51:14 +0000 (12:51 -0500)]
Avoid disassembling pthread_getspecific every time we need to check for fast tls on osx

13 years agoFix mono_amd64_emit_tls_get on darwin. Fixes sgen and #673813
Geoff Norton [Mon, 21 Feb 2011 17:49:05 +0000 (12:49 -0500)]
Fix mono_amd64_emit_tls_get on darwin.  Fixes sgen and #673813

13 years agoMerge branch 'sgen-new-parallel'
Mark Probst [Mon, 21 Feb 2011 15:00:55 +0000 (16:00 +0100)]
Merge branch 'sgen-new-parallel'

13 years ago[sgen] Use __thread for the workers free block lists if available.
Mark Probst [Mon, 21 Feb 2011 14:43:58 +0000 (15:43 +0100)]
[sgen] Use __thread for the workers free block lists if available.

13 years ago[sgen] Steal right back without unlocking if we've shared our whole gray stack.
Mark Probst [Fri, 11 Feb 2011 19:05:40 +0000 (20:05 +0100)]
[sgen] Steal right back without unlocking if we've shared our whole gray stack.

13 years ago[sgen] Check for work sharing every N (currently 32) marks.
Mark Probst [Fri, 11 Feb 2011 17:46:56 +0000 (18:46 +0100)]
[sgen] Check for work sharing every N (currently 32) marks.

13 years ago[sgen] Have thread-local block free lists in worker threads.
Mark Probst [Fri, 11 Feb 2011 17:11:33 +0000 (18:11 +0100)]
[sgen] Have thread-local block free lists in worker threads.

13 years ago[sgen] MONO_GC_PARAMS option for specifying number of worker threads.
Mark Probst [Fri, 11 Feb 2011 12:31:05 +0000 (13:31 +0100)]
[sgen] MONO_GC_PARAMS option for specifying number of worker threads.

13 years ago[sgen] Don't lock for allocating objects from the free lists.
Mark Probst [Thu, 10 Feb 2011 22:26:24 +0000 (23:26 +0100)]
[sgen] Don't lock for allocating objects from the free lists.

13 years ago[sgen] Better work distribution for parallel mark.
Mark Probst [Thu, 10 Feb 2011 19:18:34 +0000 (20:18 +0100)]
[sgen] Better work distribution for parallel mark.

13 years agoOSX 10.6 properly respected signal handlers before invoking the crash reporter
Geoff Norton [Mon, 21 Feb 2011 04:01:50 +0000 (23:01 -0500)]
OSX 10.6 properly respected signal handlers before invoking the crash reporter

13 years ago2011-02-16 Juho Vähä-Herttua <juhovh@iki.fi>
Juho Vähä-Herttua [Wed, 16 Feb 2011 19:32:28 +0000 (21:32 +0200)]
2011-02-16 Juho Vähä-Herttua <juhovh@iki.fi>

        * CngExportPolicies.cs: New.
        * CngKeyCreationOptions.cs: New.
        * CngKeyOpenOptions.cs: New.
        * CngKeyUsages.cs: New.
        * CngPropertyOptions.cs: New.
        * CngUIProtectionLevels.cs: New.
        * ECDiffieHellmanKeyDerivationFunction.cs: New.
        * ECKeyXmlFormat.cs: New.

13 years agoOnly call GC_DllMain for embedded gc
Hib Eris [Sat, 19 Feb 2011 13:13:24 +0000 (14:13 +0100)]
Only call GC_DllMain for embedded gc

13 years agoReturn TRUE from mono_gc_dllmain
Hib Eris [Sun, 20 Feb 2011 09:51:21 +0000 (10:51 +0100)]
Return TRUE from mono_gc_dllmain

13 years agoImplement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM.
Zoltan Varga [Sun, 20 Feb 2011 02:22:52 +0000 (03:22 +0100)]
Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM.

13 years agoMake the var/mvar caches per-image, since the generic params they refer to can be...
Zoltan Varga [Sun, 20 Feb 2011 00:52:48 +0000 (01:52 +0100)]
Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939.

13 years agoFix USE_MALLOC_FOR_MEMPOOLS.
Zoltan Varga [Sat, 19 Feb 2011 22:31:42 +0000 (23:31 +0100)]
Fix USE_MALLOC_FOR_MEMPOOLS.

13 years agoRevert "[Win64] Compilation fix for eglib in win64"
Zoltan Varga [Sat, 19 Feb 2011 22:26:46 +0000 (23:26 +0100)]
Revert "[Win64] Compilation fix for eglib in win64"

This reverts commit a05a29ce9585e7163cb79674101c8d552946e028.

13 years agoFix a warning.
Zoltan Varga [Sat, 19 Feb 2011 21:55:38 +0000 (22:55 +0100)]
Fix a warning.

13 years agoReorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target...
Zoltan Varga [Sat, 19 Feb 2011 21:22:03 +0000 (22:22 +0100)]
Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815.

13 years agoAvoid leaking a mach_port every time we query the counters
Geoff Norton [Sat, 19 Feb 2011 17:20:42 +0000 (12:20 -0500)]
Avoid leaking a mach_port every time we query the counters

13 years agoadd #if APPLE around include of mach.h
Duane Wandless [Sat, 19 Feb 2011 16:19:36 +0000 (11:19 -0500)]
add #if APPLE around include of mach.h

13 years agoadd Performance counter for "Process", "Working Set" and "Virtual Bytes" and "Thread...
Duane Wandless [Sat, 19 Feb 2011 15:33:22 +0000 (10:33 -0500)]
add Performance counter for "Process", "Working Set" and "Virtual Bytes" and "Thread Count"

13 years agoadd support for new PerformanceCounter("Process", "% Processor Time", "<process id...
Duane Wandless [Sat, 19 Feb 2011 12:47:17 +0000 (07:47 -0500)]
add support for new PerformanceCounter("Process", "% Processor Time", "<process id as string>" on OS X

13 years ago[eglib] Move definition of GPid to eglib-config.h
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 16:49:21 +0000 (11:49 -0500)]
[eglib] Move definition of GPid to eglib-config.h

This new patch moves the definition of GPid from glib.h to eglib-config.h and
determines the the type of pid_t in configure.

Pach from Hib Eris that fixes bug #670076.

13 years ago[Win64] Compilation fix for eglib in win64
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 16:41:34 +0000 (11:41 -0500)]
[Win64] Compilation fix for eglib in win64

Compiling for 64 bit windows breaks on incorrect gsize.
Patch by Hib Eris that fixes bug #673581.

13 years ago[594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix...
Miguel de Icaza [Sat, 19 Feb 2011 16:05:29 +0000 (11:05 -0500)]
[594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix for MacOS X

13 years agoFix the check for version and PublicKeyToken
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 15:11:10 +0000 (10:11 -0500)]
Fix the check for version and PublicKeyToken

When loading an assembly we were comparing Version(0,0,0,0) with null
and a 0 length PKT with an actual one when those two cases are the
default.
Fixes bug #661461.

13 years agoFix cygwin build
Marek Safar [Sat, 19 Feb 2011 10:15:34 +0000 (10:15 +0000)]
Fix cygwin build

13 years agopatch-quiet now works in systems with 'gsed'
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 06:18:30 +0000 (01:18 -0500)]
patch-quiet now works in systems with 'gsed'

13 years ago[threadpool] Add support for kqueue asynch. IO.
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 06:20:18 +0000 (01:20 -0500)]
[threadpool] Add support for kqueue asynch. IO.

13 years ago[threadpool] fixes for epoll.
Gonzalo Paniagua Javier [Sat, 19 Feb 2011 06:17:48 +0000 (01:17 -0500)]
[threadpool] fixes for epoll.

13 years agoHandle overrides on events when retrieving cattrs.
Rodrigo Kumpera [Fri, 18 Feb 2011 22:35:33 +0000 (23:35 +0100)]
Handle overrides on events when retrieving cattrs.

* MonoCustomAttrs.cs (GetBase): Special case events
when retrieving the base event to lookup cattrs.

* AttributeTest.cs: Add regression test.

Fixes #662867

13 years agoWork around a gcc bug on arm.
Zoltan Varga [Fri, 18 Feb 2011 22:03:29 +0000 (23:03 +0100)]
Work around a gcc bug on arm.

13 years agoSet cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics...
Zoltan Varga [Fri, 18 Feb 2011 22:02:42 +0000 (23:02 +0100)]
Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe.

13 years agoAdd (c). Remove printfs.
Gonzalo Paniagua Javier [Fri, 18 Feb 2011 20:13:53 +0000 (15:13 -0500)]
Add (c). Remove printfs.

13 years agoFix repl optional assignment not to hide produced errors
Marek Safar [Fri, 18 Feb 2011 10:10:30 +0000 (10:10 +0000)]
Fix repl optional assignment not to hide produced errors

13 years agoFix line advancing on Mac/CR only files
Marek Safar [Fri, 18 Feb 2011 10:09:44 +0000 (10:09 +0000)]
Fix line advancing on Mac/CR only files

13 years agoAvoid 'comparison always true...'
Gonzalo Paniagua Javier [Fri, 18 Feb 2011 09:28:50 +0000 (04:28 -0500)]
Avoid 'comparison always true...'

13 years agoFix the windows build.
Gonzalo Paniagua Javier [Fri, 18 Feb 2011 09:09:23 +0000 (04:09 -0500)]
Fix the windows build.

13 years agoFix infinite loop in DiscoveryMessageSequence equality comparison.
Atsushi Eno [Fri, 18 Feb 2011 07:32:01 +0000 (16:32 +0900)]
Fix infinite loop in DiscoveryMessageSequence equality comparison.

13 years agoDo not try to serialize null header item.
Atsushi Eno [Fri, 18 Feb 2011 07:23:15 +0000 (16:23 +0900)]
Do not try to serialize null header item.

13 years agoFix wrong element name (AppSequenceType->AppSequence).
Atsushi Eno [Fri, 18 Feb 2011 07:13:23 +0000 (16:13 +0900)]
Fix wrong element name (AppSequenceType->AppSequence).

13 years agoAlmost eliminate wrong use of Constants.WsaNamespace.
Atsushi Eno [Fri, 18 Feb 2011 07:10:11 +0000 (16:10 +0900)]
Almost eliminate wrong use of Constants.WsaNamespace.

They should be addressing-version-aware.

13 years agoEndpointAddressAugust2004 was not serialized correctly.
Atsushi Eno [Fri, 18 Feb 2011 06:53:09 +0000 (15:53 +0900)]
EndpointAddressAugust2004 was not serialized correctly.

Well, Actually unified the implementation with 10.

13 years ago[threadpool] Split the socket code in separate files.
Gonzalo Paniagua Javier [Thu, 17 Feb 2011 16:21:41 +0000 (11:21 -0500)]
[threadpool] Split the socket code in separate files.

13 years agoMake sure we keep a root for the delegates when calling them.
Rodrigo Kumpera [Thu, 17 Feb 2011 20:56:38 +0000 (21:56 +0100)]
Make sure we keep a root for the delegates when calling them.

* method-to-ir.c (mono_emit_method_call_full): Make sure
we keep a root for delegates when calling them using the
fast delegate dispatch.

Fixes #667921

13 years agoFix repl using declaration after type declaration
Marek Safar [Thu, 17 Feb 2011 21:06:35 +0000 (21:06 +0000)]
Fix repl using declaration after type declaration

13 years agoLoad default references after user references so they can rely on corlib
Marek Safar [Thu, 17 Feb 2011 20:58:17 +0000 (20:58 +0000)]
Load default references after user references so they can rely on corlib

13 years agoEven more 4.0 profile mcs update
Marek Safar [Thu, 17 Feb 2011 19:28:20 +0000 (19:28 +0000)]
Even more 4.0 profile mcs update

13 years agoCleanup repl from most of static stuff and fix many hidden issues
Marek Safar [Thu, 17 Feb 2011 19:18:57 +0000 (19:18 +0000)]
Cleanup repl from most of static stuff and fix many hidden issues

13 years ago[asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method...
Marek Habersack [Thu, 17 Feb 2011 18:34:24 +0000 (19:34 +0100)]
[asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method overloads.

13 years agoDon't use runtime flag for basic compiler (it still lives in old world)
Marek Safar [Thu, 17 Feb 2011 18:33:24 +0000 (18:33 +0000)]
Don't use runtime flag for basic compiler (it still lives in old world)

13 years agoFixed exception string (spaces between words = good)
Jeffrey Stedfast [Thu, 17 Feb 2011 18:00:50 +0000 (13:00 -0500)]
Fixed exception string (spaces between words = good)

13 years ago[mcs] Fix builds which use full file paths on the command line
Marek Habersack [Thu, 17 Feb 2011 00:04:41 +0000 (01:04 +0100)]
[mcs] Fix builds which use full file paths on the command line

Passing /tmp/source.cs to mcs would result in "error CS2007: Unrecognized command-line option: /tmp/source.cs"
this patch fixes it.

13 years agoSet correct runtime version for corlib now when mcs defaults to 4.
Marek Safar [Thu, 17 Feb 2011 16:31:14 +0000 (16:31 +0000)]
Set correct runtime version for corlib now when mcs defaults to 4.

13 years agoCorrectly set underlying type of reduced side-effect constant expression
Marek Safar [Thu, 17 Feb 2011 15:18:39 +0000 (15:18 +0000)]
Correctly set underlying type of reduced side-effect constant expression

13 years agoAllow people to optionally fallback to the old scheduler with an environment variable
Jérémie Laval [Thu, 17 Feb 2011 15:36:27 +0000 (15:36 +0000)]
Allow people to optionally fallback to the old scheduler with an environment variable

13 years agoRemove ctors in TpScheduler
Jérémie Laval [Thu, 17 Feb 2011 15:35:32 +0000 (15:35 +0000)]
Remove ctors in TpScheduler

This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.

13 years agoMake TryExecuteTaskInline a bit smarter
Jérémie Laval [Thu, 17 Feb 2011 15:35:02 +0000 (15:35 +0000)]
Make TryExecuteTaskInline a bit smarter

13 years agoRefactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy
Jérémie Laval [Thu, 17 Feb 2011 15:34:11 +0000 (15:34 +0000)]
Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy

13 years agoKill old IScheduler interface.
Jérémie Laval [Thu, 17 Feb 2011 14:40:08 +0000 (14:40 +0000)]
Kill old IScheduler interface.

We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler

13 years agoWhen finding best worker number in Parallel loops use current TaskScheduler instead...
Jérémie Laval [Thu, 17 Feb 2011 14:03:10 +0000 (14:03 +0000)]
When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler