mono.git
14 years ago2009-12-13 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Sun, 13 Dec 2009 18:07:01 +0000 (18:07 -0000)]
2009-12-13 Jonathan Chambers <joncham@gmail.com>

* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
sigctx being passed in, as we have no CONTEXT available in the APC.

(mono_debugger_agent_cleanup): Use explicit cond wait implementation
for now.

Code contributed under MIT/X11 license.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 16:03:52 +0000 (16:03 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c mini-llvm.c: Fix support for monitor enter/exit trampolines
in the LLVM backend on AMD64.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 15:40:48 +0000 (15:40 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_eh_frame): Initialize the clauses from the info in the
FDE.

* unwind.c (mono_unwind_decode_fde): Implement decoding of a couple more formats.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 15:07:39 +0000 (15:07 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c: Export mono_personality for AOT.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 15:07:33 +0000 (15:07 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_method_compile): Fix some problems with llvm+aot+clauses.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 14:50:31 +0000 (14:50 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h (OP_IMPLICIT_EXCEPTION): New opcode marking the place where an
implicit exception can occur.

* ir-emit.h (MONO_EMIT_NEW_IMPLICIT_EXCEPTION): New macro to emit an
OP_IMPLICIT_EXCEPTION instruction.

* ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): New macro.

* method-to-ir.c: Use MONO_EMIT_NEW_CHECK_THIS in a few places.

* mini-llvm.c: Handle OP_IMPLICIT_EXCEPTION by disabling llvm if it occurs
inside a protected block.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 08:57:27 +0000 (08:57 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c: Revert the last change, the signature of monitor entry/exit
trampolines doesn't include the argument.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 08:25:31 +0000 (08:25 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c (mono_llvm_emit_method): Enable calls to monitor entry/exit
trampolines on amd64.

* mini-amd64.h (MONO_ARCH_MONITOR_OBJECT_REG): Use MONO_AMD64_ARG_REG1 instead
of RDI.

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

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

* mini.c (mini_method_compile): Add some comments as to why LLVM is currently
disabled for methods with clauses.

* mini-llvm.c: Enable support for catch clauses.

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

14 years ago2009-12-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 13 Dec 2009 06:37:15 +0000 (06:37 -0000)]
2009-12-13  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_resume_unwind): New function to resume unwinding at the
end of an LLVM compiled finally clause.
(mono_handle_exception_internal): Save the exception handling state in TLS
before calling an LLVM compiled finally clause, so mono_resume_unwind () can
resume unwinding from that point.

* unwind.c (mono_unwind_get_ops_from_fde): Rename this to
mono_unwind_decode_fde, decode the Language Specific Data Area (LSDA) too,
to obtain the addresses of the exception handling regions.

* mini-llvm.c: Add beginnings of support for exception handling, currently only
finally clauses are supported.

* mini.c (mini_method_compile): Add support for LLVM code with exception
handlers.

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

14 years ago2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 13 Dec 2009 01:18:45 +0000 (01:18 -0000)]
2009-12-12 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Remove useless field.

2009-12-12 Rodrigo Kumpera  <rkumpera@novell.com>

* Environment.cs: Bump corlib version.

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

14 years ago2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 13 Dec 2009 01:18:27 +0000 (01:18 -0000)]
2009-12-12 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoType.cs: Make the GetConstructorImpl machinery available
to be used by others.

* Type.cs (MakeGenericType): Is any of the arguments is not a system
type create an instance of MonoGenericClass instead.

2009-12-12 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Change it to support a non-sre generic type
definition.

2009-12-10 Rodrigo Kumpera  <rkumpera@novell.com>

* AssemblyBuilder.cs (MakeGenericType): Accept a Type as argument.

* ConstructorOnTypeBuilderInst.cs: Change it to support an underlying
non-sre constructor.

* MethodOnTypeBuilderInst.cs: Change it to support an underlying
non-sre method.

* FieldOnTypeBuilderInst.cs: Change it to support an underlying
non-sre field.

* EventOnTypeBuilderInst.cs: Change it to support an underlying
non-sre event.

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

14 years ago2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 13 Dec 2009 01:17:46 +0000 (01:17 -0000)]
2009-12-12  Rodrigo Kumpera  <rkumpera@novell.com>

