mono.git
14 years agoIn Test/System.Security.Cryptography.X509Certificates:
Robert Jordan [Fri, 26 Jun 2009 11:22:31 +0000 (11:22 -0000)]
In Test/System.Security.Cryptography.X509Certificates:
2009-06-26  Robert Jordan  <robertj@gmx.net>

* X509CertificateCollectionTest.cs,
X509ChainPolicyTest.cs: Upgrade to new NUnit style.

In Test/System.Security.Cryptography:
2009-06-26  Robert Jordan  <robertj@gmx.net>

* OidCollectionTest.cs, OidEnumeratorTest.cs:
Upgrade to new NUnit style.

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

14 years ago2009-06-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Jun 2009 11:20:13 +0000 (11:20 -0000)]
2009-06-26  Zoltan Varga  <vargaz@gmail.com>

* NumberFormatterTest.cs: Convert all tests to new-style nunit
classes/methods.

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

14 years ago2009-06-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Jun 2009 11:16:10 +0000 (11:16 -0000)]
2009-06-26  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods. Add
[Test] attributes to some tests which were missing them.

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

14 years ago2009-06-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Jun 2009 11:05:19 +0000 (11:05 -0000)]
2009-06-26  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-26 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 26 Jun 2009 08:36:55 +0000 (08:36 -0000)]
2009-06-26  Robert Jordan  <robertj@gmx.net>

* BitArrayTest.cs: Upgrade to new NUnit style. Enable
16 tests that were disabled after the NUnit 2.4 update.

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

14 years ago2009-06-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Jun 2009 05:43:07 +0000 (05:43 -0000)]
2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>

* XplatUICarbon.cs : support multi-byte text input.
  Fixed bug #501276.

* KeyboardHandler.cs : support multi-byte text input.
  Fixed bug #501276.

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

14 years agonew tests
Gonzalo Paniagua Javier [Fri, 26 Jun 2009 05:28:01 +0000 (05:28 -0000)]
new tests

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

14 years ago2009-06-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Jun 2009 05:26:36 +0000 (05:26 -0000)]
2009-06-26  Atsushi Enomoto <atsushi@ximian.com>

* SelectNodesTests.cs
  XPathNavigatorCommonTests.cs
  XPathAtomicValueTests.cs
  XPathNavigatorTests.cs
  XPathNavigatorEvaluateTests.cs : convert to newer nunit style.

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

14 years ago2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 26 Jun 2009 05:25:56 +0000 (05:25 -0000)]
2009-06-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DateTime.cs: if the DateTimeOffset is out of bounds, let Parse
report the error. Fix stupid harmless typo.
* DateTimeOffset.cs: report error if the UTC date/time is out of
bounds.

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

14 years ago2009-06-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Jun 2009 02:24:39 +0000 (02:24 -0000)]
2009-06-25 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c (mono_type_create_from_typespec): Call into the verifier to check
the signature.

* metadata-verify.c: Add mono_verifier_verify_typespec_signature.

* verify-internals.h: Export mono_verifier_verify_typespec_signature as
part of the internal API.

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

14 years ago * metadata.c (mono_metadata_parse_mh_full): Call into the verifier to check
Rodrigo Kumpera [Fri, 26 Jun 2009 02:24:25 +0000 (02:24 -0000)]
* metadata.c (mono_metadata_parse_mh_full): Call into the verifier to check
the signature.

* metadata-verify.c: Add mono_verifier_verify_standalone_signature. Fix
blob verification.

* verify-internals.h: Export mono_verifier_verify_memberref_signature as
part of the internal API.

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

14 years ago2009-06-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Jun 2009 02:24:11 +0000 (02:24 -0000)]
2009-06-25 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Use is_valid_blob_object to verify blob validity
when doing basic verification.

This check must be done since the runtime peeks into signatures in much
more places than it does decoding so it makes sense to ensure that all
pointers to blob objects are well formed.

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

14 years ago2009-06-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Jun 2009 02:23:58 +0000 (02:23 -0000)]
2009-06-25 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_blob_object): Add extra minsize argument.
Use proper overflow dectection. Fix usage of it.

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

