mono.git
14 years agocross-compilation fixes
Gonzalo Paniagua Javier [Thu, 1 Apr 2010 20:53:08 +0000 (20:53 -0000)]
cross-compilation fixes

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

14 years agodefault is windows-style
Gonzalo Paniagua Javier [Thu, 1 Apr 2010 18:53:03 +0000 (18:53 -0000)]
default is windows-style

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:52 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement ResolveType.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:44 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilderTest.cs (TestGlobalMethods): Improve test.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:35 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement GetMethodImpl.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:27 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs (GetMethod): Check for null 'types' argument.

* MonoModule.cs (GetMethodImpl): Special case when 'types'
is null and call Type::GetMethod(string) directly.
This is ok since proper checking of the 'types' overload
is done by callers.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:18 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs (DefineType): Raise the correct exception
when name is null.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:09 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement IsResource.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:37:01 +0000 (17:37 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* AssemblyTest.cs: Fix one more tests under v4.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:36:52 +0000 (17:36 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement ScopedName property.

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 17:36:43 +0000 (17:36 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement Name property.

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

14 years ago2010-04-01 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 1 Apr 2010 17:28:00 +0000 (17:28 -0000)]
2010-04-01  Jb Evain  <jbevain@novell.com>

* SortedSet.cs: fix API.

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

14 years ago2010-04-01 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 1 Apr 2010 17:06:23 +0000 (17:06 -0000)]
2010-04-01  Jb Evain  <jbevain@novell.com>

* System.dll.sources: add SortedSet to the build.

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

14 years ago2010-04-01 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 1 Apr 2010 17:05:57 +0000 (17:05 -0000)]
2010-04-01  Jb Evain  <jbevain@novell.com>

* SortedSet.cs: add new SortedSet type in .net 4.0

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

14 years ago2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 16:55:54 +0000 (16:55 -0000)]
2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-exceptions.c: Fix win32 build.

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

14 years ago2010-04-01 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 1 Apr 2010 15:47:55 +0000 (15:47 -0000)]
2010-04-01  Jb Evain  <jbevain@novell.com>

* CodeDomProvider.cs, CompilerInfo.cs: add .net 4.0 overloads.

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

14 years ago2010-04-01 Sanjoy Das <sanjoy@playingwithpointers.com>
Mark Probst [Thu, 1 Apr 2010 15:43:56 +0000 (15:43 -0000)]
2010-04-01  Sanjoy Das <sanjoy@playingwithpointers.com>

        * sgen-gc.c: Make the nursery size adjustable by the
        MONO_GC_PARAMS environment variable.

        Code is contributed under MIT/X11 license.

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

14 years ago2010-04-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 1 Apr 2010 14:52:30 +0000 (14:52 -0000)]
2010-04-01 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: threadpool threads wait is alertable.
Fixes bug #592264.
Reduced the stack size of the *poll_wait thread.

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

14 years ago2010-04-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 1 Apr 2010 14:49:54 +0000 (14:49 -0000)]
2010-04-01 Gonzalo Paniagua Javier <gonzalo@novell.com>

* mono-semaphore.[ch]: wait can be alertable now. Defaults to FALSE.

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

14 years ago2010-04-01 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 1 Apr 2010 14:32:16 +0000 (14:32 -0000)]
2010-04-01  Mark Probst  <mark.probst@gmail.com>

        * mini.c, driver.c: Call mono_gc_base_init() before
        mono_debug_init().

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

14 years ago2010-04-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Apr 2010 13:19:02 +0000 (13:19 -0000)]
2010-04-01  Sebastien Pouliot  <sebastien@ximian.com>

* method-to-ir.c (ensure_method_is_allowed_to_[access_field|
call_method]): Delegate the actual work in security-core-clr.c
to ease code sharing.

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

14 years ago2010-04-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Apr 2010 13:18:49 +0000 (13:18 -0000)]
2010-04-01  Sebastien Pouliot  <sebastien@ximian.com>