* object-internals.h: Remove useless field from MonoReflectionGenericClass.

* appdomain.c: Bump corlib version.

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

14 years ago2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 13 Dec 2009 01:17:36 +0000 (01:17 -0000)]
2009-12-12  Rodrigo Kumpera  <rkumpera@novell.com>

To properly support user types, MonoGenericClass has to be used for regular, non SRE,
types as well since otherwise generic instances would not return UT as arguments but
their undelying system type.

* object-internals.h: Change field types of MonoGenericClass and *OnTypeBuilderInst
to reflect the fact that they can have now multiple different types.

* reflection.c (mono_image_get_field_on_inst_token): Handle MonoField.

* reflection.c (mono_image_get_ctor_on_inst_token): Handle MonoCMethod.

* reflection.c (mono_image_get_method_on_inst_token): Handle MonoMethod.

* reflection.c (mono_reflection_register_with_runtime): Init super types
if the image is not dynamic.

* reflection.c (mono_reflection_bind_generic_parameters): In case of a MonoGenericClass,
check if the generic type definition is a TypeBuilder.

* reflection.c (mono_reflection_generic_class_initialize): If the generic type definition
doesn't belong to a dynamic image, skip initialization.

* reflection.c (resolve_object): Properly handle *OnTypeBuilderInst types where their
base definition is not a dynamic type.

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

14 years ago2009-12-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 12 Dec 2009 09:38:49 +0000 (09:38 -0000)]
2009-12-12  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c (mono_llvm_emit_method): Allocate the 'pindexes' array with the
proper size.

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

14 years agoHtmlString
Miguel de Icaza [Sat, 12 Dec 2009 04:41:03 +0000 (04:41 -0000)]
HtmlString

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

14 years agoUpdate
Miguel de Icaza [Sat, 12 Dec 2009 04:19:36 +0000 (04:19 -0000)]
Update

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

14 years ago2009-12-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 12 Dec 2009 01:04:30 +0000 (01:04 -0000)]
2009-12-12  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c: Encode the this argument of vtype methods as a struct, not
as a primitive type.

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

14 years agoin System.Runtime.Serialization.Json:
Chris Toshok [Sat, 12 Dec 2009 00:14:23 +0000 (00:14 -0000)]
in System.Runtime.Serialization.Json:
2009-12-11  Chris Toshok  <toshok@ximian.com>

* TypeMap.cs (CreateDefaultTypeMap): only include non-public
property info when dealing with KeyValuePair<,>.  This is *not*
the way MS handles it, but we emulate things much better with this
hack.

in test/System.Runtime.Serialization.Json/:
2009-12-11  Chris Toshok  <toshok@ximian.com>

* DataContractJsonSerializerTest.cs: add a test case for
non-public properties.

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

14 years ago2009-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Sat, 12 Dec 2009 00:09:50 +0000 (00:09 -0000)]
2009-12-12  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* WebClient_2_1.cs: When creating the request we need to copy over
any headers the user set on us. We also need to wrap
InvalidOperationExceptions in WebExceptions.

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

14 years ago2009-12-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 11 Dec 2009 21:21:54 +0000 (21:21 -0000)]
2009-12-11  Marek Habersack  <mhabersack@novell.com>

* object.c (mono_ldstr, mono_ldstr_metadata_sig): added calls to
mono_profiler_string_allocation

mono-profiler-iomap.c - improved output and enabled locking when storing string location.

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

14 years ago2009-12-09 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 11 Dec 2009 20:38:39 +0000 (20:38 -0000)]
2009-12-09  Chris Toshok  <toshok@ximian.com>

* Encoding.cs (get_Default): moonlight defaults to UTF8, not
UTF8Unmarked.

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

14 years ago2009-12-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Dec 2009 19:52:43 +0000 (19:52 -0000)]
2009-12-11  Zoltan Varga  <vargaz@gmail.com>

* driver.c: Applied patch from Matt McClellan (matt@mc-c.net). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.

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

14 years ago2009-12-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 11 Dec 2009 19:52:35 +0000 (19:52 -0000)]
2009-12-11  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Applied patch from Matt McClellan (matt@mc-c.net). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.

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

