Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:36 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_pe_optional_header): Add comment of why
the code is commented.
* metadata-verify.c (verify_resources_table): Remove spurious printf
and don't fail if there are unmanaged resources. Gmcs generates a useless
one for all assemblies - I bet it's some MS compatibility junk.
svn path=/trunk/mono/; revision=131854
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:21 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Tests for the extends field of the typedef table.
svn path=/trunk/mono/; revision=131853
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:12 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_typedef_table): Verify the extends field.
* metadata-verify.c (mono_image_verify): Add a is_corlib.
* verify-internals.h: Same.
* pedump.c: Fix for mono_image_verify new signature.
svn path=/trunk/mono/; revision=131852
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:53 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: More tests for the typedef table.
svn path=/trunk/mono/; revision=131850
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:43 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_typedef_table): Verify for some invalid
flags combinations.
svn path=/trunk/mono/; revision=131849
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:29 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_module_table): Ignore the generation field.
svn path=/trunk/mono/; revision=131848
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:14 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* gen-md-tests.c: Add the or-uint effect.
svn path=/trunk/mono/; revision=131847
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:05 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* data-directory-tests.md:
* header-tests.md:
* resources-tests.md: Add comments related to faulty verification
semantics on MS.
svn path=/trunk/mono/; revision=131846
Jonathan Pryor [Thu, 16 Apr 2009 00:45:43 +0000 (00:45 -0000)]
* Mono.Documentation/webdoc.cs: When extracting files from the .zip
file, ensure that the output file is closed. Properly pre-render
ecma namespace documentation.
svn path=/trunk/mcs/; revision=131845
Jonathan Pryor [Thu, 16 Apr 2009 00:41:28 +0000 (00:41 -0000)]
* Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
call GetCachedText() twice.
svn path=/trunk/mcs/; revision=131844
Jonathan Pryor [Thu, 16 Apr 2009 00:21:29 +0000 (00:21 -0000)]
* Monodoc/provider.cs: Correct UseWebdocCache logic.
* Monodoc/xhtml-provider.cs: Use GetCachedText().
svn path=/trunk/mcs/; revision=131843
Jonathan Pryor [Wed, 15 Apr 2009 21:12:18 +0000 (21:12 -0000)]
* Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
* mdoc.exe.sources: Add Mono.Rocks/ObjectRocks.cs,
Mono.Rocks/StreamRocks.cs.
* Mono.Documentation/webdoc.cs: Refactor into smaller methods. Extract
ZIP file contents in addition to generating HTML output. Use
monodoc helper methods to determine cache directory.
* Mono.Documentation/ObjectRocks.cs: Rename to
Mono.Rocks/ObjectRocks.cs.
* Mono.Rocks/ObjectRocks.cs: Add Check.Destination().
* Mono.Rocks/StreamRocks.cs: Added; extension methods for Streams.
svn path=/trunk/mcs/; revision=131831
Jonathan Pryor [Wed, 15 Apr 2009 21:01:23 +0000 (21:01 -0000)]
* Monodoc/provider.cs: UseWebdocCache is a better name that
IgnoreCache (considering that cache is disabled by default).
svn path=/trunk/mcs/; revision=131829
Jonathan Pryor [Wed, 15 Apr 2009 20:59:04 +0000 (20:59 -0000)]
* Monodoc/provider.cs:
- Add HelpSource.IgnoreCache field, so that if the cache is present
it will be ignored. (Required by 'mdoc export-html-webdoc' so it
gets "fresh" content to generate the cache, and by monodoc GUI as
it can't use the cache'd HTML; cache'd HTML is for ASP.NET
webdoc only.)
- Alter the cache directory from e.g. sources/netdocs to
sources/cache/netdocs (as defined by
XmlDocUtils.GetCacheDirectory()).
- Add HelpSource.GetCachedText() method which will return the
contents of the cache for an id.
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
Monodoc/error-provider.cs, Monodoc/man-provider.cs,
Monodoc/simple-provider.cs: Use GetCachedText().
* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
GetCacheFileName() methods.
svn path=/trunk/mcs/; revision=131828
Martin Baulig [Wed, 15 Apr 2009 19:34:34 +0000 (19:34 -0000)]
Move 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into MonoSymbolFile.cs.
svn path=/trunk/mcs/; revision=131819
Atsushi Eno [Wed, 15 Apr 2009 18:30:49 +0000 (18:30 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* XmlMtomDictionaryReader.cs : new.
* XmlDictionaryReader.cs : implemented CreateMtomReader().
* System.Runtime.Serialization.dll.sources : added mtom reader.
svn path=/trunk/mcs/; revision=131809
Martin Baulig [Wed, 15 Apr 2009 17:50:49 +0000 (17:50 -0000)]
Ignore unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15 Martin Baulig <martin@ximian.com>
* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.
svn path=/trunk/mcs/; revision=131801
Martin Baulig [Wed, 15 Apr 2009 17:48:06 +0000 (17:48 -0000)]
Don't print a warning for unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15 Martin Baulig <martin@ximian.com>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.
svn path=/trunk/mono/; revision=131800
Jonathan Pryor [Wed, 15 Apr 2009 14:30:49 +0000 (14:30 -0000)]
* Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
output directory didn't exist. Fix.
svn path=/trunk/mcs/; revision=131773
Jonathan Pryor [Wed, 15 Apr 2009 13:41:13 +0000 (13:41 -0000)]
* Mono.Documentation/webdoc.cs: Do as make(1) does: if the
target directory already exists and is newer than the source files,
don't regenerate output. (Greatly speeds things up if nothing has
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=131770
Marek Habersack [Wed, 15 Apr 2009 13:32:47 +0000 (13:32 -0000)]
2009-04-15 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.
2009-04-15 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.
svn path=/trunk/mcs/; revision=131768
Jonathan Pryor [Wed, 15 Apr 2009 13:09:33 +0000 (13:09 -0000)]
* Mono.Documentation/webdoc.cs: Change the default -o value to
include a "cache" intermediate directory. This makes it easier to
kill the entire cache at once.
svn path=/trunk/mcs/; revision=131765
Atsushi Eno [Wed, 15 Apr 2009 11:26:42 +0000 (11:26 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* jis.table : regenerated. Fixed bug #491799.
* I18N.CJK.Test.cs : added test for bug #491799.
svn path=/trunk/mcs/; revision=131758
Atsushi Eno [Wed, 15 Apr 2009 11:19:20 +0000 (11:19 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* uni2tab.c : don't use obsoleted shiftjis.txt.
svn path=/trunk/mcs/; revision=131755
Atsushi Eno [Wed, 15 Apr 2009 11:18:18 +0000 (11:18 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* table_from.cs, table_to.cs : fix misuse of indexers (invalid
code).
svn path=/trunk/mcs/; revision=131754
Marek Habersack [Wed, 15 Apr 2009 11:11:13 +0000 (11:11 -0000)]
2009-04-15 Marek Habersack <mhabersack@novell.com>
* HttpApplicationFactory.cs: if a notification is received from a
FileSystemWatcher which was configured to watch for
subdirectories, uses a filter (currently we have just one such
watcher - waiting for changes to '?eb.?onfig') and the event
doesn't match the filter, ignore the event. Fixes bug #495011
svn path=/trunk/mcs/; revision=131752
Atsushi Eno [Wed, 15 Apr 2009 08:56:38 +0000 (08:56 -0000)]
oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
Atsushi Eno [Wed, 15 Apr 2009 08:54:10 +0000 (08:54 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* Expression.cs : extensions could return null and it should be
regarded as empty node-set, not an error.
svn path=/trunk/mcs/; revision=131738
Atsushi Eno [Wed, 15 Apr 2009 08:18:12 +0000 (08:18 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDocument.cs : remove Utility class. It is not precise
implementation to write extensions.
* ServiceDocumentFormatter.cs : virtual extension writer methods
should call possibly overriden Write[Element/Attribute]Extensions()
in possibly derived document item classes.
Implemented LoadElementExtensions().
* AtomPub10CategoriesDocumentFormatter.cs,
AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().
* AtomPub10CategoriesDocumentFormatterTest.cs,
AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
WriteElementExtensions() tests.
svn path=/trunk/mcs/; revision=131737
Ankit Jain [Wed, 15 Apr 2009 07:56:30 +0000 (07:56 -0000)]
Fix bug #494219.
In ilasm/codegen:
* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.
In ilasm/parser:
* ILParser.jay (instr): Handle unidentified local var id.
In ilasm/scanner:
* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.
svn path=/trunk/mcs/; revision=131736
Marek Habersack [Wed, 15 Apr 2009 07:19:42 +0000 (07:19 -0000)]
Micro optimization - don't call Page twice
svn path=/trunk/mcs/; revision=131734
Gonzalo Paniagua Javier [Wed, 15 Apr 2009 05:41:41 +0000 (05:41 -0000)]
2009-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HtmlInputText.cs: make sure we're inside a Page before dereferencing
it.
svn path=/trunk/mcs/; revision=131730
Jonathan Pryor [Wed, 15 Apr 2009 04:58:07 +0000 (04:58 -0000)]
* Mono.Documentation/webdoc.cs: Provide nice default -o value.
svn path=/trunk/mcs/; revision=131729
Jonathan Pryor [Wed, 15 Apr 2009 04:43:40 +0000 (04:43 -0000)]
* Mono.Documentation/webdoc.cs: Load documentation through a
HelpSource, not through the RootTree, as URLs of the form
"ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
in this case) as a HelpSource-relative identifier. Result: you get
the wrong documentation if you go through RootTree.
svn path=/trunk/mcs/; revision=131728
Jonathan Pryor [Wed, 15 Apr 2009 04:19:02 +0000 (04:19 -0000)]
* Makefile: Add reference to System.Web.dll, for HttpUtility.
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
"pre-renders" HTML for use by the webdoc ASP.NET renderer.
* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
implementation; attempts to pre-render HTML based on .tree/.zip
file contents.
* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
traversal (from Mono.Rocks). For use in webdoc.cs.
svn path=/trunk/mcs/; revision=131727
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:53 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Initial tests for the typedef table.
svn path=/trunk/mono/; revision=131726
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:43 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial code to verify the typedef table.
svn path=/trunk/mono/; revision=131725
Zoltan Varga [Tue, 14 Apr 2009 23:40:33 +0000 (23:40 -0000)]
2009-04-15 Zoltan Varga <vargaz@gmail.com>
* runtime-invoke.cs: Add a test for #494847.
svn path=/trunk/mono/; revision=131720
Zoltan Varga [Tue, 14 Apr 2009 23:40:24 +0000 (23:40 -0000)]
2009-04-15 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_runtime_invoke_sig): Don't share runtime
invoke signatures returning an enum. Fixes #494847.
svn path=/trunk/mono/; revision=131719
Rodrigo Kumpera [Tue, 14 Apr 2009 20:16:21 +0000 (20:16 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* valid_br_before_try_block.il: Regression test for #494812.
svn path=/trunk/mono/; revision=131705
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:59 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_method_verify): Don't fail if an unconditional branch
with non empty stack happens before the beginning of a try block.
Fixes #494812.
svn path=/trunk/mono/; revision=131704
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:38 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: More tests for the typeref table.
svn path=/trunk/mono/; revision=131703
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:18 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Verify typename and typenamespace fields of
the typeref table.
svn path=/trunk/mono/; revision=131701
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:51 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* invalid_backward_branch.il: Fix typo.
svn path=/trunk/mono/; revision=131700
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:28 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* Makefile: Fix build of gen-md-tests.
* cli-tables-tests.md: Tests for the typeref table.
svn path=/trunk/mono/; revision=131699
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:05 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial code to verify the typeref table.
svn path=/trunk/mono/; revision=131698
Rodrigo Kumpera [Tue, 14 Apr 2009 20:13:33 +0000 (20:13 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (verify_delegate_compatibility): Fix error message.
svn path=/trunk/mono/; revision=131697
Zoltan Varga [Tue, 14 Apr 2009 20:07:00 +0000 (20:07 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
svn path=/trunk/mono/; revision=131695
Zoltan Varga [Tue, 14 Apr 2009 19:10:14 +0000 (19:10 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
trampolines for ARM. Add full-aot support for delegate invokes for ARM.
svn path=/trunk/mono/; revision=131688
Sebastien Pouliot [Tue, 14 Apr 2009 17:41:35 +0000 (17:41 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c: Fix typo
svn path=/trunk/mono/; revision=131683
Sebastien Pouliot [Tue, 14 Apr 2009 17:35:01 +0000 (17:35 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* UriTest2.cs: More test cases for the handling of %2f and %5c
svn path=/trunk/mcs/; revision=131682
Sebastien Pouliot [Tue, 14 Apr 2009 17:33:03 +0000 (17:33 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
computation where the result is not used (overwritten)
svn path=/trunk/mcs/; revision=131681
Jonathan Pryor [Tue, 14 Apr 2009 16:03:20 +0000 (16:03 -0000)]
* Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.
svn path=/trunk/mcs/; revision=131678
Zoltan Varga [Tue, 14 Apr 2009 14:24:12 +0000 (14:24 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
a MonoGHashTable to keep its values alive.
(emit_marshal_boolean): Fix a warning.
svn path=/trunk/mono/; revision=131667
Carlos Alberto Cortez [Tue, 14 Apr 2009 12:03:28 +0000 (12:03 -0000)]
2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
Fixes #474253.
svn path=/trunk/mcs/; revision=131658
Carlos Alberto Cortez [Tue, 14 Apr 2009 11:15:03 +0000 (11:15 -0000)]
2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ContainerControl.cs: Implement support for Control.CausesValidation,
by adding a pending list of controls to be validated in the top
container control, and postpone validation as needed.
Also remove any control in the validation chain in case it gets removed
from its owner before the pending validation actually happens.
Fixes #457170.
svn path=/trunk/mcs/; revision=131656
Zoltan Varga [Tue, 14 Apr 2009 11:06:35 +0000 (11:06 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
allocating the location holding the this argument to prevent
'too many root sets' errors.
svn path=/trunk/mono/; revision=131655
Zoltan Varga [Tue, 14 Apr 2009 11:04:11 +0000 (11:04 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_magic_trampoline): Fix the build.
svn path=/trunk/mono/; revision=131654
Marek Safar [Tue, 14 Apr 2009 09:01:16 +0000 (09:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=131652
Marek Safar [Tue, 14 Apr 2009 09:00:56 +0000 (09:00 -0000)]
2009-04-14 Marek Safar <marek.safar@gmail.com>
A fix for bug #494243
* report.cs (SymbolRelatedToPreviousError): Fixed NRE.
svn path=/trunk/mcs/; revision=131651
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:36:16 +0000 (03:36 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
not have any interface configured for IPv4/IPv6.
svn path=/trunk/mono/; revision=131639
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:34:32 +0000 (03:34 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* assembly.c: fix typo in error message.
svn path=/trunk/mono/; revision=131638
Zoltan Varga [Mon, 13 Apr 2009 22:14:40 +0000 (22:14 -0000)]
.gitignore.
svn path=/trunk/mono/; revision=131626
Zoltan Varga [Mon, 13 Apr 2009 22:12:28 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* thread-static.cs: Add a test for accesses through reflection.
svn path=/trunk/mono/; revision=131625
Zoltan Varga [Mon, 13 Apr 2009 22:12:21 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* liveness.c (visit_bb): Remove a needless assert.
svn path=/trunk/mono/; revision=131624
Zoltan Varga [Mon, 13 Apr 2009 22:12:14 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
to mark fields as special static.
(mono_field_static_get_value): Handle special static fields.
(mono_field_static_set_value): Ditto.
* class-internals.h (struct _MonoClassField): Document this.
svn path=/trunk/mono/; revision=131623
Bill Holmes [Mon, 13 Apr 2009 21:16:55 +0000 (21:16 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
case. This will handle when managed code returns null to native code.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131622
Bill Holmes [Mon, 13 Apr 2009 21:07:26 +0000 (21:07 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* object.c (build_imt_slots): Changing a free to a g_free to match
the g_malloc0 in add_imt_builder_entry that allocated this memory.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131621
Bill Holmes [Mon, 13 Apr 2009 20:41:07 +0000 (20:41 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* Makefile.am: Adding marshalbool.cs.
* libtest.c: Adding native code for marshalbool.cs tests.
* marshalbool.cs: Adding tests for emit_marshal_boolean.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131619
Bill Holmes [Mon, 13 Apr 2009 20:38:45 +0000 (20:38 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* marshal.c (emit_marshal_boolean): Adding code to ensure that
the correct TRUE value is passed through the marshaling layer.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131618
Zoltan Varga [Mon, 13 Apr 2009 20:08:15 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* pinvoke2.cs: Add a test for #492330.
svn path=/trunk/mono/; revision=131617
Zoltan Varga [Mon, 13 Apr 2009 20:08:08 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
correctly. Fixes #492330.
svn path=/trunk/mono/; revision=131616
Zoltan Varga [Mon, 13 Apr 2009 19:51:41 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131614
Zoltan Varga [Mon, 13 Apr 2009 19:51:32 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131613
Zoltan Varga [Mon, 13 Apr 2009 19:51:19 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.
* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.
svn path=/trunk/mono/; revision=131612
Jonathan Pryor [Mon, 13 Apr 2009 16:44:08 +0000 (16:44 -0000)]
* sys-time.c: Properly set the modification time, instead of using the
access time as the modification time. Fixes #494253.
svn path=/trunk/mono/; revision=131601
Gonzalo Paniagua Javier [Mon, 13 Apr 2009 16:28:20 +0000 (16:28 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/trunk/mcs/; revision=131599
Marek Safar [Mon, 13 Apr 2009 13:19:38 +0000 (13:19 -0000)]
Better test.
svn path=/trunk/mcs/; revision=131589
Marek Safar [Mon, 13 Apr 2009 13:19:10 +0000 (13:19 -0000)]
2009-04-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/trunk/mcs/; revision=131588
Zoltan Varga [Mon, 13 Apr 2009 11:16:02 +0000 (11:16 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.
svn path=/trunk/mono/; revision=131570
Zoltan Varga [Mon, 13 Apr 2009 09:59:02 +0000 (09:59 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
svn path=/trunk/mono/; revision=131565
Zoltan Varga [Mon, 13 Apr 2009 09:43:40 +0000 (09:43 -0000)]
Fix the build.
svn path=/trunk/mono/; revision=131563
Zoltan Varga [Sun, 12 Apr 2009 22:11:36 +0000 (22:11 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
creation function which returns a trampoline which sets the rgctx
argument.
(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
wrapper if possible.
(mono_delegate_trampoline): Ditto.
* mini.c (mono_jit_runtime_invoke): Ditto.
* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.
* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=131555
Zoltan Varga [Sun, 12 Apr 2009 21:01:49 +0000 (21:01 -0000)]
2009-04-12 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
svn path=/trunk/mono/; revision=131553
Gonzalo Paniagua Javier [Sun, 12 Apr 2009 14:11:18 +0000 (14:11 -0000)]
2009-04-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
* System.Threading/WaitHandle.cs: implemented 2 missing WaitAny overloads.
* corlib.dll.sources: add GCNotificationStatus.
* System/GCNotificationStatus.cs: new enum.
svn path=/trunk/mcs/; revision=131542
Zoltan Varga [Sun, 12 Apr 2009 14:01:42 +0000 (14:01 -0000)]
2009-04-12 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.c (mono_arch_lowering_pass): Use NULLIFY_INS instead of
just setting the opcode to OP_NOP.
svn path=/trunk/mono/; revision=131541
Gonzalo Paniagua Javier [Sun, 12 Apr 2009 13:53:48 +0000 (13:53 -0000)]
update MonoTODO
svn path=/trunk/mcs/; revision=131540
Zoltan Varga [Sat, 11 Apr 2009 20:39:40 +0000 (20:39 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Put the last change inside an
#ifdef MONO_ARCH_HAVE_LIVERANGE_OPS.
svn path=/trunk/mono/; revision=131529
Zoltan Varga [Sat, 11 Apr 2009 20:37:16 +0000 (20:37 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
and extend live ranges to cover the whole method when using xdb.
svn path=/trunk/mono/; revision=131528
Zoltan Varga [Sat, 11 Apr 2009 19:59:53 +0000 (19:59 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
do it in the trampolines.
* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
needed.
* mini-trampolines.c (mono_delegate_trampoline): Ditto.
svn path=/trunk/mono/; revision=131527
Sebastien Pouliot [Sat, 11 Apr 2009 16:12:48 +0000 (16:12 -0000)]
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: WebClient allows relative URI...
* WebRequest_2_1.cs: ...while WebRequest does not by default.
Also uncomment a few checks for new test cases
svn path=/trunk/mcs/; revision=131518
Zoltan Varga [Sat, 11 Apr 2009 14:34:09 +0000 (14:34 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
call code in full-aot mode since IMT is disabled there.
(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
new JIT no longer has that restriction.
svn path=/trunk/mono/; revision=131517
Zoltan Varga [Sat, 11 Apr 2009 14:34:01 +0000 (14:34 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_class_create_runtime_vtable): Avoid putting MonoMethod
pointers into the vtable.
svn path=/trunk/mono/; revision=131516
Marek Habersack [Sat, 11 Apr 2009 13:36:46 +0000 (13:36 -0000)]
2009-04-11 Marek Habersack <mhabersack@novell.com>
* UpdatePanel.cs: implemented SingleChildControlCollection to be
used in CreateControlCollection ().
RequiresUpdate not only checks the update mode and explicit update
requests, but also looks if any triggers fired.
Initialize () initializes triggers only if partial rendering is
supported by the ScriptManager.
IsInPartialRendering property no longer returns the value of
ScriptManager.IsInPartialRendering. Instead, it relies on the
value of instance field which can be set using new internal
SetInPartialRendering () method (called from
ScriptManager.RenderPageCallback ())
Simplified the logic in RenderChildren ().
* ScriptManager.cs: no need to register panels for refresh in
OnPreRenderComplete, this is now done in RenderPageCallback.
Modified HasBeenRendered () so that it doesn't query whether the
panel has been explicitly updated by the user, but checks whether
panel is in the list of panels to refresh.
RaisePostDataChangedEvent () doesn't update the panel whose id is
named in the POST request for refresh. This is handled in
RenderPageCallback.
Reverted the changes to WriteCallbackPanel and RenderFormCallback
committed in r129774.
RenderPageCallback now correctly detects panels to be refreshed
(and thus included in the async response).
* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
HasTriggered ().
svn path=/trunk/mcs/; revision=131511
Sebastien Pouliot [Sat, 11 Apr 2009 13:16:44 +0000 (13:16 -0000)]
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
* HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests:
* WebClient_2_1.cs: Fix some properties
* WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
* WebRequest_2_1.cs: Add RegisterPrefix functionality and add
missing checks (fix unit tests)
svn path=/trunk/mcs/; revision=131507
Zoltan Varga [Sat, 11 Apr 2009 04:48:44 +0000 (04:48 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
a more compact format.
(mono_aot_wrapper_name): New function to return a unique name for a
wrapper method, also used by the AOT runtime.
* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
aot-compiler.c.
svn path=/trunk/mono/; revision=131502
Zoltan Varga [Sat, 11 Apr 2009 04:47:22 +0000 (04:47 -0000)]
2009-04-11 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
when a ICollection<T> etc is encountered.
(add_generic_instances): Process method arguments/locals too.
(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
trampoline names.
* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.
svn path=/trunk/mono/; revision=131501
Zoltan Varga [Fri, 10 Apr 2009 17:44:25 +0000 (17:44 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c: Disable the AOT compiler if the JIT is disabled.
svn path=/trunk/mono/; revision=131480
Zoltan Varga [Fri, 10 Apr 2009 17:44:14 +0000 (17:44 -0000)]
2009-04-10 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py: Update to the latest archer api.
svn path=/trunk/mono/; revision=131479
Mark Probst [Fri, 10 Apr 2009 15:00:10 +0000 (15:00 -0000)]
Test case for invoking a proxy whose server's domain was unloaded.
2009-04-10 Mark Probst <mark.probst@gmail.com>
* appdomain-unload.cs: Test for invoking on a proxy whose server
domain was unloaded.
svn path=/trunk/mono/; revision=131473