14 years ago2009-06-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Jun 2009 02:23:45 +0000 (02:23 -0000)]
2009-06-25 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (field_from_memberref): Call into the verifier to check
the signature.

* loader.c (mono_method_get_signature_full): Same.

* loader.c (method_from_memberref): Same.

* metadata-verify.c: Add mono_verifier_verify_memberref_signature.

* verify-internals.h: Export mono_verifier_verify_memberref_signature as
part of the internal API.

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

14 years agoanother dos2unix.
Atsushi Eno [Fri, 26 Jun 2009 02:15:22 +0000 (02:15 -0000)]
another dos2unix.

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

14 years agodos2unix.
Atsushi Eno [Fri, 26 Jun 2009 01:44:37 +0000 (01:44 -0000)]
dos2unix.

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

14 years ago2009-06-25 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 26 Jun 2009 00:47:19 +0000 (00:47 -0000)]
2009-06-25  Miguel de Icaza  <miguel@novell.com>

* Timer.cs: Throw ArgumentNullException if the callback is null.

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

14 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Fri, 26 Jun 2009 00:15:37 +0000 (00:15 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

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

14 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Thu, 25 Jun 2009 23:36:03 +0000 (23:36 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <marek.safar@gmail.com>

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

14 years ago2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Jun 2009 23:23:24 +0000 (23:23 -0000)]
2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebAsyncResult.cs: new field that tells us if the request is being
written automatically because we reached the content length.
* WebConnection.cs:
* WebConnectionStream.cs: make sure we only access the NetworkStream
while we own it. Automatically write the request when we reach
ContentLength number of bytes. Kill the write buffer as soon as
possible. Don't use the buffer at all when chunked encoding is
enabled.

Fixes bugs #515931 and #510642.

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

14 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Thu, 25 Jun 2009 23:19:41 +0000 (23:19 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

2009-06-10  Marek Safar  <marek.safar@gmail.com>

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

14 years ago2009-06-25 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 25 Jun 2009 22:46:50 +0000 (22:46 -0000)]
2009-06-25  Miguel de Icaza  <miguel@novell.com>

* Int32.cs: Fix regression introduced in 2005, we need to throw
ArgumentNullException on Parse.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 21:02:46 +0000 (21:02 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 20:55:57 +0000 (20:55 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 20:45:27 +0000 (20:45 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Jun 2009 20:40:31 +0000 (20:40 -0000)]
2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* sockets.c: add the error number to the message so we can figure out
when this happens.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 20:16:53 +0000 (20:16 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 19:41:51 +0000 (19:41 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_and_reloc_code): Factor out the code to
determine whenever a method is directly callable to a separate function.

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

14 years ago2009-06-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 25 Jun 2009 19:35:20 +0000 (19:35 -0000)]
2009-06-25  Marek Habersack  <mhabersack@novell.com>

* RouteCollectionTest.cs, RouteTest.cs: added new tests for
GetVirtualPath

2009-06-25  Marek Habersack  <mhabersack@novell.com>

* PatternParser.cs: parameter name lookups must be
case-insensitive.
Null and empty (string) parameters are skipped when building query
part of the action path.

2009-06-25  Marek Habersack  <mhabersack@novell.com>

* LinqDataSource.cs: make ContextType not throw an exception when
ContextTypeName is not set, but rather return a null in that
case.

2009-06-25  Marek Habersack  <mhabersack@novell.com>

* MetaTableTest.cs: new GetVirtualPath tests.

* DynamicDataRouteTest.cs: added tests for route.Defaults
modifications on class init.

* DynamicDataRouteHandlerTest.cs: added

2009-06-25  Marek Habersack  <mhabersack@novell.com>

* MetaTable.cs: Fixes to make tests succeed.

* MetaModel.cs: added the GetDataFieldAttributes method for
retrieving attributes associated with data type/field.
Fixes to make tests succeed.

* MetaColumn.cs: refactoring - use
MetaModel.GetDataFieldAttributes instead of the local version.

* DynamicDataRouteHandler.cs: implemented GetRequestContext,
GetRequestMetaTable.

* DynamicDataRoute.cs: when the Action and Table properties are
set before one of GetVirtualPath or GetRouteData methods are
called for the first time, a check is made whether the Defaults
collection exists and whether it contains entries for Action and
Table. Initialization code makes sure those entries are inserted
into the dictionary in those cases.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 19:17:12 +0000 (19:17 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* mini-<ARCH>.c tramp-<ARCH>.c: Remove needless casts and add new
needed ones as a result of the previous change.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 19:04:37 +0000 (19:04 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* mini-<ARCH>.c tramp-<ARCH>.c: Use mgreg_t* as the
type of register arrays.

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

14 years ago * src/**/*: Sync with DbLinq r1200. Among other fixes, this fixes an
Jonathan Pryor [Thu, 25 Jun 2009 18:57:33 +0000 (18:57 -0000)]
* src/**/*: Sync with DbLinq r1200.  Among other fixes, this fixes an
  issue where AttributeMappingSource.GetModel().GetTables() would
  return duplicate types, which was unexpected by Marek Habersack.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 18:54:18 +0000 (18:54 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c tramp-<ARCH>.c aot-runtime.c: Use mgreg_t* as the
type of register arrays.

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

14 years ago2009-06-25 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 25 Jun 2009 18:43:12 +0000 (18:43 -0000)]
2009-06-25  Mark Probst  <mark.probst@gmail.com>

        * threadpool.c (mono_thread_pool_add): If the domain is unloading
        or unloaded, still return an AsyncResult, but don't add it to the
        threadpool.

2009-06-25  Mark Probst  <mark.probst@gmail.com>

        * appdomain-async-invoke.cs: Fail if BeginInvoke doesn't return an
        AsyncResult.

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

14 years ago2009-06-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Jun 2009 18:41:52 +0000 (18:41 -0000)]
2009-06-25  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
  Made required changes for repeated use of message exchanges.
  Hold binary reader session. The channels use it incrementally.
  Preambles are handled at Open, and EndRecords are handled at
  Close, Add session shutdown hook here (not working yet though).

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

14 years ago2009-06-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Jun 2009 18:37:22 +0000 (18:37 -0000)]
2009-06-25  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : instead of discarding channels, reuse them
  unless it is closed by session manager (session manager does not
  work, so channels are not actually closed automatically yet).

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

14 years ago2009-06-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Jun 2009 17:57:37 +0000 (17:57 -0000)]
2009-06-25  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcherTest.cs : add some instance provider tests.

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

14 years ago2009-06-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Jun 2009 17:53:55 +0000 (17:53 -0000)]
2009-06-25  Atsushi Enomoto  <atsushi@ximian.com>

* InstanceContext.cs : add missing member / cosmetic API fix.
* ServiceBehaviorAttribute.cs : InstanceContextMode is per-session
  by default.

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

14 years ago2009-06-25 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Jun 2009 17:53:23 +0000 (17:53 -0000)]
2009-06-25  Astushi Enomoto  <atsushi@ximian.com>