14 years ago2009-12-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 11 Dec 2009 17:36:44 +0000 (17:36 -0000)]
2009-12-11  Marek Habersack  <mhabersack@novell.com>

* mono-io-portability.c: moved all the reporting code to the IOMAP
profiler module.
(mono_portability_find_file_internal): calls mono_profiler_iomap
whenever an adjustement is made.

2009-12-11  Marek Habersack  <mhabersack@novell.com>

* mono-profiler-iomap.c: added

* Makefile.am: added IOMAP profiler

2009-12-11  Marek Habersack  <mhabersack@novell.com>

* method-to-ir.c (mini_redirect_call): do not redirect the
InternalAllocateStr internal call if string profiling is enabled.

2009-12-11  Marek Habersack  <mhabersack@novell.com>

* string-icalls.c (ves_icall_System_String_InternalAllocateStr):
if string profiling is enabled, call
mono_profiler_string_allocation

* profiler.h: added two MonoProfileFlags -
MONO_PROFILE_IOMAP_EVENTS and MONO_PROFILE_STRING_ALLOC as well as
installation functions for the hooks below.

* profiler-private.h, profiler.c: added two hooks:
mono_profiler_string_allocation called whenever a string is
allocated by InternalAllocateStr and mono_profiler_iomap called
whenever IOMAP code performs an adjustement on a file path.

2009-12-11  Marek Habersack  <mhabersack@novell.com>

* mono.1: documented the IOMAP report profiler module

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

14 years agoFri Dec 11 18:24:04 CET 2009 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 11 Dec 2009 17:15:57 +0000 (17:15 -0000)]
Fri Dec 11 18:24:04 CET 2009 Paolo Molaro <lupus@ximian.com>

* boehm-gc.c: fixed race condition while getting the target of a
disappearing link (bug #522233).

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

14 years ago2009-12-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Dec 2009 12:54:10 +0000 (12:54 -0000)]
2009-12-11  Atsushi Enomoto  <atsushi@ximian.com>

* JsonReader.cs : e- and e+ was resulting in wrong parse error.
  This should fix part of bug #531904.

* JsonReaderTest.cs : another number parse case.

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

14 years ago2009-12-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Dec 2009 09:47:44 +0000 (09:47 -0000)]
2009-12-11  Atsushi Enomoto  <atsushi@ximian.com>

* RoutingSection.cs : sorted out most of the configuration stuff.
* FilterElementCollection.cs : added missing indexer.

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

14 years ago2009-12-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 11 Dec 2009 08:48:32 +0000 (08:48 -0000)]
2009-12-11  Marek Safar  <marek.safar@gmail.com>

* modifiers.cs, decl.cs, iterators.cs, const.cs, anonymous.cs,
class.cs, delegate.cs, cs-parser.jay, enum.cs: Turn modifiers into
enum for easier debugging.

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

14 years agoFixes build.
Marek Safar [Fri, 11 Dec 2009 08:43:54 +0000 (08:43 -0000)]
Fixes build.

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

14 years ago2009-12-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 11 Dec 2009 06:22:59 +0000 (06:22 -0000)]
2009-12-11  Miguel de Icaza  <miguel@novell.com>

* SmtpClient.cs: Add half-implemented feature, TargetName for the
SPN SMTP system.

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

14 years ago2009-12-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 11 Dec 2009 06:03:45 +0000 (06:03 -0000)]
2009-12-11  Miguel de Icaza  <miguel@novell.com>

* SmtpClient.cs, MailMessage.cs: Add 4.0 APIs.

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

14 years ago2009-12-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 11 Dec 2009 05:36:59 +0000 (05:36 -0000)]
2009-12-11  Miguel de Icaza  <miguel@novell.com>

* Barrier.cs: Implement IDisposable, add a bunch of IDisposable
checks and some checks from the docs.

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

14 years ago2009-12-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Dec 2009 02:33:55 +0000 (02:33 -0000)]
2009-12-10 Rodrigo Kumpera  <rkumpera@novell.com>

* AttributeTest.cs: Fix a NotDotNet test since mono now implements
the same behavior.

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

14 years ago2009-12-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Dec 2009 02:32:59 +0000 (02:32 -0000)]
2009-12-10 Rodrigo Kumpera  <rkumpera@novell.com>

