mono.git
14 years agoIn class/Microsoft.Build.Tasks:
Ankit Jain [Fri, 25 Sep 2009 00:32:37 +0000 (00:32 -0000)]
In class/Microsoft.Build.Tasks:

* Microsoft.Build.Tasks.dll.sources: Added
FindAppConfigFile.cs
* Microsoft.Build.Tasks_test.dll.sources: Added
FindAppConfigFileTest.cs

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

* FindAppConfigFile.cs: New.

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

* FindAppConfigFileTest.cs: New.

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

14 years ago2009-09-25 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Fri, 25 Sep 2009 00:29:14 +0000 (00:29 -0000)]
2009-09-25  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #535889
* OracleParameter.cs: In case of OUT param, update sizeSet even if
value is null or DBNull.  Also, use rsize instead of bindSize to
avoid extra allocation.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 20:49:46 +0000 (20:49 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* dwarfwriter.c (emit_debug_info_end): Disable this as it doesn't seem to
work/required with recent iphone sdk versions.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 19:34:01 +0000 (19:34 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* processes.c (load_modules): Applied patch from Thomas Philpot
(tom.philpot@logos.com). Fixes #533893.

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

14 years ago2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Sep 2009 19:25:26 +0000 (19:25 -0000)]
2009-09-24  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.Net.dll.sources: Substitute System.dll Dns
implementation for a ML specific version.

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

14 years ago2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Sep 2009 19:24:25 +0000 (19:24 -0000)]
2009-09-24  Sebastien Pouliot  <sebastien@ximian.com>

* Dns_2_1.cs: New. Smaller version of Dns.cs that offers just
enough for DnsEndPoint support

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

14 years ago* xbuild.1: Add info about env var XBUILD_EMIT_SOLUTION.
Ankit Jain [Thu, 24 Sep 2009 19:05:38 +0000 (19:05 -0000)]
* xbuild.1: Add info about env var XBUILD_EMIT_SOLUTION.

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

14 years ago* Project.cs (DoLoad): If a VS2003 project is detected, then throw
Ankit Jain [Thu, 24 Sep 2009 19:04:52 +0000 (19:04 -0000)]
* Project.cs (DoLoad): If a VS2003 project is detected, then throw
InvalidProjectFileException with useful error.

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

14 years ago* Parameters.cs (ParseArguments): If no project file is specified,
Ankit Jain [Thu, 24 Sep 2009 19:04:36 +0000 (19:04 -0000)]
* Parameters.cs (ParseArguments): If no project file is specified,
then look for a .sln or *proj file in the current directory.

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

14 years ago* Project.cs (Load): Emit the .sln.proj file only if env var
Ankit Jain [Thu, 24 Sep 2009 19:04:11 +0000 (19:04 -0000)]
* Project.cs (Load): Emit the .sln.proj file only if env var
XBUILD_EMIT_SOLUTION is set.

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

14 years ago2009-09-15 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 24 Sep 2009 17:39:57 +0000 (17:39 -0000)]
2009-09-15  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #536194 - Patch by Andrew Kurochk <aaki.viper@gmail.com>
* MergeManager.cs (Merge*): Do nothing when source and target
datasets are same.

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

14 years ago* ReadLinesFromFile.cs (Execute): Don't do anything, if
Ankit Jain [Thu, 24 Sep 2009 17:00:27 +0000 (17:00 -0000)]
* ReadLinesFromFile.cs (Execute): Don't do anything, if
file is non-existant.

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

14 years ago* Project.cs (GetKeyForTarget): Make target name, case insensitive.
Ankit Jain [Thu, 24 Sep 2009 17:00:07 +0000 (17:00 -0000)]
* Project.cs (GetKeyForTarget): Make target name, case insensitive.

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

14 years ago2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Sep 2009 15:43:15 +0000 (15:43 -0000)]
2009-09-24  Sebastien Pouliot  <sebastien@ximian.com>