* SessionInstanceContextProvider.cs : new instance context provider.

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

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

14 years ago2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Jun 2009 17:40:39 +0000 (17:40 -0000)]
2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threads.c: fix missing colon when DEBUG is defined.

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

14 years ago2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Jun 2009 17:37:40 +0000 (17:37 -0000)]
2009-06-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* wait.c: add missing 'break'.

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

14 years ago2009-06-25 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 25 Jun 2009 17:00:53 +0000 (17:00 -0000)]
2009-06-25  Mark Probst  <mark.probst@gmail.com>

        * threadpool.c: Don't add new calls to a threadpool if the domain
        of the call is unloading or unloaded.  When dequeuing a job, null
        the reference in the queue.

2009-06-25  Mark Probst  <mark.probst@gmail.com>

        * appdomain-async-invoke.cs: Test for adding async invokes while a
        domain is unloading.

        * Makefile.am: Test added.

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

14 years ago2009-06-25 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 25 Jun 2009 16:42:05 +0000 (16:42 -0000)]
2009-06-25  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c (null_link_in_range): Add the dislink for the old
        generation if an object was moved.

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

14 years ago2009-06-25 Sylvain Dupont <duposyl@gmail.com>
Bill Holmes [Thu, 25 Jun 2009 14:06:50 +0000 (14:06 -0000)]
2009-06-25  Sylvain Dupont <duposyl@gmail.com>