* AssemblyBuilder.cs: Add MakeGenericType method while takes care of doing
generic instance canonicalization under compiler context.

* DerivedTypes.cs: Add ArrayType::GetEffectiveRank to make it possible to
distinguish between [] and [*].

* TypeBuilder.cs: Implement MakeGenericType in managed code.

2009-12-10 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Add new register_with_runtime icall to make
sure that a managed code instantiated MGC will be returned when
the generic instantiation happens in unmanaged code.

This is a temporary workaround while Type::MakeGenericType doesn't
handle user types properly.

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

14 years ago2009-12-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Dec 2009 02:32:22 +0000 (02:32 -0000)]
2009-12-10 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Make this class inherit from Type instead of
MonoType. Implement some missing methods and make sure we can still
be used as a byref type.

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

14 years ago2009-12-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Dec 2009 02:31:45 +0000 (02:31 -0000)]
2009-12-10  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_type_get_full): Produce warning instead of simply swallowing
the error.

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

14 years ago2009-12-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 11 Dec 2009 02:31:19 +0000 (02:31 -0000)]
2009-12-10  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Add mono_reflection_register_with_runtime icall to
allow a MonoGenericClass to register itself as the managed mirror of
a given generic instance.
This is a temporary workaround until all MGC instantiation happens in
managed code.

* object-internals.h: Ditto.

* icall-def.h: Ditto.

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

14 years ago2009-12-10 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 10 Dec 2009 22:56:57 +0000 (22:56 -0000)]
2009-12-10  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c (find_in_remsets): Also search the generic store
remsets.

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

14 years ago2009-12-10 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 10 Dec 2009 22:33:24 +0000 (22:33 -0000)]
2009-12-10  Mark Probst  <mark.probst@gmail.com>

* sgen-gc.c: Don't access class names in debugging code when
unloading a domain, because they might not be valid anymore.

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

14 years ago2009-12-10 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 10 Dec 2009 21:25:59 +0000 (21:25 -0000)]
2009-12-10  Mark Probst  <mark.probst@gmail.com>

* domain.c, domain-internals.h: New function mono_domain_unset().

* appdomain.c (unload_thread_main): Detach the thread again at the
end.

* threads.c: When a thread exists or is detached, unset its domain
so that it's NULL when, for example, a pthread destructor runs.

* sgen-gc.c: Assert that there is no domain set after a thread is
done.

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

14 years ago2009-12-10 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 10 Dec 2009 21:21:29 +0000 (21:21 -0000)]
2009-12-10  Mark Probst  <mark.probst@gmail.com>

* class.c (mono_generic_class_get_class),
metadata.c (free_generic_class): Allocate generic MonoClass's from
the image mempool, not via malloc.  The problem with malloc is
that when unloading a domain those classes are freed before
clearing the heap and SGen needs the classes.  Rewriting the
unloading code to do the free later would be more work and there's
no point in using malloc anyway.

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

14 years ago2009-12-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Dec 2009 18:45:49 +0000 (18:45 -0000)]
2009-12-10  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Avoid generating synchronized wrappers for
generic methods.

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

14 years ago2009-12-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Dec 2009 18:14:47 +0000 (18:14 -0000)]
2009-12-10  Marek Safar  <marek.safar@gmail.com>

* decl.cs, anonymous.cs, class.cs: Sealed Define it's now main entry
point.

* parameter.cs, delegate.cs, dynamic.cs: Don't use builder methods
directly.

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

14 years agoDisabled delegate test for now
Marek Safar [Thu, 10 Dec 2009 18:12:14 +0000 (18:12 -0000)]
Disabled delegate test for now

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

14 years agoNew test.
Marek Safar [Thu, 10 Dec 2009 13:58:50 +0000 (13:58 -0000)]
New test.

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

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

* cs-parser.jay, statement.cs: Handle parser error in code
completition.

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

14 years agoinitial checkin for WCF 4.0 Routing.
Atsushi Eno [Thu, 10 Dec 2009 12:39:18 +0000 (12:39 -0000)]
initial checkin for WCF 4.0 Routing.

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

14 years ago2009-12-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Dec 2009 12:35:21 +0000 (12:35 -0000)]
2009-12-10  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Ignore base imported methods when they are already
in method bag.

