mono.git
14 years ago2009-08-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 14 Aug 2009 14:46:25 +0000 (14:46 -0000)]
2009-08-14  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (get_boxable_mono_type): Don't allow the
use of the generic type definition on boxed type positions.

Fixes #531237.

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

14 years ago2009-08-14 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 14 Aug 2009 14:10:25 +0000 (14:10 -0000)]
2009-08-14  Mark Probst  <mark.probst@gmail.com>

* threadpool.c: Make sure no cross-domain references remain in
ares_htable or the arrays that are thrown away when resizing.

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

14 years ago2009-08-14 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 14 Aug 2009 13:50:26 +0000 (13:50 -0000)]
2009-08-14  Mark Probst  <mark.probst@gmail.com>

* appdomain.c, metadata-internals.h, image.c: In MonoImage add a
list of classes for which we have to unregister reflection_info
with the GC and which are not in the namespace cache.

* reflection.c (mono_reflection_initialize_generic_parameter): Add
the class to the list.

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

14 years ago2009-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 14 Aug 2009 13:49:23 +0000 (13:49 -0000)]
2009-08-14  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arm_emit_load_imm): Use movt/movw if the cpu
supports it.

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

14 years ago2009-08-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 14 Aug 2009 13:49:01 +0000 (13:49 -0000)]
2009-08-14  Zoltan Varga  <vargaz@gmail.com>

* arm/arm-codegen.h: Add armv6 MOVW/MOVT.

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

14 years ago2009-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 14 Aug 2009 13:47:37 +0000 (13:47 -0000)]
2009-08-14  Marek Safar  <marek.safar@gmail.com>

* *.cs: Removed TypeContainer and ContainerType from EmitContext.

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

14 years agoNew test.
Marek Safar [Fri, 14 Aug 2009 13:46:47 +0000 (13:46 -0000)]
New test.

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

14 years ago2009-08-14 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 14 Aug 2009 13:21:05 +0000 (13:21 -0000)]
2009-08-14  Mark Probst  <mark.probst@gmail.com>

