mono.git
14 years ago2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 1 Aug 2009 02:13:54 +0000 (02:13 -0000)]
2009-07-31  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_MonoType_get_DeclaringMethod): Return the
method bound to the declaring type of the method. Raise an exception
if the type is not a generic param.

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

14 years ago2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 1 Aug 2009 00:07:05 +0000 (00:07 -0000)]
2009-07-31  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (mono_jit_runtime_invoke): Fix a warning.

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

14 years ago2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 1 Aug 2009 00:06:49 +0000 (00:06 -0000)]
2009-07-31  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (print_unimplemented_interface_method_info): Print the
full type name.

* class.c (mono_class_setup_vtable_general): When dealing with a
generic instance first check if the generic type definition is
not broken.

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

14 years ago2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 1 Aug 2009 00:06:34 +0000 (00:06 -0000)]
2009-07-31  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (mono_jit_runtime_invoke): Initialize the class and
check for errors. Fixed the case when the class with the Main
method is broken.

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

14 years ago2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 1 Aug 2009 00:06:19 +0000 (00:06 -0000)]
2009-07-31 Rodrigo Kumpera  <rkumpera@novell.com>

* generic_type_definition.2.cs: This test verifies for a lot of stuff
that must work under compiler context. A few of those used to work outside
of it, so this test worked by pure luck.
The fix is to run the test under compiler context.

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

14 years agocpu-amd64.md: Fixed simple bug in machine discrition file.
Jerri Maine [Fri, 31 Jul 2009 23:28:30 +0000 (23:28 -0000)]
cpu-amd64.md: Fixed simple bug in machine discrition file.

Contributed under the terms of the MIT/X11 license by
Jerry Maine <crashfourit@gail.com>.

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

14 years agoIn class/corlib/:
Jérémie Laval [Fri, 31 Jul 2009 18:08:49 +0000 (18:08 -0000)]
In class/corlib/:
        * corlib.dll.sources: Added TaskCompletionSource
        * corlib_test.dll.sources: Removed SnziTests due to
visibility change in Snzi.
        Added TaskCompletionSource tests.

In class/corlib/System.Collections.Concurrent/:
        * ConcurrentBag.cs:
        * ConcurrentQueue.cs:
        * ConcurrentStack.cs:
        * ConcurrentSkipList.cs:
        * ConcurrentDictionary.cs:
        * IProducerConsumerCollection.cs: Make the namespace comply to 4.0b1

In class/corlib/System.Threading.Tasks/:
        * Task.cs:
        * Future.cs:
        * TaskFactory.cs:
        * TaskCanceledException.cs:
        * TaskSchedulerException.cs:
        * Internal/SchedulerProxy.cs: Make System.Threading.Tasks API fully 4.0 b1 compliant.
        * TaskCompletionSource.cs: Add TaskCompletionSource class

In class/corlib/System.Threading/:
        * Snzi.cs:
        * Parallel.cs:
        * SpinLock.cs:
        * SpinWait.cs:
        * ThreadLocal.cs:
        * SemaphoreSlim.cs:
        * CountdownEvent.cs:
        * ManualResetEventSlim.cs:
        * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.

In class/corlib/Test/System.Collections.Concurrent/:
        * ConcurrentDictionary: Ignore tests until runtime/compiler
        is fixed

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

14 years ago2009-02-11 Tom Hindke <tom_hindle@sil.org>
Zoltan Varga [Fri, 31 Jul 2009 17:10:30 +0000 (17:10 -0000)]
2009-02-11 Tom Hindke <tom_hindle@sil.org>

* marshal.c (mono_array_to_lparray): Implemented so managed object types are converted to native types.

* marshal.c: Added new method mono_free_lparray to free memory allocated by mono_array_to_lparray

* marshal.c (emit_marshal_array): call emit mono_free_lparray where approprate.

* marshal.c (conv_to_icall): added MONO_MARSHAL_FREE_LPARRAY case

* metadata.h (MonoMarshalConv enum): added MONO_MARSHAL_FREE_LPARRAY

Code is contributed under MIT/X11 license

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 16:10:27 +0000 (16:10 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : raise error on multiple endpoint match
  (documented at EndpointDispatcher.FilterPriority).

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

14 years ago2009-07-31 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 31 Jul 2009 15:24:30 +0000 (15:24 -0000)]
2009-07-31  Marek Safar  <marek.safar@gmail.com>