* eval.cs: Handle non-existent keys.

* report.cs, driver.cs: Make fatal work with console printer only.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 11:38:05 +0000 (11:38 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* OperationInvokerHandler.cs : fix async operation handling. Since
  the entire handler chain is designed to be in synchronous, one
  single handler must not leave its work incomplete (async). Just
  wait for the async process completion within the handler.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 08:22:41 +0000 (08:22 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestChannel.cs : avoid adding duplicate headers. Basically
  default WebHeaderCollection items are overwritten.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 07:57:11 +0000 (07:57 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestChannel.cs : when HTTP response was error, do not try
  to read message but just raise an error.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 07:23:25 +0000 (07:23 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeadersTest.cs : added another CopyHeadersFrom() test to
  make sure there is no duplicate.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 07:18:27 +0000 (07:18 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeadersTest.cs : enable working test and remove old comment.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 06:50:38 +0000 (06:50 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeaders.cs : null can be set as a WS-Addressing header item.

* MessageHeadersTest.cs : make sure null can be set as a
  WS-Addressing header when version is None.

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

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

* ClientRuntimeChannel.cs : a bit more kindful error message.
* ClientProxyGenerator.cs : fix async parameter offset.

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

14 years ago2009-12-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Dec 2009 06:02:50 +0000 (06:02 -0000)]
2009-12-10  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestChannel.cs : WebException.Response might be null.

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

14 years ago2009-12-10 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 10 Dec 2009 05:55:57 +0000 (05:55 -0000)]
2009-12-10  Miguel de Icaza  <miguel@novell.com>

* MemoryMappedFile.cs: Updated to the new Beta API, fill in some
blanks, map some new flags, obey some settings, throw some
exceptions.

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

14 years agoMissed a file.
Zoltan Varga [Thu, 10 Dec 2009 03:42:03 +0000 (03:42 -0000)]
Missed a file.

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

14 years ago2009-12-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Dec 2009 03:40:42 +0000 (03:40 -0000)]
2009-12-10  Zoltan Varga  <vargaz@gmail.com>

* unwind.h: Rename this to mini-unwind.h to avoid conflicts with the gcc
unwind.h header file.

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

14 years ago2009-12-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Dec 2009 01:22:12 +0000 (01:22 -0000)]
2009-12-09  Sebastien Pouliot  <sebastien@ximian.com>

* loader.c (mono_method_signature): Always call mono_loader_unlock
before returning.

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

14 years ago2009-12-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Dec 2009 00:24:08 +0000 (00:24 -0000)]
2009-12-10  Zoltan Varga  <vargaz@gmail.com>

* tramp-x86.c (mono_arch_patch_callsite): Patch the code when using valgrind,
newer valgrind versions seems to handle this fine.

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

14 years agofix the build on the mac 10.4
Geoff Norton [Wed, 9 Dec 2009 21:36:32 +0000 (21:36 -0000)]
fix the build on the mac 10.4

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

14 years ago2009-12-09 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 9 Dec 2009 19:38:49 +0000 (19:38 -0000)]
2009-12-09  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Add mono_verifier_verify_string_signature to check
user string blobs.

* verify-internals.h: Add new function to the internal API.

* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
check if it's a valid string.

* object.c (mono_ldstr): Ditto.

Fixes #561943.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:27:58 +0000 (19:27 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* ILGenerator.cs (Emit(OpCode,LocalBuilder)): deal with
opcodes not related to locals.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:26:51 +0000 (19:26 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* ILGeneratorTest.cs: add a test for Emit(OpCode,LocalBuilder)
when the opcode is not related to locals.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:22:33 +0000 (19:22 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* StringInfo.cs: default constructor falls back to an empty string info.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:22:03 +0000 (19:22 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* StringInfoTest.cs: test the default constructor.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:21:25 +0000 (19:21 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:20:42 +0000 (19:20 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* ThreadTest.cs: add a test for a null callback passed to
ThreadPool.QueueUserWorkItem.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:19:59 +0000 (19:19 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* StringComparer.cs (GetHashCode): properly throw
an ANE instead of an NRE.

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

14 years ago2009-12-09 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 9 Dec 2009 19:19:13 +0000 (19:19 -0000)]
2009-12-09  Jb Evain  <jbevain@novell.com>

* StringComparerTest.cs: add test for null passed to a ordinal
comparer GetHashCode.

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

14 years ago2009-12-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Dec 2009 15:04:08 +0000 (15:04 -0000)]
2009-12-09  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
on the debugger thread.

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

14 years ago2009-12-09 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 9 Dec 2009 13:33:09 +0000 (13:33 -0000)]
2009-12-09 Rodrigo Kumpera  <rkumpera@novell.com>

* MethodBaseTest.cs: Remove all NET_2_0 directives. Add test
for GetCurrentMethod and generics.

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

14 years ago2009-12-09 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 9 Dec 2009 13:25:04 +0000 (13:25 -0000)]
2009-12-09  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_GetCurrentMethod): Drop all generic arguments
from a method before returning it. This is the expected behavior.

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

14 years ago2009-12-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Dec 2009 11:59:02 +0000 (11:59 -0000)]
2009-12-09  Marek Safar  <marek.safar@gmail.com>

