Sebastien Pouliot [Tue, 12 Jan 2010 13:07:44 +0000 (13:07 -0000)]
In Test/System.Net:
2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
* NetworkCredentialTest.cs: New. Unit tests.
In System.Net:
2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
* NetworkCredential.cs: Fix properties to never return null.
In .:
2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
* System_test.dll.sources: Add NetworkCredentialTest.cs to the tests
svn path=/trunk/mcs/; revision=149401
Marek Safar [Tue, 12 Jan 2010 10:44:01 +0000 (10:44 -0000)]
Forget to commit this one.
svn path=/trunk/mcs/; revision=149394
Atsushi Eno [Tue, 12 Jan 2010 09:53:15 +0000 (09:53 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XElementTest.cs : add extensive tests by Tiaan Geldenhuys, with
one sort of comment-out as stated in r149388.
svn path=/trunk/mcs/; revision=149392
Atsushi Eno [Tue, 12 Jan 2010 09:50:41 +0000 (09:50 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XUtil.cs : for DateTimeOffset, use XmlConvert to format string.
svn path=/trunk/mcs/; revision=149391
Atsushi Eno [Tue, 12 Jan 2010 09:32:13 +0000 (09:32 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XUtil.cs : format float and double values as round-trippable.
svn path=/trunk/mcs/; revision=149389
Atsushi Eno [Tue, 12 Jan 2010 09:14:24 +0000 (09:14 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvertTests.cs : added commented-out tests for the remaining
parse tests by Tiaan Geldenhuys for XLinq, with the reason why.
svn path=/trunk/mcs/; revision=149388
Atsushi Eno [Tue, 12 Jan 2010 08:54:06 +0000 (08:54 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : handle Infinity and -Infinity here due to the
commented reason.
svn path=/trunk/mcs/; revision=149387
Atsushi Eno [Tue, 12 Jan 2010 08:48:17 +0000 (08:48 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
* XmlConvertTests.cs : float parse should do the same. Fix NaN test.
svn path=/trunk/mcs/; revision=149386
Atsushi Eno [Tue, 12 Jan 2010 08:38:04 +0000 (08:38 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
with whitespace allowed.
* XmlConvertTests.cs : another double parse test for string with
spaces, for string constants such as NaN.
svn path=/trunk/mcs/; revision=149385
Atsushi Eno [Tue, 12 Jan 2010 08:24:06 +0000 (08:24 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* Double.cs : AllowLeading/TrailingWhite should also check those
surrounding string constants such as "NaN".
* DoubleTest.cs : add test for AllowLeading/TrailingSpace flags.
svn path=/trunk/mcs/; revision=149383
Atsushi Eno [Tue, 12 Jan 2010 07:40:31 +0000 (07:40 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
whitespaces.
* XUtil.cs : to create an XNode from an object, do not use ToString()
directly. Handle TimeSpan in xsd manner.
svn path=/trunk/mcs/; revision=149382
Atsushi Eno [Tue, 12 Jan 2010 07:30:39 +0000 (07:30 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XUtil.cs : to create an XNode from an object, do not use ToString()
directly. Handle TimeSpan in xsd manner.
svn path=/trunk/mcs/; revision=149381
Atsushi Eno [Tue, 12 Jan 2010 07:18:11 +0000 (07:18 -0000)]
forgot ChangeLog.
svn path=/trunk/mcs/; revision=149380
Miguel de Icaza [Tue, 12 Jan 2010 06:59:35 +0000 (06:59 -0000)]
_GNU_SOURCE is already defined by configure.ac
svn path=/trunk/mono/; revision=149379
Atsushi Eno [Tue, 12 Jan 2010 06:51:30 +0000 (06:51 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XUtil.cs, XElement.cs, XAttribute.cs : unlike XmlConvert, casts to
DateTime seem also support general conversion (parse) from strings.
svn path=/trunk/mcs/; revision=149378
Atsushi Eno [Tue, 12 Jan 2010 06:46:38 +0000 (06:46 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
fraction numbers.
svn path=/trunk/mcs/; revision=149377
Atsushi Eno [Tue, 12 Jan 2010 05:51:38 +0000 (05:51 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XUtil.cs, XElement.cs, XAttribute.cs : unlike XmlConvert, casts to
boolean seem also to handle case-insensitive true/false strings.
svn path=/trunk/mcs/; revision=149376
Atsushi Eno [Tue, 12 Jan 2010 05:43:23 +0000 (05:43 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvert.cs : fix some cosmetic compatibility bugs:
ArgumentException -> FormatException.
svn path=/trunk/mcs/; revision=149375
Miguel de Icaza [Tue, 12 Jan 2010 04:47:03 +0000 (04:47 -0000)]
2010-01-11 Miguel de Icaza <miguel@novell.com>
* valgrind.h, memcheck.h: Add guards to prevent the gcc features
from being included in non-GCC builds like the Windows build.
svn path=/trunk/mono/; revision=149374
Miguel de Icaza [Tue, 12 Jan 2010 04:43:08 +0000 (04:43 -0000)]
Update docs
svn path=/trunk/mono/; revision=149373
Zoltan Varga [Tue, 12 Jan 2010 04:30:41 +0000 (04:30 -0000)]
Fix eglib so it builds again.
svn path=/trunk/mono/; revision=149372
Zoltan Varga [Tue, 12 Jan 2010 04:30:35 +0000 (04:30 -0000)]
2010-01-12 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.c (emit_line_number_info): Fix the eglib case so it doesn't crash.
svn path=/trunk/mono/; revision=149371
Atsushi Eno [Tue, 12 Jan 2010 03:07:59 +0000 (03:07 -0000)]
2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlWriter.cs : handle a corner case for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
* XmlWriterTests.cs : added a corner case test for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
svn path=/trunk/mcs/; revision=149368
Zoltan Varga [Tue, 12 Jan 2010 01:52:08 +0000 (01:52 -0000)]
2010-01-12 Zoltan Varga <vargaz@gmail.com>
* profiles/basic.make (do-profile-check): Honor the V=1 flag.
svn path=/trunk/mcs/; revision=149364
Miguel de Icaza [Tue, 12 Jan 2010 01:11:02 +0000 (01:11 -0000)]
Add support for rendering the title
svn path=/trunk/mcs/; revision=149362
Carlos Alberto Cortez [Mon, 11 Jan 2010 23:42:22 +0000 (23:42 -0000)]
2010-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Int32Test.cs: Add test case for exponent support in the Parse
methods.
svn path=/trunk/mcs/; revision=149357
Carlos Alberto Cortez [Mon, 11 Jan 2010 23:41:19 +0000 (23:41 -0000)]
2010-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Int32.cs: Implement support for exponent in the Parse methods.
Fixes #542464.
svn path=/trunk/mcs/; revision=149356
Zoltan Varga [Mon, 11 Jan 2010 22:32:42 +0000 (22:32 -0000)]
2010-01-11 Zoltan Varga <vargaz@gmail.com>
* loader.c (mono_method_signature_checked): New internal function taking an
MonoError argument.
svn path=/trunk/mono/; revision=149349
Zoltan Varga [Mon, 11 Jan 2010 22:32:35 +0000 (22:32 -0000)]
2010-01-11 Zoltan Varga <vargaz@gmail.com>
* socket-io.c (AI_ADDRCONFIG): Applied patch from John Lightsey (jd@cpanel.net).
Fixes build on rh 7.3.
svn path=/trunk/mono/; revision=149348
Zoltan Varga [Mon, 11 Jan 2010 22:32:28 +0000 (22:32 -0000)]
2010-01-11 Zoltan Varga <vargaz@gmail.com>
* mono-profiler-logging.c (_ProfilerFileWriteBuffer): Use MONO_ZERO_LEN_ARRAY.
Fixes #569806.
svn path=/trunk/mono/; revision=149347
Gonzalo Paniagua Javier [Mon, 11 Jan 2010 21:08:48 +0000 (21:08 -0000)]
Use the pre-C99 printf formatting.
svn path=/trunk/mono/; revision=149340
Sebastien Pouliot [Mon, 11 Jan 2010 20:26:27 +0000 (20:26 -0000)]
In .:
2010-01-11 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Add InternalWebRequestStreamWrapper.cs
* Makefile: Add reference to System.Core (for Action<T>)
In System.Net:
2010-01-11 Sebastien Pouliot <sebastien@ximian.com>
* InternalWebRequestStreamWrapper.cs: New. Moved (and adapted)
from Moonlight System.Windows.Browser assembly.
* InternalWebResponseStreamWrapper.cs: New. Moved (and adapted)
from Moonlight System.Windows.Browser assembly.
* WebClient_2_1.cs: Remove custom delegate declaration (Gendarme's
AvoidDeclaringCustomDelegatesRule). Remove locking over a variable
(Gendarme's ReviewLockUsedOnlyForOperationsOnVariablesRule).
Avoid potential race with event handlers (Gendarme's
ProtectCallsToEventDelegatesRule). Implement OnWriteStreamClosed
* WebRequest_2_1.cs: Signature change from delegate to
Action<long,long,object>. Found using Gendarme's
AvoidDeclaringCustomDelegatesRule
svn path=/trunk/mcs/; revision=149327
Gonzalo Paniagua Javier [Mon, 11 Jan 2010 20:08:16 +0000 (20:08 -0000)]
No soft debug for PS3 yet.
svn path=/trunk/mono/; revision=149325
Gonzalo Paniagua Javier [Mon, 11 Jan 2010 19:47:57 +0000 (19:47 -0000)]
No valgrind on windows.
svn path=/trunk/mono/; revision=149322
Jonathan Pryor [Mon, 11 Jan 2010 13:53:22 +0000 (13:53 -0000)]
* Mono.Documentation/monodocs2slashdoc.cs: Fix NamespaceSummaries.xml
generation to look at the ns-NAMESPACE.xml files, not just
NAMESPACE.xml files.
svn path=/trunk/mcs/; revision=149304
Aaron Bockover [Mon, 11 Jan 2010 06:04:09 +0000 (06:04 -0000)]
2010-01-10 Aaron Bockover <abockover@novell.com>
* assembly.c (mono_set_rootdir): Support finding the mono paths on OS X
at runtime in the same way as on Windows, which yields a relocatable
Mono. Uses dyld's _NSGetExecutablePath and realpath to resolve the path
of the running mono process.
On TARGET_ARM, fallback () will always be executed.
svn path=/trunk/mono/; revision=149298
Zoltan Varga [Mon, 11 Jan 2010 04:09:18 +0000 (04:09 -0000)]
2010-01-11 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
an argument which matches any exception.
svn path=/trunk/mono/; revision=149296
Carlos Alberto Cortez [Mon, 11 Jan 2010 00:33:14 +0000 (00:33 -0000)]
2010-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripMenuItemTest: New test for the events related to the check
state.
svn path=/trunk/mcs/; revision=149290
Carlos Alberto Cortez [Mon, 11 Jan 2010 00:32:53 +0000 (00:32 -0000)]
2010-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
place and synchronize the events properly. Fixes a lack of
coordination between the events - which should be fired together.
svn path=/trunk/mcs/; revision=149289
Zoltan Varga [Sun, 10 Jan 2010 22:40:28 +0000 (22:40 -0000)]
2010-01-10 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
optimization if the called method is gshared and marshalbyref, since gshared
methods can' have wrappers. Fixes #569390.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=149286
Zoltan Varga [Sun, 10 Jan 2010 17:42:12 +0000 (17:42 -0000)]
2010-01-10 Zoltan Varga <vargaz@gmail.com>
* GC.cs: Add stubs for new net 4.0 methods.
svn path=/trunk/mcs/; revision=149284
Zoltan Varga [Sun, 10 Jan 2010 01:52:54 +0000 (01:52 -0000)]
2010-01-10 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_print_thread_dump_from_ctx): New helper function
callable from gdb.
svn path=/trunk/mono/; revision=149280
Atsushi Eno [Sun, 10 Jan 2010 01:15:03 +0000 (01:15 -0000)]
2010-01-10 Atsushi Enomoto <atsushi@ximian.com>
* SilverlightClientConfigLoader.cs : uncomment binary message
encoding element which was internal-only in SL2 but public in SL3.
svn path=/trunk/mcs/; revision=149278
Zoltan Varga [Sat, 9 Jan 2010 21:20:35 +0000 (21:20 -0000)]
2010-01-09 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
since it is not supported in win2000.
svn path=/trunk/mono/; revision=149274
Carlos Alberto Cortez [Sat, 9 Jan 2010 17:03:44 +0000 (17:03 -0000)]
2010-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TrackBarTest.cs: New test for events.
svn path=/trunk/mcs/; revision=149269
Carlos Alberto Cortez [Sat, 9 Jan 2010 16:58:04 +0000 (16:58 -0000)]
2010-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TrackBar.cs: Move our events code to a single method, allowing it to
optionally fire the Scroll event. This way we both avoid the
duplicated calls to OnScroll and also will be able to fire Scroll
*before* OnValueChanged in other places.
Fixes #568026.
svn path=/trunk/mcs/; revision=149268
Atsushi Eno [Sat, 9 Jan 2010 09:51:13 +0000 (09:51 -0000)]
2010-01-09 Atsushi Enomoto <atsushi@ximian.com>
* XElement.cs : add DateTimeOffset implicit operator.
Patch by Tiaan Geldenhuys.
svn path=/trunk/mcs/; revision=149265
Marek Habersack [Sat, 9 Jan 2010 00:29:25 +0000 (00:29 -0000)]
2010-01-09 Marek Habersack <mhabersack@novell.com>
* WebConfigurationManager.cs: GetSection properly handles looking
up and caching of <location> instances. Part of fix for bug
#568441
* WebConfigurationHost.cs: GetConfigPathFromLocationSubPath
calculatesthe path relative to the current config file path. Part
of fix for bug #568441
2010-01-09 Marek Habersack <mhabersack@novell.com>
* VirtualPathUtility.cs: small optimizations for GetDirectory
2010-01-09 Marek Habersack <mhabersack@novell.com>
* ConfigurationLocation.cs: trailing / characters are removed from
the path.
* Configuration.cs: instances created for locations inherit
ConfigPath from their containing document.
Host.GetConfigPathFromLocationSubPath must be called with current
instance's configPath, not LocationConfigPath.
Locations are sought for using paths relative to the current
instance's configPath, not to the root path.
All of the above is part of fix for bug #568441
svn path=/trunk/mcs/; revision=149262
Zoltan Varga [Fri, 8 Jan 2010 22:42:34 +0000 (22:42 -0000)]
Fix the previous change.
svn path=/trunk/mono/; revision=149259
Zoltan Varga [Fri, 8 Jan 2010 22:39:36 +0000 (22:39 -0000)]
2010-01-08 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (load_image): Add a SET_ERROR argument to set the loader
error if loading an assembly fails.
(mono_aot_plt_resolve): Return NULL instead of asserting if loading fails.
* mini-trampolines.c (mono_aot_plt_trampoline): Throw a pending loader error
if exists.
svn path=/trunk/mono/; revision=149258
Rodrigo Kumpera [Fri, 8 Jan 2010 21:14:21 +0000 (21:14 -0000)]
2010-01-08 Rodrigo Kumpera <rkumpera@novell.com>
* TypeTest.cs: Test for variant use of GetInterfaceMap.
svn path=/trunk/mcs/; revision=149256
Rodrigo Kumpera [Fri, 8 Jan 2010 20:47:15 +0000 (20:47 -0000)]
2010-01-08 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_Type_GetInterfaceMapData): This function is generics variance aware.
svn path=/trunk/mono/; revision=149252
Jonathan Pryor [Fri, 8 Jan 2010 20:16:26 +0000 (20:16 -0000)]
* library.make: Update $(MDOC_UP) to remove the net_1_ detection.
mdoc 2.4 moved to Cecil and stopped building monodocer1, rendering
the check meaningless, and current trunk doesn't build the 1.0
profile anyway, making the check more meaningless.
svn path=/trunk/mcs/; revision=149251
Zoltan Varga [Fri, 8 Jan 2010 19:04:43 +0000 (19:04 -0000)]
2010-01-08 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_exception_debug_info): Set jinfo->from_llvm for LLVM
compiled methods.
svn path=/trunk/mono/; revision=149249
Rodrigo Kumpera [Fri, 8 Jan 2010 19:04:24 +0000 (19:04 -0000)]
2010-01-08 Rodrigo Kumpera <rkumpera@novell.com>
* valid_iface_with_variant_constraint.cs: Constraints can be variant.
svn path=/trunk/mono/; revision=149248
Rodrigo Kumpera [Fri, 8 Jan 2010 19:04:16 +0000 (19:04 -0000)]
2010-01-08 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_is_assignable_from_slow): Support variant
generic delegates.
* class.c (mono_class_implement_interface_slow): Support types with
variant generic arguments.
svn path=/trunk/mono/; revision=149247
Rodrigo Kumpera [Fri, 8 Jan 2010 19:04:07 +0000 (19:04 -0000)]
2010-01-08 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c: Remove some code duplication.
svn path=/trunk/mono/; revision=149246
Zoltan Varga [Fri, 8 Jan 2010 17:41:40 +0000 (17:41 -0000)]
2010-01-08 Zoltan Varga <vargaz@gmail.com>
* mini-llvm-cpp.cpp: Remove the unused ctx variable.
svn path=/trunk/mono/; revision=149245
Miguel de Icaza [Fri, 8 Jan 2010 17:40:16 +0000 (17:40 -0000)]
Fix dis and monograph builds when using LLVM
svn path=/trunk/mono/; revision=149244
Jb Evain [Fri, 8 Jan 2010 14:00:05 +0000 (14:00 -0000)]
add test for 568989
svn path=/trunk/mcs/; revision=149241
Jb Evain [Fri, 8 Jan 2010 13:59:20 +0000 (13:59 -0000)]
2010-01-08 Jb Evain <jbevain@novell.com>
* Expression.cs (Call): properly deal with zero length array
of type arguments for non generic methods. Fixes #568989.
svn path=/trunk/mcs/; revision=149240
Atsushi Eno [Fri, 8 Jan 2010 10:40:46 +0000 (10:40 -0000)]
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
* ContractDescriptionGenerator.cs : fix GetCallbackContract() to
correctly retrieve ServiceContractAttribute from the service type,
not the callback type. This ended up to get the bug #567672 sample
working (but it will break at some stage as it involves some
non-implemented classes).
* EndpointDispatcher.cs, InputOrReplyRequestProcessor.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* ServiceProxyGenerator.cs, ServiceRuntimeChannel.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* CallbackBehaviorAttributeTest.cs : added callback example from
bug #567672.
svn path=/trunk/mcs/; revision=149226
Atsushi Eno [Fri, 8 Jan 2010 09:17:47 +0000 (09:17 -0000)]
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
* ClientRuntimeChannel.cs : to open duplex callback channel, it must
ensure to open the channel itself (not only its inner channel).
svn path=/trunk/mcs/; revision=149222
Atsushi Eno [Fri, 8 Jan 2010 04:28:58 +0000 (04:28 -0000)]
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
* TypeMap.cs : forward port r145077 (see change line for 2009-10-29).
svn path=/trunk/mcs/; revision=149212
Atsushi Eno [Fri, 8 Jan 2010 03:06:49 +0000 (03:06 -0000)]
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs, KnownTypeCollection.cs : differentiate
[DataContract(Namespace=null)] and [DataContract(Namespace="")].
Fixed bug #568763.
* XmlObjectSrializerTest.cs : added test for bug #568763.
svn path=/trunk/mcs/; revision=149210
Zoltan Varga [Fri, 8 Jan 2010 00:04:07 +0000 (00:04 -0000)]
2010-01-08 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Add some comments about why aot+clauses
is not supported yet.
* unwind.c (DW_EH_PE_absptr): Add more DW_EH_PE_ constants.
svn path=/trunk/mono/; revision=149205
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:55 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* object.c: Update docs.
svn path=/trunk/mono/; revision=149199
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:46 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* method-to-ir.c: All types with variant arguments must fallback to the
slow path. This makes cast of variant delegates work.
* mini-trampolines.c (mono_get_vcall_slot_addr): Add new variance_used out
argument that is set to TRUE is the returned vtable slot is for a variant
interface. Changed a g_print + g_assert_not_reached to a g_error.
* mini-trampilines.c (common_call_trampoline): Handle variant interfaces in
a similar fashion of generic virtual methods.
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* object.c (add_imt_builder_entry): Improve DEBUG_IMT spew.
* object.c (build_imt_slots): Interfaces with variant generic arguments use the
fallback trampoline as well.
* class.c (mono_class_interface_offset_with_variance): Add new non_exact_match
out argument that is set to TRUE if the match was direct.
* class.c (mono_class_is_assignable_from): Delegates require variance testing as well.
* class-internal.h: Update prototype of mono_class_interface_offset_with_variance.
svn path=/trunk/mono/; revision=149198
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:37 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* helpers.c (mono_disassemble_code): Fix a g_hash_table warning
when cfg is null.
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Convert a given
method using a variance aware function.
* mini-x86.c: Add support for dumping IMT thunks if DEBUG_IMT is defined.
svn path=/trunk/mono/; revision=149197
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:28 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* class.c: Add mono_class_interface_offset_with_variance function that does same
as mono_class_interface_offset but takes variance into account.
* class-internal.h: Export mono_class_interface_offset_with_variance.
* object.c: Fix and improve DEBUG_IMT. Added an assert for IMT thunk building.
svn path=/trunk/mono/; revision=149196
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:20 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* method-to-ir.c (mono_method_to_ir): Casts to variant interfaces
do an icall for now.
svn path=/trunk/mono/; revision=149195
Rodrigo Kumpera [Thu, 7 Jan 2010 21:58:11 +0000 (21:58 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* object.c:
* icall.c:
* class.c: Add some FIXME for due to variant generic arguments.
object.c (mono_object_isinst_mbyref): Interfaces with variant generic arguments
can't use the simple bitfield check, so call mono_class_is_assignable_from if
the bitfield check fails.
svn path=/trunk/mono/; revision=149194
Rodrigo Kumpera [Thu, 7 Jan 2010 21:57:56 +0000 (21:57 -0000)]
2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_is_assignable_from): Rework the generics variance code
to be easier to read and fix bugs in the case a non generic type implements a variant
interface.
* class.c (mono_class_has_variant_generic_params): Make non static.
* class-internals.h: Export mono_class_has_variant_generic_params as part of
the private API.
svn path=/trunk/mono/; revision=149193
Gonzalo Paniagua Javier [Thu, 7 Jan 2010 20:32:12 +0000 (20:32 -0000)]
2010-01-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
* assembly.c: fix MONO_PATH debug output.
svn path=/trunk/mono/; revision=149190
Sebastien Pouliot [Thu, 7 Jan 2010 20:21:17 +0000 (20:21 -0000)]
2010-01-07 Sebastien Pouliot <sebastien@ximian.com>
* Consts.cs.in: Update FX version for SL3 latest released version
svn path=/trunk/mcs/; revision=149187
Marek Safar [Thu, 7 Jan 2010 17:45:05 +0000 (17:45 -0000)]
2010-01-07 Marek Safar <marek.safar@gmail.com>
* method.cs: Move all method based declarations into a new file.
svn path=/trunk/mcs/; revision=149181
Marek Safar [Thu, 7 Jan 2010 16:43:19 +0000 (16:43 -0000)]
2010-01-07 Marek Safar <marek.safar@gmail.com>
* *.cs: Extract field specification.
svn path=/trunk/mcs/; revision=149179
Jb Evain [Thu, 7 Jan 2010 16:19:04 +0000 (16:19 -0000)]
in System:
2010-01-07 Jb Evain <jbevain@novell.com>
* MonoType.cs (.MemberType): return the proper member type
for generic parameters.
in Test/System/
2010-01-07 Jb Evain <jbevain@novell.com>
* TypeTest.cs: add test for the MemberType of
a generic parameter.
svn path=/trunk/mcs/; revision=149175
Sebastien Pouliot [Thu, 7 Jan 2010 15:22:08 +0000 (15:22 -0000)]
In System:
2010-01-07 Sebastien Pouliot <sebastien@ximian.com>
* Convert.cs: Fix line endings in ToBase64String (bug #568778)
and also the default line length. Code changed to not require
a BinaryReader over a MemoryStream to reduce memory requirements.
In Test/System:
2010-01-07 Sebastien Pouliot <sebastien@ximian.com>
* ConvertTest.cs: Add test case for #568778 and the default
line length.
In System.Security.Cryptography:
2010-01-07 Sebastien Pouliot <sebastien@ximian.com>
* ToBase64Transform.cs: Static-ify some methods to make it easier
to use from System.Convert
svn path=/trunk/mcs/; revision=149171
Rodrigo Kumpera [Thu, 7 Jan 2010 12:13:41 +0000 (12:13 -0000)]
2010-01-06 Rodrigo Kumpera <rkumpera@novell.com>
* scripts/Makefile.am: Add peverify script.
* scripts/peverify.in: Added.
svn path=/trunk/mono/; revision=149167
Atsushi Eno [Thu, 7 Jan 2010 10:31:54 +0000 (10:31 -0000)]
2010-01-07 Atsushi Enomoto <atsushi@ximian.com>
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
does not happen when communicating with .NET client but happens with
mono). Seealso FIXME comment.
* TcpDuplexSessionChannel.cs : do not try to close session when it
failed to read sized message. The connection is already dead.
Fixed bug #567949.
svn path=/trunk/mcs/; revision=149166
Atsushi Eno [Thu, 7 Jan 2010 08:27:47 +0000 (08:27 -0000)]
2010-01-07 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs :
Write EndRecord only when the connection is available.
Remove hack - do let ChannelDispatcher close the channel.
* TcpBinaryFrameManager.cs :
The socket may be disconnected when trying to read a sized message,
so check some socket exceptions.
In case the client silently shuts down without EndRecord and
reconnects to the server with preamble while expecting a sized
message (which is so lame, but that's what .NET often does), refresh
preamble and continue.
This fixes some cases of bug #567949 but not all.
svn path=/trunk/mcs/; revision=149163
Atsushi Eno [Thu, 7 Jan 2010 08:25:51 +0000 (08:25 -0000)]
2010-01-07 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : make sure to unlock channel acceptor wait
handle when the delegated method resulted in an error.
svn path=/trunk/mcs/; revision=149162
Zoltan Varga [Thu, 7 Jan 2010 07:29:43 +0000 (07:29 -0000)]
2010-01-07 Zoltan Varga <vargaz@gmail.com>
* TermInfoDriver.cs (GetCursorPosition): Avoid waiting 1 sec here.
svn path=/trunk/mcs/; revision=149161
Zoltan Varga [Thu, 7 Jan 2010 07:18:23 +0000 (07:18 -0000)]
2010-01-07 Zoltan Varga <vargaz@gmail.com>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix #564695.
If LLVM decides to set the code model to Large, reset it to Default.
svn path=/trunk/mono/; revision=149159
Miguel de Icaza [Thu, 7 Jan 2010 06:55:36 +0000 (06:55 -0000)]
Fix
svn path=/trunk/mono/; revision=149158
Atsushi Eno [Thu, 7 Jan 2010 04:50:48 +0000 (04:50 -0000)]
2010-01-07 Astushi Enomoto <atsushi@ximian.com>
* System.ServiceModel_test.dll.sources : ended up to remove
*all* mannerless serialization tests.
svn path=/trunk/mcs/; revision=149156
Atsushi Eno [Thu, 7 Jan 2010 04:50:06 +0000 (04:50 -0000)]
2010-01-07 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBaseTest.cs : another mannerless test here.
svn path=/trunk/mcs/; revision=149155
Zoltan Varga [Thu, 7 Jan 2010 03:02:02 +0000 (03:02 -0000)]
2010-01-07 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (mono_xdebug_flush): Export it so it is present in
stripped binaries as well.
svn path=/trunk/mono/; revision=149153
Zoltan Varga [Thu, 7 Jan 2010 01:46:02 +0000 (01:46 -0000)]
2010-01-07 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (common_call_trampoline): Add an rgctx trampoline if a shared
method is called from LLVM compiled code, as that code can't pass an rgctx arg.
* mini-llvm.c (mono_llvm_emit_method): Enable calls to methods needing an rgctx
reg.
svn path=/trunk/mono/; revision=149152
Jonathan Pryor [Wed, 6 Jan 2010 21:27:05 +0000 (21:27 -0000)]
* Mono.Options/Options.cs: "Code sharing": Use StringCodea.WrappedLines()
from Cadenza for the line wrapping algorithm. (Only fitting as
WrappedLines() came from Mono.Options in the first place!)
Patch thanks to Federico Di Gregorio.
* Test/Mono.Options/OptionSetTest.cs: Update WriteOptionDescriptions()
for new, better-defined line-wrapping semantics.
svn path=/trunk/mcs/; revision=149144
Gonzalo Paniagua Javier [Wed, 6 Jan 2010 19:00:19 +0000 (19:00 -0000)]
Disable the soft-debugger for cross-compilers.
svn path=/trunk/mono/; revision=149141
Zoltan Varga [Wed, 6 Jan 2010 14:40:19 +0000 (14:40 -0000)]
2010-01-06 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Extract the JIT info creation code into a
separate function.
svn path=/trunk/mono/; revision=149126
Zoltan Varga [Wed, 6 Jan 2010 14:30:35 +0000 (14:30 -0000)]
2010-01-06 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Pass the info in MonoExceptionClause
as the type info to llvm.eh.selector.
(exception_cb): Use the type info for filling out some fields of
MonoJitExceptionInfo like the flags and the exception class. This is needed
because the LLVM produced exception handling clauses might not match the original
IL clauses, i.e. there might be more than one LLVM clause for one IL clause.
* unwind.c (mono_unwind_decode_fde): Extract the LSDA decoding code into a
separate function. Add an extra argument which returns the type infos
corresponding to the exception clauses.
* mini.c (mini_method_compile): Enable LLVM compilation of methods having
exception handling clauses.
svn path=/trunk/mono/; revision=149125
Rodrigo B. de Oliveira [Wed, 6 Jan 2010 14:03:54 +0000 (14:03 -0000)]
support for compiling Mono.Cecil without any references to System.dll
svn path=/trunk/mcs/; revision=149124
Jb Evain [Wed, 6 Jan 2010 13:30:11 +0000 (13:30 -0000)]
2010-12-06 Jb Evain <jbevain@novell.com>
* Descriptors/mscorlib.xml: optimize descriptor.
svn path=/trunk/mcs/; revision=149121
Marek Habersack [Wed, 6 Jan 2010 10:46:45 +0000 (10:46 -0000)]
2010-01-06 Marek Habersack <mhabersack@novell.com>
* CacheItemPriorityQueue.cs: make sure lastParent is never null if
root is not null in Enqueue. Possible fix for bug #567869
svn path=/trunk/mcs/; revision=149118
Marek Habersack [Wed, 6 Jan 2010 09:29:40 +0000 (09:29 -0000)]
2010-01-06 Marek Habersack <mhabersack@novell.com>
* BuildManagerDirectoryBuilder.cs: AddVirtualDir properly caches
processed directories to prevent endless loops. Fixes bug #568366
Patch from Hubert FONGARNAND <informatique.internet@fiducial.fr>,
thanks!
svn path=/trunk/mcs/; revision=149116
Atsushi Eno [Wed, 6 Jan 2010 04:59:41 +0000 (04:59 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* culture-info-table.h : regenerated.
svn path=/trunk/mono/; revision=149107
Atsushi Eno [Wed, 6 Jan 2010 04:58:51 +0000 (04:58 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs : support FirstDayOfWeek. Fixed bug #567944.
Patch by Jose Antonio Sanchez Lazaro.
svn path=/trunk/mono/; revision=149106