* exception.c|metadata-internals.h: Add new mono_get_exception_
field_access_msg and mono_get_exception_method_access_msg
functions that accept a const char* parameter to provide more
details when the exception is thrown.
* security-core-clr.c|h: Rework code to allow logging exceptions
(export MONO_LOG_MASK="security") and to supply more details in
[TypeLoad|MethodAccess|FieldAccess]Exception thrown. Also added
mono_security_core_clr_is_field_access_allowed and
mono_security_core_clr_is_call_allowed to return an exception,
with messages and logging, that can be emitted by method-to-ir.c

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

14 years ago2010-04-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Apr 2010 13:18:27 +0000 (13:18 -0000)]
2010-04-01  Sebastien Pouliot  <sebastien@ximian.com>

* mono.1: Document the new "security" option for logging

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

14 years ago2010-04-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Apr 2010 13:18:15 +0000 (13:18 -0000)]
2010-04-01  Sebastien Pouliot  <sebastien@ximian.com>

* mono-logger.c, mono-logger-internal.h: Add a new "security"
category to logging infrastructure.

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

14 years ago2010-04-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 1 Apr 2010 11:20:09 +0000 (11:20 -0000)]
2010-04-01  Marek Habersack  <mhabersack@novell.com>

* FormView.cs: do not show the pager if PagerSettings.Visible is
false. Fixes bug #578863

2010-04-01  Marek Habersack  <mhabersack@novell.com>

* FormViewTest.cs: added test for bug #578863

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

14 years ago2010-04-01 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 1 Apr 2010 11:12:45 +0000 (11:12 -0000)]
2010-04-01  Jb Evain  <jbevain@novell.com>

* Module.cs: make Module abstract on net_4_0.

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

14 years agoFix the build for moonlight
Jb Evain [Thu, 1 Apr 2010 11:12:23 +0000 (11:12 -0000)]
Fix the build for moonlight

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

14 years ago2010-04-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 1 Apr 2010 09:34:16 +0000 (09:34 -0000)]
2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>

* ConnectionOrientedTransportBindingElement.cs,
  TcpTransportBindingElement.cs : implement GetProperty<T>().

* TcpTransportBindingElementTest.cs : GetProperty<T>() here too.

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

14 years agoMore tests.
Marek Safar [Thu, 1 Apr 2010 09:29:04 +0000 (09:29 -0000)]
More tests.

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

14 years ago2010-04-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 1 Apr 2010 09:13:45 +0000 (09:13 -0000)]
2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>

* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
  implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
  properties type from HTTP.

* HttpsTransportBindingElementTest.cs :
  added test for GetProperty<T>().

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

14 years ago2010-04-01 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 1 Apr 2010 09:05:48 +0000 (09:05 -0000)]
2010-04-01  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c, sgen-pinning-stats.c: In the heap-dump, dump each
        pinned object.

2010-04-01  Mark Probst  <mark.probst@gmail.com>

        * scripts/mono-heapviz: Process and output detailed pinning
        statistics.

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

14 years ago2010-04-01 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 1 Apr 2010 06:39:52 +0000 (06:39 -0000)]
2010-04-01  Miguel de Icaza  <miguel@novell.com>

* JsonValue.cs: We need to use Convert.ToXXXX for numbers as we
always end up reporting the value JsonType.Number regardless of
the underlying storage (int, long or decimal).   The parser
picks the best storage suitable for the data, and can end up using
"ints" for values that sometimes use longs.

This causes problems when derefercing the data for example, if you
have an int and try to get it out as a long you end up with an
invalid cast exception.

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

14 years ago2010-04-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 1 Apr 2010 04:54:36 +0000 (04:54 -0000)]
2010-04-01  Atsushi Enomoto  <atsushi@ximian.com>

* FaultConverter.cs : use addressing version from the message.

