mono.git
14 years agoadd zlib functions
Gonzalo Paniagua Javier [Wed, 7 Apr 2010 22:20:36 +0000 (22:20 -0000)]
add zlib functions

svn path=/trunk/mono/; revision=155000

14 years ago2010-04-07 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 7 Apr 2010 22:17:32 +0000 (22:17 -0000)]
2010-04-07  Miguel de Icaza  <miguel@novell.com>

*  BufferManager.cs: Implement the BufferManager.

svn path=/trunk/mcs/; revision=154999

14 years ago2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 7 Apr 2010 21:41:22 +0000 (21:41 -0000)]
2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
unflushed input in zstream, so always call Z_FINISH.

svn path=/trunk/mono/; revision=154995

14 years agoFix bug #594541
Ankit Jain [Wed, 7 Apr 2010 21:24:31 +0000 (21:24 -0000)]
Fix bug #594541
* Vbc.cs (LogEventsFromTextOutput): Override and correctly parse
output. Taken regex from monodevelop for this.

svn path=/trunk/mcs/; revision=154993

14 years ago* ToolTask.cs: Use regex to parse output. Regex is from monodevelop.
Ankit Jain [Wed, 7 Apr 2010 21:24:16 +0000 (21:24 -0000)]
* ToolTask.cs: Use regex to parse output. Regex is from monodevelop.

svn path=/trunk/mcs/; revision=154992

14 years ago* xbuild/Microsoft.VisualBasic.targets: Fix OutputAssembly
Ankit Jain [Wed, 7 Apr 2010 21:23:59 +0000 (21:23 -0000)]
* xbuild/Microsoft.VisualBasic.targets: Fix OutputAssembly
property for the Vbc task.

svn path=/trunk/mcs/; revision=154991

14 years ago* ToolTask.cs (ExecuteTool): Check that the tool exists.
Ankit Jain [Wed, 7 Apr 2010 21:23:40 +0000 (21:23 -0000)]
* ToolTask.cs (ExecuteTool): Check that the tool exists.

svn path=/trunk/mcs/; revision=154990

14 years agoFixed invalid exception message
Marek Habersack [Wed, 7 Apr 2010 20:12:58 +0000 (20:12 -0000)]
Fixed invalid exception message

svn path=/trunk/mcs/; revision=154987

14 years agoFix bug #594531.
Ankit Jain [Wed, 7 Apr 2010 19:38:16 +0000 (19:38 -0000)]
Fix bug #594531.
* xbuild/Microsoft.VisualBasic.targets: Set RootNamespace
property of Vbc task.

svn path=/trunk/mcs/; revision=154986

14 years ago* Vbc.cs (ValidateParameters): Always return true, dummy implementation.
Ankit Jain [Wed, 7 Apr 2010 19:38:00 +0000 (19:38 -0000)]
* Vbc.cs (ValidateParameters): Always return true, dummy implementation.

svn path=/trunk/mcs/; revision=154985

14 years agoFix bug #594526.
Ankit Jain [Wed, 7 Apr 2010 19:14:26 +0000 (19:14 -0000)]
Fix bug #594526.
* xbuild/Microsoft.VisualBasic.targets(CoreCompile): Fix Outputs
to use @(IntermediateAssembly) instead of $(IntermediateAssembly).
Patch suggested by Eli Bishop (eli@wavemarket.com).

svn path=/trunk/mcs/; revision=154983

14 years ago* Makefile.am: create a convenience library for moon to link with
Andreia Gaita [Wed, 7 Apr 2010 16:42:13 +0000 (16:42 -0000)]
* Makefile.am: create a convenience library for moon to link with

svn path=/trunk/mono/; revision=154976

14 years agoAdd Mono.Debugger.Soft to MonkeyBuilder.
Jonathan Pobst [Wed, 7 Apr 2010 16:41:03 +0000 (16:41 -0000)]
Add Mono.Debugger.Soft to MonkeyBuilder.

svn path=/trunk/mono/; revision=154975

14 years agoSortedSet: Enable set comparision operations on views, and improve performance
Raja R Harinath [Wed, 7 Apr 2010 16:31:25 +0000 (16:31 -0000)]
SortedSet: Enable set comparision operations on views, and improve performance