* parameter.cs, dynamic.cs, support.cs, class.cs, delegate.cs,
attribute.cs: Emit dynamic export attribute.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 12:42:24 +0000 (12:42 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
  connection part to use new internal IPeerConnectorContract for
  neighbor connection.

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

14 years ago* Fix System.Collections.Concurrent API mismatches
Jérémie Laval [Fri, 31 Jul 2009 12:36:18 +0000 (12:36 -0000)]
* Fix System.Collections.Concurrent API mismatches
* Update unit tests with the modified API

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 12:27:07 +0000 (12:27 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelListenerBase_1.cs, TcpChannelListener.cs,
  PeerChannelListener.cs, HttpChannelListener.cs :
  support ListenUri accordingly too so that it could be used when
  it is different from LocalAddress.Uri.

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

14 years ago2009-07-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 31 Jul 2009 12:24:32 +0000 (12:24 -0000)]
2009-07-31  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (mono_arch_output_basic_block): Implement OP_IREM_UN_IMM.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 11:46:23 +0000 (11:46 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelFactory.cs, TcpDuplexSessionChannel.cs,
  TcpRequestChannel.cs : use Via uri to validate and connect.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 11:42:51 +0000 (11:42 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
  ChannelFactory_1.cs : now proxies take remote address and via uri
  which could be optionally specified and use it whenever required.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 11:40:39 +0000 (11:40 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* RequestChannelBase.cs, DuplexChannelBase.cs :
  Return endpoint address Uri when no explicit Via uri is specified.
* ChannelFactoryBase.cs : Remove extra async close methods.
  Add async open methods. Reject null EndpointAddress.
* PeerChannelFactory.cs : remove async open methods (now in base).

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

14 years agoIList implementation: convert NullReferenceException to ArgumentException
Raja R Harinath [Fri, 31 Jul 2009 10:25:04 +0000 (10:25 -0000)]
IList implementation: convert NullReferenceException to ArgumentException

* List.cs (IList.this.set): Convert NullReference and InvalidCast
exceptions into ArgumentExceptions.
(IList.Add, IList.Contains, IList.IndexOf, IList.Insert, IList.Remove):
Convert NullReferenceException to ArgumentException.
* ListTest.cs: Add a few testcases for IList interface, using null
values with a List<int>.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 09:27:47 +0000 (09:27 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* IPeerConnectorContract.cs : new file for [MC-PRCH].

* System.ServiceModel.dll.sources: add IPeerConnectorContract.cs.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 05:23:02 +0000 (05:23 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : set correct message endpoint (To header).

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 05:13:36 +0000 (05:13 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
  DuplexChannelBase.cs : set LocalAddress property at base.

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

14 years ago2009-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 31 Jul 2009 05:09:24 +0000 (05:09 -0000)]
2009-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceEndpoint.cs : ListenUri defaults to Address.Uri.

* ServiceEndpointTest.cs : new.

* System.ServiceModel_test.dll.sources: add ServiceEndpointTest.cs.

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

14 years ago2009-07-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 31 Jul 2009 02:46:00 +0000 (02:46 -0000)]
2009-07-30 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (IsDefined): Throw if not
created and not in compiler context.

2009-07-30 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest: Test for IsDefined.

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

14 years ago2009-07-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 31 Jul 2009 00:10:32 +0000 (00:10 -0000)]
2009-07-30 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetNestedTypes): Throw if not
created and not in compiler context.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 31 Jul 2009 00:10:04 +0000 (00:10 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetEvents): Throw if not created
and not in compiler context.

* TypeBuilder.cs (GetNestedType): Don't rely on
MonoType implementation as it doesn't work if the
nested type is defined after the TypeBuilder is
created.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest: Test for GetNestedType.

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

14 years ago2009-07-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 31 Jul 2009 00:04:16 +0000 (00:04 -0000)]
2009-07-30  Rodrigo Kumpera  <rkumpera@novell.com>

cil-opcodes.xml: Fix naming of stelem and ldelem to be
the same of the spec. Fix stack effect of stelem. Change
type of constrained and readonly prefixes.

2009-08-30  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c: Fix naming of stelem and ldelem.

2009-08-30  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Fix naming of stelem and ldelem.

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

14 years agoremove warnings
Gonzalo Paniagua Javier [Thu, 30 Jul 2009 23:08:34 +0000 (23:08 -0000)]
remove warnings

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

14 years ago* ConsoleLogger.cs: Keep track of all the errors and warnings
Ankit Jain [Thu, 30 Jul 2009 21:24:40 +0000 (21:24 -0000)]
* ConsoleLogger.cs: Keep track of all the errors and warnings
and show them at the end.

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

14 years ago* Target.cs (Build): Log a message if a target is skipped.
Ankit Jain [Thu, 30 Jul 2009 21:24:18 +0000 (21:24 -0000)]
* Target.cs (Build): Log a message if a target is skipped.
(LogMessage): New.
* BuildTask.cs (Execute): Log error if task execution fails.

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

14 years ago* MSBuild.cs (Execute): Log error if the file doesn't exist.
Ankit Jain [Thu, 30 Jul 2009 21:23:56 +0000 (21:23 -0000)]
* MSBuild.cs (Execute): Log error if the file doesn't exist.

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

14 years ago* ErrorUtilities.cs (ShowUsage): Implement.
Ankit Jain [Thu, 30 Jul 2009 21:23:08 +0000 (21:23 -0000)]
* ErrorUtilities.cs (ShowUsage): Implement.

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

14 years ago2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 30 Jul 2009 21:20:30 +0000 (21:20 -0000)]
2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpResponseWrapper.cs: removed a few TODO/NotImplemented.
Fixes bug #526297.

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

14 years ago* SqlParameterTest.cs: Improved tests for bug #382589.
Gert Driesen [Thu, 30 Jul 2009 19:56:59 +0000 (19:56 -0000)]
* SqlParameterTest.cs: Improved tests for bug #382589.

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

14 years ago2009-07-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 30 Jul 2009 19:54:08 +0000 (19:54 -0000)]
2009-07-30  Mark Probst  <mark.probst@gmail.com>

        * generic-sharing.c: Replace the templates lock with the loader
        lock because of very hard to resolve deadlock issues.

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

