mono.git
14 years agoDon't complain when the same type is implemented by the
Raja R Harinath [Wed, 22 Jul 2009 11:10:49 +0000 (11:10 -0000)]
Don't complain when the same type is implemented by the
output assembly as well as multiple referenced assemblies

* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 11:05:00 +0000 (11:05 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XPathNavigator.cs : name test did not handle String.Empty cases
  for name and ns (i.e. no filter). Fixed bug #515136.

* XPathNavigatorTests.cs : added test for bug #515136.

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

14 years agoNew test & update.
Marek Safar [Wed, 22 Jul 2009 10:45:34 +0000 (10:45 -0000)]
New test & update.

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

14 years ago2009-07-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 22 Jul 2009 10:45:12 +0000 (10:45 -0000)]
2009-07-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs: More verifier instrumentation.

* statement.cs: Do proper throw expression conversion.

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

14 years ago2009-07-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 22 Jul 2009 09:43:58 +0000 (09:43 -0000)]
2009-07-22  Marek Safar  <marek.safar@gmail.com>

A fix for bug #522789
* expression.cs: Mutate invocation return type.

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

14 years ago* xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
Ankit Jain [Wed, 22 Jul 2009 08:39:12 +0000 (08:39 -0000)]
* xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 08:38:04 +0000 (08:38 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlInputStream.cs : cosmetic exception type change. Patch by
  Hib Eris. Fixed bug #523971.

* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 08:21:30 +0000 (08:21 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlFormatterDeserializer.cs : when reading empty primitive value,
  make sure to consume the reader. Fixed bug #524083.

* XmlObjectSerializerTest.cs : add test for bug #524083, by
  Rolf Bjarne Kvinge.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 07:47:33 +0000 (07:47 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* SerializationMap.cs : call MoveToContent() before examining
  the reader node type.

* XmlObjectSerializerTest.cs : now we can make xml indented as
  originally done in #524088.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 07:22:25 +0000 (07:22 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
  too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.

* XmlObjectSerializerTest.cs : added test for bug #524088 by
  Rolf Bjarne Kvinge (a bit modified).

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:23:35 +0000 (06:23 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : do not possibly return null as the Prefix value.
  Fixed bug #524084.

* XNodeReaderTest.cs : test Prefix on default namespace.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:13:07 +0000 (06:13 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : a couple of properties did not return correct
  value for EOF state.

* XNodeReaderTest.cs : test member behaviors at EOF state.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:02:13 +0000 (06:02 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : do not return element's IsEmpty on attributes.

* XNodeReaderTest.cs : on attributes IsEmptyElement is false.

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

14 years agoFix the build
Marek Habersack [Tue, 21 Jul 2009 22:42:27 +0000 (22:42 -0000)]
Fix the build

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

14 years agoFix bug #517974.
Ankit Jain [Tue, 21 Jul 2009 20:20:26 +0000 (20:20 -0000)]
Fix bug #517974.
In class/Microsoft.Build.Tasks:

* Makefile: Add System.Core .

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

Fix bug #517974.
* ResolvedReference.cs (AssemblyName): New.
(IsPrimary): New. Primary (eg. specified in the project file) or
dependent reference.
(FoundInSearchPathAsString): New.
* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
param for the new field in ResolvedReference.
(AssemblyNamesCompatible): Fix the check for public key token.
Track api changes.

* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
prevent duplicate references and other files.
Process dependencies after resolving all the primary references.
Search for dependencies in parent assembly's dir first and then
the specified search paths.
Detect assembly version conflicts and try to resolve.
Improve logged messages.
(PrimaryReference): New.
(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.

In tools/xbuild:

* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

In tools/xbuild/tests:

* standalone/Project01: Add references to two "external" assemblies
with dependencies.
* standalone/Project01/Program.cs: Add references in code to the new
assemblies, to ensure that they are required for compilation.

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

14 years ago* Container.cs: Replaced for loop with for loop.
Gert Driesen [Tue, 21 Jul 2009 19:12:18 +0000 (19:12 -0000)]
* Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

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

14 years ago2009-07-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 21 Jul 2009 18:49:47 +0000 (18:49 -0000)]
2009-07-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_emit_prolog): Fix thread attaching in aot
code.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 16:23:42 +0000 (16:23 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* ThreadPool.cs: avoid an unecessary method call when not running
in moonlight.

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

14 years ago2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 16:23:03 +0000 (16:23 -0000)]
2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: use glib for malloc/free.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 16:04:23 +0000 (16:04 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* configure.in: add a --with-monotouch option.
* runtime/Makefile.am: use it to trigger the mcs monotouch build.

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

14 years ago- Fix the msvc build for the zlib changes in r138254.
Jonathan Pobst [Tue, 21 Jul 2009 15:50:03 +0000 (15:50 -0000)]
- Fix the msvc build for the zlib changes in r138254.

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

14 years agoforgot one entry
Jb Evain [Tue, 21 Jul 2009 15:32:10 +0000 (15:32 -0000)]
forgot one entry

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

14 years agomoved
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 15:31:41 +0000 (15:31 -0000)]
moved

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

14 years agodo not nullify deflateStream
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 15:28:56 +0000 (15:28 -0000)]
do not nullify deflateStream

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Jul 2009 14:13:06 +0000 (14:13 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* TcpReplyChannel.cs : new reply channel implementation.
* TcpChannelListener.cs : use above for streamed reply channel.
* TcpDuplexSessionChannel.cs : more streaming mode support.
* TcpRequestChannel.cs : a couple of updates to get it working
  with the reply channel above. Still some issues on .NET interop.

* System.ServiceModel.dll.sources: add TcpReplyChannel.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Jul 2009 14:05:37 +0000 (14:05 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* RequestContext.cs : added internal derived class that implements
  some members.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Jul 2009 14:03:17 +0000 (14:03 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* BinaryMessageEncoder.cs : for non-session reader and writer, do not
  use dictionary.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 13:56:23 +0000 (13:56 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* Makefile: specify bootstrap and SUBDIRS for the monotouch profile.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Jul 2009 13:49:37 +0000 (13:49 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* DataContractSerializer.cs : it does not write dictionary string
  when it was not created with it.

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

14 years ago2009-07-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 21 Jul 2009 12:28:09 +0000 (12:28 -0000)]
2009-07-21  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke): Do the work done in the exception
handler in a separate icall, to reduce the size of the wrappers.

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 21 Jul 2009 11:24:45 +0000 (11:24 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/UnquotedAngleBrackets.aspx

2009-07-21  Marek Habersack  <mhabersack@novell.com>

* AspTokenizer.cs: in put_back, store inTag value as well.

* AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"

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

14 years ago2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 10:36:47 +0000 (10:36 -0000)]
2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: don't try to finish the z_stream if it has not been
used. This fixes all the tests after the latest change.

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

14 years agofree internal buffer
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 05:42:20 +0000 (05:42 -0000)]
free internal buffer

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

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

* Makefile.am: replaced zlib_macros.c with zlib-helper.c
* zlib_macros.c: Removed file.
* zlib-helper.c: new interface for DeflateStream. Flush() actually
does something.

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

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

* GzipStream.cs: fixed Dispose (bool).
* DeflateStream.cs: simplify the interface with unmanaged code, big
reduction of managaed<->unmanaged round trips.
Also fixes bug #523418.

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

14 years ago * X11Dnd.cs: Implement support for XdndActionList, so we can get the
Carlos Alberto Cortez [Tue, 21 Jul 2009 02:11:39 +0000 (02:11 -0000)]
* X11Dnd.cs: Implement support for XdndActionList, so we can get the
complete list of the supported actions in the drag source, and use the
action passed in the Position message only as a fallback. This will
help us with dnd operations with non winforms apps.
Fixes #402158.

2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

14 years ago2009-07-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 21 Jul 2009 00:55:39 +0000 (00:55 -0000)]
2009-07-20  Sebastien Pouliot  <sebastien@ximian.com>

* Aes.cs: Use the fully qualified name since this is not a type known
in the default corlib (2.0 or 1.x).

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

14 years ago2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 21 Jul 2009 00:32:03 +0000 (00:32 -0000)]
2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
Find. This should fix the exception we were getting when trying to
convert the ArrayList to an array of objects (since we were losing the
type parameter).
Fixes #519944.

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 20 Jul 2009 23:32:36 +0000 (23:32 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: GetReferencedAssemblies unconditionally
includes all assemblies from bin/ for precompiled sites. Fixes bug
#502016

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 20 Jul 2009 23:32:03 +0000 (23:32 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
assemblies in AddAssembliesInBin and GetTypeFromBin.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 20:45:55 +0000 (20:45 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* basic-simd.cs (Main): Pass args to the test driver.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 20:45:49 +0000 (20:45 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* amd64/amd64-codegen.h (amd64_sse_pminud_reg_reg): Fix the encoding
of this instruction.

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

14 years ago2009-07-20 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Mon, 20 Jul 2009 20:38:23 +0000 (20:38 -0000)]
2009-07-20  Michael Barker  <mike@middlesoft.co.uk>

* AdminTest.cs:  Fixed namespace
* AsyncPeekTest.cs:  Fixed namespace
* AsyncReceiveTest.cs:  Fixed namespace
* BasicMessagingTest.cs:  Fixed namespace
* MessageEnumeratorTest.cs:  Fixed namespace
* MQUtil.cs:  Fixed namespace
* PeekTest.cs:  Fixed namespace
* SelectorTest.cs:  Fixed namespace

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:50 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* Makefile: Add support for new test kind badmd for tests with broken
metadata.

* make_tests.sh: Fix some tests that have broken metadata.

* *.sh: Add execute bit.

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:39 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_typespec_blob): Fix error message.

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:25 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* assembly-with-locals.il: Fix method to be verifiable.
Add more shapes of valid locals.

* cli-blob-tests.md (locals-sig): Fix some tests.

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:15 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (parse_field): Allow byref field.

* metadata-verify.c (parse_locals_signature): Allow byref locals.

* metadata-verify.c (is_valid_typespec_blob): Allow byref typespec.

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:01 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_cast): Fail for any non reference type that isn't boxed.
Fixes #522784.

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

14 years ago2009-07-20 Robert Jordan <robertj@gmx.net>
Robert Jordan [Mon, 20 Jul 2009 19:05:55 +0000 (19:05 -0000)]
2009-07-20  Robert Jordan  <robertj@gmx.net>

* cominterop.c (cominterop_get_managed_wrapper_adjusted):
Fix invalid IL in valuetype handling (STOBJ must push the
corresponding class). Fixes bug #523149.

Code is contributed under MIT/X11 license.

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

14 years ago2009-07-20 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Mon, 20 Jul 2009 18:38:46 +0000 (18:38 -0000)]
2009-07-20  Michael Barker  <mike@middlesoft.co.uk>

* MessagingProviderLocator.cs: Default to rabbitmq if no
MONO_MESSAGING_PROVIDER variable is defined.

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

14 years agoMove tests that do not reference RabbitMQ to System.Messaging.
Michael Barker [Mon, 20 Jul 2009 18:20:32 +0000 (18:20 -0000)]
Move tests that do not reference RabbitMQ to System.Messaging.

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

14 years agomissed that part
Jb Evain [Mon, 20 Jul 2009 16:12:45 +0000 (16:12 -0000)]
missed that part

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

14 years agohopefully fixes the Makefile
Jb Evain [Mon, 20 Jul 2009 16:07:44 +0000 (16:07 -0000)]
hopefully fixes the Makefile

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 16:03:23 +0000 (16:03 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Thread.cs: use the moonlight specific thread start
hack for the net_2_1 profile exclusively.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 16:00:52 +0000 (16:00 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: set monotouch_SUBDIRS to the net_2_1 assemblies set.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 16:00:04 +0000 (16:00 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* profiles/monotouch.make: add monotouch profile.

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

14 years agoadd monotouch sources files
Jb Evain [Mon, 20 Jul 2009 15:59:30 +0000 (15:59 -0000)]
add monotouch sources files

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 20 Jul 2009 15:39:36 +0000 (15:39 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

        * mini-x86.c: Fix --trace on darwin-x86 and other systems which require
        aligned access.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 15:13:06 +0000 (15:13 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
MonoJitDomainInfo which maps MonoMethod's to a structure containing all
the information which is needed for invokes, so only one locking+hash table
lookup is needed.

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

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

* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
MonoJitDomainInfo which maps MonoMethod's to a structure containing all
the information which is needed for invokes, so only one locking+hash table
lookup is needed.

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 20 Jul 2009 15:06:45 +0000 (15:06 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

        * gc.c: Use proper semaphores where available on posix and darwin.

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 20 Jul 2009 15:06:42 +0000 (15:06 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

        * thread-private.h: Use the new mono-semaphore.h.

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 20 Jul 2009 15:06:38 +0000 (15:06 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

        * mono-semaphore.h: Refactor from io-layer/thread-private.h so it
        can be used by the runtime as well.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 14:23:56 +0000 (14:23 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Add a 'tool-prefix' option to be used when cross-compiling.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 14:10:29 +0000 (14:10 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_instances): Emit instances of
GenericComparer<T> for primitive types.

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

14 years agoavoid using a custom sources file for the net_2_1_raw profile
Jb Evain [Mon, 20 Jul 2009 09:32:00 +0000 (09:32 -0000)]
avoid using a custom sources file for the net_2_1_raw profile

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 09:06:50 +0000 (09:06 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 09:06:08 +0000 (09:06 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 09:05:50 +0000 (09:05 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 09:05:30 +0000 (09:05 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 08:54:16 +0000 (08:54 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 08:53:57 +0000 (08:53 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.

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

14 years ago2009-07-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Jul 2009 06:17:06 +0000 (06:17 -0000)]
2009-07-20  Jb Evain  <jbevain@novell.com>

* Lookup.cs: avoid a double dictionary lookup on the indexer.

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

14 years ago2009-07-19 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 20 Jul 2009 03:59:20 +0000 (03:59 -0000)]
2009-07-19  Geoff Norton  <gnorton@novell.com>

        * gc.c: Unnamed posix semaphores are broken on darwin-arm too.

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

14 years ago2009-07-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 20 Jul 2009 02:45:47 +0000 (02:45 -0000)]
2009-07-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Lookup.cs: when there are no matching elements, return an empty
enumerable. Fixes bug #523386.

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

14 years ago2009-07-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 19 Jul 2009 18:04:12 +0000 (18:04 -0000)]
2009-07-19 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-posix.c: Fix linux build.

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

14 years ago2009-07-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 19 Jul 2009 17:44:45 +0000 (17:44 -0000)]
2009-07-19 Rodrigo Kumpera  <rkumpera@novell.com>

* refletion.c (is_sre_usertype): Change name to is_usertype and
invert it's result so it returns true if the type is an user type
and not the opposite.

* reflection.c (is_*_type): Change all of those to use new macro
check_corlib_type_cached that cached the type lookup so we don't
need to do string comparisons all the type. Changed the signature
to take a MonoClass instead.

* reflection.c: Change mono_image_create_token and resolve_object
to use is_sre_* functions.

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

14 years ago2009-07-19 Geoff Norton <gnorton@novell.com>
Geoff Norton [Sun, 19 Jul 2009 17:27:38 +0000 (17:27 -0000)]
2009-07-19  Geoff Norton  <gnorton@novell.com>

        * mini.h: Add prototypes for mono_runtime_syscall_fork and
        mono_gdb_render_native_backtraces
        * mini-darwin.c: Apple's syscall(SYS_fork) is very weird on x86,
        so we implement the sane semantics to the runtime here
        (mono_gdb_render_native_backtraces).  Apple also uses an ancient gdb
        so we need to call it differently (mono_gdb_render_native_backtraces)
        * mini-posix.c: Move the old semantics from mini.c to the prototypes
        here for default implementations.
        * mini.c: Refactor mono_handle_native_sigsegv so that we can properly
        support Apple's weird syscall (SYS_fork) implementation and not busy
        loop in abort() on native crashes on OSX anymore.

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

14 years ago* BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
Gert Driesen [Sun, 19 Jul 2009 15:08:43 +0000 (15:08 -0000)]
* BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.

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

14 years agoIn Mono.Interop:
Robert Jordan [Sat, 18 Jul 2009 23:15:10 +0000 (23:15 -0000)]
In Mono.Interop:
2009-07-11  Robert Jordan  <robertj@gmx.net>

* ComInteropProxy.cs: Implement CreateProxy. Hide public/internal
ctors forcing CreateProxy's usage. Hide CacheProxy since the
runtime is able to lookup it anyways.
Fixes bug #520437.

In System:
2009-07-19  Robert Jordan  <robertj@gmx.net>

* __ComObject.cs: Factor out Initialize method and expose it to
ComInteropProxy. Fixes bug #520437.

In System.Runtime.Remoting:
2009-07-11  Robert Jordan  <robertj@gmx.net>

* RemotingServices.cs: Track ComInteropProxy's changes.

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

14 years agoAdded support for setting the provider using an App.config file, also allow for Mono...
Michael Barker [Sat, 18 Jul 2009 16:52:20 +0000 (16:52 -0000)]
Added support for setting the provider using an App.config file, also allow for Mono.Messaging.RabbitMQ provider to be loaded from
the GAC.

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

14 years ago2009-07-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Jul 2009 13:04:56 +0000 (13:04 -0000)]
2009-07-18  Marek Habersack  <mhabersack@novell.com>

* HttpContext.cs: GetGlobalResourceObject must look for resources
in the 'Resources' "namespace" - it was a regression from the
previous change to that method.

2009-07-18  Marek Habersack  <mhabersack@novell.com>

* DefaultResourceProvider.cs: if GetResourceObject is passed a
null or empty classKey it just returns null.

* AppResourcesAssemblyBuilder.cs: satellite assemblies are now
built using al instead of gmcs - makes the build slightly faster.

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

14 years ago* Container.cs: Use generic list on 2.0 profile, and avoid using var
Gert Driesen [Sat, 18 Jul 2009 12:14:42 +0000 (12:14 -0000)]
* Container.cs: Use generic list on 2.0 profile, and avoid using var
on 1.0 profile. Use for loop instead of while in Dispose to avoid
accessing count on each iteration.

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

14 years ago* Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
Gert Driesen [Sat, 18 Jul 2009 09:56:51 +0000 (09:56 -0000)]
* Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
* ContainerTest.cs: Added tests for Remove and RemoveWithoutUnsiting.

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

14 years ago* ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
Gert Driesen [Sat, 18 Jul 2009 08:20:49 +0000 (08:20 -0000)]
* ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle (tom_hindle@sil.org). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.

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

14 years ago2009-07-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Jul 2009 23:50:11 +0000 (23:50 -0000)]
2009-07-18  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_method): Change the handling of the
MONO_LASTAOT env variable so MONO_LASTAOT=0 means that no aot methods
are used.

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

14 years ago2009-07-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Jul 2009 23:50:02 +0000 (23:50 -0000)]
2009-07-18  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_patch_info_equal): Really fix the handling of RGCTX_FETCH.

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

14 years ago2009-07-18 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 17 Jul 2009 23:15:35 +0000 (23:15 -0000)]
2009-07-18  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Check for writes to the stack in the managed
        wbarrier as well.

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

14 years ago2009-07-18 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 17 Jul 2009 23:07:15 +0000 (23:07 -0000)]
2009-07-18  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: When a thread is unregistered, don't free its remsets
        but put them on a list which is processed with the other thread's
        remsets.

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

14 years ago2009-07-18 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 17 Jul 2009 22:45:34 +0000 (22:45 -0000)]
2009-07-18  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Fix and enable the internal allocator instead of
        using malloc/free (which causes deadlocks).

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

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

* add-conditional.pl Makefile: Applied patch from Marcus Griep
<marcus@griep.us>. Remove workarounds for compiling this assembly in the
net 1.1 profile.

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

14 years ago2009-07-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Jul 2009 19:22:02 +0000 (19:22 -0000)]
2009-07-17  Zoltan Varga  <vargaz@gmail.com>

* add-conditional.pl Makefile: Applied patch from Marcus Griep
<marcus@griep.us>. Remove workarounds for compiling this assembly in the
net 1.1 profile.

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

14 years ago2009-07-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Jul 2009 19:21:43 +0000 (19:21 -0000)]
2009-07-17  Zoltan Varga  <vargaz@gmail.com>

* Makefile: Applied patch from Marcus Griep <marcus@griep.us>.
Move Mono.C5 to net_2_0_dirs.

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

14 years ago2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 17 Jul 2009 18:27:29 +0000 (18:27 -0000)]
2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* RadioButtonTest.cs: Update the Checked test to not depend on
Form.Show, since we need to check the same behaviour even if no handle
has been created yet.

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

14 years ago2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 17 Jul 2009 18:24:44 +0000 (18:24 -0000)]
2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* RadioButton.cs: Setting Checked when none of the sibligs is checked
should happen *not* in GotFocus, but in the Enter event. This is
specially important since we should get that Checked behaviour even if
no handle is created yet - and thus, no actual GotFocus call happens at
the time.
Fixes #520764.

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

14 years ago2009-07-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Jul 2009 18:01:33 +0000 (18:01 -0000)]
2009-07-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_patch_info_equal): Revert the last change for now as it
seems to break the aot tests.

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

14 years ago2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 17 Jul 2009 17:58:53 +0000 (17:58 -0000)]
2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>

* ConfigurationElement.cs: don't skip xml nodes when reading 2
ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
#521231.

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

14 years ago2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 17 Jul 2009 17:40:46 +0000 (17:40 -0000)]
2009-07-17 Gonzalo Paniagua Javier <gonzalo@novell.com>

* mono-proclib.c: fix reading processor usage for a process. Patch
from Jacob Gladish that fixes bug #523052.

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

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

* PeerDuplexChannel.cs: add the registered node itself to peer list.
  (The messaging must be done as TCP request/reply pattern, so it's
  not working yet.)

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

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

* TcpRequestChannel.cs : new channel file (TCP for request/reply
  messaging pattern). The messaging part is not working yet.
* TcpChannelFactory.cs : support IRequestChannel.
* TcpDuplexSessionChannel.cs : add unsized message support.

* System.ServiceModel.dll.sources: add TcpRequestChannel.

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