* RBTree.cs (Bound): New.  Returns the greatest lower bound and
least upper bound of the given key.
(GetSuffixEnumerator): New.  Returns an enumerator that starts at
the given key.
(NodeEnumerator): Provide suffix enumerator functionality.
* SortedSet.cs (GetEnumerator): Delegate to ...
(TryGetEnumerator): ... this.  New virtual function.
(Enumerator): Provide subset enumeration using RBTree's suffix enumerators.
(SortedSubSet.count): New.
(SortedSubSet.GetCount): Use it.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update count.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Use RBTree.Bound().
(SortedSubSet.GetEnumerator): Remove.
(SortedSubSet.TryGetEnumerator): New.  Use ranged enumerators.
* SortedSetTest.cs: Update to test more view functionality,
including set comparison operators.

svn path=/trunk/mcs/; revision=154974

14 years ago2010-04-07 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 7 Apr 2010 15:05:50 +0000 (15:05 -0000)]
2010-04-07  Jb Evain  <jbevain@novell.com>

* main.c: don't overwrite method_name.

svn path=/trunk/mono/; revision=154966

14 years ago2010-04-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 Apr 2010 14:11:27 +0000 (14:11 -0000)]
2010-04-07  Sebastien Pouliot  <sebastien@ximian.com>

* ClientAccessPolicy.cs: Fake a "GET" method when applying a
policy to sockets

svn path=/trunk/mcs/; revision=154959

14 years ago2010-04-07 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 7 Apr 2010 13:53:37 +0000 (13:53 -0000)]
2010-04-07  Jb Evain  <jbevain@novell.com>

* EnumerableExecutor.cs: make ctor protected.

svn path=/trunk/mcs/; revision=154958

14 years ago2010-04-07 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 7 Apr 2010 13:50:35 +0000 (13:50 -0000)]
2010-04-07  Jb Evain  <jbevain@novell.com>

* EnumerableQuery_T.cs: implement.

svn path=/trunk/mcs/; revision=154956

14 years ago2010-04-07 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 7 Apr 2010 13:50:11 +0000 (13:50 -0000)]
2010-04-07  Jb Evain  <jbevain@novell.com>

* EnumerableQuery.cs: make ctor protected.

svn path=/trunk/mcs/; revision=154955

14 years ago2010-04-07 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 7 Apr 2010 13:32:15 +0000 (13:32 -0000)]
2010-04-07  Jb Evain  <jbevain@novell.com>

* Executor.cs: make class static.

svn path=/trunk/mcs/; revision=154953

14 years agoAdded the memoryCache section
Marek Habersack [Wed, 7 Apr 2010 13:17:52 +0000 (13:17 -0000)]
Added the memoryCache section

svn path=/trunk/mono/; revision=154951

14 years ago2010-04-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 Apr 2010 13:15:44 +0000 (13:15 -0000)]
2010-04-07  Sebastien Pouliot  <sebastien@ximian.com>

* BaseDomainPolicy.cs: Abstract-fy IsAllowed(WebRequest) and
remove abstract IsAllowed(Uri,string[]) since it cannot provide
enough information for the client access policy.
* ClientAccessPolicy.cs: Replace IsAllowed(Uri,string[]) with
IsAllowed(WebRequest) and add logic for AllowAnyMethod
* ClientAccessPolicyParser.cs: Read "http-methods" attribute (new
in SL3) and set the new AllowAnyMethod property if the value is
"*" (the only legal value if the attribute is present).
* FlashCrossDomainPolicy.cs: Add IsAllowed(WebRequest) since it's
not part of BaseDomainPolicy anymore.

svn path=/trunk/mcs/; revision=154949

14 years ago2010-04-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 7 Apr 2010 13:14:11 +0000 (13:14 -0000)]
2010-04-07  Marek Habersack  <mhabersack@novell.com>

* Control.cs: control cache must be filled using the local
_controls collection instead of the virtual Controls
property. Fixes bug #594238
Check if _controls isn't null before using it.

2010-04-07  Marek Habersack  <mhabersack@novell.com>

* ControlTest.cs: added test for bug #594238

2010-04-07  Marek Habersack  <mhabersack@novell.com>

* Makefile: moved App_* test resources to separate variables -
whatever is contained in those variables is preprocessed before
embedding as resource to include appropriate resource name prefix
(App_Code/, App_GlobalResources/ for now). This is used in WebTest
to automatically populate the relevant directories when running
the test suite.

2010-04-07  Marek Habersack  <mhabersack@novell.com>