* DnsEndPoint_2_1.cs: Remove (now) unneeded method

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

14 years ago* Makefile: Create dir for WebApplication.targets .
Ankit Jain [Thu, 24 Sep 2009 15:09:45 +0000 (15:09 -0000)]
* Makefile: Create dir for WebApplication.targets .
* Microsoft.Common.targets (_ValidateEssentialProperties): New.
(BuildDependsOn): Add _ValidateEssentialProperties, temporary.
This should actually work via InitialTargets, which will be fixed
in a subsequent commit. Add PrepareForRun.
(PrepareForRun): New.
* xbuild/Microsoft.WebApplication.targets: New.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 14:43:45 +0000 (14:43 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_ptr_to_object_conv): Generate an exception instead of
aborting when a conversion is not implemented.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 14:34:43 +0000 (14:34 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* LinuxNetworkInterfaceMarshal.cs: Add StructLayout attribute to structures, so
the aot compiler can generate PtrToStructure wrappers for them.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 14:31:59 +0000 (14:31 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Generate PtrToStructure wrappers for more
structures.

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

14 years agoFixes 2.1 build
Marek Safar [Thu, 24 Sep 2009 12:56:51 +0000 (12:56 -0000)]
Fixes 2.1 build

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

14 years ago2009-09-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Sep 2009 11:15:24 +0000 (11:15 -0000)]
2009-09-24  Marek Safar  <marek.safar@gmail.com>

* Queue.cs, DictionaryEntry.cs, Hashtable.cs,
CollectionDebuggerView.cs, Stack.cs, ArrayList.cs: Add nicer debug
view for tools which support it.

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

14 years ago* xbuild/Microsoft.Common.targets: Add 'Rebuild' target.
Ankit Jain [Thu, 24 Sep 2009 11:08:31 +0000 (11:08 -0000)]
* xbuild/Microsoft.Common.targets: Add 'Rebuild' target.
Also, set DefaultTargets to "Build".

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

14 years ago* Project.cs (InitializeProperties): Set 'MSBuildProjectDefaultTargets'
Ankit Jain [Thu, 24 Sep 2009 11:08:17 +0000 (11:08 -0000)]
* Project.cs (InitializeProperties): Set 'MSBuildProjectDefaultTargets'
reserved property.

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

14 years agoIn class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Ankit Jain [Thu, 24 Sep 2009 11:08:02 +0000 (11:08 -0000)]
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

* ToolTaskExtension.cs (HasLoggedErrors): Override.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

* ToolTask.cs (HasLoggedErrors): Add missing property.

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

14 years ago* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
Ankit Jain [Thu, 24 Sep 2009 11:07:48 +0000 (11:07 -0000)]
* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.

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

14 years ago* MSBuild.cs (BuildInParallel): Add missing property.
Ankit Jain [Thu, 24 Sep 2009 11:07:24 +0000 (11:07 -0000)]
* MSBuild.cs (BuildInParallel): Add missing property.

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

14 years ago2009-09-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Sep 2009 11:06:22 +0000 (11:06 -0000)]
2009-09-24  Marek Safar  <marek.safar@gmail.com>

* Makefile: Removed System.Json from net_4_0 profile.

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

14 years agoNew test.
Marek Safar [Thu, 24 Sep 2009 11:02:41 +0000 (11:02 -0000)]
New test.

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

14 years ago2009-09-24 Christian Hoff <christian_hoff@gmx.net>
Christian Hoff [Thu, 24 Sep 2009 10:23:41 +0000 (10:23 -0000)]
2009-09-24  Christian Hoff  <christian_hoff@gmx.net>

* SerialPort.cs: Do not close the base stream if Dispose is called from
the finalizer.

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

14 years ago2009-09-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 24 Sep 2009 09:36:14 +0000 (09:36 -0000)]
2009-09-24  Marek Habersack  <mhabersack@novell.com>

* XmlSiteMapProvider.cs: added "securityTrimmingEnabled" to the
list of supported attributes in Initialize. Fixes bug #541607

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

