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
Atsushi Eno [Wed, 6 Jan 2010 04:02:02 +0000 (04:02 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* SerializationCodeGenerator.cs : enum value identifiers should be
escaped with '@'. Fixed bug #566370.
* XmlSerializerTests.cs : added test for #566370.
svn path=/trunk/mcs/; revision=149104
Atsushi Eno [Wed, 6 Jan 2010 03:39:07 +0000 (03:39 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* BinaryMessageEncoder.cs : enable workaround buffering only when
the argument stream does *not* support seek. This fixes some
net.tcp connection problem.
* BinaryMessageEncodingBindingElementTest.cs : added test for
connection-based tests for both TCP and HTTP (they give difference:
see BinaryMessageEncoder.cs change too).
svn path=/trunk/mcs/; revision=149103
Atsushi Eno [Wed, 6 Jan 2010 03:36:02 +0000 (03:36 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* NetTcpBindingTest.cs : enable some tests and added streamed mode
test. Commented on these changes.
svn path=/trunk/mcs/; revision=149102
Atsushi Eno [Wed, 6 Jan 2010 03:31:29 +0000 (03:31 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* ChannelFactory_1Test.cs : ignore another couple of blocking tests.
svn path=/trunk/mcs/; revision=149101
Atsushi Eno [Wed, 6 Jan 2010 03:30:08 +0000 (03:30 -0000)]
2010-01-06 Astushi Enomoto <atsushi@ximian.com>
* System.ServiceModel_test.dll.sources : ended up to remove
mannerless tests that block other tests.
svn path=/trunk/mcs/; revision=149100
Atsushi Eno [Wed, 6 Jan 2010 03:21:18 +0000 (03:21 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDebugBehaviorTest.cs : make sure to close hosts.
svn path=/trunk/mcs/; revision=149099
Atsushi Eno [Wed, 6 Jan 2010 03:20:02 +0000 (03:20 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcherTest.cs : format message correctly.
svn path=/trunk/mcs/; revision=149098
Atsushi Eno [Wed, 6 Jan 2010 03:17:29 +0000 (03:17 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* TestFixtureBase.cs : try to fix this mannerless set of tests that
leaves comm objects open.
svn path=/trunk/mcs/; revision=149097
Atsushi Eno [Wed, 6 Jan 2010 00:46:05 +0000 (00:46 -0000)]
2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : added System.ServiceModel.Routing (4.0).
svn path=/trunk/mcs/; revision=149096
Marek Habersack [Tue, 5 Jan 2010 23:13:06 +0000 (23:13 -0000)]
2010-01-05 Marek Habersack <mhabersack@novell.com>
* PageCompiler.cs: improved CreatePropertyAssign, it doesn't
always use CodePrimitiveExpression now.
svn path=/trunk/mcs/; revision=149089
Rodrigo Kumpera [Tue, 5 Jan 2010 22:12:42 +0000 (22:12 -0000)]
2010-01-05 Rodrigo Kumpera <rkumpera@novell.com>
* ParameterInfo.cs (DefaultProperty): Fix small typo.
svn path=/trunk/mcs/; revision=149087
Rodrigo Kumpera [Tue, 5 Jan 2010 16:44:55 +0000 (16:44 -0000)]
2010-01-05 Rodrigo Kumpera <rkumpera@novell.com>
* ParameterInfo.cs (DefaultProperty): Add support for DateTime defaults.
* ParameterInfo.cs: Implements RawDefaultProperty.
2010-01-05 Rodrigo Kumpera <rkumpera@novell.com>
* DateTimeConstantAttribute.cs: Add internal Ticks property.
2010-01-05 Rodrigo Kumpera <rkumpera@novell.com>
* DateTimeConstantAttribute.cs: Add internal Ticks property.
svn path=/trunk/mcs/; revision=149083
Marek Habersack [Tue, 5 Jan 2010 12:13:22 +0000 (12:13 -0000)]
2010-01-05 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: in GenerateAssembly, if compilation fails for
the requested path and exception thrown is of type
CompilationException, do not wrap it in HttpException, just
rethrow.
* AppResourcesCompiler.cs: the culture files dictionary is
case-insensitive now. Otherwise culture files with culture name
cased differently will cause overlapped i/o on response files
while building satellite assemblies and, in effect, compilation
will fail.
svn path=/trunk/mcs/; revision=149077
Carlos Alberto Cortez [Tue, 5 Jan 2010 11:38:11 +0000 (11:38 -0000)]
2010-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* RadioButton.cs: When drawing, if Appearance is Button use the old
normal routine in the theme engine, instead of using the one in 2.0,
since this last one doesn't support proper rendering of the control as
a button.
Fixes #567904.
svn path=/trunk/mcs/; revision=149073
Zoltan Varga [Mon, 4 Jan 2010 22:11:27 +0000 (22:11 -0000)]
2010-01-04 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
mono_method_get_vtable_slot () instead of accessing imt_method->slot directly,
to fix an AOT case.
svn path=/trunk/mono/; revision=149056
Rodrigo Kumpera [Mon, 4 Jan 2010 21:39:59 +0000 (21:39 -0000)]
2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
types that are meant to not have a parent.
2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* mini.c (mono_compile_is_broken): Skip methods from serialization's
internal assembly.
svn path=/trunk/mono/; revision=149053
Zoltan Varga [Mon, 4 Jan 2010 21:08:01 +0000 (21:08 -0000)]
2010-01-04 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_runtime_invoke): Make a copy of the signature
from the image mempool, so it is not leaked.
svn path=/trunk/mono/; revision=149052
Zoltan Varga [Mon, 4 Jan 2010 21:07:55 +0000 (21:07 -0000)]
2010-01-04 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Fix a few memory leaks introduced by the
llvm code.
svn path=/trunk/mono/; revision=149051
Zoltan Varga [Mon, 4 Jan 2010 19:53:58 +0000 (19:53 -0000)]
2010-01-04 Zoltan Varga <vargaz@gmail.com>
* metadata-internals.h (_MonoImage): Remove unused generic_class_cache field.
svn path=/trunk/mono/; revision=149047
Rodrigo Kumpera [Mon, 4 Jan 2010 19:50:56 +0000 (19:50 -0000)]
2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* mini.c (mini_method_compile): Verify the method before calling
mono_compile_create_vars as this might crash since it uses method
information.
Fixes #560196.
svn path=/trunk/mono/; revision=149045
Rodrigo Kumpera [Mon, 4 Jan 2010 19:50:47 +0000 (19:50 -0000)]
2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* pedump.c: Run code verifier even if image verification fails
due to a failed type we. This allows more errors to be shown.
svn path=/trunk/mono/; revision=149044
Sebastien Pouliot [Mon, 4 Jan 2010 18:45:47 +0000 (18:45 -0000)]
2010-01-04 Sebastien Pouliot <sebastien@ximian.com>
* verify.c (verify_valuetype_layout_with_target): Fix case
that can lead to infinite recursion. Fix bug #567861
svn path=/trunk/mono/; revision=149042
Rodrigo Kumpera [Mon, 4 Jan 2010 17:01:29 +0000 (17:01 -0000)]
2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (count_virtual_methods): Remove the assert and now
fail properly.
* class.c (setup_interface_offsets): This can fail now.
* class.c (mono_class_setup_vtable_general): Check for parent vtable
errors. Check setup_interface_offsets errors.
* class.c (setup_interface_offsets): Simplify the return error logic
and remove class_init_ok.
Fixes #560327.
svn path=/trunk/mono/; revision=149031
Rodrigo Kumpera [Mon, 4 Jan 2010 15:58:34 +0000 (15:58 -0000)]
2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_init): Do class verification at the beginning. Add
some asserts to avoid tripping into invalid memory.
* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
g_error and a decent message.
* verify.c (mono_verifier_verify_class): Verify for invalid super type.
Fixes #567548.
svn path=/trunk/mono/; revision=149028
Zoltan Varga [Mon, 4 Jan 2010 15:55:30 +0000 (15:55 -0000)]
2010-01-04 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir): Avoid calling mono_class_vtable () in
one case if AOTing, since the class might not be a concrete class.
svn path=/trunk/mono/; revision=149027
Jonathan Pryor [Mon, 4 Jan 2010 13:14:51 +0000 (13:14 -0000)]
* Makefile: Ensure that Test/* files are distributed (so that
'make check' works on tarball builds). Partial fix for #564987.
svn path=/trunk/mcs/; revision=149023
Jb Evain [Mon, 4 Jan 2010 12:53:59 +0000 (12:53 -0000)]
2010-01-04 Jb Evain <jbevain@novell.com>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
Do not include in both mscorlib and System.Core for a NET_2_1 profile.
svn path=/trunk/mcs/; revision=149020
Carlos Alberto Cortez [Mon, 4 Jan 2010 11:42:54 +0000 (11:42 -0000)]
2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
text of the group box if it is disabled.
Fixes #567847.
svn path=/trunk/mcs/; revision=149010
Carlos Alberto Cortez [Mon, 4 Jan 2010 03:46:42 +0000 (03:46 -0000)]
2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MemoryStreamTest.cs: Activate ZeroingOnExpandTest as we have fixed
this issue.
svn path=/trunk/mcs/; revision=148996
Carlos Alberto Cortez [Mon, 4 Jan 2010 03:46:31 +0000 (03:46 -0000)]
2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
it. Instead just save the related information for it and do it when
Length grows and touchs that dirty region. Refactor the code where
needed to avoid duplication as well.
Fixes #327053.
svn path=/trunk/mcs/; revision=148995
Zoltan Varga [Sun, 3 Jan 2010 21:23:30 +0000 (21:23 -0000)]
2010-01-03 Zoltan Varga <vargaz@gmail.com>
* mini-codegen.c abcremoval.c: Remove the duplicate g_slist_append_mempool
functions which are now defined in mempool-internals.h.
svn path=/trunk/mono/; revision=148994
Zoltan Varga [Sun, 3 Jan 2010 21:23:24 +0000 (21:23 -0000)]
2010-01-03 Zoltan Varga <vargaz@gmail.com>
* mempool-internals.h (g_list_prepend_mempool): Define this and related functions
as inline functions instead of defining them in mempool.c.
svn path=/trunk/mono/; revision=148993
Zoltan Varga [Sun, 3 Jan 2010 19:04:24 +0000 (19:04 -0000)]
2010-01-03 Zoltan Varga <vargaz@gmail.com>
* metadata-internals.h (MonoImageSet): New structure representing a set of
MonoImages, which own a collection of generic instances.
* metadata.c: Get rid of the global generic caches, instead assign each generic
instance to the image set which consists of all the images referenced by the
instance. This greatly speeds up mono_metadata_clean_for_image (), and allows
the memory used by generic instances to be allocated from a per image-set mempool
later.
svn path=/trunk/mono/; revision=148992
Zoltan Varga [Sun, 3 Jan 2010 16:48:33 +0000 (16:48 -0000)]
2010-01-03 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_runtime_invoke): Fix a memory leak.
svn path=/trunk/mono/; revision=148989
Zoltan Varga [Sun, 3 Jan 2010 16:37:39 +0000 (16:37 -0000)]
2010-01-03 Zoltan Varga <vargaz@gmail.com>
* appdomain.c (zero_static_data): Fix a warning.
svn path=/trunk/mono/; revision=148988