* WebTest.cs: introduced concept of prefixed resources and added
an API which handles them - CopyPrefixedResources. All the
manifest resource names are checked for match with the given
prefix, and all the matching ones are copied to the specified
subdirectory of the test directory.

svn path=/trunk/mcs/; revision=154948

14 years agoWIP: build fixes
Marek Habersack [Wed, 7 Apr 2010 13:14:02 +0000 (13:14 -0000)]
WIP: build fixes

svn path=/trunk/mcs/; revision=154947

14 years agoWIP: host file watching
Marek Habersack [Wed, 7 Apr 2010 13:13:54 +0000 (13:13 -0000)]
WIP: host file watching

svn path=/trunk/mcs/; revision=154946

14 years agoWIP: System.Runtime.Caching.Hosting added
Marek Habersack [Wed, 7 Apr 2010 13:13:46 +0000 (13:13 -0000)]
WIP: System.Runtime.Caching.Hosting added

svn path=/trunk/mcs/; revision=154945

14 years agoSystem.Runtime.Caching.Configuration stuff implemented
Marek Habersack [Wed, 7 Apr 2010 13:13:38 +0000 (13:13 -0000)]
System.Runtime.Caching.Configuration stuff implemented

svn path=/trunk/mcs/; revision=154944

14 years agoAll System.Runtime.Caching namespace classes added + partial implementation
Marek Habersack [Wed, 7 Apr 2010 13:13:30 +0000 (13:13 -0000)]
All System.Runtime.Caching namespace classes added + partial implementation

svn path=/trunk/mcs/; revision=154943

14 years agoChangeMonitor implemented
Marek Habersack [Wed, 7 Apr 2010 13:13:22 +0000 (13:13 -0000)]
ChangeMonitor implemented

svn path=/trunk/mcs/; revision=154942

14 years agoBeginnings of System.Runtime.Caching
Marek Habersack [Wed, 7 Apr 2010 13:13:03 +0000 (13:13 -0000)]
Beginnings of System.Runtime.Caching

svn path=/trunk/mcs/; revision=154941

14 years agonet_4_0 bug
Jb Evain [Wed, 7 Apr 2010 13:09:10 +0000 (13:09 -0000)]
net_4_0 bug

svn path=/trunk/mcs/; revision=154939

14 years agothis one has been passing for quite a while now
Jb Evain [Wed, 7 Apr 2010 12:56:40 +0000 (12:56 -0000)]
this one has been passing for quite a while now

svn path=/trunk/mcs/; revision=154938

14 years agonet_4_0 change
Jb Evain [Wed, 7 Apr 2010 12:48:00 +0000 (12:48 -0000)]
net_4_0 change

svn path=/trunk/mcs/; revision=154937

14 years agodo not assert on ToString result
Jb Evain [Wed, 7 Apr 2010 12:41:44 +0000 (12:41 -0000)]
do not assert on ToString result

svn path=/trunk/mcs/; revision=154936

14 years agoadd bug info
Jb Evain [Wed, 7 Apr 2010 12:41:27 +0000 (12:41 -0000)]
add bug info

svn path=/trunk/mcs/; revision=154935

14 years agooverflow bug has been fixed in net_4_0
Jb Evain [Wed, 7 Apr 2010 12:41:09 +0000 (12:41 -0000)]
overflow bug has been fixed in net_4_0

svn path=/trunk/mcs/; revision=154934

14 years agoquote only work on lambda on net_4_0
Jb Evain [Wed, 7 Apr 2010 12:40:49 +0000 (12:40 -0000)]
quote only work on lambda on net_4_0

svn path=/trunk/mcs/; revision=154933

14 years agodlr bug
Jb Evain [Wed, 7 Apr 2010 12:31:31 +0000 (12:31 -0000)]
dlr bug

svn path=/trunk/mcs/; revision=154932

14 years ago2010-04-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Apr 2010 10:59:53 +0000 (10:59 -0000)]
2010-04-07  Zoltan Varga  <vargaz@gmail.com>

* interlocked-2.2.cs: Add an Interlocked.CompareExchange(long) test.