* CSharpBinder.cs: Actually use merged restrictions.

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

14 years ago2009-12-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 9 Dec 2009 06:52:49 +0000 (06:52 -0000)]
2009-12-09  Miguel de Icaza  <miguel@novell.com>

* Enum.cs: Add new .NET 4.0 API.

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

14 years ago2009-12-08 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 8 Dec 2009 22:33:32 +0000 (22:33 -0000)]
2009-12-08  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: GetConverterForMember looks up
member type converters using type description providers in
addition to custom attributes.
Result of GenerateInstance isn't cast to the target type if the
type isn't public.

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

* TypeDescriptor.cs: AddProvider overloads must refresh the
instance and type when called.
If GetProvider (object) fails to look up provider for the passed
instance, it attempts to look up provider for the instance's
type.
GetProvider (Type) looks for providers using all the parent types
of the passed type if no provider for it is found.
WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
wrapped type, if present.

* TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
the value obtained from parent in GetTypeDescriptor.

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

* Type.cs: added overloads for the == and != operators (4.0).

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

14 years ago2009-12-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Dec 2009 21:13:04 +0000 (21:13 -0000)]
2009-12-08  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c (mono_llvm_emit_method): Add more SIMD opcodes.

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

14 years ago2009-12-08 Geoff Norton <gnorton@novell.com>
Geoff Norton [Tue, 8 Dec 2009 20:57:39 +0000 (20:57 -0000)]
2009-12-08  Geoff Norton  <gnorton@novell.com>

* debugger-agent.c:  Refactor the mono_runtime_invoke guarding against
stepping out into native code.  There were issues with nested invokes
like .cctors.

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

14 years ago2009-12-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Dec 2009 20:41:44 +0000 (20:41 -0000)]
2009-12-08  Marek Safar  <marek.safar@gmail.com>

* Makefile: Replace dmcs reference with Mono.CSharp.

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

14 years ago2009-12-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Dec 2009 17:20:32 +0000 (17:20 -0000)]
2009-12-08  Marek Safar <marek.safar@gmail.com>

* AssemblyInfo.cs: InternalsVisibleTo Microsoft.CSharp.

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

14 years ago * class/System.Data.Linq/src/**/*,
Jonathan Pryor [Tue, 8 Dec 2009 17:19:50 +0000 (17:19 -0000)]
* class/System.Data.Linq/src/**/*,
  class/System.Data.Linq/examples/**/*: Sync with DbLinq r1293.  This
  adds SchemaLoader support for Microsoft SQL Server, allowing sqlmetal
  to generate entity stubs against SQL Server databases.
* class/System.Data.Linq/System.Data.Linq.dll.sources: Add files to the
  build.
* tools/sqlmetal/sqlmetal.exe.config: Add provider entry for SQL Server.
* tools/sqlmetal/sqlmetal.exe.sources: Add additional files.

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

14 years ago2009-12-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Dec 2009 15:28:07 +0000 (15:28 -0000)]
2009-12-08  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_print_method_from_ip): Fix the lookup of trampolines.

* mini-codegen.c (mono_local_regalloc): Allow non-call opcodes with cloc:c.

* cpu-<ARCH>.md: Make call_handler clob:c.

