Miguel de Icaza [Tue, 4 Aug 2009 00:19:56 +0000 (00:19 -0000)]
Fix
svn path=/trunk/mcs/; revision=139308
Rodrigo Kumpera [Tue, 4 Aug 2009 00:10:17 +0000 (00:10 -0000)]
2009-08-03 Rodrigo Kumpera <rkumpera@novell.com>
* MonoGenericClass.cs (initialize): Remember the number
of events available at initialization time. This is required as
mcs expect this behavior under compiler context that new events
are not returned for an instance that was inflated before.
* MonoGenericClass.cs: Kill GetEvents_internal and implement it
in terms of managed code.
2009-08-03 Rodrigo Kumpera <rkumpera@novell.com>
* EventBuilder.cs: Make some fields internal.
* TypeBuilder.cs: Make events field internal.
Remove some MonoTODOs that are already done.
* EventOnTypeBuilderInst.cs: New file which implements
the required functionality by compiler context.
svn path=/trunk/mcs/; revision=139307
Jb Evain [Mon, 3 Aug 2009 22:22:36 +0000 (22:22 -0000)]
monotouch uses the real HttpWebRequest
svn path=/trunk/mcs/; revision=139300
Jb Evain [Mon, 3 Aug 2009 21:19:24 +0000 (21:19 -0000)]
fix horrible typo
svn path=/trunk/mcs/; revision=139298
Jerri Maine [Mon, 3 Aug 2009 20:12:47 +0000 (20:12 -0000)]
Jerry Maine <crashfourit@gail.com>.
* mini-amd64.c: Added a change to help tell the difference as
to what perpose the xmm register is being used--mainly to help
with debuging.
* mini-amd64.h: Changed callee regs to use 15 out of 16
(one used for special cases) xmm registers for both fp
and simd ops. Added define to turn on new feature in the regalloc
that allows fp and simd ops to share the xmm regs happily.
* codegen.c: Added code to detect for which perpose an xmm reg is
being used (fp or simd) and to translate back and forth to the
correct logical reg bank (fp or simd) for 'spill load's.
svn path=/trunk/mono/; revision=139297
Jerri Maine [Mon, 3 Aug 2009 19:44:21 +0000 (19:44 -0000)]
Contributed under the terms of the MIT/X11 license by
Jerry Maine <crashfourit@gail.com>.
basic-simd.cs: Added tests for stressing the regalloc when running with
16 simd regs and when simd and fp ops share the same reg bank.
svn path=/trunk/mono/; revision=139296
Zoltan Varga [Mon, 3 Aug 2009 14:03:26 +0000 (14:03 -0000)]
2009-08-03 Zoltan Varga <vargaz@gmail.com>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
Avoid a crash if synch_cs is not set.
svn path=/trunk/mono/; revision=139283
Zoltan Varga [Mon, 3 Aug 2009 13:29:08 +0000 (13:29 -0000)]
2009-08-03 Zoltan Varga <vargaz@gmail.com>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=139282
Zoltan Varga [Mon, 3 Aug 2009 13:28:59 +0000 (13:28 -0000)]
2009-08-03 Zoltan Varga <vargaz@gmail.com>
* Thread.cs: Always call Thread_free_internal from the finalizer, since
it frees other things besides the handle. Fixes #527576.
svn path=/trunk/mcs/; revision=139281
Zoltan Varga [Mon, 3 Aug 2009 13:27:33 +0000 (13:27 -0000)]
2009-08-03 Zoltan Varga <vargaz@gmail.com>
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
Handle the case when the handle is 0.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=139280
Gonzalo Paniagua Javier [Mon, 3 Aug 2009 12:48:11 +0000 (12:48 -0000)]
2009-08-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Attachment.cs: set the body encoding for multipart attachments.
Fixes bug #527177.
svn path=/trunk/mcs/; revision=139278
Marek Safar [Mon, 3 Aug 2009 11:09:41 +0000 (11:09 -0000)]
New tests.
svn path=/trunk/mcs/; revision=139276
Marek Safar [Mon, 3 Aug 2009 11:09:27 +0000 (11:09 -0000)]
2009-08-03 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, parameter.cs, support.cs, class.cs: Dynamic type
restrictions.
* rootcontext.cs: Default to langversion v4.
svn path=/trunk/mcs/; revision=139275
Marek Safar [Mon, 3 Aug 2009 10:11:27 +0000 (10:11 -0000)]
New test.
svn path=/trunk/mcs/; revision=139273
Marek Safar [Mon, 3 Aug 2009 10:11:14 +0000 (10:11 -0000)]
2009-08-03 Marek Safar <marek.safar@gmail.com>
* pending.cs: Check return type before member info is set.
svn path=/trunk/mcs/; revision=139272
Marek Safar [Mon, 3 Aug 2009 09:30:00 +0000 (09:30 -0000)]
2009-08-03 Marek Safar <marek.safar@gmail.com>
* anonymous.cs: Fully initialize generic hoisted field expression.
svn path=/trunk/mcs/; revision=139269
Miguel de Icaza [Mon, 3 Aug 2009 04:45:00 +0000 (04:45 -0000)]
2009-08-03 Miguel de Icaza <miguel@novell.com>
* Extensions.cs: Add a null guard and return null on failure,
instead of crashing.
svn path=/trunk/mcs/; revision=139263
Miguel de Icaza [Sun, 2 Aug 2009 21:38:52 +0000 (21:38 -0000)]
2009-08-02 Miguel de Icaza <miguel@novell.com>
* cs-parser.jay: Flag variables declared on the interactive shell
as used to prevent the 168 warning about local variable not being
used.
svn path=/trunk/mcs/; revision=139261
Jb Evain [Sun, 2 Aug 2009 21:11:29 +0000 (21:11 -0000)]
fix monotouch build
svn path=/trunk/mcs/; revision=139260
Jb Evain [Sun, 2 Aug 2009 20:08:38 +0000 (20:08 -0000)]
add custom dirs for monotouch
svn path=/trunk/mcs/; revision=139259
Jb Evain [Sun, 2 Aug 2009 15:43:12 +0000 (15:43 -0000)]
use a 2.0 network stack for MONOTOUCH
svn path=/trunk/mcs/; revision=139255
Jb Evain [Sun, 2 Aug 2009 14:29:00 +0000 (14:29 -0000)]
2009-08-02 Jb Evain <jbevain@novell.com>
* XElement.cs: fix the monotouch build.
svn path=/trunk/mcs/; revision=139254
Zoltan Varga [Sun, 2 Aug 2009 13:33:15 +0000 (13:33 -0000)]
2009-08-02 Zoltan Varga <vargaz@gmail.com>
* reflection.c (mono_type_get_object): Fix a warning.
svn path=/trunk/mono/; revision=139253
Jonathan Pryor [Sun, 2 Aug 2009 11:42:45 +0000 (11:42 -0000)]
* Mono.Documentation/monodocer.cs: Sometimes <AssemblyVersion/> is
found twice when it's actually present only once (!). Attempt to
work around this by usinq LINQ instead of a foreach (which oddly
works...).
svn path=/trunk/mcs/; revision=139252
Miguel de Icaza [Sat, 1 Aug 2009 17:57:00 +0000 (17:57 -0000)]
2009-08-01 Miguel de Icaza <miguel@novell.com>
* Various changes to support the non-XAP XmlSchema resolution on
the Moonlight build.
Major missing feature: WebRequest resolution.
svn path=/trunk/mcs/; revision=139248
Miguel de Icaza [Sat, 1 Aug 2009 16:31:08 +0000 (16:31 -0000)]
2009-08-01 Miguel de Icaza <miguel@novell.com>
* Various changes to support the non-XAP XmlSchema resolution on
the Moonlight build.
Major missing feature: WebRequest resolution.
svn path=/trunk/mcs/; revision=139246
Miguel de Icaza [Sat, 1 Aug 2009 16:12:22 +0000 (16:12 -0000)]
Do not use Xap loading on MonoTouch profile
svn path=/trunk/mcs/; revision=139245
Gert Driesen [Sat, 1 Aug 2009 14:38:27 +0000 (14:38 -0000)]
* SqlDataReaderTest.cs: Fixes for SQL Server 7.0 / TDS 7. Avoid
catching and rethrowing AssertionException. Minor code formatting
changes.
svn path=/trunk/mcs/; revision=139244
Mark Probst [Sat, 1 Aug 2009 14:16:18 +0000 (14:16 -0000)]
2009-08-01 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (mono_gc_wbarrier_value_copy): Don't compute the GC
descriptor here. We assume it's already been computed.
* generic-sharing.c (instantiate_other_info): Compute the GC
descriptor for info type MONO_RGCTX_INFO_KLASS.
2009-08-01 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c (mini_emit_stobj): If we call mono_value_copy()
in shared generic code, we might have to look up the class in the
RGCTX. If we use the class directly, compute its GC descriptor.
svn path=/trunk/mono/; revision=139243
Gert Driesen [Sat, 1 Aug 2009 13:07:28 +0000 (13:07 -0000)]
* SqlCommandBuilderTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
svn path=/trunk/mcs/; revision=139242
Gert Driesen [Sat, 1 Aug 2009 13:01:05 +0000 (13:01 -0000)]
* SqlParameter.cs (ConvertToFrameworkType): Only wrap FormatException
on 2.0 profile.
svn path=/trunk/mcs/; revision=139241
Mark Probst [Sat, 1 Aug 2009 12:14:43 +0000 (12:14 -0000)]
2009-08-01 Mark Probst <mark.probst@gmail.com>
* reflection.c (mono_type_get_object): MonoDomain is an unmanaged
type, so don't use MONO_OBJECT_SETREF to set a field.
svn path=/trunk/mono/; revision=139240
Mark Probst [Sat, 1 Aug 2009 12:06:21 +0000 (12:06 -0000)]
2009-08-01 Mark Probst <mark.probst@gmail.com>
* gc.c: We were missing one case where invoking a finalizer would
not reset the domain. Also, in the finalizer thread loop, assert
that we're in the root domain.
svn path=/trunk/mono/; revision=139239
Gert Driesen [Sat, 1 Aug 2009 12:01:37 +0000 (12:01 -0000)]
* app-net_1.1.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
* app-net_2.0.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
svn path=/trunk/mcs/; revision=139238
Zoltan Varga [Sat, 1 Aug 2009 11:16:12 +0000 (11:16 -0000)]
2009-08-01 Zoltan Varga <vargaz@gmail.com>
* mono-sigcontext.h (UCONTEXT_GREGS): Fix freebsd definition.
svn path=/trunk/mono/; revision=139237
Jonathan Pryor [Sat, 1 Aug 2009 02:36:49 +0000 (02:36 -0000)]
Oops.
svn path=/trunk/mcs/; revision=139231
Rodrigo Kumpera [Sat, 1 Aug 2009 02:32:27 +0000 (02:32 -0000)]
2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
TypeTest.cs: Add test for Type::GetArrayRank.
svn path=/trunk/mcs/; revision=139230
Rodrigo Kumpera [Sat, 1 Aug 2009 02:32:20 +0000 (02:32 -0000)]
2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_MonoType_GetArrayRank): Throw ArgumentException
if the type is not an array.
svn path=/trunk/mono/; revision=139229
Jonathan Pryor [Sat, 1 Aug 2009 02:20:01 +0000 (02:20 -0000)]
* Mono.Documentation/monodocer.cs: Record attributes that are placed
on property get/set and event add/remove accessors.
* Test/DocTest-v1.cs: Add attributes to some accessors.
* Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
Test/en.expected.since/Mono.DocTest/Widget.xml,
Test/en.expected/Mono.DocTest/Widget.xml,
Test/html.expected/Mono.DocTest/Widget.html,
Test/msxdoc-expected.importslashdoc.xml: Flush.
svn path=/trunk/mcs/; revision=139227
Rodrigo Kumpera [Sat, 1 Aug 2009 02:17:11 +0000 (02:17 -0000)]
2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
TypeTest.cs: Add test for Type::DeclaringMethod.
In special for throwing when the type is not a
generic param and for DeclaringMethod returning
a method bound to the right type.
svn path=/trunk/mcs/; revision=139226
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Gonzalo Paniagua Javier [Thu, 30 Jul 2009 23:08:34 +0000 (23:08 -0000)]
remove warnings
svn path=/trunk/mono/; revision=139134
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
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
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
Ankit Jain [Thu, 30 Jul 2009 21:23:08 +0000 (21:23 -0000)]
* ErrorUtilities.cs (ShowUsage): Implement.
svn path=/trunk/mcs/; revision=139124
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
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
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
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
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
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
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
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
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
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
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
Veerapuram Varadhan [Thu, 30 Jul 2009 16:57:47 +0000 (16:57 -0000)]
1.x build fix
svn path=/trunk/mcs/; revision=139098
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Thu, 30 Jul 2009 13:32:08 +0000 (13:32 -0000)]
Updated.
svn path=/trunk/mcs/; revision=139079
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
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
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
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
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