14 years agoTest the Dictionary Keys and Values slices
Raja R Harinath [Thu, 30 Jul 2009 19:47:53 +0000 (19:47 -0000)]
Test the Dictionary Keys and Values slices

* DictionaryTest.cs (KeyEnumerator_Current): New test.  Test the
Keys slice enumerator.
(ValueEnumerator_Current): Likewise, for the Values slice.

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

14 years ago* SqlParameter.cs: Modified ConvertToFrameworkType to only perform
Gert Driesen [Thu, 30 Jul 2009 19:42:59 +0000 (19:42 -0000)]
* SqlParameter.cs: Modified ConvertToFrameworkType to only perform
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.

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

14 years agoFix Enumerator.Current handling in SortedDictionary<,>
Raja R Harinath [Thu, 30 Jul 2009 19:42:04 +0000 (19:42 -0000)]
Fix Enumerator.Current handling in SortedDictionary<,>

* System.Collections.Generic/RBTree.cs (NodeEnumerator.check_current):
 New helper.
(NodeEnumerator.Current): Don't check invariants.
* SortedDictionary.cs (Enumerator.Current): Likewise.
(ValueCollection.Enumerator.Current): Likewise.
(KeyCollection.Enumerator.Current): Likewise.

* Test/System.Collections.Generic/SortedDictionaryTest.cs
(Enumerator_Current, KeyEnumerator_Current, ValueEnumerator_Current): New tests.

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

14 years ago* List.cs (Enumerator.MoveNext): Simplify.
Raja R Harinath [Thu, 30 Jul 2009 19:04:39 +0000 (19:04 -0000)]
* List.cs (Enumerator.MoveNext): Simplify.

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