* domain.c (mono_domain_free): Unregister the GC roots in
MonoDomain.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:42:49 +0000 (12:42 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:38:59 +0000 (12:38 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* IPeerConnectorContract.cs : add Disconnect() to receiver contract.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:37:01 +0000 (12:37 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelListener.cs : do not try to compare dead connection's
  IPEndPoint (it raises an error).

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:35:24 +0000 (12:35 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : EndpointNotFoundException message could
  be a bit kindful.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:34:15 +0000 (12:34 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeaders.cs : allow null header value on each specific setter.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 12:30:19 +0000 (12:30 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* OperationContextScope.cs : check null arg.

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

14 years ago2009-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 14 Aug 2009 12:27:31 +0000 (12:27 -0000)]
2009-08-14  Marek Safar  <marek.safar@gmail.com>

* decl.cs, expression.cs, namespace.cs, ecore.cs, class.cs,
codegen.cs: Add IResolveContext::LookupExtensionMethod.

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

14 years agoUpdated.
Marek Safar [Fri, 14 Aug 2009 11:49:49 +0000 (11:49 -0000)]
Updated.

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

14 years ago2009-08-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 14 Aug 2009 10:58:30 +0000 (10:58 -0000)]
2009-08-14  Marek Safar  <marek.safar@gmail.com>

* Type.cs: Made IsClass work under compiler context.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 10:10:48 +0000 (10:10 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
  get local and remote address of connected counterpart to get
  callback channel connected.
* PeerDuplexChannel.cs : remove FIXME wrt above.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 10:07:48 +0000 (10:07 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceRuntimeChannel.cs : return timeouts that are set at
  dispatch runtime later than its .ctor(). Provide ListenUri too.

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

14 years ago2009-08-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 14 Aug 2009 10:06:45 +0000 (10:06 -0000)]
2009-08-14  Atsushi Enomoto  <atsushi@ximian.com>

* AllEnums.cs : add AddressFilterMode and SupportedAddressingMode.
* ServiceBehaviorAttribute.cs : added missing properties.

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

14 years ago2009-08-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 14 Aug 2009 02:01:12 +0000 (02:01 -0000)]
2009-08-14  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: when CreateSubBuilder is called on a builder
which is supposed to treat its children as properties and the
default property builder is defined, first check if the tag which
has just been parsed isn't a template property. If it is, don't
use the default property builder, instead create a template
property builder directly. Fixes bug #527753

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

14 years agoAdd support for resolving pkg-config provided assemblies.
Ankit Jain [Thu, 13 Aug 2009 23:28:55 +0000 (23:28 -0000)]
Add support for resolving pkg-config provided assemblies.

In class/Microsoft.Build.Tasks:

* Microsoft.Build.Tasks_test.dll.sources: Added
PcFileCache.cs from md.

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

* PcFileCache.cs: New. From monodevelop.
* AssemblyResolver.cs (ResolvePkgConfigReference): New. Use PcFileCache
to resolve assembly references.
(AssemblyNamesCompatible): If SpecificVersion is false, then compare
only simple names.
(GetResolvedReference): Rename default_value to default_copy_local_value.
(Cache): New.
(PcFileCacheContext): New.
(SearchPath): Add 'PkgConfig' to the enum.
* ResolveAssemblyReference.cs: Add support for '{PkgConfig}'. Update
messages.
* ResolvedReference.cs (FoundInSearchPathToString): Create from ..
(FoundInSearchPathAsString): .. this. Change this to a property to
allow custom "found in .. " messages.

In tools/xbuild:

* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add
'{PkgConfig}' to SearchPaths.

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

14 years ago2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 13 Aug 2009 22:12:18 +0000 (22:12 -0000)]
2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpWebRequest.cs:
* WebConnectionStream.cs: if there's an error writing the headers from
a buffered request, propagate the error instead of hiding it and
causing a different one later (ie, ObjectDisposedException instead of
the original WebException). This happened when posting without
Content-Length set to an HTTPS url without validating the server
certificate.

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

14 years agoMore tests.
Marek Safar [Thu, 13 Aug 2009 20:53:51 +0000 (20:53 -0000)]
More tests.

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

14 years ago2009-08-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 13 Aug 2009 20:53:33 +0000 (20:53 -0000)]
2009-08-13  Marek Safar  <marek.safar@gmail.com>

* decl.cs: Look in PartialContainer for parent type parameters.

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

14 years ago * Monodoc/provider.cs: Add a RootTree.AddSource(string) method, so that
Jonathan Pryor [Thu, 13 Aug 2009 17:40:13 +0000 (17:40 -0000)]
* Monodoc/provider.cs: Add a RootTree.AddSource(string) method, so that
  additional directories can be checked for .source file loading.

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

14 years ago2009-08-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 13 Aug 2009 16:35:49 +0000 (16:35 -0000)]
2009-08-13  Marek Safar  <marek.safar@gmail.com>

* decl.cs, namespace.cs, ecore.cs, class.cs, attribute.cs,
codegen.cs: Add IResolveContext::LookupTypeParameter.

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

14 years agoNew test.
Marek Safar [Thu, 13 Aug 2009 16:29:48 +0000 (16:29 -0000)]
New test.

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

14 years ago2009-08-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 13 Aug 2009 15:36:14 +0000 (15:36 -0000)]
2009-08-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* AsyncMethodResult.cs: Store a exception field in case the called
method actually caused an exception. This way we can throw it later.
* XplatUIDriver.cs: Check if the async method result has an exception
- throw it if needed.
The idea is that Control.Invoke throws the exception from the thread
that called it, not the main MWF thread.
Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't whitelist SC
Andrés G. Aragoneses [Thu, 13 Aug 2009 15:18:12 +0000 (15:18 -0000)]
* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Don't whitelist SC
attribs for base methods that are on our assembly.
This finally makes a11y work without security disabled. The summary of
the troubles encountered:
- GetHashCode() -> base method not SC. (r139589+r139649)
- Dispose() -> interface method not SC. (r139796)
- get_Handle() -> interface method SC while impl not SC. (this commit)

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

14 years ago * Monodoc/provider.cs: Make RootTree.LoadTree() just call
Jonathan Pryor [Thu, 13 Aug 2009 14:53:14 +0000 (14:53 -0000)]
* Monodoc/provider.cs: Make RootTree.LoadTree() just call
  RootTree.LoadTree(null), and move the .config-file parsing into
  .LoadTree(string) (for when basedir==null).  This will simplify the
  logic of monodoc, as we want to add the ability to monodoc to use
  any arbitrary directory, and this will remove the need to do
  `if (d==null) RootTree.LoadTree(); else RootTree.LoadTree(d)`.
  This also conforms to FxDG guidelines.

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