14 years ago2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 24 Sep 2009 05:10:22 +0000 (05:10 -0000)]
2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Timer.cs: lock access to the 'timer' field. Attemp to fix bug
#537921.

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

14 years ago2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 24 Sep 2009 04:31:58 +0000 (04:31 -0000)]
2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Timer.cs: no need to wake up the scheduler when removing the next
scheduled item.

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

14 years agofix smcs with utf32 encoded files
Sebastien Pouliot [Thu, 24 Sep 2009 01:19:05 +0000 (01:19 -0000)]
fix smcs with utf32 encoded files

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 00:21:55 +0000 (00:21 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* TypeTest.cs: Add a test for missing.

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Sep 2009 00:21:38 +0000 (00:21 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* Type.cs: Initialize the Missing field.

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Sep 2009 00:17:58 +0000 (00:17 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources: Simply include net_2_1_raw*

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

14 years ago2009-09-24 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 24 Sep 2009 00:10:15 +0000 (00:10 -0000)]
2009-09-24  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Compare the name and not displayname of properties
when checking if the column is already bound.

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

14 years ago2009-09-24 Ivan Zlatev <contact@i-nz.net>
Ivan Zlatev [Wed, 23 Sep 2009 23:56:06 +0000 (23:56 -0000)]
2009-09-24  Ivan Zlatev  <contact@i-nz.net>

* EnumConverter.cs: Fix conversion of 0 flag values.
* EnumConverterTests.cs: Add a test to verify behaviour when converting
 a 0 flag value.
[Fixes bug #541402]

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

14 years ago2009-09-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 Sep 2009 23:44:01 +0000 (23:44 -0000)]
2009-09-24  Zoltan Varga  <vargaz@gmail.com>

* decompose.c (mono_decompose_vtype_opts): Avoid reading uninitialized memory
in the VCALL decomposition code.

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

14 years agoRemove the use of G_GNUC_PRETTY_FUNCTION with the proper pattern which
Miguel de Icaza [Wed, 23 Sep 2009 23:14:39 +0000 (23:14 -0000)]
Remove the use of G_GNUC_PRETTY_FUNCTION with the proper pattern which
is "%s....", __func__

We probably should remove these anyways

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

14 years agocomment out debugging method
Gonzalo Paniagua Javier [Wed, 23 Sep 2009 23:03:52 +0000 (23:03 -0000)]
comment out debugging method

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

14 years ago2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 23 Sep 2009 23:01:03 +0000 (23:01 -0000)]
2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Timer.cs: rewritten. It only has one queue now and it is sorted by
due time. Before this changes, it was using a lot of CPU when there
were a lot of 'future' timers.

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

14 years agoRemove a debug printf.
Zoltan Varga [Wed, 23 Sep 2009 22:52:54 +0000 (22:52 -0000)]
Remove a debug printf.

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 21:39:08 +0000 (21:39 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* Socket_2_1.cs: Remove NET_2_1 socket policy checks from here.
* SocketAsyncEventArgs.cs: Support DnsEndPoint correctly (NET_2_1 but
that will be useful for NET_4_0 soon). Add socket policy checks here
since it could be called several times to connect to a host.

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

14 years agoThis patch replaces the calls to g_strcasecmp with either
Miguel de Icaza [Wed, 23 Sep 2009 21:11:12 +0000 (21:11 -0000)]
This patch replaces the calls to g_strcasecmp with either
memcmp, g_ascii_strcasecmp or mono_utf8_strcasecmp since the
symbols are becoming deprecated in newer Glibs.

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

14 years agoFirst pass at replacing deprecated APIs in Glib 3 with the new names.
Miguel de Icaza [Wed, 23 Sep 2009 20:27:24 +0000 (20:27 -0000)]
First pass at replacing deprecated APIs in Glib 3 with the new names.

Pretty sad, hopefully we are moving away from Glib soon

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

14 years ago2009-06-25 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 23 Sep 2009 20:13:26 +0000 (20:13 -0000)]
2009-06-25  Miguel de Icaza  <miguel@novell.com>

* gc.c: Raise a NullArgumentException if the object passed is
null.

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

14 years ago2009-09-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 23 Sep 2009 19:59:05 +0000 (19:59 -0000)]
2009-09-23  Marek Safar  <marek.safar@gmail.com>