* ServiceHostBaseTest.cs : enable RunDestinationUnreachableTest()
  and add another case for different addressing version.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 03:19:05 +0000 (03:19 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
(laurent.etiemble@gmail.com). Use CFLAGS in the environment if defined.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 03:01:40 +0000 (03:01 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
the assembly name is not well formed utf8. Fixes #567882.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 02:55:02 +0000 (02:55 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_create_generic_class): Set the flags field of
the generic parameters from the builder. Fixes #473298.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 01:35:54 +0000 (01:35 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
float conv.ovf.un opcodes are encountered, instead of asserting later.
Fixes #566296.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 01:15:40 +0000 (01:15 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* decompose.c (mono_decompose_opcode): Add OP_ICONV_TO_U4_UN as a no-op.

* iltests.il.in: Add a test.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:16:12 +0000 (00:16 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* ModuleBuilder.cs: Implement Assembly property.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:16:04 +0000 (00:16 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement MetadataToken, FullyQualifiedName,
ModuleVersionId, MDStreamVersion, ScopeName,
Name, Assembly.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:55 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement GetSignerCertificate and
GetTypes.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:47 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement ResolveMember, ResolveMethod,
ResolveString, ResolveType, ResolveSignature and
GetMethods.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:38 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement GetField, GetFields,
GetMethodImpl, GetPEKind, GetType, IsDefined and
ResolveField.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:30 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement GetCustomAttributesData.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:21 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement GetCustomAttributes.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:13 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs:
* MonoModule.cs: Implement FindTypes.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:15:04 +0000 (00:15 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Assembly.cs: Raise the right exception.

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

14 years ago2010-03-31 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:14:56 +0000 (00:14 -0000)]
2010-03-31 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs: Make .ctor protected under v4.
* MonoModule.cs: Implement IsResource.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 1 Apr 2010 00:14:47 +0000 (00:14 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* Module.cs: Make it a partial class under !v4.

* MonoModule.cs: New type that exists only under
v4. Under v2 it is a part of Module.

This is the initial setup to make v4 Module an
abstract type where all methods raise exceptions.

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

14 years agoFix an assertion message.
Zoltan Varga [Thu, 1 Apr 2010 00:04:50 +0000 (00:04 -0000)]
Fix an assertion message.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Apr 2010 00:04:44 +0000 (00:04 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
large. Fixes #567040.

* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 Mar 2010 23:09:53 +0000 (23:09 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* TypeBuilder.cs (GetField): Avoid a crash if this is called on a
FieldOnTypeBuilderInst. Fixes #586944.

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

14 years ago2010-04-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 Mar 2010 22:43:51 +0000 (22:43 -0000)]
2010-04-01  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (handle_ccastclass): Call save_cast_details (). Fixes
#592711.

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

14 years ago2010-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 31 Mar 2010 19:59:22 +0000 (19:59 -0000)]
2010-03-31  Miguel de Icaza  <miguel@novell.com>

* mono-semaphore.h: Use Windows semaphores on Windows, patch
contributed by Vincent Povirk from bugzilla #531767

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

14 years agoFlush more pending tests.
Marek Safar [Wed, 31 Mar 2010 18:50:06 +0000 (18:50 -0000)]
Flush more pending tests.

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

14 years ago2010-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 31 Mar 2010 17:58:37 +0000 (17:58 -0000)]
2010-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Selection should be available after the first time the
handle has been created, even if later the handle is destroyed or
temporary invalidated.
Fixes #584070.

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

14 years agoAdded a summary of the update procedure.
Paolo Molaro [Wed, 31 Mar 2010 17:51:34 +0000 (17:51 -0000)]
Added a summary of the update procedure.

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

14 years agoDocument --machine-config in --help as well as in the manpage.
Paolo Molaro [Wed, 31 Mar 2010 17:34:29 +0000 (17:34 -0000)]
Document --machine-config in --help as well as in the manpage.

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

14 years ago2010-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 31 Mar 2010 14:57:23 +0000 (14:57 -0000)]
2010-03-31  Miguel de Icaza  <miguel@novell.com>

* mono-hash.c (test_prime): Remove warnings

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

14 years ago2010-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 31 Mar 2010 14:55:35 +0000 (14:55 -0000)]
2010-03-31  Miguel de Icaza  <miguel@novell.com>

* object.c (mono_class_proxy_vtable): Eliminate warning.

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

14 years ago2010-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 31 Mar 2010 14:53:54 +0000 (14:53 -0000)]
2010-03-31  Miguel de Icaza  <miguel@novell.com>

* marshal.c (emit_marshal_boolean): Eliminate possible
uninitialized local warning.

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

14 years agoRevert "2010-03-31 Zoltan Varga <vargaz@gmail.com>"
Zoltan Varga [Wed, 31 Mar 2010 13:09:32 +0000 (13:09 -0000)]
Revert "2010-03-31  Zoltan Varga  <vargaz@gmail.com>"

This reverts commit 7a2f0e777f7ff56bf04a4ce95642f94f3c378deb.

Revert this as it cannot be turned off.

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

14 years agoFix a warning.
Zoltan Varga [Wed, 31 Mar 2010 12:45:15 +0000 (12:45 -0000)]
Fix a warning.

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

14 years ago2010-03-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 Mar 2010 12:44:30 +0000 (12:44 -0000)]
2010-03-31  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Enable debugging by default when doing aot compiling.

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