14 years ago2009-08-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 13 Aug 2009 12:29:41 +0000 (12:29 -0000)]
2009-08-13  Marek Safar  <marek.safar@gmail.com>

* lambda.cs, expression.cs, statement.cs, namespace.cs, ecore.cs:
Moved resolved logic from Emit to Resolve.

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

14 years ago2009-08-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 13 Aug 2009 10:26:45 +0000 (10:26 -0000)]
2009-08-13  Atsushi Enomoto  <atsushi@ximian.com>

* class/System.Json/Makefile: add System.Json to net_4_0 profile.

* class/Makefile : update profile check.

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

14 years ago2009-08-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 13 Aug 2009 08:30:36 +0000 (08:30 -0000)]
2009-08-13  Marek Safar  <marek.safar@gmail.com>

* parameter.cs, decl.cs, roottypes.cs, class.cs, attribute.cs,
codegen.cs: Reworked atttributes handling of ResolveContext.

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

14 years ago * Test/DocTest-v1.cs: Add a comment which uses <format/>, to test html
Jonathan Pryor [Thu, 13 Aug 2009 03:20:10 +0000 (03:20 -0000)]
* Test/DocTest-v1.cs: Add a comment which uses <format/>, to test html
  escaping behavior.
* Resources/monodoc-ecma.xsd: Permit <format/> in various elements.
* Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
  Test/html.expected/Mono.DocTest/DocAttribute.html,
  Test/msxdoc-expected.importslashdoc.xml: Flush.

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

14 years ago2009-08-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 13 Aug 2009 00:01:28 +0000 (00:01 -0000)]
2009-08-12  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_reflection_type_get_handle): Fix typo.

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

14 years ago2009-08-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 12 Aug 2009 23:50:32 +0000 (23:50 -0000)]
2009-08-13  Marek Habersack  <mhabersack@novell.com>

* CodeTypeReferenceTest.cs: added test for bug #523341

2009-08-13  Marek Habersack  <mhabersack@novell.com>

* CodeTypeReference.cs: generic types specialized on arrays must
not be treated as array declarations. Fixes bug #523341

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

14 years ago2009-08-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 12 Aug 2009 23:50:16 +0000 (23:50 -0000)]
2009-08-13  Marek Habersack  <mhabersack@novell.com>

* Makefile: build only in the 2.0 profile, or otherwise we'll end
up with the resulting assembly referencing the 4.0 corlib.

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

14 years ago2009-08-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Aug 2009 23:38:04 +0000 (23:38 -0000)]
2009-08-12 Rodrigo Kumpera  <rkumpera@novell.com>

* bug-528055.il: Regression test for #528055.

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

14 years ago2009-08-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Aug 2009 23:37:51 +0000 (23:37 -0000)]
2009-08-12  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c: Add mono_class_get_field_from_name_full which does
the same as mono_class_get_field_from_name but does check field
signature as well.

* class-internals.h: Export mono_class_get_field_from_name_full as
part of the internal API.

* loader.c (field_from_memberref): Search fields by name and signature
as it's valid to have two fields with same name but different types.

Fixes #528055.

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

14 years ago2009-08-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 12 Aug 2009 23:37:38 +0000 (23:37 -0000)]
2009-08-10  Rodrigo Kumpera  <rkumpera@novell.com>

* icall-def.h: Add a bunch of temporary icalls to MonoGenericClass.

* reflection.c (mono_reflection_type_get_handle): Handle MonoGenericClass.

* reflection.c (encode_cattr_value): Use mono_reflection_type_get_handle to encode
System.Type.

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

14 years ago2009-08-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 23:30:32 +0000 (23:30 -0000)]
2009-08-13  Zoltan Varga  <vargaz@gmail.com>

* GCHandleTest.cs: Add a test for null GC handles with type
WeakTrackResurrection.

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

14 years ago2009-08-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 23:29:18 +0000 (23:29 -0000)]
2009-08-13  Zoltan Varga  <vargaz@gmail.com>

* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

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

14 years ago2009-08-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 23:29:11 +0000 (23:29 -0000)]
2009-08-13  Zoltan Varga  <vargaz@gmail.com>

* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.

* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Look for base methods in
Andrés G. Aragoneses [Wed, 12 Aug 2009 20:53:48 +0000 (20:53 -0000)]
* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Look for base methods in
interfaces as well.

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