* MethodImplOptions.cs: Add NoOptimization.

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 14:20:44 +0000 (14:20 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Don't include APTCA in NET_2_1

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 14:19:08 +0000 (14:19 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.Core.dll.sources: Remove some extra classes
from NET_2_1

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

14 years ago2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 23 Sep 2009 13:41:37 +0000 (13:41 -0000)]
2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* NetworkStream.cs: after disposing the stream, CanRead/CanWrite
return false.

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

14 years ago2009-09-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 Sep 2009 13:06:34 +0000 (13:06 -0000)]
2009-09-23  Zoltan Varga  <vargaz@gmail.com>

* ContentType.cs: Fix the net 2.1 build.

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 12:59:30 +0000 (12:59 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove more unneeded code for NET_2_1

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 12:59:17 +0000 (12:59 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityContext.cs: Remove NET_2_1 defines since the type is
now unused in NET_2_1 profile

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 12:58:58 +0000 (12:58 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* ExecutionContext.cs: Don't use SecurityContext and don't expose
AsyncFlowControl for NET_2_1
* ThreadAbortException.cs: Remove ExceptionState from NET_2_1
* Thread.cs: Don't expose ApartmentState and remove Suspend and
Resume methods for NET_2_1
* ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
for NET_2_1

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 12:46:33 +0000 (12:46 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* Calendar.cs: Don't expose AlgorithmType property in NET_2_1
* CultureInfo.cs: Don't expose CultureTypes in NET_2_1
* NumberFormatInfo.cs: Don't expose NativeDigits in NET_2_1
* GregorianCalendar.cs, HebrewCalendar.cs, HijriCalendar.cs,
JapaneseCalendar.cs, KoreanCalendar.cs, TaiwanCalendar.cs,
ThaiBuddhistCalendar.cs, UmAlQuraCalendar.cs: Don't expose
AlgorithmType property in NET_2_1

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

14 years ago2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 Sep 2009 12:41:59 +0000 (12:41 -0000)]
2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* Directory.cs: Don't expose SearchOption in NET_2_1
* DirectoryInfo.cs: Don't expose SearchOption in NET_2_1
* MonoIO.cs: Don't throw a DriveNotFoundException under NET_2_1 -
an IOExpection will be thrown (like the 1.x profile)

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

14 years agoNeeded during 2.0 bootstrap
Marek Safar [Wed, 23 Sep 2009 12:34:39 +0000 (12:34 -0000)]
Needed during 2.0 bootstrap

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

14 years ago2009-09-22 Mike Feldman and Stephen A. Jazdzewski <steve@jazd.com>
Miguel de Icaza [Tue, 22 Sep 2009 22:58:45 +0000 (22:58 -0000)]
2009-09-22  Mike Feldman and Stephen A. Jazdzewski <steve@jazd.com>

* XUtil.cs: This patch fixes the '"False" is not a valid boolean
value' exception in System.Xml.XmlConverter when using output from
System.Linq.XUtil.  XUtil incorrectly uses "False" and "True"
instead of "false" and "true" on boolean attributes.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 21:58:41 +0000 (21:58 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* assembly-load-stress.cs: New stress test.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 21:54:55 +0000 (21:54 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* Queue.cs, Hashtable.cs, SortedList.cs, Stack.cs, ArrayList.cs:
Add DebuggerDisplay attribute.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 21:38:14 +0000 (21:38 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_close): Atomically decrement the reference count and
remove the image from the hash tables, to prevent another thread from seeing a
dying MonoImage. Fixes #541194.

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

14 years ago2009-09-22 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Tue, 22 Sep 2009 20:36:46 +0000 (20:36 -0000)]
2009-09-22  Michael Barker  <mike@middlesoft.co.uk>

* AdminTest.cs:  Added support for unique queue names
* AsyncPeekTest.cs:  Added support for unique queue names
* AsyncReceiveTest.cs:  Added support for unique queue names
* BasicMessagingTest.cs:  Added support for unique queue names
* MessageEnumeratorTest.cs:  Added support for unique queue names
* MQUtil.cs:  Added queue name generation and prepending server names
to queue names based on environment variable
* PeekTest.cs:  Added support for unique queue names
* SelectorTest.cs:  Added support for unique queue names

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

14 years agoIn Test/System.Security.Cryptography:
Sebastien Pouliot [Tue, 22 Sep 2009 19:48:12 +0000 (19:48 -0000)]
In Test/System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
Santa Marta (via Atsushi) as repro for bugs #539288 and #539229

In System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStream.cs: Fix [Input|Output]BlockSize for custom streams.
Patches by Santa Marta (via Atsushi).
[Fix bug #539288 and #539229]

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

14 years ago2009-09-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 Sep 2009 19:28:04 +0000 (19:28 -0000)]
2009-09-22  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: ResourceProviderHasObject needs to
close ResourceReader instance obtained from resource provider.

* DefaultResourceProvider.cs: implemented the ResourceReader
property. Fixes bug #520397

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:52:31 +0000 (17:52 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* UriTemplate.cs : Fix method signatures. Take care of dictionary
  case sensitivity.

* UriTemplateTest.cs : add test for case-insensitive comparison in
  IDictionary, and test for null-value string in there.

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

14 years agoDictionary: Ensure that invalid arrays to CopyTo result in ArgumentExceptions.
Raja R Harinath [Tue, 22 Sep 2009 17:39:52 +0000 (17:39 -0000)]
Dictionary: Ensure that invalid arrays to CopyTo result in ArgumentExceptions.

* System.Collections.Generic/Dictionary.cs (CopyToCheck, Do_CopyTo):
Carve out of ...
(CopyTo): ... this.
(Do_ICollectionCopyTo): Carve out of ICollection.CopyTo.  Convert
type-cast exceptions to ArgumentExceptions.
(KeyCollection.CopyTo): Use them.
(ValueCollection.CopyTo): Use them.
* Test/System.Collections.Generic/DictionaryTest.cs (ICollectionCopyTo):
Test various odd scenarios where .NET CopyTo does _not_ throw an exception.
(ICollectionCopyTo_ex1..4): Ensure that ArgumentExceptions are
thrown in appropriate cases.

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:35:35 +0000 (17:35 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* JsonValue.cs, JsonReader.cs, JsonPrimitive.cs :
  Handle "null" values, as string, so far (haven't tried what .NET
  actually does).
  Fix array ToString() that missed commas (while Save() worked fine -
  it has different serialization logic).

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:30:32 +0000 (17:30 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* JsonSerializationWriter.cs : output "type" attribute on bool
  values too.
* JsonSerializationReader.cs : type loading attempt was insufficient
  and hence often missed indicated types to deserialize.

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

14 years agoNew test.
Marek Safar [Tue, 22 Sep 2009 16:52:09 +0000 (16:52 -0000)]
New test.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 16:39:55 +0000 (16:39 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, expression.cs: Fixed null lifted conversion for
bitwise enum operations.

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

14 years agoadd comment
Jb Evain [Tue, 22 Sep 2009 16:35:40 +0000 (16:35 -0000)]
add comment

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 16:00:42 +0000 (16:00 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Disable filter-stack.cs on ia64.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 15:55:07 +0000 (15:55 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* MembershipProvider.cs: Ensure password decryption is always
possible.
[Fix bug #538406]

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 15:53:19 +0000 (15:53 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs: Convert to newer nunit syntax

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 15:53:07 +0000 (15:53 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_output_basic_block): Fix ISHR/ISHR_IMM.

* basic.cs: Add a test.

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

14 years ago2009-09-22 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 22 Sep 2009 15:43:35 +0000 (15:43 -0000)]
2009-09-22  Jb Evain  <jbevain@novell.com>

* Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
true to exitContext when calling WaitOne on a WaitHandle.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 15:16:10 +0000 (15:16 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_build_imt_thunk): Implement support the virtual
generic invokes.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:58:47 +0000 (13:58 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>
* Evidence_2_1.cs: New.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:42:13 +0000 (13:42 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove more unneeded code and replace some classes with simpler
NET_2_1 versions.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:40:55 +0000 (13:40 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:40:44 +0000 (13:40 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAccessPermission_2_1.cs: New. Stub to compile NET_2_1
* IPermission.cs: Remove ISecurityEncodable for NET_2_1
* PermissionSet_2_1.cs: New. Stub to compile NET_2_1
* SecurityContext.cs: Remove usage of CompressedStack for NET_2_1
* SecurityException_2_1.cs: New, CAS-less version for NET_2_1
* SecurityException.cs: Remove NET_2_1 conditions
* SecurityFrame.cs: Keep structures (needed by the runtime) but
remove SecurityFrame itself for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:36:51 +0000 (13:36 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Assembly.cs: Remove Evidence and GlobalAssemblyCache
properties for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:35:47 +0000 (13:35 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* _Assembly.cs: Remove Evidence and GlobalAssemblyCache
properties for NET_2_1
* Marshal.cs: Avoid depending on SecureString for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:34:24 +0000 (13:34 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Encoding.cs: Remove UTF32, Latin1 and custom (loaded code)
encodings for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:32:39 +0000 (13:32 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* PolicyLevel_2_1.cs: Remove use of NamedPermissionSet

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:30:41 +0000 (13:30 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* PermissionSetAttribute.cs: Don't create a pset for NET_2_1

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 13:29:15 +0000 (13:29 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* convert.cs, ecore.cs: Fixed explicit unsafe coversion of long
values in checked context.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:15:06 +0000 (13:15 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Environment.cs: Remove imperative CAS environment
permission checks under NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:13:56 +0000 (13:13 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* StreamReader.cs: Don't use UTF32 under NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:12:28 +0000 (13:12 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* StrongName.cs: Moonlight NET_2_1 cannot depend on machine.config
* StrongNameManager_2_1.cs: Minimal version for NET_2_1

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 12:32:42 +0000 (12:32 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* appdomain-thread-abort.cs: Add a new test.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 12:32:32 +0000 (12:32 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mini_jit_info_table_find): New helper function which
searches all the domains of the current thread.

* exceptions-<ARCH>.c: Use it. Fixes #539394.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 12:27:33 +0000 (12:27 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate20.cs: Don't depend on SecureString for NET_2_1

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

14 years ago2009-09-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 Sep 2009 12:15:04 +0000 (12:15 -0000)]
2009-09-22  Marek Habersack  <mhabersack@novell.com>

* WebServiceParser.cs: GetCompiledType uses BuildManager on the
2.0 profile. Fixes bug #533166

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:30:07 +0000 (10:30 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: actually use the minimum number of 'completion ports'
(for us is just a potential worker thread).

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:05:03 +0000 (10:05 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: remove ares_htable. It does not make sense any more
since the same objects are now stored in GC-tracked arrays while they are
in the queue.

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:00:28 +0000 (10:00 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: increase the minimum length of the queues to 128.
Remove warning.

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

14 years agoNew tests.
Marek Safar [Tue, 22 Sep 2009 09:50:21 +0000 (09:50 -0000)]
New tests.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 09:50:04 +0000 (09:50 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs, ecore.cs: Fixed array index constant conversion.

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

14 years agoNew test.
Marek Safar [Mon, 21 Sep 2009 21:57:16 +0000 (21:57 -0000)]
New test.

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