svn path=/trunk/mono/; revision=154930

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Wed, 7 Apr 2010 10:59:01 +0000 (10:59 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* ConsoleLogger.cs: Dump items and properties when a project starts
to build. Useful for debugging.
* Engine.cs (LogProjectStarted): Set the properties and items also,
for the project started event.
* Project.cs (EvaluatedPropertiesAsDictionaryEntries): New.
(EvaluatedItemsByNameAsDictionaryEntries): New. Required for
ProjectStartedEvent .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

* MSBuild.cs: Emit global properties, if any. Sort the property
list.

svn path=/trunk/mcs/; revision=154929

14 years ago* SolutionParser.cs: Identify and emit warning for a
Ankit Jain [Wed, 7 Apr 2010 10:58:14 +0000 (10:58 -0000)]
* SolutionParser.cs: Identify and emit warning for a
common problem on some installations of windows.

svn path=/trunk/mcs/; revision=154928

14 years agomonolinker.1: Fix typo.
Andrés G. Aragoneses [Wed, 7 Apr 2010 10:11:25 +0000 (10:11 -0000)]
monolinker.1: Fix typo.

svn path=/trunk/mono/; revision=154926

14 years ago* runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.
Raja R Harinath [Wed, 7 Apr 2010 09:40:09 +0000 (09:40 -0000)]
* runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.

svn path=/trunk/mono/; revision=154924

14 years agobuild/library.make: Re-arrange slightly
Raja R Harinath [Wed, 7 Apr 2010 09:38:55 +0000 (09:38 -0000)]
build/library.make: Re-arrange slightly

svn path=/trunk/mcs/; revision=154923

14 years agobuild/gensources.sh: Remove some temp files
Raja R Harinath [Wed, 7 Apr 2010 09:38:26 +0000 (09:38 -0000)]
build/gensources.sh: Remove some temp files

svn path=/trunk/mcs/; revision=154922

14 years agoWed Apr 7 11:28:42 CEST 2010 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 7 Apr 2010 09:29:58 +0000 (09:29 -0000)]
Wed Apr 7 11:28:42 CEST 2010 Paolo Molaro <lupus@ximian.com>

* method-to-ir.c: optimize array accesses from generic interfaces.

svn path=/trunk/mono/; revision=154918

14 years ago2010-04-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 7 Apr 2010 09:16:26 +0000 (09:16 -0000)]
2010-04-07  Atsushi Enomoto  <atsushi@ximian.com>

* WSSecurityMessageHeader.cs : add FIXME comment.

svn path=/trunk/mcs/; revision=154917

14 years ago2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 7 Apr 2010 07:20:36 +0000 (07:20 -0000)]
2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>

* TlsServerCertificate.cs: display the error code.

svn path=/trunk/mcs/; revision=154913

14 years agoGreatly speed up gensources.sh and improve dependency handling
Raja R Harinath [Wed, 7 Apr 2010 07:07:15 +0000 (07:07 -0000)]
Greatly speed up gensources.sh and improve dependency handling

* build/Makefile (DISTFILES): Add gensources.sh.
* build/gensources.sh: New, improved version of tools/gensources.sh.
* build/library.make ($(sourcefile)): Use the new gensources.sh.
($(makefrag)): Update to handle the optional makefrag generated by
gensources.sh.
* tools/Makefile (DISTFILES): Remove gensources.sh.
* tools/gensources.sh: Remove.

svn path=/trunk/mcs/; revision=154909

14 years ago2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 7 Apr 2010 05:51:47 +0000 (05:51 -0000)]
2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>

* file-io.c: reset the MonoIOStat structure in case of error.
Fixes bug #582667.

svn path=/trunk/mono/; revision=154905

14 years ago2010-04-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 6 Apr 2010 23:53:13 +0000 (23:53 -0000)]
2010-04-07  Marek Habersack  <mhabersack@novell.com>

* FormParameter.cs, CookieParameter.cs, ProfileParameter.cs,
QueryStringParameter.cs, SessionParameter.cs: implemented
constructor overloads which take DbType as one of the arguments.

svn path=/trunk/mcs/; revision=154894

14 years ago2010-04-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 Apr 2010 23:11:37 +0000 (23:11 -0000)]
2010-04-06 Rodrigo Kumpera  <rkumpera@novell.com>

* bug-575941.cs: New regression test.

svn path=/trunk/mono/; revision=154887

14 years ago2010-04-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 Apr 2010 22:59:51 +0000 (22:59 -0000)]
2010-04-06 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (print_implemented_interfaces): Print proper type name.

* class.c (mono_class_setup_vtable): Don't try that hard to produce
the override map for generic instances since it later ignored.

* class.c (mono_class_implement_interface_slow): Don't break for
dynamic generic instances.

* object.c (mono_runtime_invoke_array): Add an assert for allocation.