14 years ago * mdoc/Makefile: Add ../monodoc/Resources/mdoc-html-format.xsl as a
Jonathan Pryor [Wed, 12 Aug 2009 20:42:42 +0000 (20:42 -0000)]
* mdoc/Makefile: Add ../monodoc/Resources/mdoc-html-format.xsl as a
  resource.
* monodoc/Resources/mdoc-html-format: Added; XSLT file to match
  "//format[@type='text/html']//*", to support "pass-through"
  semantics.  This allows you to use actual HTML within your
  documentation and have it visible to HTML-supporting output formats.
  WARNING: Use as a "last resort" -- this is primarily intended for
  importing existing HTML w/o needing lots of extra logic to convert
  into mdoc format XML first (with a corresponding loss of fidelity).
  However, it means that if (when) we get non-HTML output format
  support, the <format type="text/html" /> blocks WILL be skipped for
  that non-HTML output format.

  For example, the forever-on-the-back-burner ROFF output support --
  to remove the use of lynx, as no one ever has it installed --
  wouldn't be able to support HTML format, so it would skip these
  <format type="text/html"/> blocks.

  Consider <format /> the moral equivalent of Perl POD's
  '=begin formatname' block; see perlpod(1).
* monodoc/Resources/mdoc-html-utils.xsl: <xsl:import/>
  mdoc-html-format.xsl.  It *must* be imported (NOT included) so that
  it will have a lower priority than other <template/>s, thus allowing
  the HTML formatter to <xsl:apply-templates/> which then use the
  "normal" rules.  This allows:
<format type="text/html">
<p><see cref="T:System.String" /></p>
</format>
  to work as expected.
* monodoc/Makefile: Add mdoc-html-format.xsl as a resource.

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

14 years ago2009-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 12 Aug 2009 19:52:12 +0000 (19:52 -0000)]
2009-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataGrid.cs: In mouse move we need to shift the selection in case
the pointer is on the row headers.
Fixes #323052.

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

14 years ago2009-08-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 18:20:24 +0000 (18:20 -0000)]
2009-08-12  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (arch_emit_imt_thunk): Rework the arm code to
avoid clobbering IP.

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

14 years ago2009-08-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 12 Aug 2009 17:49:41 +0000 (17:49 -0000)]
2009-08-12  Marek Safar  <marek.safar@gmail.com>

* decl.cs, ecore.cs, class.cs, attribute.cs, codegen.cs: Pushed
LookupNamespaceOrType to ResolveContext.

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

14 years ago2009-08-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 17:04:03 +0000 (17:04 -0000)]
2009-08-12  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_magic_trampoline): Allocate a local to
hold the trampoline argument, so its initial value is available during
debugging.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 14:52:47 +0000 (14:52 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c, sgen-scan-object.h: Object scanning code factored out
to sgen-scan-object.h, which can be included and parameterized via
macros.

* Makefile.am: sgen-scan-object.h added.

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

14 years ago2009-08-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 12 Aug 2009 14:26:36 +0000 (14:26 -0000)]
2009-08-12  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, decl.cs, expression.cs, namespace.cs, ecore.cs,
class.cs: Removed unused parameters and methods.

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

14 years ago2009-08-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 12 Aug 2009 13:58:11 +0000 (13:58 -0000)]
2009-08-12  Zoltan Varga  <vargaz@gmail.com>

* ResolveEventArgs.cs: Add net 4.0 RequestingAssembly property.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 13:25:52 +0000 (13:25 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* gc.c: #define GC_dont_gc if we're compiling with SGen.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 12:29:17 +0000 (12:29 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* domain.c (mono_domain_free): Free a domain's mono_g_hash_tables
before clearing a domain in the GC.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 12:00:10 +0000 (12:00 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* exception.c (mono_exception_from_name_domain): Actually create
the exception in the specified domain.

* appdomain.c (mono_domain_create_appdomain_internal): Create the
OutOfMemoryException a bit later so that the domain is inialized
"enough" that it works.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 11:15:52 +0000 (11:15 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* threads.c (thread_cleanup): Clean up the cached_culture_info
array to prevent cross-domain references.

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

14 years ago2009-08-12 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 12 Aug 2009 11:03:37 +0000 (11:03 -0000)]
2009-08-12  Mark Probst  <mark.probst@gmail.com>

* mono-hash.c (mono_g_hash_mark): If the keys are managed objects,
rehash the table after marking.

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

14 years ago2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Tue, 11 Aug 2009 21:44:25 +0000 (21:44 -0000)]
2009-08-11  Jérémie Laval  <jeremie.laval@gmail.com>

* Future.cs: Add static to Factory property

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Yet another
Andrés G. Aragoneses [Tue, 11 Aug 2009 21:39:05 +0000 (21:39 -0000)]
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Yet another
blacklisted element (SW.dll is not linked).

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

14 years ago2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Tue, 11 Aug 2009 21:10:04 +0000 (21:10 -0000)]
2009-08-11  Jérémie Laval  <jeremie.laval@gmail.com>