14 years ago* Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.
Raja R Harinath [Thu, 30 Jul 2009 19:04:14 +0000 (19:04 -0000)]
* Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 18:36:30 +0000 (18:36 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* driver.c (main_thread_handler): Check that the assembly loaded
matches the filename when doing AOT.

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

14 years ago* HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.
Raja R Harinath [Thu, 30 Jul 2009 18:03:20 +0000 (18:03 -0000)]
* HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.

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

14 years agoFix HashSet<>-related parts of #491858, #517415
Raja R Harinath [Thu, 30 Jul 2009 17:49:41 +0000 (17:49 -0000)]
Fix HashSet<>-related parts of #491858, #517415

* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New.  Contains the current element.
(Enumerator.MoveNext): Update.  Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.

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

14 years ago1.x build fix
Veerapuram Varadhan [Thu, 30 Jul 2009 16:57:47 +0000 (16:57 -0000)]
1.x build fix

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

14 years ago* standalone/Project01/final-outputs.txt: Update to include obj/
Ankit Jain [Thu, 30 Jul 2009 16:17:44 +0000 (16:17 -0000)]
* standalone/Project01/final-outputs.txt: Update to include obj/
dir also, and sort the list.

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

14 years ago2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 30 Jul 2009 15:56:49 +0000 (15:56 -0000)]
2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>

* BuildManager.cs: path fixup should work now for /foo running on
/foo. Fixes bug #526563.

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

14 years agoFix bug #484771.
Ankit Jain [Thu, 30 Jul 2009 15:54:58 +0000 (15:54 -0000)]
Fix bug #484771.
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add support
for $(OutDir).

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

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Thu, 30 Jul 2009 15:20:50 +0000 (15:20 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
v2.0, this will change when multi-targeting lands.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

* EngineTest.cs (TestNewProject): Disable. Invalid for
v3.5 profile.

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

14 years agoList<>-relevant fix for #491858 and #517415
Raja R Harinath [Thu, 30 Jul 2009 14:55:24 +0000 (14:55 -0000)]
List<>-relevant fix for #491858 and #517415

* System.Collections.Generic/List.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
(Enumerator.Dispose): Set 'l' to null.
* Test/System.Collections.Generic/ListTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 14:32:52 +0000 (14:32 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes the issue reported by Scott <Scott.Fluto@cmgl.ca> in Mono-list
* SqlParameter.cs (ConvertToFrameworkType): Return String.Empty
in case of zero-length strings.

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 14:32:29 +0000 (14:32 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

* CustomDataClassGenerator.cs (MakeSafeName): Throw NRE instead of
ArgumentNullException - fixes failing tests.

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

14 years agoAuthor: Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 30 Jul 2009 13:56:32 +0000 (13:56 -0000)]
Author: Jérémie Laval <jeremie.laval@gmail.com>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

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

14 years agoFix Dictionary<,>-relevant parts of #491858 and #517415
Raja R Harinath [Thu, 30 Jul 2009 13:52:39 +0000 (13:52 -0000)]
Fix Dictionary<,>-relevant parts of #491858 and #517415

* System.Collections.Generic/Dictionary.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
* Test/System.Collections.Generic/DictionaryTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

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

14 years ago* ErrorUtilities.cs: Set version to Consts.MonoVersion .
Ankit Jain [Thu, 30 Jul 2009 13:47:26 +0000 (13:47 -0000)]
* ErrorUtilities.cs: Set version to Consts.MonoVersion .

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 13:41:31 +0000 (13:41 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataAdapter.cs (IDbDataAdapter.*Command): Remove over-engineered
checks as the base implementation is changed.

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

14 years agoUpdated.
Marek Safar [Thu, 30 Jul 2009 13:32:08 +0000 (13:32 -0000)]
Updated.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:31:41 +0000 (13:31 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* expression.cs: More verifier work.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:27:12 +0000 (13:27 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* AppDomain.cs: Implemented 2.0 CreateDomain.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:23:09 +0000 (13:23 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* ApplicationTrust.cs: Add FullTrustAssemblies.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:19:58 +0000 (13:19 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* ReflectionPermission.cs: RestrictedMemberAccess can be set.

* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.

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

14 years ago* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
Ankit Jain [Thu, 30 Jul 2009 13:12:07 +0000 (13:12 -0000)]
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
ResolvedFiles to @(ReferencePath), required for IDE integration.

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

14 years ago* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
Ankit Jain [Thu, 30 Jul 2009 13:10:54 +0000 (13:10 -0000)]
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
required for IDE integration.
* AssemblyResolver.cs (GetResolvedReference): All the original metadata
should be retained. Track api changes.

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

14 years agoConflict merge between trunk/local tree
Veerapuram Varadhan [Thu, 30 Jul 2009 12:38:11 +0000 (12:38 -0000)]
Conflict merge between trunk/local tree

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:57 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

        * SqlParameterTest.cs: Marked SqlChars/SqlBytes tests for SqlValue
        as NotWorking as these types are considered as SqlString/SqlBinary
        respectively.

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:44 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataAdapter.cs (IDbDataAdapter.*Command): Revert some of my earlier
changes.  Validate the incoming value as we use bases' implementation now.
Fixes failing tests.

* SqlParameter.cs (GetSqlValue): Simplify handling of SqlValue and SqlTypes.
(SqlTypeToFramworkType): Added support for SqlChars and SqlBytes types.

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:30 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
as provider specific DbDataAdapters would have its own implementation.

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

14 years ago2009-07-28 Gert Driesen <drieseng@users.sourceforge.net>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:15 +0000 (12:37 -0000)]
2009-07-28  Gert Driesen  <drieseng@users.sourceforge.net>

* More clean up of fix for #522624/#507663
* SqlCommandBuilder.cs: Appropriately handle rowUpdatingHandler and
more cleanup for 2.0 profile.

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

14 years ago2009-07-27 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:57 +0000 (12:36 -0000)]
2009-07-27  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable
property "Original_*" fields.

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

14 years ago2009-07-26 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:37 +0000 (12:36 -0000)]
2009-07-26  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlParameter.cs (get/set_SqlValue, GetSqlValue): Return the appropriately
SQL-typed param value.  Fixes failing provider tests.

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

14 years ago2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:23 +0000 (12:36 -0000)]
2009-07-24  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
SqlCommandBuilder version of Create*Commands that fixes the failing tests.

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

14 years agoTest fix.
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:07 +0000 (12:36 -0000)]
Test fix.

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

14 years agoconflict fix between trunk and local tree
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:52 +0000 (12:35 -0000)]
conflict fix between trunk and local tree

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

14 years ago2009-07-25 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:33 +0000 (12:35 -0000)]
2009-07-25  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataReader.cs: Added new schema fields to the schema row.
Fixes a failing provider test.

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