* reflection.c (mono_reflection_method_get_handle): New method that
resolves a method handle.

* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
case when we override methods from a dynamic generic instance interface.

Fixes #575941.

svn path=/trunk/mono/; revision=154886

14 years ago2010-04-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Apr 2010 21:49:12 +0000 (21:49 -0000)]
2010-04-06  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c: Update after the memset/memcpy intrinsics changes in LLVM SVN.

svn path=/trunk/mono/; revision=154881

14 years ago2010-04-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 6 Apr 2010 17:45:06 +0000 (17:45 -0000)]
2010-04-06  Sebastien Pouliot  <sebastien@ximian.com>

* ClientAccessPolicyParser.cs: Don't forget "http-request-headers"
as a valid attribute

svn path=/trunk/mcs/; revision=154876

14 years agofix bootstrap
Jb Evain [Tue, 6 Apr 2010 17:44:29 +0000 (17:44 -0000)]
fix bootstrap

svn path=/trunk/mcs/; revision=154875

14 years ago2010-04-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 6 Apr 2010 16:47:18 +0000 (16:47 -0000)]
2010-04-06  Miguel de Icaza  <miguel@novell.com>

* main.c: Prevent a crash with broken assemblies.

svn path=/trunk/mono/; revision=154872

14 years agoAdd IInvokeOnGetBinder.cs
Marek Safar [Tue, 6 Apr 2010 16:24:05 +0000 (16:24 -0000)]
Add IInvokeOnGetBinder.cs

svn path=/trunk/mcs/; revision=154869

14 years ago2010-04-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 Apr 2010 16:23:25 +0000 (16:23 -0000)]
2010-04-06  Marek Safar  <marek.safar@gmail.com>

* Updated to r46640.

