Jb Evain [Mon, 16 Feb 2009 16:02:59 +0000 (16:02 -0000)]
revert 127010 until Jeremie polishes and fixes the integration
svn path=/trunk/mcs/; revision=127046
Marek Safar [Mon, 16 Feb 2009 15:34:52 +0000 (15:34 -0000)]
New test.
svn path=/trunk/mcs/; revision=127042
Marek Safar [Mon, 16 Feb 2009 15:33:01 +0000 (15:33 -0000)]
2009-02-16 Marek Safar <marek.safar@gmail.com>
A fix for bug #475965
* generics.cs: Check generic parameter type after extracting from
Expression<T>.
svn path=/trunk/mcs/; revision=127040
Jb Evain [Mon, 16 Feb 2009 15:28:14 +0000 (15:28 -0000)]
2009-02-16 Jb Evain <jbevain@novell.com>
* Regex.cs: on the NET_2_1 profile, always use the old engine for now.
svn path=/trunk/mcs/; revision=127039
Zoltan Varga [Mon, 16 Feb 2009 15:24:24 +0000 (15:24 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* mini.c method-to-ir.c mini-trampolines.c aot-runtime.c: Remove locking
around the mono_domain_alloc calls, it is now done by the functions
themselves.
svn path=/trunk/mono/; revision=127038
Zoltan Varga [Mon, 16 Feb 2009 15:23:21 +0000 (15:23 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* domain.c (mono_domain_alloc): Add locking so the caller doesn't have to.
(mono_domain_alloc0): Ditto.
svn path=/trunk/mono/; revision=127037
Bill Holmes [Mon, 16 Feb 2009 15:04:36 +0000 (15:04 -0000)]
2009-02-16 Bill Holmes <billholmes54@gmail.com>
* libmono.vcproj : Adding metadata/cominterop and
mini/dwarfwriter to the project.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127033
Rodrigo Kumpera [Mon, 16 Feb 2009 14:44:32 +0000 (14:44 -0000)]
In .:
* loader.c (method_from_memberref): Don't abort if the array
method is not found. A regular loader failure is more informative
and correct.
Fixes #474271.
2009-02-16 Rodrigo Kumpera <rkumpera@novell.com>
svn path=/trunk/mono/; revision=127032
Zoltan Varga [Mon, 16 Feb 2009 14:32:46 +0000 (14:32 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (compile_method): Only add wrappers referenced by
the method if compiling with full AOT.
(mono_compile_assembly): Error out if --aot=full is specified on
a platform where it is not supported.
svn path=/trunk/mono/; revision=127031
Marek Safar [Mon, 16 Feb 2009 13:12:13 +0000 (13:12 -0000)]
New tests.
svn path=/trunk/mcs/; revision=127023
Marek Safar [Mon, 16 Feb 2009 13:11:58 +0000 (13:11 -0000)]
New tests.
svn path=/trunk/mcs/; revision=127022
Marek Safar [Mon, 16 Feb 2009 13:11:43 +0000 (13:11 -0000)]
2009-02-16 Marek Safar <marek.safar@gmail.com>
A fix for bug #475823
* convert.cs, expression.cs, literal.cs, ecore.cs, cfold.cs: Add
typed-null support.
svn path=/trunk/mcs/; revision=127021
Rodrigo Kumpera [Mon, 16 Feb 2009 13:07:45 +0000 (13:07 -0000)]
In .:
2009-02-16 Rodrigo Kumpera <rkumpera@novell.com>
*loader.c: Guard MonoImage::method_cache/methodref_cache
using the image lock instead of the loader lock.
* metadata.h: Add comments about which fields are protected by
the image lock.
svn path=/trunk/mono/; revision=127020
Jérémie Laval [Mon, 16 Feb 2009 10:50:43 +0000 (10:50 -0000)]
* Initial commit of ParallelFx (corlib part only, no PLinq)
svn path=/trunk/mcs/; revision=127010
Atsushi Eno [Mon, 16 Feb 2009 05:45:36 +0000 (05:45 -0000)]
2009-02-16 Atsushi Enomoto <atsushi@ximian.com>
* WebConnectionStream.cs : use request only after it is set.
svn path=/trunk/mcs/; revision=126994
Zoltan Varga [Mon, 16 Feb 2009 04:29:42 +0000 (04:29 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_trampolines): Emit generic class init trampolines
on ARM too.
* tramp-arm.c (mono_arch_create_generic_class_init_trampoline_full): Add
AOT support.
* aot-runtime.c (load_named_code): Handle
mono_arm_throw_exception_by_token.
* mini-arm.h: Add declaration of mono_arm_throw_exception_by_token.
* image-writer.c (asm_writer_emit_pointer_unaligned): Make this really
unaligned.
svn path=/trunk/mono/; revision=126989
Zoltan Varga [Mon, 16 Feb 2009 04:26:16 +0000 (04:26 -0000)]
Fix the previous change.
svn path=/trunk/mono/; revision=126988
Zoltan Varga [Mon, 16 Feb 2009 04:22:17 +0000 (04:22 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* appdomain.c (mono_set_private_bin_path_from_config): Fix a warning.
svn path=/trunk/mono/; revision=126987
Zoltan Varga [Mon, 16 Feb 2009 04:21:31 +0000 (04:21 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* generic-sharing.c (mono_method_construct_object_context): Remove the
wrapper_type == NONE assert, it is not needed.
svn path=/trunk/mono/; revision=126986
Zoltan Varga [Mon, 16 Feb 2009 04:07:24 +0000 (04:07 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (fullaotcheck): Exit if a test fails.
svn path=/trunk/mono/; revision=126985
Zoltan Varga [Mon, 16 Feb 2009 03:58:21 +0000 (03:58 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (mono_compile_assembly): Use the ASM writer for full aot
on ARM.
(mono_compile_assembly): Handle the assembler failing.
* image-writer.c (asm_writer_emit_section_change): Handle ARM gas not
accepting subsections of .bss.
svn path=/trunk/mono/; revision=126984
Zoltan Varga [Mon, 16 Feb 2009 03:28:44 +0000 (03:28 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* ssa.c (visit_inst): Fix a crash if the instruction following a switch
was optimized away.
svn path=/trunk/mono/; revision=126983
Zoltan Varga [Mon, 16 Feb 2009 01:14:13 +0000 (01:14 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Remove some unused includes.
svn path=/trunk/mono/; revision=126982
Zoltan Varga [Mon, 16 Feb 2009 01:12:08 +0000 (01:12 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (MonoAotCompile): Remove some unused fields which are
now in MonoImageWriter.
svn path=/trunk/mono/; revision=126981
Zoltan Varga [Mon, 16 Feb 2009 01:04:25 +0000 (01:04 -0000)]
2009-02-16 Zoltan Varga <vargaz@gmail.com>
* mini-x86.c (mono_arch_get_vcall_slot): Handle yet another
code sequence which matches a non-virtual call. Fixes #472654.
svn path=/trunk/mono/; revision=126980
Zoltan Varga [Sun, 15 Feb 2009 22:26:33 +0000 (22:26 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Use xdebug_lock ()/unlock () macros for locking in the
xdebug code.
svn path=/trunk/mono/; revision=126964
Zoltan Varga [Sun, 15 Feb 2009 22:24:38 +0000 (22:24 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Make the xdebug code not depend on the AOT compiler,
use the image/dwarf writers directly.
svn path=/trunk/mono/; revision=126963
Zoltan Varga [Sun, 15 Feb 2009 21:53:03 +0000 (21:53 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* image-writer.c (struct _MonoImageWriter): Remove the unused 'image'
field.
* aot-compiler.c (MonoAotCompile): Remove fields which are now in
MonoDwarfWriter.
svn path=/trunk/mono/; revision=126962
Zoltan Varga [Sun, 15 Feb 2009 21:50:54 +0000 (21:50 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* image-writer.h: Fix some typos.
svn path=/trunk/mono/; revision=126961
Zoltan Varga [Sun, 15 Feb 2009 21:50:36 +0000 (21:50 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.h dwarfwriter.c: New files.
* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.
svn path=/trunk/mono/; revision=126960
Zoltan Varga [Sun, 15 Feb 2009 21:49:47 +0000 (21:49 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.h dwarfwriter.c: New files.
* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.
svn path=/trunk/mono/; revision=126959
Zoltan Varga [Sun, 15 Feb 2009 20:36:54 +0000 (20:36 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* reflection.c (clear_cached_object): New helper function.
(mono_method_clear_object): New function to clear the cached reflection
objects for a dynamic method.
* object.c (mono_runtime_free_method): Call mono_method_clear_object ().
Partly fixes # 463323.
svn path=/trunk/mono/; revision=126958
Jonathan Chambers [Sun, 15 Feb 2009 20:31:46 +0000 (20:31 -0000)]
2009-02-15 Jonathan Chambers <joncham@gmail.com>
* Microsoft.Build.Engine_test.dll.sources: Add BuildChooseTest.cs.
svn path=/trunk/mcs/; revision=126957
Zoltan Varga [Sun, 15 Feb 2009 18:11:20 +0000 (18:11 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Add a 'out_unwind_ops'
argument to return unwind info.
* tramp-arm.c (mono_arch_create_trampoline_code_full): Ditto.
* aot-compiler.c: Emit unwind info for trampolines in full-aot mode.
svn path=/trunk/mono/; revision=126953
Zoltan Varga [Sun, 15 Feb 2009 02:56:25 +0000 (02:56 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_method_ref): Add a case for
MONO_AOT_METHODREF_WRAPPER_NAME.
svn path=/trunk/mono/; revision=126951
Zoltan Varga [Sun, 15 Feb 2009 02:48:39 +0000 (02:48 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* mini.h: Add constants for the magic numbers used in encode_method_ref ()
for AOT.
* aot-compiler.c (encode_method_ref): Use the new constants.
* aot-runtime.c (decode_method_ref): Ditto.
svn path=/trunk/mono/; revision=126950
Zoltan Varga [Sun, 15 Feb 2009 02:24:27 +0000 (02:24 -0000)]
2009-02-15 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (compile_method): For generic icalls, queue the wrapper to
be compiled, not the icall itself.
svn path=/trunk/mono/; revision=126949
Zoltan Varga [Sat, 14 Feb 2009 17:43:23 +0000 (17:43 -0000)]
2009-02-14 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (find_extra_method_in_amodule): Avoid decoding wrapper names
using decode_method_ref ().
svn path=/trunk/mono/; revision=126936
Rodrigo Kumpera [Sat, 14 Feb 2009 15:59:30 +0000 (15:59 -0000)]
In .:
* class.c:
* loader.c:
* reflection.c: Remove all explicit uses of MonoImage::property_hash.
2009-02-14 Rodrigo Kumpera <rkumpera@novell.com>
svn path=/trunk/mono/; revision=126928
Rodrigo Kumpera [Sat, 14 Feb 2009 15:26:40 +0000 (15:26 -0000)]
In .:
2009-02-14 Rodrigo Kumpera <rkumpera@novell.com>
* image.c: Add mono_image_property_(lookup,insert,remove) functions that
take the image lock instead of the loader lock.
* metadata-internals.h: Export new functions.
svn path=/trunk/mono/; revision=126925
Zoltan Varga [Sat, 14 Feb 2009 14:36:27 +0000 (14:36 -0000)]
2009-02-14 Zoltan Varga <vargaz@gmail.com>
* Regex.cs: Add a MONO_NEW_RX variable to enable the new regex
engine.
svn path=/trunk/mcs/; revision=126923
Jonathan Pryor [Sat, 14 Feb 2009 03:33:07 +0000 (03:33 -0000)]
* System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
NotImplementedExceptions. Revert the 2009-02-12 UniqueId.IsGuid
"fix", as .NET says that new UniqueId(new Guid()).IsGuid==false
(which makes no sense, as .ToString() on the same instance includes
the "urn:uuid:" prefix, which is used by Guids...).
* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.
svn path=/trunk/mcs/; revision=126911
Marek Safar [Sat, 14 Feb 2009 00:09:36 +0000 (00:09 -0000)]
2009-02-14 Marek Safar <marek.safar@gmail.com>
* modifiers.cs, decl.cs, ecore.cs, class.cs, flowanalysis.cs:
Simplified event field definition using backing field and not
field builder directly.
* expression.cs (EmitLdArg): Optimize fast paths.
svn path=/trunk/mcs/; revision=126901
Zoltan Varga [Sat, 14 Feb 2009 00:02:45 +0000 (00:02 -0000)]
2009-02-14 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes #475859.
* arrays.cs: Add a test.
svn path=/trunk/mono/; revision=126897
Marek Habersack [Fri, 13 Feb 2009 23:21:33 +0000 (23:21 -0000)]
2009-02-14 Marek Habersack <mhabersack@novell.com>
* UrlPattern.cs: use the defaults collection when matching a path
and segments are missing.
* RouteCollection.cs: GetRouteData must use VirtualPathProvider
to check for virtual path existence.
svn path=/trunk/mcs/; revision=126891
Miguel de Icaza [Fri, 13 Feb 2009 22:02:44 +0000 (22:02 -0000)]
2009-02-12 Miguel de Icaza <miguel@novell.com>
* domain.c (app_config_parse): Remove another use of stat that is
not necessary as g_file_get_contents already does the presence
check.
svn path=/trunk/mono/; revision=126879
Jonathan Chambers [Fri, 13 Feb 2009 21:25:57 +0000 (21:25 -0000)]
Add test for solutions, project references, and project dependencies.
svn path=/trunk/mcs/; revision=126870
Jonathan Pryor [Fri, 13 Feb 2009 20:55:12 +0000 (20:55 -0000)]
* System.Xml/XmlDictionaryWriter.cs: Implement
WriteValue(IStreamProvider).
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test
WriteValue(IStreamProvider).
svn path=/trunk/mcs/; revision=126867
Jonathan Chambers [Fri, 13 Feb 2009 20:43:10 +0000 (20:43 -0000)]
2009-02-13 Jonathan Chambers <joncham@gmail.com>
* SolutionParser.cs: Make Guid Regex case insensitive.
Handle project dependencies. The solution has explicit
dependencies, but we have to open projects for implicit
dependencies (via ProjectReferences).
svn path=/trunk/mcs/; revision=126863
Atsushi Eno [Fri, 13 Feb 2009 20:18:57 +0000 (20:18 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs : remove use of non-2.1 CreateInstance().
* XmlFormatterDeserializer.cs : allow empty element.
svn path=/trunk/mcs/; revision=126857
Marek Habersack [Fri, 13 Feb 2009 20:11:41 +0000 (20:11 -0000)]
Fixed a compilation issue
svn path=/trunk/mcs/; revision=126856
Marek Habersack [Fri, 13 Feb 2009 20:11:19 +0000 (20:11 -0000)]
2009-02-13 Marek Habersack <mhabersack@novell.com>
* AspParser.cs: added an event raised when parsing is complete.
* AspGenerator.cs: added support for PageParserFilter which, if
found, is used to control certain aspects of code parsing
(accepting/rejecting control types, accepting/rejecting code
snippets, parsing completion)
Added the AddControl method, used by PageParserFilter when a
custom filter wants to inject a control in the current control
builder tree.
2009-02-13 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: PageParserFilter handling moved to here.
PagesConfig must use the current virtual path when retrieving the
section, or otherwise we'll miss the lower level web.configs.
Added the AddControl method, used by PageParserFilter.
Implementing filtering of: parsed directives and the base type, if
a page parser filter is present.
* PageParserFilter.cs: added missing 3.5 members and implemented
everything.
* PageParser.cs: moved PageParserFilter processing to
TemplateParser.
VirtualPath must be set before anything else.
Call page parser filter's directive preprocessing code from
AddDirective if a filter is present and a mastertype or
previouspagetype directive is parsed.
* MasterPageParser.cs: when PageParserFilter is present use it to
preprocess the MasterType directive.
svn path=/trunk/mcs/; revision=126855
Jonathan Pryor [Fri, 13 Feb 2009 19:39:20 +0000 (19:39 -0000)]
* System.Xml/XmlDictionaryWriter.cs: Implement
WriteTextNode(XmlDictionaryReader,bool). This requires changes to
WriteNode(), as testing had determined that WriteTextNode() is used
instead of WriteString() for Text nodes and attribute values when
called via WriteNode().
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test
WriteNode(XmlDictionaryReader), WriteNode(XmlReader), and
WriteTextNode().
svn path=/trunk/mcs/; revision=126853
Jonathan Chambers [Fri, 13 Feb 2009 16:12:45 +0000 (16:12 -0000)]
2009-02-13 Jonathan Chambers <joncham@gmail.com>
* Main.cs: Add support for .sln files.
* SolutionParser.cs: Class for generating project file
from solution file.
* xbuild.exe.sources: Added SolutionParser.cs.
svn path=/trunk/mcs/; revision=126845
Gonzalo Paniagua Javier [Fri, 13 Feb 2009 15:09:07 +0000 (15:09 -0000)]
2009-02-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConnectionStream.cs: implemente (Read|Write)Timeout.
Fixes bug #348159.
svn path=/trunk/mcs/; revision=126842
Atsushi Eno [Fri, 13 Feb 2009 12:30:11 +0000 (12:30 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* ChannelFactory.cs : for default constructor, first try to
retrieve configuration from its contract name.
Diagnose errorneous configuration.
* SilverlightClientConfigLoader.cs : basicHttpBinding/binding
element could be defined two or more times.
svn path=/trunk/mcs/; revision=126830
Marek Safar [Fri, 13 Feb 2009 12:09:24 +0000 (12:09 -0000)]
New test.
svn path=/trunk/mcs/; revision=126827
Marek Safar [Fri, 13 Feb 2009 12:08:42 +0000 (12:08 -0000)]
2009-02-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #475327
* expression.cs (ArrayCreation): Don't mutate values optimized away.
svn path=/trunk/mcs/; revision=126825
Marek Safar [Fri, 13 Feb 2009 11:37:56 +0000 (11:37 -0000)]
New test.
svn path=/trunk/mcs/; revision=126823
Marek Safar [Fri, 13 Feb 2009 11:37:28 +0000 (11:37 -0000)]
2009-02-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #475342
* cs-parser.jay: Using 'super' instead of 'base' to call base
constructor crashes compiler.
svn path=/trunk/mcs/; revision=126822
Marek Safar [Fri, 13 Feb 2009 11:16:40 +0000 (11:16 -0000)]
New tests.
svn path=/trunk/mcs/; revision=126820
Marek Safar [Fri, 13 Feb 2009 11:16:19 +0000 (11:16 -0000)]
2009-02-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #475354
* expression.cs (Constantify): Add nullable types.
* const.cs (EmitDecimalConstant): Avoid explicit cast.
svn path=/trunk/mcs/; revision=126819
Atsushi Eno [Fri, 13 Feb 2009 10:57:50 +0000 (10:57 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs, DataContractSerializer.cs,
KnownTypeCollection.cs : now .NET 3.5/SP1 supports non-contract
type serialization.
* XmlObjectSerializerTest.cs : fixed non-contract serialization
tests and remove some NotWorking.
svn path=/trunk/mcs/; revision=126813
Atsushi Eno [Fri, 13 Feb 2009 08:43:01 +0000 (08:43 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs, KnownTypeCollection.cs : couple of refactoring
to simplify code base and handle CollectionDataContract namespace.
* XmlObjectSerializerTest.cs : fixed collection contract test and
added some notes.
svn path=/trunk/mcs/; revision=126807
Atsushi Eno [Fri, 13 Feb 2009 07:37:18 +0000 (07:37 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs : oops, remove debug lines.
svn path=/trunk/mcs/; revision=126803
Atsushi Eno [Fri, 13 Feb 2009 07:35:55 +0000 (07:35 -0000)]
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
* DataContractSerializer.cs : remove extra writexmlns.
* SerializationMap.cs : allow DataMember of collection contract type
as read-only.
* KnownTypeCollection.cs : it was not iterating interfaces to find
IEnumerable<T> correctly.
* XmlObjectSerializerTest.cs : added couple of test fixes in
collection serialization tests.
svn path=/trunk/mcs/; revision=126802
Jonathan Chambers [Fri, 13 Feb 2009 02:13:04 +0000 (02:13 -0000)]
2009-02-12 Jonathan Chambers <joncham@gmail.com>
* BuildProperty.cs: Value corresponds to XmlElement.InnerXml
no XmlElement.InnerText. This allows properties to be additional
xml elements.
svn path=/trunk/mcs/; revision=126791
Miguel de Icaza [Fri, 13 Feb 2009 02:01:31 +0000 (02:01 -0000)]
2009-02-12 Miguel de Icaza <miguel@novell.com>
More Paolo patches from the Wii port:
* security.c: Remove ves_icall_System_Environment_get_UserName
from here.
* icall.c: And put ves_icall_System_Environment_get_UserName
here.
* appdomain.c (mono_set_private_bin_path_from_config): Remove
redundant call to stat that was only used to test for the file
existence. Patch from Paolo.
* gc.c (run_finalize): If COM is disabled, do not link in
mono_marshal_free_ccw.
* generic-sharing.c: Use alloca.h here as well.
svn path=/trunk/mono/; revision=126789
Zoltan Varga [Fri, 13 Feb 2009 01:12:06 +0000 (01:12 -0000)]
2009-02-13 Zoltan Varga <vargaz@gmail.com>
* cominterop.c icall-def.h: Fix the DISABLE_COM build.
svn path=/trunk/mono/; revision=126787
Zoltan Varga [Fri, 13 Feb 2009 01:08:52 +0000 (01:08 -0000)]
2009-02-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Move the bstr handling code to cominterop.c.
svn path=/trunk/mono/; revision=126786
Zoltan Varga [Fri, 13 Feb 2009 00:55:36 +0000 (00:55 -0000)]
2009-02-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Remove some COM interop code missed previously.
svn path=/trunk/mono/; revision=126785
Miguel de Icaza [Fri, 13 Feb 2009 00:43:56 +0000 (00:43 -0000)]
2009-02-12 Miguel de Icaza <miguel@novell.com>
* generic-sharing.c: Use alloca.h here as well.
svn path=/trunk/mono/; revision=126784
Rodrigo Kumpera [Fri, 13 Feb 2009 00:25:24 +0000 (00:25 -0000)]
In .:
2009-02-13 Rodrigo Kumpera <rkumpera@novell.com>
* reflection.c (mono_reflection_lookup_dynamic_token): Do the locking properly.
svn path=/trunk/mono/; revision=126783
Zoltan Varga [Fri, 13 Feb 2009 00:22:42 +0000 (00:22 -0000)]
2009-02-13 Zoltan Varga <vargaz@gmail.com>
* cominterop.c cominterop.h: New files.
* marshal.c: Move the COM interop related code to cominterop.c. Make a few
function/typedefs which are needed by cominterop.c global.
svn path=/trunk/mono/; revision=126782
Zoltan Varga [Thu, 12 Feb 2009 23:49:00 +0000 (23:49 -0000)]
2009-02-13 Zoltan Varga <vargaz@gmail.com>
* cominterop.c cominterop.h: New files.
* marshal.c: Move the COM interop related code to cominterop.c. Make a few
function/typedefs which are needed by cominterop.c global.
svn path=/trunk/mono/; revision=126775
Robert Jordan [Thu, 12 Feb 2009 22:57:12 +0000 (22:57 -0000)]
2009-02-12 Robert Jordan <robertj@gmx.net>
* Exception.cs: Rename remote_stack_trace for MS.NET
compatibility. Fixes #425512.
r=miguel
svn path=/trunk/mcs/; revision=126770
Marek Safar [Thu, 12 Feb 2009 22:51:00 +0000 (22:51 -0000)]
2009-02-12 Marek Safar <marek.safar@gmail.com>
* ControlBuilder.cs, PageParserFilter.cs, CodeConstructType.cs:
Add few missing members.
svn path=/trunk/mcs/; revision=126769
Zoltan Varga [Thu, 12 Feb 2009 22:35:33 +0000 (22:35 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (EXTRA_DIST): Remove removed files.
svn path=/trunk/mono/; revision=126767
Mark Probst [Thu, 12 Feb 2009 21:32:57 +0000 (21:32 -0000)]
2009-02-12 Mark Probst <mark.probst@gmail.com>
* generic-sharing.c: Don't take the loader lock to guard image
mempool allocs.
svn path=/trunk/mono/; revision=126764
Jonathan Pryor [Thu, 12 Feb 2009 20:56:05 +0000 (20:56 -0000)]
* System.Xml/XmlDictionaryWriter.cs: Implement WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
* System.Xml/UniqueId.cs: Fix UniqueId.IsGuid, as
`new UniqueId(new Guid())` was previously being detected as a string
value, not a Guid value.
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
svn path=/trunk/mcs/; revision=126760
Rodrigo Kumpera [Thu, 12 Feb 2009 20:41:17 +0000 (20:41 -0000)]
In .:
* reflection.c (mono_reflection_lookup_dynamic_token): This function might be called without
the loader lock which is required to guard MonoImage:tokens.
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
svn path=/trunk/mono/; revision=126758
Rodrigo Kumpera [Thu, 12 Feb 2009 20:27:56 +0000 (20:27 -0000)]
In .:
* class.c:
* metadata.c:
* method-builder.c:
* marshal.c:
* reflection.c: Don't take the loader lock to alloc memory from the image mempool.
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
svn path=/trunk/mono/; revision=126756
Jonathan Pryor [Thu, 12 Feb 2009 19:47:59 +0000 (19:47 -0000)]
* System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryWriterTest.cs to the test build.
* System.Xml/XmlDictionaryWriter.cs (WriteStartElement): Add parameter
checking and default arguments to avoid NullReferenceExceptions.
* Test/System.Xml/XmlDictionaryWriterTest.cs: Added; test
XmlDictionaryWriter.WriteElementString().
svn path=/trunk/mcs/; revision=126751
Zoltan Varga [Thu, 12 Feb 2009 19:41:13 +0000 (19:41 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* README: Point to the documentation on the wiki.
svn path=/trunk/mono/; revision=126749
Rodrigo Kumpera [Thu, 12 Feb 2009 19:30:26 +0000 (19:30 -0000)]
In .:
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
* metadata.c: Remove mono_image_alloc_lock and mono_image_alloc0_lock.
Rework the code to use regular mono_image_alloc/0.
* loader.c: Rework the code to use regular mono_image_alloc/0.
* metadata-internals.h: Remove mono_image_alloc_lock and mono_image_alloc0_lock.
svn path=/trunk/mono/; revision=126748
Zoltan Varga [Thu, 12 Feb 2009 19:27:43 +0000 (19:27 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* call-sites.txt: Remove this, its contents is in jit-trampolines.
svn path=/trunk/mono/; revision=126747
Lluis Sanchez [Thu, 12 Feb 2009 19:26:09 +0000 (19:26 -0000)]
2009-02-12 Lluis Sanchez Gual <lluis@novell.com>
* MarshalByRefObject.cs: Implemented MemberwiseClone(bool).
svn path=/trunk/mcs/; revision=126746
Zoltan Varga [Thu, 12 Feb 2009 19:22:39 +0000 (19:22 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
exception-handling.txt: Remove documents which are now on the wiki.
svn path=/trunk/mono/; revision=126745
Bill Holmes [Thu, 12 Feb 2009 18:38:54 +0000 (18:38 -0000)]
2009-02-12 Bill Holmes <billholmes54@gmail.com>
* object-internals.h : Fixing a typo in the
MonoReflectionComVisibleAttribute struct.
* marshal.c (cominterop_com_visible): Check the implemented
interfaces for ComImport.
* marshal.c (cominterop_get_native_wrapper_adjusted): For COM calls
assume that bools should be treated as VARIANTBOOLs.
* marshal.c (emit_marshal_boolean): Adding cases for
MARSHAL_ACTION_MANAGED_CONV_IN and MARSHAL_ACTION_MANAGED_CONV_OUT.
* marshal.c (mono_marshal_emit_managed_wrapper): Adding calls to
emit_marshal MARSHAL_ACTION_MANAGED_CONV_IN and OUT for bools.
* marshal.c (cominterop_get_ccw): For COM calls assume that bools
should be treated as VARIANTBOOLs.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=126738
Zoltan Varga [Thu, 12 Feb 2009 18:38:38 +0000 (18:38 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* mini-s390x.c (mono_arch_output_basic_block): Fix the shift amounts in
OP_LCONV_TO_U2.
* basic-long.cs: Add a test.
svn path=/trunk/mono/; revision=126737
Rodrigo Kumpera [Thu, 12 Feb 2009 18:36:45 +0000 (18:36 -0000)]
In .:
* image.c (mono_image_alloc, mono_image_alloc0, mono_image_strdup): Guard mempool
allocation with the image lock.
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
svn path=/trunk/mono/; revision=126736
Jordi Mas i Hernandez [Thu, 12 Feb 2009 18:11:45 +0000 (18:11 -0000)]
2009-02-12 Jordi Mas i Hernandez <jordimash@gmail.com>
* Mono.Cairo/ScaledFont.cs: Fixes Dispose signature
* Mono.Cairo/FontFace.cs: Fixes Dispose signature
* Mono.Cairo/Surface.cs: Fixes Dispose signature
* Mono.Cairo/Path.cs: Fixes Dispose signature
* Mono.Cairo/Pattern.cs: Fixes Dispose signature
svn path=/trunk/mcs/; revision=126734
Rodrigo Kumpera [Thu, 12 Feb 2009 17:57:44 +0000 (17:57 -0000)]
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
This patch is the last of a series to remove explicit reference of MonoImage::mempool
and use mono_image_alloc set of functions instead. This time we finish with reflection.c
* object.c: Add mono_string_to_utf8_image.
* object-internals.h: Export mono_string_to_utf8_image.
* reflection.c: Rework all explicit references to the the image mempool to go thought
the mono_image_alloc set of functions.
svn path=/trunk/mono/; revision=126732
Marek Safar [Thu, 12 Feb 2009 17:48:30 +0000 (17:48 -0000)]
New tests.
svn path=/trunk/mcs/; revision=126730
Marek Safar [Thu, 12 Feb 2009 17:47:46 +0000 (17:47 -0000)]
2009-02-12 Marek Safar <marek.safar@gmail.com>
A fix for bug ##475246
* expression.cs: More broken flowanalysis hacking needed.
svn path=/trunk/mcs/; revision=126728
Mark Probst [Thu, 12 Feb 2009 16:04:19 +0000 (16:04 -0000)]
2009-02-12 Mark Probst <mark.probst@gmail.com>
* mini-x86.c, mini-x86.h: Very simple frame pointer removal. We
remove the frame pointer in leaf methods which don't receive any
arguments, don't throw exceptions and don't do dynamic stack
allocations.
svn path=/trunk/mono/; revision=126720
Zoltan Varga [Thu, 12 Feb 2009 14:35:48 +0000 (14:35 -0000)]
2009-02-12 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_build_imt_thunk): Fix size calculation after
the fail_tramp changes. Hopefully fixes #475132.
svn path=/trunk/mono/; revision=126717
Rodrigo Kumpera [Thu, 12 Feb 2009 14:16:26 +0000 (14:16 -0000)]
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
This patch is the third of a series to remove explicit reference of MonoImage::mempool
and use mono_image_alloc set of functions instead. This time we finish with marshal.c
and generics-sharing.c.
* generics-sharing.c (set_other_info_templates): Take a MonoImage instead of a MonoMemPool
as first argument. Note that this function remains broken as it doesn't perform locking around the
mempool allocation.
* generics-sharing.c (rgctx_template_set_other_slot): Pass the image and not the mempool.
* image.c: Add g_slist_append_image.
* metadata.c (mono_metadata_field_info_with_mempool): Remove the mempool argument and use
the supplied image for allocation. Move code into mono_metadata_field_info_full.
* metadata.c (mono_metadata_parse_marshal_spec_full): Take a MonoImage instead of a MonoMemPool.
Fix all related code to do the same.
* marshal.c (mono_marshal_load_type_info): Pass the image instead of the mempool.
* metadata-internals.h: Fix the signatures.
svn path=/trunk/mono/; revision=126716
Rodrigo Kumpera [Thu, 12 Feb 2009 13:40:36 +0000 (13:40 -0000)]
In mini:
2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
* method-to-ir.c (mono_emit_method_call_full): Use mono_metadata_signature_dup_mempool
instead of mono_metadata_signature_dup_full.
In metadata:
and use mono_image_alloc set of functions instead. This time we rework mono_metadata_type_dup
and similar to work using MonoImage.
* class.c (mono_mempool_dup): Rename to mono_image_memdup and take a MonoImage instead of a
MonoMemPool.
* class.c (mono_dup_array_type): Take a MonoImage instead of a MonoMemPool as first argument.
* class.c (mono_metadata_signature_deep_dup): Same.
* class.c (inflate_generic_type): Same.
* class.c (mono_class_inflate_generic_type_with_mempool): Same.
* metadata.c (mono_metadata_signature_dup_full): Same.
* metadata.c: Add mono_metadata_signature_dup_mempool and extract common functionality from
mono_metadata_signature_dup_full.
* metadata.c (mono_metadata_type_dup): Same.
* marshal.c: Pass the image to calls to mono_metadata_type_dup.
* reflection.c: Same.
* generic-sharing.c: Pass the image to calls to mono_class_inflate_generic_type_with_mempool.
* metadata-internals.h: Fix the signatures.
* class-internals.h: Same.
2009-02-11 Rodrigo Kumpera <rkumpera@novell.com>
This patch is the first of a series to remove explicit reference of MonoImage::mempool
svn path=/trunk/mono/; revision=126710
Atsushi Eno [Thu, 12 Feb 2009 11:31:26 +0000 (11:31 -0000)]
2009-02-12 Atsushi Enomoto <atsushi@ximian.com>
* Message.cs : if there is no header item to write, do not write
SOAP header element.
svn path=/trunk/mcs/; revision=126705