* cominterop.h cominterop.c marshal.c: Added support for marshalling out
  parameters of type SAFEARRAY[VARIANT].

* reflection.c (encode_marshal_blob): Properly generate element type
  (SafeArraySubType marshal attribute option).

* cominterop.cs libtest.c: Added tests for marshalling
  out parameters of type SAFEARRAY[VARIANT].

* CustomAttributeBuilder.cs: Properly handle element type for safe
  arrays (SafeArraySubType marshal attribute option).

Code is contributed under MIT/X11 license.

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

14 years ago2009-06-25 Sylvain Dupont <duposyl@gmail.com>
Bill Holmes [Thu, 25 Jun 2009 14:06:50 +0000 (14:06 -0000)]
2009-06-25  Sylvain Dupont <duposyl@gmail.com>

* cominterop.h cominterop.c marshal.c: Added support for marshalling out
  parameters of type SAFEARRAY[VARIANT].

* reflection.c (encode_marshal_blob): Properly generate element type
  (SafeArraySubType marshal attribute option).

* cominterop.cs libtest.c: Added tests for marshalling
  out parameters of type SAFEARRAY[VARIANT].

* CustomAttributeBuilder.cs: Properly handle element type for safe
  arrays (SafeArraySubType marshal attribute option).

Code is contributed under MIT/X11 license.

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

14 years agoThu Jun 25 15:48:09 CEST 2009 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 25 Jun 2009 13:51:47 +0000 (13:51 -0000)]
Thu Jun 25 15:48:09 CEST 2009 Paolo Molaro <lupus@ximian.com>

* reflection.c: in mono_method_clear_object () really ensure all the
objects are removed.

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

14 years ago2009-06-25 Robert Jordan <robertj@gmx.net>
Robert Jordan [Thu, 25 Jun 2009 11:25:57 +0000 (11:25 -0000)]
2009-06-25  Robert Jordan  <robertj@gmx.net>

* UriTest.cs: Upgrade to new NUnit style.

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

14 years ago2009-06-25 Robert Jordan <robertj@gmx.net>
Robert Jordan [Thu, 25 Jun 2009 11:02:07 +0000 (11:02 -0000)]
2009-06-25  Robert Jordan  <robertj@gmx.net>

* BinaryReaderTest.cs, BinaryWriterTest.cs, BufferedStreamTest.cs,
PathTest.cs, PathTest.cs, StringWriterTest.cs, TextWriterTest.cs:
Upgrade to new NUnit style.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 09:57:40 +0000 (09:57 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Jun 2009 09:38:28 +0000 (09:38 -0000)]
2009-06-25  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Jun 2009 22:45:59 +0000 (22:45 -0000)]
2009-06-24 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (mono_method_signature): Call into the verifier to check
the method signature.

* metadata-verify.c (verify_method_table): Move signature verification
to verify_method_table_full.

* metadata-verify.c: Add mono_verifier_verify_method_signature.

* verify-internals.h: Export mono_verifier_verify_method_signature as
part of the internal API.

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

14 years ago2009-06-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Jun 2009 22:45:45 +0000 (22:45 -0000)]
2009-06-24 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (mono_method_get_header): Call into the verifier to
check the method header.

* metadata-verify.c: Add mono_verifier_verify_method_header.

* verify-internals.h: Export mono_verifier_verify_method_header as
part of the internal API.

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

14 years ago2009-06-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Jun 2009 22:45:30 +0000 (22:45 -0000)]
2009-06-24 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_find_enum_basetype): Call into the verifier to
check the field signature. Replace an assert with an explicit check.