14 years ago2010-03-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 Mar 2010 12:28:00 +0000 (12:28 -0000)]
2010-03-31  Zoltan Varga  <vargaz@gmail.com>

* library.make ($(the_lib)$(PLATFORM_AOT_SUFFIX)): Pass --debug to the aot
compiler. Fixes #592545.

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

14 years agoAdd tests
Miguel de Icaza [Wed, 31 Mar 2010 05:18:13 +0000 (05:18 -0000)]
Add tests

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

14 years ago2010-03-31 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 31 Mar 2010 05:15:25 +0000 (05:15 -0000)]
2010-03-31  Miguel de Icaza  <miguel@novell.com>

* UInt32.cs, Int64.cs, UInt64.cs: cope with the case that the
IFormatProvider is not a NumberFormatInfo, preventing a crash.
This was already handled by Int32.cs, but these other routines
were never properly updated.

Fixes #588356

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

14 years ago2010-03-30 Sebastien Pouliot <sebastien@ximian.com>
Miguel de Icaza [Wed, 31 Mar 2010 05:05:22 +0000 (05:05 -0000)]
2010-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* moonlight_raw_corlib.dll.sources: Fix Moonlight since these
types now reside in mscorlib (not System.Coe) for NET_4_0 and
also for SL4

2010-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
since it contains parts of the Assembly features (partial class)

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

14 years agoentry for a change in HttpResponseStream.cs
Gonzalo Paniagua Javier [Wed, 31 Mar 2010 01:10:43 +0000 (01:10 -0000)]
entry for a change in HttpResponseStream.cs

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

14 years ago2010-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Wed, 31 Mar 2010 00:59:55 +0000 (00:59 -0000)]
2010-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>

* mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
mono_create_handler_block_trampoline with the proper #ifdef so that it
compiles on amd64.

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

14 years agoNew tests.
Marek Safar [Tue, 30 Mar 2010 22:04:09 +0000 (22:04 -0000)]
New tests.

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

