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
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
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
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
Marek Safar [Fri, 11 Dec 2009 08:43:54 +0000 (08:43 -0000)]
Fixes build.
svn path=/trunk/mcs/; revision=148094
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Thu, 10 Dec 2009 18:12:14 +0000 (18:12 -0000)]
Disabled delegate test for now
svn path=/trunk/mcs/; revision=148035
Marek Safar [Thu, 10 Dec 2009 13:58:50 +0000 (13:58 -0000)]
New test.
svn path=/trunk/mcs/; revision=148025
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
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
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
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
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
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
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
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
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
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
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
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
Zoltan Varga [Thu, 10 Dec 2009 03:42:03 +0000 (03:42 -0000)]
Missed a file.
svn path=/trunk/mono/; revision=148000
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Tue, 8 Dec 2009 13:01:18 +0000 (13:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=147845
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
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
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
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
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
Carlos Alberto Cortez [Tue, 8 Dec 2009 05:08:05 +0000 (05:08 -0000)]
2009-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Ping.cs: Try to detect the path to the bin command, since different
Unix systems store it in different places.
Fixes #519272.
svn path=/trunk/mcs/; revision=147831
Chris Toshok [Tue, 8 Dec 2009 04:56:29 +0000 (04:56 -0000)]
in System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-12-07 Chris Toshok <toshok@ximian.com>
* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect. The jsonreader's
PushbackReader will autodetect.
(Detect): remove. a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless. This
breaks netflix's isostore file parsing.
* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case. for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
svn path=/trunk/mcs/; revision=147829
Geoff Norton [Mon, 7 Dec 2009 23:18:50 +0000 (23:18 -0000)]
2009-12-07 Geoff Norton <gnorton@novell.com>
* debugger-agent.c: Darwin can colesce signals, so we need to handle
the interrupt_count slightly differently. Native threads were never
marked as resumed.
svn path=/trunk/mono/; revision=147818
Mark Probst [Mon, 7 Dec 2009 22:45:15 +0000 (22:45 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Make sure section->data is aligned to 8 bytes by
possibly adding padding to sizeof (GCMemSection).
svn path=/trunk/mono/; revision=147811
Mark Probst [Mon, 7 Dec 2009 22:03:54 +0000 (22:03 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (mono_gc_wbarrier_nostore): Skip the remset if the
reference is not in the nursery.
svn path=/trunk/mono/; revision=147810
Zoltan Varga [Mon, 7 Dec 2009 21:09:23 +0000 (21:09 -0000)]
Fix the build.
svn path=/trunk/mono/; revision=147803
Zoltan Varga [Mon, 7 Dec 2009 21:07:08 +0000 (21:07 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Do the disable_llvm checks early
and avoid the LLVM compile pass if the checks fail.
svn path=/trunk/mono/; revision=147802
Zoltan Varga [Mon, 7 Dec 2009 20:59:03 +0000 (20:59 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini.c ssa.c abcremoval.c: Enable SSA for methods with exception clauses.
svn path=/trunk/mono/; revision=147801
Rodrigo Kumpera [Mon, 7 Dec 2009 18:53:13 +0000 (18:53 -0000)]
2009-12-07 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_from_typeref): Bounds check idx against the
assemblyref table.
svn path=/trunk/mono/; revision=147797
Marek Safar [Mon, 7 Dec 2009 17:44:45 +0000 (17:44 -0000)]
2009-12-07 Marek Safar <marek.safar@gmail.com>
*.cs: Moving to generics world.
svn path=/trunk/mcs/; revision=147787
Atsushi Eno [Mon, 7 Dec 2009 15:50:08 +0000 (15:50 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : fix regression; ServiceBehaviorAttribute
could be set explicitly null.
svn path=/trunk/mcs/; revision=147782
Atsushi Eno [Mon, 7 Dec 2009 15:40:13 +0000 (15:40 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : handle AddressFilterMode (.Any only yet).
* OperationInvokerHandler.cs : fix wrong IAsyncResult use.
svn path=/trunk/mcs/; revision=147781
Mark Probst [Mon, 7 Dec 2009 14:47:22 +0000 (14:47 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c, sgen-pinning.c: When pinning, make only one pass
through the potential roots, then sort the results and find the
pinned objects from there.
* Makefile.am: sgen-pinning.c added.
svn path=/trunk/mono/; revision=147779
Marek Safar [Mon, 7 Dec 2009 14:18:46 +0000 (14:18 -0000)]
2009-12-07 Marek Safar <marek.safar@gmail.com>
* Makefile: Add System.Core to basic.
svn path=/trunk/mcs/; revision=147776
Marek Safar [Mon, 7 Dec 2009 14:17:04 +0000 (14:17 -0000)]
Make ready for bootstrap.
svn path=/trunk/mcs/; revision=147775
Atsushi Eno [Mon, 7 Dec 2009 14:02:59 +0000 (14:02 -0000)]
2009-12-07 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : in AddBaseAddress(), use base_addresses
instead of Description. It could be called in InitializeDescription.
* InstanceBehavior.cs : allow nonpublic instance.
* DefaultOperationInvoker.cs : do use IsSynchronous correctly.
svn path=/trunk/mcs/; revision=147774
Chris Toshok [Mon, 7 Dec 2009 07:39:17 +0000 (07:39 -0000)]
in class/corlib/System.Collections.Generic/:
2009-12-06 Chris Toshok <toshok@ximian.com>
* KeyValuePair.cs: we need setters for Key and Value so they can
be set via reflection from
System.ServiceModel.System.Runtime.Serialization.Json.TypeMap.cs.
in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
2009-12-06 Chris Toshok <toshok@ximian.com>
* JsonSerializationReader.cs (DeserializeGenericCollection): this
is jb's (iirc) patch, actually. Types subclassing from
ICollection<T> need to be supported, and since it's an interface
the implementation might be explicit. So instead of groveling
around in the actual type, we need to dispatch through the
interface's method.
* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
properties, since KeyValuePair items must be able to write to Key
and Value properties.
* JsonReader.cs (ReadContent): for builtin values (null, true,
false), use TryReadString instead of individual ReadChar's, since
they aren't reversible if the string didn't match. In the default
case, if we're LameSilverlightLiseralParser, we need to push back
the current character onto the stream -- this is because for
netflix's AppConfig.json we were parsing "frameRatePolicy" as
"rameRatePolicy" (the 'f' was triggering the "false" parsing).
(class PushBackReader): add this class to unify all the pushing
back of characters we need to do. 1 character (JsonReader's old
"saved_char") isn't enough given that you could have a property
named, e.g., "falsifiable", and we'd need 4 characters worth of
pushback to recognize that correctly.
svn path=/trunk/mcs/; revision=147766
Mark Probst [Mon, 7 Dec 2009 02:55:39 +0000 (02:55 -0000)]
2009-12-07 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Record generic stores in specialized remset buffers.
svn path=/trunk/mono/; revision=147764
Zoltan Varga [Mon, 7 Dec 2009 01:57:45 +0000 (01:57 -0000)]
2009-12-07 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Put our methods/globals into the 'llvm.used' array, so the
LLVM optimizations don't try to remove them.
* aot-compiler.c (emit_llvm_file): Save the result of opt into a
different file so the original remains.
svn path=/trunk/mono/; revision=147763
Zoltan Varga [Sun, 6 Dec 2009 21:20:58 +0000 (21:20 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c mini.c: Fix alignment issues with SIMD vars.
svn path=/trunk/mono/; revision=147760
Zoltan Varga [Sun, 6 Dec 2009 19:30:21 +0000 (19:30 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Add basic SIMD support.
svn path=/trunk/mono/; revision=147759
Zoltan Varga [Sun, 6 Dec 2009 04:59:26 +0000 (04:59 -0000)]
2009-12-06 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_arm_exidx): Handle most descriptors created by gas.
svn path=/trunk/mono/; revision=147758
Mark Probst [Sun, 6 Dec 2009 03:45:13 +0000 (03:45 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Make pinned chunks the same size as major heap
sections, and align them as well, so that we can check whether an
object is in a pinned chunk or a major section in constant time.
svn path=/trunk/mono/; revision=147757
Geoff Norton [Sun, 6 Dec 2009 03:40:14 +0000 (03:40 -0000)]
new defines for eglib
svn path=/trunk/mono/; revision=147756
Mark Probst [Sun, 6 Dec 2009 03:13:08 +0000 (03:13 -0000)]
2009-12-06 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (build_nursery_fragments): Don't leak fragments.
svn path=/trunk/mono/; revision=147755