In build/common/:
   * Consts.cs.in: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentQueue.cs:
   * IProducerConsumerCollection.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Runtime.CompilerServices/:
   * TypeForwardedFromAttribute.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Threading/:
   * Watch.cs:
   * SpinWait.cs:
   * CountdownEvent.cs:
   * CancellationToken.cs:
   * ICancelableOperation.cs:
   * CancellationTokenSource.cs:
   * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System/:
   * Funcs.cs:
   * Action.cs:
   * AggregateException.cs: Add BOOTSTRAP_NET_4_0.

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

14 years ago* syntax.cs (BackslashNumber.ResolveReference): Improve ECMAScript semantics.
Raja R Harinath [Tue, 11 Aug 2009 19:11:26 +0000 (19:11 -0000)]
* syntax.cs (BackslashNumber.ResolveReference): Improve ECMAScript semantics.

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

14 years ago2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Tue, 11 Aug 2009 18:47:49 +0000 (18:47 -0000)]
2009-08-11  Jérémie Laval  <jeremie.laval@gmail.com>

    * Make Task.WaitAny use safest continuation mechanism rather than old hack

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

14 years ago2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Tue, 11 Aug 2009 18:47:31 +0000 (18:47 -0000)]
2009-08-11  Jérémie Laval  <jeremie.laval@gmail.com>

    * Update unit tests
    * Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
    * Fix wrong signature in TaskFactory<T>
    * Update .dll.sources files
    * Move AggregateException in System namespace
    * Remove While in Parallel
    * Correct Wait(CancellationToken) signature in CountdownEvent
    * update corlib.dll.sources

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

14 years ago2009-08-11 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 11 Aug 2009 17:41:28 +0000 (17:41 -0000)]
2009-08-11  Ivan N. Zlatev  <contact@i-nz.net>

* SplitContainer.cs: Avoid updating the splitter distance if it hasn't
moved. Updating the distance was causing a re-layout which was resetting
the clicks counter and preventing DoubleClick from every firing.
[Fixes bug #521387]

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

14 years ago2009-08-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 11 Aug 2009 16:13:36 +0000 (16:13 -0000)]
2009-08-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataGrid.cs: When a new TableStyle is added, don't create new
columns for it unless it is empty - this is the correct way to both
respect the columns if they were provided by our user, or create them
for him in case the column collection is empty.
Fixes #323111.

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 15:09:11 +0000 (15:09 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
self-referencing types. Fixes bug #529353.

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist more
Andrés G. Aragoneses [Tue, 11 Aug 2009 14:35:50 +0000 (14:35 -0000)]
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist more
stuff.

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist our
Andrés G. Aragoneses [Tue, 11 Aug 2009 14:26:46 +0000 (14:26 -0000)]
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Blacklist our
bridge.

* tuner/ChangeLog:

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

14 years agoTue Aug 11 14:38:57 CEST 2009 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 11 Aug 2009 12:40:27 +0000 (12:40 -0000)]
Tue Aug 11 14:38:57 CEST 2009 Paolo Molaro <lupus@ximian.com>

* metadata.c: more documentation for MonoType accessors.

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