14 years ago2009-07-25 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:12 +0000 (12:35 -0000)]
2009-07-25  Veerapuram Varadhan  <vvaradhan@novell.com>

* Fixes #507663
* SqlCommandBuilder.cs: From 2.0 onwards, use base's
implementation for handling auto-generated commands.
* SqlDataAdapter.cs: -- ditto --

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 11:40:52 +0000 (11:40 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : ongoing refactoring to work both as
  listener and client. Now it creates a listening peer node, and
  creates a set of TCP client channels for each peer in the mesh.

  (EndpointAddress must be fixed to not filter out correct inputs).

* PeerNode.cs : remove TCP listener creator.
  It is now in PeerDuplexChannel.

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 11:35:23 +0000 (11:35 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* PeerChannelListener.cs : do not accept more than one channel
  which results in lots of listening peer node. Only one is enough.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:33:03 +0000 (11:33 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_Type_GetMethodsByName): Use
mono_class_get_vtable_size () instead of accessing klass->vtable_size
directly. Fixes #525338.

* class.c (mono_class_get_vtable_size): New helper function.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:20:57 +0000 (11:20 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* FieldInfoTest.cs: Add a test for #525733.

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

14 years agoMake CreateConcreteTypeWithAbstractMethod testcase compile
Raja R Harinath [Thu, 30 Jul 2009 11:19:56 +0000 (11:19 -0000)]
Make CreateConcreteTypeWithAbstractMethod testcase compile

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:15:14 +0000 (11:15 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* FieldInfo.cs: Throw an exception if internal_from_handle_type ()
returns null. Fixes #525733.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:12:35 +0000 (11:12 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle_type): Fix the second argument, its a MonoType* not a MonoClass*. Check whenever
the field belongs to the type. Fixes #525733.

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

14 years ago2009-07-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 30 Jul 2009 10:29:14 +0000 (10:29 -0000)]
2009-07-30  Mark Probst  <mark.probst@gmail.com>

* mono-sigcontext.h: Include config.h.

2009-07-30  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c: When we stop a thread and its stack top is not within
its allocated stack (because it's in an altstack signal handler),
restart it and stop it again, until it is.

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

14 years ago2009-07-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 30 Jul 2009 10:03:57 +0000 (10:03 -0000)]
2009-07-30  Mark Probst  <mark.probst@gmail.com>

* mono-sigcontext.h, Makefile.am: Arch-dependent sigcontext
macros, moved from mini.

2009-07-30  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c: Take a thread's stack top and registers from the
sigcontext in the suspend signal handler.

* sgen-gc.h, sgen-archdep.h, Makefile.am: Move arch-dependent
stuff to sgen-archdep.h.

* gc.c, gc-internal.h: Remove the get_ip_from_sigctx installer and
caller, because have code in sgen-archdep.h to acquire that data.

2009-07-30  Mark Probst  <mark.probst@gmail.com>

* mini.c: get_ip_from_sigctx installer has been removed, so don't
call it anymore.

* mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
utils/mono-sigcontext.h).

* exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
#ifdef.

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

14 years agoAdd a sanity-check to catch cyclic-dependency issues
Raja R Harinath [Thu, 30 Jul 2009 09:07:12 +0000 (09:07 -0000)]
Add a sanity-check to catch cyclic-dependency issues

* build/library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
* tools/csharplib/Makefile ($(the_lib)): Update to changes in build/library.make.

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

14 years ago* Makefile ($(build_lib)): Move cyclic dependencies onto this.
Raja R Harinath [Thu, 30 Jul 2009 09:02:30 +0000 (09:02 -0000)]
* Makefile ($(build_lib)): Move cyclic dependencies onto this.

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 07:49:45 +0000 (07:49 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelBase.cs : fix wrong loop implementation.

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

14 years ago* ReadLinesFromFile.cs (Execute): Log a warning instead of an error
Ankit Jain [Wed, 29 Jul 2009 23:28:41 +0000 (23:28 -0000)]
* ReadLinesFromFile.cs (Execute): Log a warning instead of an error
if unable to read from the file. Fix a null check. Always return
true.

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

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Wed, 29 Jul 2009 22:24:32 +0000 (22:24 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
'MSBuildProjectName' properties.

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

* Delete.cs (Execute): Log a message when deleting a file.

In tools/xbuild:

* xbuild/Microsoft.Common.targets: Implement 'Clean' target. Currently
just handles clean for a full build.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:04:02 +0000 (22:04 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetConstructors): Throw if
TypeBuilder is incomplete.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
since the public version throws.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest: Test for GetConstructors.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:03:34 +0000 (22:03 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetInterfaces): Return the expanded
interface list if the type has been created.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest: Test for GetInterfaces.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:03:03 +0000 (22:03 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetGenericArguments): Returns null for
 non generic TypeBuilders.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest: Test for GetGenericArguments.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:02:30 +0000 (22:02 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetElementType): Throw always.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for GetElementType.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:02:00 +0000 (22:02 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GetGenericTypeDefinition): Either
throw or return itself.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for GetGenericTypeDefinition.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:01:31 +0000 (22:01 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (GenericParameterPosition): Return 0
instead of throwing.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for GenericParameterPosition.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 22:01:02 +0000 (22:01 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (DeclaringMethod): Return null
instead of throwing.

2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for DeclaringMethod.

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

14 years agohopefully fix the build (from clean)
Sebastien Pouliot [Wed, 29 Jul 2009 20:34:10 +0000 (20:34 -0000)]
hopefully fix the build (from clean)

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jul 2009 19:02:40 +0000 (19:02 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelListener.cs : to avoid creating two or more channels
  for one remote endpoint, check existing remote endpoints and
  ignore such connections (it must be handled in different thread
  fired by ChannelDispatcher loop).

* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
  the channel does not have to be fired Receive() before Open().

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

14 years agoKeep track of cexecutable code buffers in the runtime instead of using mono_jit_info_...
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:43 +0000 (18:43 -0000)]
Keep track of cexecutable code buffers in the runtime instead of using mono_jit_info_table_find().

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

14 years agoCall profiler hook to keep track of method code buffers.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:39 +0000 (18:43 -0000)]
Call profiler hook to keep track of method code buffers.

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

14 years agoCall profiler hooks to keep track of code chunks.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:29 +0000 (18:43 -0000)]
Call profiler hooks to keep track of code chunks.

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

14 years agoAdded support for keeping track of code chunks and buffers.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:25 +0000 (18:43 -0000)]
Added support for keeping track of code chunks and buffers.

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