14 years agoundo
Gonzalo Paniagua Javier [Tue, 30 Mar 2010 21:22:16 +0000 (21:22 -0000)]
undo

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 21:03:23 +0000 (21:03 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-exceptions.c: Introduce mono_walk_stack_full, which
allows to select if it's new or old context that is passed to
the callback.

* mini-exceptions.c (mono_handle_exception_internal): Handle the
case when executing a guarded handler from the EH machinery.

* mini-exceptions.c (mono_install_handler_block_guard): New function
responsible for checking for handler blocks, installing the guard and
clearing abort state.

* mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
to check for handler blocks and skip interruption logic if one was found.

* mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
by the handler block guard trampoline. Resumes interruption by raising the
pending ThreadAbortException.

* mini.c (create_jit_info): Calculate the end address of a finally block.

* mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
of a finally block to a specified address and return the old one.

* tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
trampoline patches the original return address and calls the trampoline function.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 21:03:14 +0000 (21:03 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* domain-internals.h (MonoJitExceptionInfo): Add new field
handler_end to the data union. To be used to point the end
of a finally block.

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

14 years ago2010-03-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 30 Mar 2010 21:00:21 +0000 (21:00 -0000)]
2010-03-30 Gonzalo Paniagua Javier <gonzalo@novell.com>

* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 20:11:09 +0000 (20:11 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilderTest.cs: Add a test for #592215.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 20:11:02 +0000 (20:11 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
the TypeBuilder since the runtime code can't handle a duplicate type name.

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

14 years ago2010-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 30 Mar 2010 20:05:27 +0000 (20:05 -0000)]
2010-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* class.c (mono_class_init): Postpone coreclr inheritance check
until the end of the initialization (so we can check up the
default ctor manually for the core-clr inheritance rules).
* security-core-clr.c: Add the missing (undocumented) checks on
default constructors when verifying inheritance rules.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 19:49:46 +0000 (19:49 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.

* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
does the patching if the callee is in the same domain.

* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
of mono_arch_patch_plt_entry ().

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:34:14 +0000 (19:34 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (create_jit_info): Fix try block hole length encoding.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:34:06 +0000 (19:34 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (create_jit_info): Emit saner debug spew. Now it doesn't
duplicate information and print offsets instead of absolute addresses.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:33:58 +0000 (19:33 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Add support for new v4 type
System.Reflection.MonoModule that is the concrete version
of Module which is abstract unver v4.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:33:49 +0000 (19:33 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_init): Don't set class failure after
inited = 1 is set. It must be done before.

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

14 years agofix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)
Sebastien Pouliot [Tue, 30 Mar 2010 19:23:59 +0000 (19:23 -0000)]
fix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 18:16:48 +0000 (18:16 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* test-106.cs: Move the wait for cb_state == 1 out of the try block so this
test becomes deterministic.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 18:03:26 +0000 (18:03 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeType.cs (IsValidType): Implement proper checking for value types
as well.

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

14 years agoNew test.
Marek Safar [Tue, 30 Mar 2010 17:11:40 +0000 (17:11 -0000)]
New test.

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

14 years agofix typos
Jb Evain [Tue, 30 Mar 2010 17:09:53 +0000 (17:09 -0000)]
fix typos

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

14 years agoconfig: Add support for Haiku
Andreas Färber [Tue, 30 Mar 2010 16:47:28 +0000 (16:47 -0000)]
config: Add support for Haiku

Allow using "haiku" as OS in dllmap.

  Light as a feather
  Beautiful thy name Haiku
  Poetry in files
                    -- Andreas F.

* mono-config.c: Add support for OS "haiku"
* ChangeLog: Fix UTF-8 encoding

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:41:47 +0000 (15:41 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* MonoAssembly.cs: make MonoAssembly non public.

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

14 years agofix the build
Jb Evain [Tue, 30 Mar 2010 15:41:18 +0000 (15:41 -0000)]
fix the build

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:18:03 +0000 (15:18 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* TimeZoneInfo.AdjustmentRule.cs
* TimeZoneInfo.TransitionTime.cs:
Add TypeForwarderFrom attributes.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:06:54 +0000 (15:06 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* Queryable.cs: implement Zip for net_4_0.

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

14 years agofix msvc build.
Jonathan Pobst [Tue, 30 Mar 2010 14:33:25 +0000 (14:33 -0000)]
fix msvc build.

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

14 years ago2010-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 30 Mar 2010 14:12:29 +0000 (14:12 -0000)]
2010-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: New test for TryParseExact.

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

14 years agoTue Mar 30 15:53:06 CEST 2010 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 30 Mar 2010 13:54:15 +0000 (13:54 -0000)]
Tue Mar 30 15:53:06 CEST 2010 Paolo Molaro <lupus@ximian.com>

* console-unix.c: fixed include logic for sys/ioctl.h.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 13:37:08 +0000 (13:37 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* Binder.cs (BindToMethod): fix the case where we bind to a method
with only one params parameter and that no args are given.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 13:36:12 +0000 (13:36 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* ActivatorTest.cs: add more tests to CreateInstance constructors
with params arrays.

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

14 years ago2010-03-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 30 Mar 2010 13:13:39 +0000 (13:13 -0000)]
2010-03-30  Mark Probst  <mark.probst@gmail.com>

        * threads.c: Fix bitmap generation for TLS marking on 64 bit
        systems.

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

14 years agoin System:
Jb Evain [Tue, 30 Mar 2010 13:12:34 +0000 (13:12 -0000)]
in System:
2010-03-30  Jb Evain  <jbevain@novell.com>

* MonoType.cs: let the binder reorder arguments when invoking
params methods.
* Activator.cs (CreateInstance): use BindToMethod instead of
SelectMethod to make sure that params constructors are properly called.

Fixes #591877

in System.Reflection:
2010-03-30  Jb Evain  <jbevain@novell.com>

* Binder.cs: when invoking a params method, pack the params
arguments before doing the actual invocation.

Fixes #591877

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