svn path=/trunk/mcs/; revision=154868

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 16:19:48 +0000 (16:19 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* corlib.dll.sources: add System.Threading.SemaphoreFullException
from System in net_4_0.

svn path=/trunk/mcs/; revision=154867

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 16:19:21 +0000 (16:19 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* SemaphoreFullException.cs: moved to corlib in net_4_0.

svn path=/trunk/mcs/; revision=154866

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 16:18:27 +0000 (16:18 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* Consts.cs.in: define Assembly_System_2_0 for TypeForwardedFrom
attributes in NET_4_0.

svn path=/trunk/mcs/; revision=154865

14 years ago2010-04-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 6 Apr 2010 15:57:19 +0000 (15:57 -0000)]
2010-04-06  Sebastien Pouliot  <sebastien@ximian.com>

* ClientAccessPolicyParser.cs: Catch extra attributes that
leads to an invalid (no-access) policy. Fix parts of DRT#666
* CrossDomainPolicyManager.cs: Ignore policies sent with a
Content-Type different than "text/*". Fix DRT#667
* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
the case where a second policy is present (invalid xml). Fix
parts of DRT#666

svn path=/trunk/mcs/; revision=154862

14 years agofix ET tests for 4.0
Jb Evain [Tue, 6 Apr 2010 15:45:31 +0000 (15:45 -0000)]
fix ET tests for 4.0

svn path=/trunk/mcs/; revision=154861

14 years agofix ET tests for 4.0
Jb Evain [Tue, 6 Apr 2010 15:38:58 +0000 (15:38 -0000)]
fix ET tests for 4.0

svn path=/trunk/mcs/; revision=154860

14 years ago* docs/Makefile.am: fix distcheck - several targets get built on the
Andreia Gaita [Tue, 6 Apr 2010 15:34:57 +0000 (15:34 -0000)]
* docs/Makefile.am: fix distcheck - several targets get built on the
srcdir, which has no write permissions on make distcheck, so make
sure permissions are set

svn path=/trunk/mono/; revision=154859

14 years ago* configure.in: add --with-mcs-path option to specify where the mcs
Andreia Gaita [Tue, 6 Apr 2010 15:34:54 +0000 (15:34 -0000)]
* configure.in: add --with-mcs-path option to specify where the mcs
source can be found, if not on ./mcs or ../mcs
only touch the mcs and/or olive dirs and config files if we're
actually building them

svn path=/trunk/mono/; revision=154858

14 years ago2009-04-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 Apr 2010 15:27:09 +0000 (15:27 -0000)]
2009-04-06 Rodrigo Kumpera  <rkumpera@novell.com>

* wthreads.c (TlsSetValue): Don't take locks here. We trust
* pthread_setspecific
return value to tell if we tried to store to an invalid slot.

svn path=/trunk/mono/; revision=154856

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 15:18:55 +0000 (15:18 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* QueryableEnumerable.cs: make TransformQueryable work on net_4_0.

svn path=/trunk/mcs/; revision=154854

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 15:18:30 +0000 (15:18 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* net_4_0_System.Core.dll.sources: add files to support ToQueryable.

svn path=/trunk/mcs/; revision=154853

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 15:17:55 +0000 (15:17 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* QueryableTransformer.cs: use factory method that work for all
ET implementations.

svn path=/trunk/mcs/; revision=154852

14 years ago2010-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 Apr 2010 14:57:12 +0000 (14:57 -0000)]
2010-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: Augment our ParseExactCustomFormats test - still
marked as NotWorking for now, but committing now in order to have the
tests ready.

svn path=/trunk/mcs/; revision=154848

14 years agoadd ExcludeFromCodeCoverageAttribute
Jb Evain [Tue, 6 Apr 2010 14:56:10 +0000 (14:56 -0000)]
add ExcludeFromCodeCoverageAttribute

svn path=/trunk/mcs/; revision=154847

14 years agoremove debug writelines
Jb Evain [Tue, 6 Apr 2010 14:42:08 +0000 (14:42 -0000)]
remove debug writelines

svn path=/trunk/mcs/; revision=154846

14 years agomove FrameworkName from corlib to System
Jb Evain [Tue, 6 Apr 2010 14:31:59 +0000 (14:31 -0000)]
move FrameworkName from corlib to System

svn path=/trunk/mcs/; revision=154845

14 years agoAdd System.Core reference to Microsoft.Build.Engine. Fix msvc build.
Jonathan Pobst [Tue, 6 Apr 2010 14:30:22 +0000 (14:30 -0000)]
Add System.Core reference to Microsoft.Build.Engine.  Fix msvc build.

svn path=/trunk/mono/; revision=154844

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 12:49:51 +0000 (12:49 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* Debug.cs: make class static.

svn path=/trunk/mcs/; revision=154843

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 12:48:27 +0000 (12:48 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* Debug.cs (Assert, WriteLine): add net_4_0 overloads.

svn path=/trunk/mcs/; revision=154842

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 12:40:15 +0000 (12:40 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* SortedSetTest.cs: add test for SortedSubSet.Count.

svn path=/trunk/mcs/; revision=154841

14 years ago2010-04-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 Apr 2010 12:39:06 +0000 (12:39 -0000)]
2010-04-06  Jb Evain  <jbevain@novell.com>

* SortedSet.cs: implement Count for SortedSubSet.

svn path=/trunk/mcs/; revision=154840

14 years agoFix make dist
Ankit Jain [Tue, 6 Apr 2010 11:48:25 +0000 (11:48 -0000)]
Fix make dist

In class/Microsoft.Build.Engine:

* Makefile (EXTRA_DISTFILES): Remove TestTasks.dll.config .

In tools/xbuild:

* Makefile: Add xbuild_targets.make .

svn path=/trunk/mcs/; revision=154839

14 years ago2010-04-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Apr 2010 11:13:49 +0000 (11:13 -0000)]
2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestChannel.cs : add commented note.

svn path=/trunk/mcs/; revision=154838

14 years agoProperties cleanup.
Marek Safar [Tue, 6 Apr 2010 10:00:48 +0000 (10:00 -0000)]
Properties cleanup.

svn path=/trunk/mcs/; revision=154837

14 years agoproperties cleanup.
Marek Safar [Tue, 6 Apr 2010 10:00:14 +0000 (10:00 -0000)]
properties cleanup.

svn path=/trunk/mcs/; revision=154836

14 years agoAdd support for ToolsVersion and correctly build msbuild+xbuild assemblies
Ankit Jain [Tue, 6 Apr 2010 09:57:58 +0000 (09:57 -0000)]
Add support for ToolsVersion and correctly build msbuild+xbuild assemblies
for 3.5 and 4.0 profiles.

2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Process tools/xbuild for 3.5 also.

In class/Microsoft.Build.Engine:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Use the correct assembly name for MS.Build.Utilities*
for 3.5 and 4.0 profiles. Copy the .config files for the test
assembly.
Import tools/xbuild/xbuild_targets.make, which copies the target
and tasks file in the correct place, to allow running tests
with different toolsversion.
* Microsoft.Build.Engine.dll.sources: Add LogExtensions.cs,
Toolset.cs, ToolsetDefinitionLocations.cs and ToolsetCollection.cs .
* Test/test-config-file-net-3.5: New.
* Test/test-config-file-net-4.0: New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-04-03  Ankit Jain  <jankit@novell.com>

* BuildEngine.cs: Implement IBuildEngine2 instead of
IBuildEngine.
* BuildTasks.cs: Use the new extension methods for logging.
(InitializeTask): Emit a message informing about the assembly
from which the task is being loaded. Emit a useful debug message
incase of a InvalidCastException.
* Engine.cs: Add missing methods, constructors and properties related
to ToolsVersion support. Setup a default set of Toolsets.
Keep separate taskdbs' per ToolsVersion. The common tasks
would come from different *.tasks file, and use different
task assemblies.
(DefaultToolsVersion): Correctly set this based on the profile.
* LogExtensions.cs: New. Extension methods on Engine, for logging.
* Project.cs: Add missing methods/contructors/properties related
to ToolsVersion support. Add reserved properties -
MSBuildToolsPath and MSBuildToolsVersion .
* Toolset.cs: New.
* ToolsetCollection.cs: New.
* ToolsetDefinitionLocations.cs: New.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-04-06  Ankit Jain  <jankit@novell.com>

* Consts.cs (ToolsVersionString): New.
(GetTasksAsmPath): New.
* EngineTest.cs: Use the direct path to the tasks assembly
in the UsingTasks.
* ProjectTest.cs: Set ToolsVersion to the current profile.

In class/Microsoft.Build.Framework:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
* Microsoft.Build.Framework.dll.sources: Add IBuildEngine2.cs .

In class/Microsoft.Build.Framework/Microsoft.Build.Framework:
2010-04-03  Ankit Jain  <jankit@novell.com>

* IBuildEngine2.cs: New.

In class/Microsoft.Build.Tasks:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion. Copy the config file for the
test assembly. Clean the generated test.dll .
Use the correct target assembly name for 4.0 profile
(ms.build.tasks.v4.0.dll), and for Utilities assembly.
* Microsoft.Build.Tasks_test.dll.sources: Use Consts.cs from Engine
instead of maintaining a copy here.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Csc.cs: Use dmcs as the compiler for 4.0 profile.
* MSBuild.cs (ToolsVersion): New.
Use toolsVersion for building.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2010-04-06  Ankit Jain  <jankit@novell.com>

* Consts.cs: Remove.
* AssignProjectConfigurationTest.cs:
* CreateCSharpManifestResourceNameTest.cs:
* CreateVisualBasicManifestResourceNameTest.cs:
* CreateItemTest.cs:
* FindAppConfigFileTest.cs:
* RemoveDuplicatesTest.cs:
* TaskBatchingTest.cs:
* WriteLinesToFileTest.cs:
Set the ToolsVersion to match the profile. Use the
full path to the tasks assembly for UsingTasks.

In class/Microsoft.Build.Utilities:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
Use the correct target assembly name for 4.0 profile.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-04-03  Ankit Jain  <jankit@novell.com>

* TargetDotNetFrameworkVersion.cs: Add Version40 .
* Task.cs (BuildEngine2): New.
* ToolLocationHelper.cs: Use class/linet_* as the path
for the assemblies and targets when running tests.
Environment variable TESTING_MONO is set for testing.
This allows a 4.0 xbuild to build 2.0/3.5 projects.

In tools:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Makefile: Move xbuild from net_4_0_dirs to per_profile_dirs.

In tools/xbuild:
2010-04-03  Ankit Jain  <jankit@novell.com>

* Main.cs (Execute): If toolsversion is specified on the command line,
then use that.
* Parameters.cs: Read toolsversion from the command line ('/tv:..') .
* SolutionParser.cs: Infer ToolsVersion from the sln version.
Set ToolsVersion property of the MSBuild tasks, in the generated
.sln.proj file, for building the projects.

* xbuild/Microsoft.Common.tasks: Move to ..
* xbuild/2.0/Microsoft.Common.tasks: .. here.
* xbuild/3.5/Microsoft.Common.tasks: New.
* xbuild/4.0/Microsoft.Common.tasks: New.
Use the corresponding 3.5/4.0 tasks assembly.

* xbuild_targets.make: Copies the target and tasks file in the correct
place, to allow running tests with different toolsversion.
* Makefile: Import xbuild_targets.make . Use correct assembly names for
Utilities assembly, for 3.5/4.0 profiles.
Install the correct Microsoft.Common.tasks file for the profile.
Copy xbuild.exe to class/li$(PROFILE), so that it can find other
profile dirs as relative path.
(EXTRA_DISTFILES): Add the new Microsoft.Common.tasks files.

svn path=/trunk/mcs/; revision=154835

14 years ago2010-04-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 Apr 2010 09:55:46 +0000 (09:55 -0000)]
2010-04-06  Marek Safar  <marek.safar@gmail.com>

* Array.cs: Don't make read-only collection read-only.

svn path=/trunk/mcs/; revision=154834

14 years ago2010-04-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 Apr 2010 09:47:13 +0000 (09:47 -0000)]
2010-04-06  Marek Safar  <marek.safar@gmail.com>

* ModuleBuilder.cs: Use Dictionary.

svn path=/trunk/mcs/; revision=154833

14 years agoproperty cleanup
Marek Safar [Tue, 6 Apr 2010 09:43:26 +0000 (09:43 -0000)]
property cleanup

svn path=/trunk/mcs/; revision=154831

14 years ago2010-04-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 Apr 2010 09:42:55 +0000 (09:42 -0000)]
2010-04-06  Marek Safar  <marek.safar@gmail.com>

* FileLevelControlBuilderAttribute.cs: Use reference comparison.

svn path=/trunk/mcs/; revision=154830

14 years ago2010-04-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Apr 2010 08:46:42 +0000 (08:46 -0000)]
2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>

