Sebastien Pouliot [Sat, 26 Sep 2009 15:27:35 +0000 (15:27 -0000)]
In Test/System.Net.Sockets:
2009-09-26 Sebastien Pouliot <sebastien@ximian.com>
* SocketAsyncEventArgsTest.cs: New. Unit tests
In System.Net.Sockets:
2009-09-26 Sebastien Pouliot <sebastien@ximian.com>
* SocketAsyncEventArgs.cs: Fix paramater validations and default
values
In .:
2009-09-26 Sebastien Pouliot <sebastien@ximian.com>
* System_test.dll.sources: Add unit tests for SocketAsyncEventArgs
svn path=/trunk/mcs/; revision=142675
Mark Probst [Sat, 26 Sep 2009 14:15:20 +0000 (14:15 -0000)]
2009-09-26 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: New debug option "xdomain-checks", which scans the
whole heap for cross-domain references before each collection.
* sgen-scan-object.h: The scan action can now use SCAN to scan the
object.
* threadpool-internals.h, threadpool.c: New function
mono_thread_pool_is_queue_array() for checking whether a given
array is used as a (cross-domain) queue by the thread pool code.
svn path=/trunk/mono/; revision=142674
Mark Probst [Sat, 26 Sep 2009 13:19:58 +0000 (13:19 -0000)]
2009-09-26 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: New function mono_gc_scan_for_specific_ref() which
searches the whole heap for objects containing a specific
reference. Only for debugging.
svn path=/trunk/mono/; revision=142673
Mark Probst [Sat, 26 Sep 2009 11:24:47 +0000 (11:24 -0000)]
2009-09-26 Mark Probst <mark.probst@gmail.com>
* NumberFormatter.cs: Remove the _thread field.
svn path=/trunk/mcs/; revision=142672
Mark Probst [Sat, 26 Sep 2009 11:20:02 +0000 (11:20 -0000)]
2009-09-26 Mark Probst <mark.probst@gmail.com>
* Thread.cs: Serialize the principal so as not to make it cross
appdomains. Two new internal calls for copying byte arrays
between domains.
2009-09-26 Mark Probst <mark.probst@gmail.com>
* Environment.cs: Corlib version bump.
svn path=/trunk/mcs/; revision=142671
Mark Probst [Sat, 26 Sep 2009 11:19:12 +0000 (11:19 -0000)]
2009-09-26 Mark Probst <mark.probst@gmail.com>
* appdomain.c (MONO_CORLIB_VERSION): Bumped.
* icall-def.h, threads.c, threads-types.h: New icalls for copying
byte arrays between domains.
svn path=/trunk/mono/; revision=142670
Atsushi Eno [Sat, 26 Sep 2009 09:23:36 +0000 (09:23 -0000)]
2009-09-26 Astushi Enomoto <atsushi@ximian.com>
* net_2_1_System.ServiceModel.dll.sources :
added Http[Request|Response]MessageProperty.cs. Looks like our
status pages are based on old 2.0 profile.
svn path=/trunk/mcs/; revision=142669
Veerapuram Varadhan [Sat, 26 Sep 2009 08:08:22 +0000 (08:08 -0000)]
2009-09-26 Veerapuram Varadhan <vvaradhan@novell.com>
** Fixes part of #427769 - Patch by John Lenz <jlenz2@math.uiuc.edu>
* DataSet.cs: XML serialization improvements to be compatible with MS impl.
svn path=/trunk/mcs/; revision=142668
Gonzalo Paniagua Javier [Sat, 26 Sep 2009 02:39:19 +0000 (02:39 -0000)]
2009-09-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
* threadpool.c:
* class-internals.h:
* mono-perfcounters-def.h:
* mono-perfcounters.c:
-There is a list of idle threads
-Each of those idle threads wait on their own WaitHandle instead
of all of them using the same semaphore. When a new work item is
added, the job is assigned directly to an idle thread or a newly
created one if possible and then the handle for that thread is
signaled. Compare that to the current approach where all the
threads in the pool compete to dequeue a job from the same
queue.
-New struct ThreadPool that brings together the bunch of static
variable for each threadpool (IO and regular).
-New performance counters: # of items added and its rate per
threadpool. The rate will be used later, perhaps together with
other perf. counters, to decide when idle threads should exit.
svn path=/trunk/mono/; revision=142667
Jonathan Chambers [Sat, 26 Sep 2009 01:29:21 +0000 (01:29 -0000)]
Fix Windows build.
2009-09-25 Jonathan Chambers <joncham@gmail.com>
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal):
Fix typo on Windows build.
(ves_icall_System_Net_Sockets_Socket_Accept_internal): Fix typo on Windows build.
Code is contributed under MIT/X11 license.
2009-09-25 Jonathan Chambers <joncham@gmail.com>
* mono-logger.c: Include mono-compiler.h for __func__ on MSVC.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=142666
Ankit Jain [Fri, 25 Sep 2009 23:05:40 +0000 (23:05 -0000)]
* Expression.cs: Allow '-' in item, property and metadata names.
svn path=/trunk/mcs/; revision=142665
Marek Habersack [Fri, 25 Sep 2009 22:28:21 +0000 (22:28 -0000)]
2009-09-26 Marek Habersack <mhabersack@novell.com>
* CacheItemPriorityQueue.cs, CacheItem.cs, CacheItemEnumerator.cs:
added
* Cache.cs: factored out CacheItem and CacheItemEnumerator to
separate files.
Use reader-writer locks instead of Monitor.
Added two 3.5sp1 properties - EffectivePrivateBytesLimit and
EffectivePercentagePhysicalMemoryLimit.
Added support for disabling cache item expiration.
One timer is used to expire all timed items (instead of one timer
per item). Timed items are kept in a priority queue.
svn path=/trunk/mcs/; revision=142664
Mark Probst [Fri, 25 Sep 2009 21:49:45 +0000 (21:49 -0000)]
2009-09-25 Mark Probst <mark.probst@gmail.com>
* object-internals.h: The Thread class is split up into Thread and
InternalThread now. We have exactly one InternalThread per
thread, and at most one Thread per appdomain per thread. Most
data is stored in InternalThread. All InternalThread objects live
in the root domain.
* class-internals.h: Add internal_thread_class to MonoDefaults.
* appdomain.c (mono_domain_unload), attach.c (receiver_thread),
domain.c, gc.c, icall-def.h, monitor.c, object.c, sgen-gc.c,
socket-io.c, threadpool.c, thread-types.h, threads.c: Changes
resulting from the split of the Thread class.
* gc-internal.h: Prototype for new function for checking whether a
thread is the finalizer thread.
* appdomain.c: Corlib version bump.
2009-09-25 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c, mini.h, mini-alpha.c, mini-amd64.c, mini-arm.c,
mini-hppa.c, mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c,
mini-s390x.c, mini-sparc.c, mini-x86.c: Thread.get_CurrentThread
works differently now and we don't handle it in the JIT anymore.
* mini.c, mini-exceptions.c, mini-posix.c, debug-debugger.c,
debug-mini.c, tramp-amd64.c, tramp-x86.c: Changes resulting from
the Thread class split.
2009-09-25 Mark Probst <mark.probst@gmail.com>
* xdomain-threads.c: Test for checking whether Thread is correctly
separated between appdomains.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=142662
Mark Probst [Fri, 25 Sep 2009 21:48:40 +0000 (21:48 -0000)]
2009-09-25 Mark Probst <mark.probst@gmail.com>
* Thread.cs: The Thread class is split up into Thread and
InternalThread now. We have exactly one InternalThread per
thread, and at most one Thread per appdomain per thread. Most
data is stored in InternalThread. All InternalThread objects live
in the root domain.
* Environment.cs: Corlib version bump.
svn path=/trunk/mcs/; revision=142661
Zoltan Varga [Fri, 25 Sep 2009 21:39:38 +0000 (21:39 -0000)]
2009-09-25 Zoltan Varga <vargaz@gmail.com>
* solaris_threads.c (GC_get_orig_stack_size): Remove the annoying 'Large stack
limit' warning.
svn path=/trunk/mono/; revision=142660
Rolf Bjarne Kvinge [Fri, 25 Sep 2009 21:13:54 +0000 (21:13 -0000)]
2009-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* appdomain.c|h: Add a mono_domain_try_unload method which is
equivalent to mono_domain_unload, except that it returns an exception
instead of throwing it. Make mono_domain_unload use the
mono_domain_try_unload method to avoid code-duplication.
svn path=/trunk/mono/; revision=142658
Zoltan Varga [Fri, 25 Sep 2009 20:27:56 +0000 (20:27 -0000)]
2009-09-25 Zoltan Varga <vargaz@gmail.com>
* debug-helpers.c (dis_one): Avoid unaligned accesses on platforms where that is
a problem.
svn path=/trunk/mono/; revision=142657
Zoltan Varga [Fri, 25 Sep 2009 20:27:46 +0000 (20:27 -0000)]
2009-09-25 Zoltan Varga <vargaz@gmail.com>
* driver.c: Don't run tests with the obsolete treeprop optimization.
svn path=/trunk/mono/; revision=142656
Ankit Jain [Fri, 25 Sep 2009 19:51:07 +0000 (19:51 -0000)]
Allow targets from imported projects to be overridden.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs (Evaluate): Split into this and ..
(PrepareForEvaluate): .. this.
(AddImport): Evaluate the current set of properties/items etc,
before processing the imported project. Honor the Condition
for the Import.
(ProcessProjectAttributes): Update MSBuildProjectDefaultTargets
property.
* GroupingCollection.cs (Evaluate): Don't evaluate Imports here.
* BuildItemGroup.cs (Evaluate): Evaluate only once.
* BuildPropertyGroup.cs (Evaluate): Evaluate only once.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* TargetTest.cs (TestOverridingTargets): New.
svn path=/trunk/mcs/; revision=142654
Ankit Jain [Fri, 25 Sep 2009 19:50:41 +0000 (19:50 -0000)]
Ensure that InitialTargets and DefaultTargets from imported projects
are honored.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs: Get InitialTargets from the imported projects also.
The combined list of targets are executed, in the order they were
found.
DefaultTargets are also read in from imported projects, and the first
non-empty DefaultTargets found is used.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestInitialTargetsWithImports):
(TestDefaultTargets):
(TestDefaultTargetsWithImports):
(TestNoDefaultTargetsWithImports):
(TestNoDefaultTargets): New tests.
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Remove _ValidateEssentialProperties
from BuildDependsOn, which was a hack. It will get invoked from the
InitialTargets now.
svn path=/trunk/mcs/; revision=142653
Zoltan Varga [Fri, 25 Sep 2009 19:18:35 +0000 (19:18 -0000)]
2009-09-25 Zoltan Varga <vargaz@gmail.com>
* mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
variable volatile. Fixes #541577.
* basic-calls.cs: Add a new test.
* basic-long.cs: Remove tests which are now in basic-calls.cs.
svn path=/trunk/mono/; revision=142651
Jonathan Pryor [Fri, 25 Sep 2009 18:25:39 +0000 (18:25 -0000)]
* Monodoc/ecma-provider.cs: Don't return 'null' from GetPublicUrl(),
but instead provide a decent URL even if the url isn't to a single
member, but instead to show all members, e.g. T:System.String/*.
* Monodoc/provider.cs: Obsolete Node.URL. It's too variable for sane
use; use Node.PublicUrl.
svn path=/trunk/mcs/; revision=142649
Ankit Jain [Fri, 25 Sep 2009 12:59:29 +0000 (12:59 -0000)]
* Makefile(EXTRA_DISTFILES): Add Microsoft.WebApplication.targets
svn path=/trunk/mcs/; revision=142631
Marek Habersack [Fri, 25 Sep 2009 11:17:30 +0000 (11:17 -0000)]
2009-09-25 Marek Habersack <mhabersack@novell.com>
* StaticSiteMapProvider.cs: MapUrl must normalize paths. Fixes bug
#541969
* XmlSiteMapProvider.cs: siteMapFile parameter must be mapped in
Initialize. Fixes bug #541969
svn path=/trunk/mcs/; revision=142627
Marek Safar [Fri, 25 Sep 2009 09:50:17 +0000 (09:50 -0000)]
New tests.
svn path=/trunk/mcs/; revision=142626
Marek Safar [Fri, 25 Sep 2009 09:49:17 +0000 (09:49 -0000)]
2009-09-25 Marek Safar <marek.safar@gmail.com>
* CSharpBinaryOperationBinder.cs, CSharpBinder.cs: More dynamic
binary expressions.
svn path=/trunk/mcs/; revision=142625
Marek Safar [Fri, 25 Sep 2009 09:48:11 +0000 (09:48 -0000)]
2009-09-25 Marek Safar <marek.safar@gmail.com>
* expression.cs, ecore.cs: More dynamic binary expressions.
svn path=/trunk/mcs/; revision=142624
Ankit Jain [Fri, 25 Sep 2009 01:21:16 +0000 (01:21 -0000)]
* Project.cs (BuildTarget): Handle skipped targets.
svn path=/trunk/mcs/; revision=142617
Ankit Jain [Fri, 25 Sep 2009 01:20:57 +0000 (01:20 -0000)]
* xbuild/Microsoft.Common.targets: Emit list of files written
during the build, even if the build fails.
svn path=/trunk/mcs/; revision=142616
Ankit Jain [Fri, 25 Sep 2009 00:33:07 +0000 (00:33 -0000)]
In tools/xbuild:
Fix bug #534992.
* xbuild/Microsoft.Common.targets: Add support for copying
app.config to AssemblyName.config
* xbuild/Microsoft.Common.tasks: Add FindAppConfigFile task.
In tools/xbuild/tests:
* standalone/Project01: Add app.config to project Lib1.
Remove Project01.sln.proj .
svn path=/trunk/mcs/; revision=142610
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Thu, 24 Sep 2009 12:56:51 +0000 (12:56 -0000)]
Fixes 2.1 build
svn path=/trunk/mcs/; revision=142575
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
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
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
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
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
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
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
Marek Safar [Thu, 24 Sep 2009 11:02:41 +0000 (11:02 -0000)]
New test.
svn path=/trunk/mcs/; revision=142561
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
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
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
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
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
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
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
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
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
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
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
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
Gonzalo Paniagua Javier [Wed, 23 Sep 2009 23:03:52 +0000 (23:03 -0000)]
comment out debugging method
svn path=/trunk/mcs/; revision=142525
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
Zoltan Varga [Wed, 23 Sep 2009 22:52:54 +0000 (22:52 -0000)]
Remove a debug printf.
svn path=/trunk/mono/; revision=142523
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Wed, 23 Sep 2009 12:34:39 +0000 (12:34 -0000)]
Needed during 2.0 bootstrap
svn path=/trunk/mcs/; revision=142477
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Tue, 22 Sep 2009 16:52:09 +0000 (16:52 -0000)]
New test.
svn path=/trunk/mcs/; revision=142422
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