* mini.c: Reenable SSA for methods with clauses.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:35:00 +0000 (14:35 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* typemanager.cs (MakeGenericMethod): Fix stupid mistake.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:34:29 +0000 (14:34 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* MethodInfoTest.cs: Add some tests for MS compatible behavior of
MakeGenericMethod.

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

14 years ago2009-12-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Dec 2009 14:22:28 +0000 (14:22 -0000)]
2009-12-08  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_method_compile): Disable SSA for now for methods with clauses,
as it causes failures on x86.

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

14 years ago2009-12-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 8 Dec 2009 14:10:38 +0000 (14:10 -0000)]
2009-12-08  Sebastien Pouliot  <sebastien@ximian.com>

* driver.c: Fail gracefully with --compile-all if mono_method_signature
returns NULL (e.g. a bad assembly).

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:07:22 +0000 (14:07 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoMethod.cs (MakeGenericMethod): If any of the arguments is
a non system type, inflate to a MethodOnTypeBuilderInst.

2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* MethodOnTypeBuilderInst.cs: Add new constructor that takes a MethodInfo
as base method. Change how compiler context is calculated to take the
instantiation vector into account.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:07:00 +0000 (14:07 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* typemanager.cs: Add MakeGenericMethod that checks if the method
is really the generic method definition.

ecore.cs (MethodGroupExpr:IsApplicable): Use new TypeManager function
to inflate generic methods.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:06:38 +0000 (14:06 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* ParameterInfo.cs: Add constructor that takes an array of ParameterInfo
objects.

2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* MethodOnTypeBuilderInst.cs: Change base_method type from MethodBuilder to
MethodInfo.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:06:16 +0000 (14:06 -0000)]
2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* Type.cs: Add virtual property IsCompilerContext to cleanup
compiler context resolution across SRE.

2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Implement IsCompilerContext property and replace
all checks to use it.

2009-12-08 Rodrigo Kumpera  <rkumpera@novell.com>

* DerivedTypes.cs: Implement IsCompilerContext property and replace
all checks to use it.

* EnumBuilder.cs: Ditto.

* GenericTypeParameterBuilder.cs: Ditto.

* TypeBuilder.cs: Ditto.

* FieldOnTypeBuilderInst.cs: Replace ad-hoc check for compiler context
with proper call to generic instance type.

* MethodOnTypeBuilderInst.cs: Ditto.

* ConstructorOnTypeBuilderInst.cs: Ditto.

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

14 years ago2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Dec 2009 14:04:37 +0000 (14:04 -0000)]
2009-12-08  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (inflate_method): Handle the case of a regular system type.

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

14 years ago2009-12-08 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 8 Dec 2009 13:23:48 +0000 (13:23 -0000)]
2009-12-08  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c, sgen-pinning-stats.c, sgen-gray.c: More statistics
        gathering code.

        * mempool.c, mempool-internals.h: New function
        mono_mempool_get_bytes_allocated().

        * Makefile.am: sgen-pinning-stats.c added.

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

14 years agoNew test.
Marek Safar [Tue, 8 Dec 2009 13:01:18 +0000 (13:01 -0000)]
New test.

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

14 years ago2009-12-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Dec 2009 12:58:33 +0000 (12:58 -0000)]
2009-12-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #561149
anonymous.cs: Use actual type parameters when checking for generic
method host.

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

14 years ago2009-12-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Dec 2009 12:31:36 +0000 (12:31 -0000)]
2009-12-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #561369
expression.cs (DoNumericPromotion): Fixed typo.

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

14 years ago2009-12-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Dec 2009 12:23:58 +0000 (12:23 -0000)]
2009-12-08  Marek Safar  <marek.safar@gmail.com>

*.cs: Moving to generics world.

cs-parser.jay: Removed current_array_type.

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

14 years ago2009-12-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 8 Dec 2009 08:05:31 +0000 (08:05 -0000)]
2009-12-08  Chris Toshok  <toshok@ximian.com>

* JsonSerializationReader.cs (DeserializeGenericCollection): in
the 2.1 case we still need to convert the List<> to an array.

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

14 years ago2009-12-08 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 8 Dec 2009 07:00:00 +0000 (07:00 -0000)]
2009-12-08  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c (create_allocator): Only use the fast path if the
        object size is within the small object size limit.

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