* HttpReplyChannel.cs : fill To header only if it does not exist.

svn path=/trunk/mcs/; revision=154826

14 years ago2010-04-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Apr 2010 07:08:23 +0000 (07:08 -0000)]
2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>

* SecureMessageGenerator.cs : set ReplyTo and To, do not add.

svn path=/trunk/mcs/; revision=154825

14 years ago2010-04-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Apr 2010 06:55:35 +0000 (06:55 -0000)]
2010-04-06  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeaders.cs : use matching addressing version.
  Remove header item if the same ones already exist.

svn path=/trunk/mcs/; revision=154824

14 years ago2010-04-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 6 Apr 2010 05:01:51 +0000 (05:01 -0000)]
2010-04-06 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpRequestChannel.cs: don't create the wait handle unless it is
really needed.

svn path=/trunk/mcs/; revision=154822

14 years ago2010-04-05 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 6 Apr 2010 02:36:37 +0000 (02:36 -0000)]
2010-04-05 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: don't attempt to close the pipe when it has not been
created.

svn path=/trunk/mono/; revision=154820

14 years agoby now, this code is only used by epoll
Gonzalo Paniagua Javier [Mon, 5 Apr 2010 21:45:01 +0000 (21:45 -0000)]
by now, this code is only used by epoll

svn path=/trunk/mono/; revision=154812