* class.c (mono_class_setup_fields): Call into the verifier to check
the field signature.

* metadata-verify.c: Add mono_verifier_verify_field_signature.

* verify-internals.h: Export mono_verifier_verify_field_signature as
part of the internal API.

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

14 years ago2009-06-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Jun 2009 22:45:14 +0000 (22:45 -0000)]
2009-06-24 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_find_enum_basetype): Simplify this function
by moving code outside of the loop and not decoding static fields.

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

14 years ago2009-06-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Jun 2009 22:44:59 +0000 (22:44 -0000)]
2009-06-24 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Check the extends
token here. Move to here a flags check from verify_typedef_table_full.

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

14 years agoFix wrong date in my entry to ChangeLog files. Sorry! :((
Jerri Maine [Wed, 24 Jun 2009 21:25:11 +0000 (21:25 -0000)]
Fix wrong date in my entry to ChangeLog files. Sorry! :((

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

14 years agomini-amd64.c: Added code to convert simd IR to native amd64 sse.
Jerri Maine [Wed, 24 Jun 2009 21:19:29 +0000 (21:19 -0000)]
mini-amd64.c: Added code to convert simd IR to native amd64 sse.
amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.

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

14 years agoNew test.
Marek Safar [Wed, 24 Jun 2009 16:37:18 +0000 (16:37 -0000)]
New test.

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

14 years ago2009-06-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 24 Jun 2009 16:36:56 +0000 (16:36 -0000)]
2009-06-24  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, parameter.cs, iterators.cs, convert.cs,
expression.cs, ecore.cs, delegate.cs: Removed unnecessary ArgList
parameter modifier. Also fixes bug #515497.

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

14 years agotypo
Robert Jordan [Wed, 24 Jun 2009 15:38:01 +0000 (15:38 -0000)]
typo

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

14 years ago2009-06-24 Robert Jordan <robertj@gmx.net>
Robert Jordan [Wed, 24 Jun 2009 14:58:20 +0000 (14:58 -0000)]
2009-06-24  Robert Jordan  <robertj@gmx.net>

* ArrayListTest.cs, CollectionBaseTest.cs, DictionaryEntryTest.cs,
HashtableTest.cs: Convert all tests to new-style nunit methods.

* QueueTest.cs: likewise. Convertion revealed 25 test that were
disabled after the NUnit 2.4 update.

* StackTest.cs: likewise. Convertion revealed 24 test that were
disabled after the NUnit 2.4 update.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 13:10:37 +0000 (13:10 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_plt): Define debug labels for most plt entries.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 13:10:29 +0000 (13:10 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* metadata-verify.c (is_valid_method_header): Fix a warning.

* metadata-internals.h (MonoImage): Remove the unused
static_rgctx_invoke_wrapper_cache.

* image.c marshal.c: Ditto.

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

14 years agoNew tests.
Marek Safar [Wed, 24 Jun 2009 11:34:25 +0000 (11:34 -0000)]
New tests.

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

14 years ago2009-06-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 24 Jun 2009 11:33:50 +0000 (11:33 -0000)]
2009-06-24  Marek Safar  <marek.safar@gmail.com>

* *.cs: Replaced ArrayList with Arguments in need of a nonsequential
arguments expression to be implemented.

*.sources: Add argument.cs

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

14 years ago2009-06-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 24 Jun 2009 06:41:14 +0000 (06:41 -0000)]
2009-06-24 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnection.cs: 'socket' and 'Data' where being changed by 2
threads at the same time when there were queued requests and the
current one was aborted in Connect().
* HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
access it. Added WebConnection field used when aborting the request.

Fixes bug #514591 for good.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 04:07:12 +0000 (04:07 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 04:07:02 +0000 (04:07 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years ago2009-06-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Jun 2009 03:37:39 +0000 (03:37 -0000)]
2009-06-20  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Convert all tests to new-style nunit classes/methods.

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

14 years agoFix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
Neale Ferguson [Tue, 23 Jun 2009 23:55:26 +0000 (23:55 -0000)]
Fix LCONV_TO_xx and ICONV_TO_xx. Fix leave_method dump of returned
structure. Fix formatting.
Correct instruction lengths.
Add new instructions.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 22:30:41 +0000 (22:30 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* libtest.c make_imt_test.sh: Applied patch from Romain Tartiere
(romain@blogreen.org). Fix tests on freebsd.

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

14 years ago2009-06-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 22:30:35 +0000 (22:30 -0000)]
2009-06-24  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.h: Applied patch from Romain Tartière (romain@blogreen.org).
Use sigaction on freebsd as well.

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

14 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 19:52:51 +0000 (19:52 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
uses #ifdef on it.

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

14 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Jun 2009 19:52:43 +0000 (19:52 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
uses #ifdef on it.

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

14 years ago2009-06-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Jun 2009 18:38:38 +0000 (18:38 -0000)]
2009-06-23  Marek Habersack  <mhabersack@novell.com>

* AssemblyInfo.cs: added InternalsVisibleTo for
System.ComponentModel.DataAnnotations (needs
ReflectionPropertyDescriptor)

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* MetaTable.cs: constructor now takes ContextConfiguration instead
of a boolean and uses the config to determine value of the
ScaffoldAllTables property. Also, if context config is present,
makes sure to register the associated type description provider
(if any) with TypeDescriptor.

* MetaModel.cs: no longer uses local cache for description
providers. Uses TypeDescriptor.{Add,Get}Provider now.

* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
IsCustomProperty take precedence over Table.ScaffoldAllTables.
GetDataFieldAttribute doesn't use AttributeCollection indexer, as
the latter would create a default instance of the requested
attribute, which is not what we want here.

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* ValidationAttribute.cs: error message must not ever be empty.

* UIHintAttribute.cs: do not throw NIEX from the constructor.

* DataTypeAttribute.cs: implemented correct DisplayFormat
intialization for DataType.Time.

* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
attributes of the associated metadata type, as well as merging of
attribute collections between metadata and main type properties.

* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
which merges attributes from the metadata type (if any) with those
associated with property from the "main" type.

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

2009-06-23  Marek Habersack  <mhabersack@novell.com>

* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
Implemented GetAttributes and GetProperties in
DefaultTypeDescriptor.

* AttributeCollection.cs: make sure that attrList is never null.

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

14 years ago * Mono.Documentation/monodocer.cs: Don't generate an exception when an
Jonathan Pryor [Tue, 23 Jun 2009 18:34:00 +0000 (18:34 -0000)]
* Mono.Documentation/monodocer.cs: Don't generate an exception when an
  enumeration contains multiple names with the same value.
  Fixes #515030.
* Test/DocTest-v1.cs: Add test for #515030.
* Test/en.expected/Mono.DocTest/Color.xml,
  Test/en.expected.since/Mono.DocTest/Color.xml,
  Test/html.expected/Mono.DocTest/Color.html,
  Test/msxdoc-expected.importslashdoc.xml,
  Test/en.expected.importslashdoc/Mono.DocTest/Color.xml: Flush.

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

14 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:43 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* image.c (do_mono_image_load): Enable table data verification.

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

14 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:28 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix nullref check.

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

14 years ago2009-06-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 23 Jun 2009 18:18:11 +0000 (18:18 -0000)]
2009-06-23 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix string bounds check.

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

14 years agomake the ParseExact5 work for all timezones
Gonzalo Paniagua Javier [Tue, 23 Jun 2009 18:00:15 +0000 (18:00 -0000)]
make the ParseExact5  work for all timezones

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

14 years ago2009-06-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 23 Jun 2009 17:58:42 +0000 (17:58 -0000)]
2009-06-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DateTime.cs: ignore MinValue to avoid DateTimeOffset ctor throwing
when adjusting for TZ.

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

14 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 16:19:56 +0000 (16:19 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
  to Assert (it still uses XmlSchemaAssertion as the base class,
  but XmlSchemaAssertion is not based on Assertion anymore).

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

14 years agoAssertion -> Assert migration
Marek Habersack [Tue, 23 Jun 2009 15:30:13 +0000 (15:30 -0000)]
Assertion -> Assert migration

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

14 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 10:21:19 +0000 (10:21 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : remove more TODO.

* DispatchRuntime.cs : do not fill InstanceContextProvider here.
* ChannelDispatcher.cs : do it here instead.
* ChannelDispatcherCollection.cs : remove TODOs.

* ChannelDispatcherTest.cs : make sure that the port to be in use is
  available before running the tests. Check attach state.
* DispatchRuntimeTest.cs : make sure that it runs through all the
  behavior tests.

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

14 years ago2009-06-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 23 Jun 2009 10:19:35 +0000 (10:19 -0000)]
2009-06-23  Marek Safar  <marek.safar@gmail.com>

* parameter.cs: Moved GetParameterIndexByName to base class.

* expression.cs, statement.cs, ecore.cs, delegate.cs: Removed
unused AType. Use argument's version of GetExpressionTree.

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

14 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:05:10 +0000 (03:05 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* OperationContext.cs : implement SessionId.
* ServiceHostBase.cs : implement open/close async methods.
  remove some TODOs.

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

14 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:03:12 +0000 (03:03 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceRuntimeChannel.cs : remove some NIEs for actual use.
  Dispose->Close.

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

14 years ago2009-06-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Jun 2009 03:00:24 +0000 (03:00 -0000)]
2009-06-23  Atsushi Enomoto  <atsushi@ximian.com>

* InputOrReplyRequestProcessor.cs : bogus initialization.

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

14 years ago2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 23 Jun 2009 01:57:50 +0000 (01:57 -0000)]
2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When creating DrawItemEventArgs, pass either
Theme.ColorHighlightText or ForeColor depending on the selected state
of our item, as .net does.
Fixes #512115.

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

14 years ago2009-06-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 23:53:50 +0000 (23:53 -0000)]
2009-06-23  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Revert a change which breaks cross-compilation.

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

14 years agoTLS_GET on Darwin/G4.
Mark Probst [Mon, 22 Jun 2009 22:50:41 +0000 (22:50 -0000)]
TLS_GET on Darwin/G4.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * mini-ppc.c, cpu-ppc.md: Enable TLS on Darwin/G4.

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

14 years agoSGen managed allocation with pthreads TLS.
Mark Probst [Mon, 22 Jun 2009 22:49:11 +0000 (22:49 -0000)]
SGen managed allocation with pthreads TLS.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Managed allocation with pthreads TLS.

        * threads.c, threads-types.h: Functions for the JIT to tell the
        runtime whether it supports the MONO_TLS opcode.

2009-06-22  Mark Probst  <mark.probst@gmail.com>

        * mini.c, mini.h: Tell the runtime whether we support MONO_TLS.

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

14 years agoDefine a no-op memory barrier for s390(x)
Neale Ferguson [Mon, 22 Jun 2009 22:40:05 +0000 (22:40 -0000)]
Define a no-op memory barrier for s390(x)

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

14 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:29:51 +0000 (22:29 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_param_table): Fix a crash for assemblies
without methods.

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

14 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:29:23 +0000 (22:29 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_constant): Fix the string length check.
Use safe overflow checking. Add decent error messages.

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

14 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:28:49 +0000 (22:28 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Move remaininh blob checks to the offline
verification path.

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

14 years ago2009-06-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 22 Jun 2009 22:28:22 +0000 (22:28 -0000)]
2009-06-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Move more blob checks to the offline verification
path.

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

14 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Mon, 22 Jun 2009 22:08:57 +0000 (22:08 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

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

14 years agoMessage update
Marek Safar [Mon, 22 Jun 2009 22:04:58 +0000 (22:04 -0000)]
Message update

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

14 years agoFix typo in GC_compare_and_exchange
Neale Ferguson [Mon, 22 Jun 2009 21:39:16 +0000 (21:39 -0000)]
Fix typo in GC_compare_and_exchange

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