mono.git
15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

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

15 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

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

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

15 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

15 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

15 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

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

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

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

15 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

15 years ago2009-06-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 22 Jun 2009 18:24:19 +0000 (18:24 -0000)]
2009-06-22  Marek Habersack  <mhabersack@novell.com>

* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
by TypeDescriptor for storage of type description providers.

* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
with adding/removing/getting type description providers.

* AttributeCollection.cs: do not throw NREX when attrList is
null in Count.

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

* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
with adding/removing/getting type description providers.

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

15 years ago2009-06-22 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 22 Jun 2009 17:41:26 +0000 (17:41 -0000)]
2009-06-22  Bill Holmes  <billholmes54@gmail.com>

* object-internals.h : Adding interrupt_on_stop field.

* threads.c (mono_thread_request_interruption) : On Windows exit the
  thread if interrupt_on_stop is set.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  Removing old interrupt logic and setting the interrupt_on_stop for the
  thread when calling accept.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
  setting the interrupt_on_stop for the thread when calling accept.

* Thread.cs : Adding interrupt_on_stop field.

Contributed under MIT/X11 license.

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

15 years ago2009-06-22 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 22 Jun 2009 17:41:26 +0000 (17:41 -0000)]
2009-06-22  Bill Holmes  <billholmes54@gmail.com>

* object-internals.h : Adding interrupt_on_stop field.

* threads.c (mono_thread_request_interruption) : On Windows exit the
  thread if interrupt_on_stop is set.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  Removing old interrupt logic and setting the interrupt_on_stop for the
  thread when calling accept.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
  setting the interrupt_on_stop for the thread when calling accept.

* Thread.cs : Adding interrupt_on_stop field.

Contributed under MIT/X11 license.

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

15 years agoAdd new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool...
Martin Baulig [Mon, 22 Jun 2009 16:21:00 +0000 (16:21 -0000)]
Add new 'thread_flags' field to 'MonoDebuggerThreadInfo' and mark daemon / threadpool threads.
2009-06-20  Martin Baulig  <martin@ximian.com>

* debug-mini.c
(MonoDebuggerThreadFlags): New enum typedef.
(MonoDebuggerThreadInfo): Added `guint32 thread_flags'.
(mono_debugger_thread_created): Added `gpointer func' argument;
initialize the new `thread_flags' field.

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

15 years agoRenamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag...
Martin Baulig [Mon, 22 Jun 2009 16:20:40 +0000 (16:20 -0000)]
Renamed 'MonoDebuggerInfo.dummy' into 'runtime_info' and set an "attach ok" flag for the debugger.
2009-06-18  Martin Baulig  <martin@ximian.com>

* debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
(MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.

* debug-debugger.c
(mini_debugger_set_attach_ok): New function; sets the attach-ok
flag in `MONO_DEBUGGER__info.runtime_info'.

* driver.c
(mono_main): Call mini_debugger_set_attach_ok() if generics
sharing is disabled.

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

15 years agoImprove exception handling when running in mdb: check whether an exception is caught...
Martin Baulig [Mon, 22 Jun 2009 16:20:18 +0000 (16:20 -0000)]
Improve exception handling when running in mdb: check whether an exception is caught inside a runtime-invoked method or the runtime-invoke wrapper.
2009-06-08  Martin Baulig  <martin@ximian.com>

* debug-mini.c
(MonoDebuggerExceptionAction): Moved into debug-mini.h.
(_mono_debugger_throw_exception): Don't make this static.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_handle_exception): Moved to mini-exceptions.c

* debug-mini.c
(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
(_mono_debugger_throw_exception): Add function prototype.
(_mono_debugger_unhandled_exception): Likewise.

* mini-exceptions.c
(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
arg; return the first exception handler if the exception is caught
and we're running inside the debugger.
(mono_debugger_handle_exception): Moved here from debug-mini.c;
improve exception handle inside runtime-invoke, check whether the
exception is actually caught in the method being invoked and not
by the runtime-invoke-wrapper.

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

15 years ago2009-06-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 22 Jun 2009 16:07:11 +0000 (16:07 -0000)]
2009-06-22  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Fix a warning.

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

15 years agoFix a few uses of ppc_store_reg.
Zoltan Varga [Mon, 22 Jun 2009 15:25:02 +0000 (15:25 -0000)]
Fix a few uses of ppc_store_reg.

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

15 years agoFix a few uses of ppc_load_reg/ppc_store_reg.
Zoltan Varga [Mon, 22 Jun 2009 15:24:56 +0000 (15:24 -0000)]
Fix a few uses of ppc_load_reg/ppc_store_reg.

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

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

* mini-ppc.c tramp-ppc.c exceptions-ppc.c aot-compiler.c: Update after
the ppc load/store macro changes.

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

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

* ppc/ppc-codegen.h: Rework the naming of the load/store macros,
ldr/str now handle register sized quantities, while ldptr/stptr handle
pointer sized quantities.

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

15 years agoFixes build.
Marek Safar [Mon, 22 Jun 2009 14:21:44 +0000 (14:21 -0000)]
Fixes build.

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

15 years ago2009-06-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 22 Jun 2009 13:52:33 +0000 (13:52 -0000)]
2009-06-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs, cs-parser.jay, attribute.cs, codegen.cs: Named
arguments grammar.

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

15 years ago2009-06-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 22 Jun 2009 13:02:25 +0000 (13:02 -0000)]
2009-06-21  Marek Safar  <marek.safar@gmail.com>

* Tuples.cs: Add Equals, GetHashCode.

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

15 years ago2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 22 Jun 2009 12:56:26 +0000 (12:56 -0000)]
2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ComboBox.cs: When handling WM_CHAR, process the message first, and
send it to the textbox only if it wasn't handled.
Fixes #507459.

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

15 years agosvn:eol-style
Marek Safar [Mon, 22 Jun 2009 11:38:21 +0000 (11:38 -0000)]
svn:eol-style

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

15 years ago2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 22 Jun 2009 02:00:14 +0000 (02:00 -0000)]
2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpWebRequest.cs: check for an aborted request in Begin* before
proceeding. Fixes bug #511851.

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

15 years ago2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 22 Jun 2009 01:47:57 +0000 (01:47 -0000)]
2009-06-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnectionStream.cs: close the underlying socket if there's an
exception when closing the stream. Fixes bug #514996.

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

15 years ago* HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
Gert Driesen [Sun, 21 Jun 2009 19:09:27 +0000 (19:09 -0000)]
* HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 14:22:06 +0000 (14:22 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c (mono_arch_patch_plt_entry): Implement this.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 14:21:59 +0000 (14:21 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Sanitize the plt symbol too,
not just the got symbol.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 13:41:49 +0000 (13:41 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* IntPtr.cs (.ctor): Disable the check in the long ctor until we
can figure out how to do it properly.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 01:11:28 +0000 (01:11 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* mini-ppc.c aot-compiler.c unwind.c: Implement generation of unwind info
on ppc.

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

15 years agoUse TARGET_POWERPC instead of PPC.
Zoltan Varga [Sun, 21 Jun 2009 00:19:44 +0000 (00:19 -0000)]
Use TARGET_POWERPC instead of PPC.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 21 Jun 2009 00:16:58 +0000 (00:16 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c unwind.c: Add infrastructure for unwind support on
ppc.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 23:27:11 +0000 (23:27 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_try_assembly_resolve): Don't call managed code when
running in no-exec mode.

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

15 years ago2009-06-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Jun 2009 23:23:28 +0000 (23:23 -0000)]
2009-06-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Remove some fixmes.

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