14 years ago* sqlserver7.sql: Added script for SQL Server 7.0, with unicode
Gert Driesen [Tue, 11 Aug 2009 11:47:32 +0000 (11:47 -0000)]
* sqlserver7.sql: Added script for SQL Server 7.0, with unicode
encoding (as isql7 does not deal well with utf-8).

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 11:27:42 +0000 (11:27 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* ClientBase.cs : (ChannelBase) now ClientRuntimeChannel demands an
  explicit address.

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 11:08:13 +0000 (11:08 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* WebChannelFactory.cs : added missing constructors.

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

14 years agoNew test.
Marek Safar [Tue, 11 Aug 2009 10:19:48 +0000 (10:19 -0000)]
New test.

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

14 years ago2009-08-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 11 Aug 2009 10:19:13 +0000 (10:19 -0000)]
2009-08-11  Marek Safar  <marek.safar@gmail.com>

* generic.cs, lambda.cs, anonymous.cs, statement.cs, generic-mcs.cs,
codegen.cs: Finding the best common type of a set of expressions for
lambda statements.

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 08:14:30 +0000 (08:14 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* IOperationInvoker.cs : fix interface.
* DefaultOperationInvoker.cs : refresh implementation of the above.
* BaseMessagesFormatter.cs, OperationInvokerHandler.cs :
  dependent changes for above.

* ServiceHostBase.cs : use new IOperationInvoker implementation.

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

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 07:20:13 +0000 (07:20 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* DataContractSerializerOperationBehavior.cs : add missing members.

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 06:59:48 +0000 (06:59 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* MetadataExchangeClient.cs : add missing async methods.

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 06:47:27 +0000 (06:47 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* MetadataResolver.cs : added remaining methods.
* MetadataExchangeClient.cs : a bit of required changes for above.

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

14 years ago2009-08-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Aug 2009 06:45:58 +0000 (06:45 -0000)]
2009-08-11  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs :
  add Binding properties. Properties are now auto.
* ServiceMetadataExtension.cs : take Binding too to build dispatcher.

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

14 years agoFix incorrect size definitions where the tail array isn't a list of pointers
Raja R Harinath [Tue, 11 Aug 2009 06:30:39 +0000 (06:30 -0000)]
Fix incorrect size definitions where the tail array isn't a list of pointers

* class-internals.h (MONO_SIZEOF_MARSHAL_TYPE): Use offsetof to define size.
* domain-internals.h (MONO_SIZEOF_JIT_INFO): Likewise.
* metadata.h (MONO_SIZEOF_TYPE): Likewise.
* reflection.h (MONO_SIZEOF_CUSTOM_ATTR_INFO): Likewise.

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 05:26:27 +0000 (05:26 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* reflection.h:
* reflection.c: MONO_SIZEOF_CUSTOM_ATTR_INFO.

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 05:18:54 +0000 (05:18 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* metadata.c:
* loader.c:
* metadata-internals.h:
* method-builder.c:
* reflection.c: use MONO_SIZEOF_METHOD_HEADER.

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

14 years agoSIZEOF
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 05:13:29 +0000 (05:13 -0000)]
SIZEOF

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 05:13:11 +0000 (05:13 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* cominterop.c:
* metadata.c:
* metadata.h:
* loader.c:
* marshal.c:
* reflection.c: #define for sizeof in MonoType and
MonoMethodSignature.

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 04:49:15 +0000 (04:49 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* metadata/domain.c:
* metadata/domain-internals.h:
* mini/exceptions-arm.c:
* mini/exceptions-hppa.c:
* mini/mini.c:
* mini/exceptions-s390x.c:
* mini/exceptions-mips.c:
* mini/exceptions-ppc.c:
* mini/exceptions-sparc.c:
* mini/exceptions-alpha.c:
* mini/aot-runtime.c:
* mini/mini-trampolines.c:
* mini/exceptions-x86.c:
* mini/exceptions-s390.c: add and use #define's instead of sizeof()
for MonoJitInfo and MonoJitInfoTable.

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

14 years ago2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 11 Aug 2009 04:31:25 +0000 (04:31 -0000)]
2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* object.c:
* class.h: use #define instead of sizeof() for MonoRemoteClass.

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

14 years ago2009-08-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 10 Aug 2009 21:58:39 +0000 (21:58 -0000)]
2009-08-10 Gonzalo Paniagua Javier <gonzalo@novell.com>

* metadata/metadata.c:
* metadata/metadata.h:
* metadata/object.c:
* metadata/class-internals.h:
* metadata/generic-sharing.c:
* metadata/marshal.c:
* mini/tramp-arm.c:
* mini/tramp-amd64.c:
* mini/tramp-ppc.c:
* mini/tramp-x86.c: use a #define instead of sizeof() for a few
structures that use a zero-length array.

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

14 years ago2009-08-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 10 Aug 2009 21:40:30 +0000 (21:40 -0000)]
2009-08-10 Gonzalo Paniagua Javier <gonzalo@novell.com>

* monobitset.h: add comment.

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

14 years agoVS does not support zero-length arrays
Gonzalo Paniagua Javier [Mon, 10 Aug 2009 19:55:57 +0000 (19:55 -0000)]
VS does not support zero-length arrays

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

14 years agoregexp backreferences: Implement fallback to octal numbers, and ECMAScript semantics.
Raja R Harinath [Mon, 10 Aug 2009 16:25:10 +0000 (16:25 -0000)]
regexp backreferences: Implement fallback to octal numbers, and ECMAScript semantics.

* syntax.cs (BackslashNumber.ResolveReference): Implement fallback
to octal numbers, and ECMAScript semantics.
* parser.cs (ResolveReferences): Use it.
* RegexMatchTests.cs (RegexTrial0054..60): New.

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

14 years agoDistinguish between the potentially ambiguous \nnn and the non-ambiguous \k<...>...
Raja R Harinath [Mon, 10 Aug 2009 16:24:45 +0000 (16:24 -0000)]
Distinguish between the potentially ambiguous \nnn and the non-ambiguous \k<...> back-references

* syntax.cs (BackslashNumber): New class.
* parser.cs (ParseSpecial): Create it instead of 'Reference' if a
numeric backreference is seen.

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

14 years agoRegex.IsMatch("abcab", @"(?<ab>ab)c\1")
Raja R Harinath [Mon, 10 Aug 2009 16:24:21 +0000 (16:24 -0000)]
Regex.IsMatch("abcab", @"(?<ab>ab)c\1")

* System.Text.RegularExpressions/parser.cs (ResolveReferences):
Allow named groups to be referred-to by their group numbers too.
* RegexMatchTests.cs (RegexTrial0053): New.

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

14 years ago* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Move FIXME to a better
Andrés G. Aragoneses [Mon, 10 Aug 2009 15:36:40 +0000 (15:36 -0000)]
* tuner/Mono.Tuner/MoonlightA11yProcessor.cs: Move FIXME to a better
place. Fix NRE.

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

14 years ago2009-08-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 10 Aug 2009 14:55:40 +0000 (14:55 -0000)]
2009-08-10  Atsushi Enomoto  <atsushi@ximian.com>

* MoonlightChannelBaseExtension.cs : fixed a couple of generated
  code to compile on .NET (not in mcs yet; some nested generics bug).

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

14 years ago2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 10 Aug 2009 14:34:55 +0000 (14:34 -0000)]
2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataGrid.cs: Actually call BindColumns in the handler for
ListManager.MetaDataChanged, since the current code is already taking
into account the scenario when a custom table style is used - this was
confusing us before, and that's why we commented the call to
BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
changes as needed.
Fixes #465021.

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

14 years ago * DataGridTest.cs: Don't use DataGrid.Rows.Add() for our latest test,
Carlos Alberto Cortez [Mon, 10 Aug 2009 14:33:00 +0000 (14:33 -0000)]
* DataGridTest.cs: Don't use DataGrid.Rows.Add() for our latest test,
since it is 2.0. Use DataGrid.NewRow() instead.

2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

14 years ago2009-08-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 10 Aug 2009 14:22:21 +0000 (14:22 -0000)]
2009-08-10  Atsushi Enomoto  <atsushi@ximian.com>

* Driver.cs, CommandLineOptions.cs : add moonlight proxy generator
  support.
* MoonlightChannelBaseExtension.cs : new, moonlight proxy generator.
  Implemented as I[Service|Operation]ContractGenerationExtension.
* svcutil.exe.sources : add above.

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

14 years ago2009-08-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 10 Aug 2009 13:30:34 +0000 (13:30 -0000)]
2009-08-10  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceContractGenerator.cs : removed ChannelBase proxy stuff,
  which will be moved to svcutil source.
  The targets for extension should be the interface, not the client
  class.

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

14 years ago2009-08-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 10 Aug 2009 13:12:58 +0000 (13:12 -0000)]
2009-08-10  Marek Safar <marek.safar@gmail.com>

* CSharpInvokeBinder.cs, CSharpGetMemberBinder.cs,
CSharpInvokeMemberBinder.cs: Defer fallback for now.

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