14 years ago2010-04-05 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 5 Apr 2010 21:30:23 +0000 (21:30 -0000)]
2010-04-05 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: if there are no waiting threads, try to start a new
one. This fixes the not-so-random hangs in System.ServiceModel tests.
No need to use InterlockedCompareExchange to read volatile variables.

svn path=/trunk/mono/; revision=154811

14 years ago2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Apr 2010 21:02:00 +0000 (21:02 -0000)]
2010-04-05 Rodrigo Kumpera  <rkumpera@novell.com>

* bug-515884.il: New regression test.

svn path=/trunk/mono/; revision=154808

14 years ago2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Apr 2010 21:01:52 +0000 (21:01 -0000)]
2010-04-05 Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mono_method_to_ir): Handle call to virtual
* final methods
of marshalbyref classes.

Fixes #515884.

svn path=/trunk/mono/; revision=154807

14 years ago2010-04-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 5 Apr 2010 20:47:58 +0000 (20:47 -0000)]
2010-04-05  Zoltan Varga  <vargaz@gmail.com>

* defs.h: Quiet warnings which might bother rpm.

svn path=/trunk/mcs/; revision=154805

14 years ago2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Apr 2010 18:23:23 +0000 (18:23 -0000)]
2010-04-05 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (verify_type_compatibility_full): Fail mixed
* valuetype
and reference types that point to the same class.

Fixes #565598.

svn path=/trunk/mono/; revision=154801