Atsushi Eno [Wed, 22 Apr 2009 05:43:28 +0000 (05:43 -0000)]
2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlQualifiedName.cs : added Parse() overload that is used for
xsd validation.
* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
use xsd-supported version of XmlQualifiedName.Parse().
Fixed bug #496205.
svn path=/trunk/mcs/; revision=132347
Atsushi Eno [Wed, 22 Apr 2009 04:46:09 +0000 (04:46 -0000)]
2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollection.cs : when the node to be inserted has owner
element _but_ is identical to that of this collection, do not
reject it to raise an error. Fixed bug #496022.
* XmlAttributeCollectionTests.cs : added test for bug #496022.
svn path=/trunk/mcs/; revision=132344
Gonzalo Paniagua Javier [Tue, 21 Apr 2009 22:41:32 +0000 (22:41 -0000)]
2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
of just the Message to aid in debugging web service problems.
Bug #496758 fixed.
svn path=/trunk/mcs/; revision=132335
Andrés G. Aragoneses [Tue, 21 Apr 2009 21:33:10 +0000 (21:33 -0000)]
MD misplaced the changelog entry..
svn path=/trunk/mcs/; revision=132326
Andrés G. Aragoneses [Tue, 21 Apr 2009 21:30:32 +0000 (21:30 -0000)]
* linker/Mono.Linker/Driver.cs: Postprocess custom steps in order to
make them able to find steps determined by the resolve step. Fixes
#493702.
svn path=/trunk/mcs/; revision=132325
Marek Habersack [Tue, 21 Apr 2009 21:16:24 +0000 (21:16 -0000)]
2009-04-21 Marek Habersack <mhabersack@novell.com>
* Makefile: fixed resource ID generation.
svn path=/trunk/mcs/; revision=132323
Rodrigo Kumpera [Tue, 21 Apr 2009 20:36:23 +0000 (20:36 -0000)]
2009-04-21 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_delegate_type_equal): Compare valuetypes using
mono_class_from_mono_type to avoid bad interactions with the dual representation
of the generic type definition.
svn path=/trunk/mono/; revision=132318
Rodrigo Kumpera [Tue, 21 Apr 2009 20:35:55 +0000 (20:35 -0000)]
2009-04-21 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (do_invoke_method): Use mono_class_from_mono_type to
get the MonoClass for the call context type as it might be a generic
instance.
Fixes #491483.
svn path=/trunk/mono/; revision=132317
Rodrigo Kumpera [Tue, 21 Apr 2009 20:35:27 +0000 (20:35 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (do_newobj): Improve error message.
svn path=/trunk/mono/; revision=132316
Marek Habersack [Tue, 21 Apr 2009 19:56:57 +0000 (19:56 -0000)]
2009-04-21 Marek Habersack <mhabersack@novell.com>
* PageCompiler.cs: implemented new way of setting output cache
parameters in the 2.0 profile. The generated code is now the same
as on .NET and uses the OutputCacheParameters class to pass
settings to InitOutputCache.
2009-04-21 Marek Habersack <mhabersack@novell.com>
* Page.cs: added support for OutputCacheParameters.NoStore to
InitOutputCache.
* TemplateParser.cs:
Added support for the SqlDependency, NoStore and CacheProfile
attributes of the OutputCache directive. Fixes bug #496951
svn path=/trunk/mcs/; revision=132312
Mark Probst [Tue, 21 Apr 2009 18:41:19 +0000 (18:41 -0000)]
The execution context is now ThreadStatic in the Thread class.
2009-04-21 Mark Probst <mark.probst@gmail.com>
* object-internals.h: The Thread object has no execution_context
member anymore.
* threads.c, threadpool.c, threads-types.h: Accessor functions for
the execution context.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=132309
Mark Probst [Tue, 21 Apr 2009 18:39:48 +0000 (18:39 -0000)]
2009-04-21 Mark Probst <mark.probst@gmail.com>
* Thread.cs: Make the execution context field thread-static to
avoid it being shared between app domains.
2009-04-21 Mark Probst <mark.probst@gmail.com>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132308
Carlos Alberto Cortez [Tue, 21 Apr 2009 18:05:45 +0000 (18:05 -0000)]
2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
event is the same as the owner of the menu item. Also set properly
SourceControl for ContextMenuStrip, as well as add an internal field to
contain the control that owns the ContextMenuStrip (we need to know this
even before the public property is assigned).
Fixes bits of #393775.
svn path=/trunk/mcs/; revision=132303
Marek Habersack [Tue, 21 Apr 2009 17:54:02 +0000 (17:54 -0000)]
2009-04-21 Marek Habersack <mhabersack@novell.com>
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
appropriate web.config file.
* BaseParser.cs: moved the internal property VirtualPath from
TemplateParser to here and added an internal method
GetConfigSection to retrieve sections from the correct web.config
file on 2.0 applications. Fixes bug #494245
* PageParser.cs: use the new GetConfigSection method to retrieve
ClientTargetSection.
* TemplateParser.cs: moved the VirtualPath property to
BaseParser.
PagesConfig now uses the new GetConfigSection method. Fixes bug
#494245
svn path=/trunk/mcs/; revision=132300
Zoltan Varga [Tue, 21 Apr 2009 17:51:43 +0000 (17:51 -0000)]
2009-04-21 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_generic_class_init_trampoline): Remove
a racy assert.
svn path=/trunk/mono/; revision=132299
Gonzalo Paniagua Javier [Tue, 21 Apr 2009 17:01:42 +0000 (17:01 -0000)]
2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
* DnsTest.cs: new IP for go-mono and fix AsyncResolve test.
svn path=/trunk/mcs/; revision=132294
Sebastien Pouliot [Tue, 21 Apr 2009 16:44:06 +0000 (16:44 -0000)]
remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132291
Sebastien Pouliot [Tue, 21 Apr 2009 16:43:28 +0000 (16:43 -0000)]
remove more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132290
Sebastien Pouliot [Tue, 21 Apr 2009 16:43:26 +0000 (16:43 -0000)]
In System.Xml.Schema:
In .:
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* System.Xml.Schema/*: Remove (not needed for 2.1 anymore)
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132289
Sebastien Pouliot [Tue, 21 Apr 2009 16:39:44 +0000 (16:39 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* XmlSchema_2_1.cs: Add internal fields needed by S.R.S.dll
svn path=/trunk/mcs/; revision=132287
Sebastien Pouliot [Tue, 21 Apr 2009 16:20:57 +0000 (16:20 -0000)]
net_2_1_raw_System.ServiceModel.dll.sources: Remove MonoTODOAttribute since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132284
Sebastien Pouliot [Tue, 21 Apr 2009 16:19:26 +0000 (16:19 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
MonoTODOAttribute since we get it from mscorlib (fix build too).
Remove System.Xml.Schema/XmlSchema.cs from build since we can
get the fields directly from System.Xml.dll
svn path=/trunk/mcs/; revision=132283
Sebastien Pouliot [Tue, 21 Apr 2009 16:18:23 +0000 (16:18 -0000)]
net_2_1_raw_System.Xml.dll.sources: Remove MonoTODOAttribute.cs since we can get it from mscorlib.dll
svn path=/trunk/mcs/; revision=132282
Sebastien Pouliot [Tue, 21 Apr 2009 16:16:38 +0000 (16:16 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Open internals to System.Runtime.Serialization
since it needs some stuff from XmlSchema
svn path=/trunk/mcs/; revision=132281
Sebastien Pouliot [Tue, 21 Apr 2009 15:30:16 +0000 (15:30 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* ClientBase.cs (NET_2_1): Change cctor not to require being
[SecuritySafeCritical] and drop IDisposable.
svn path=/trunk/mcs/; revision=132269
Raja R Harinath [Tue, 21 Apr 2009 15:15:23 +0000 (15:15 -0000)]
* cs-parser.jay (GetTokenName): Mark GENERATE_COMPLETION and COMPLETE_COMPLETION as internal.
svn path=/trunk/mcs/; revision=132268
Zoltan Varga [Tue, 21 Apr 2009 15:04:44 +0000 (15:04 -0000)]
2009-04-21 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
table to avoid duplicates.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=132267
Zoltan Varga [Tue, 21 Apr 2009 15:04:35 +0000 (15:04 -0000)]
2009-04-21 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_method_code): Avoid writing symbols if the nodebug
option is used.
svn path=/trunk/mono/; revision=132266
Sebastien Pouliot [Tue, 21 Apr 2009 14:50:46 +0000 (14:50 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* UriParserTest.cs: Ensure "tcp" is not a registred scheme
* UriTest2.cs: Make sure GetComponents and IsBaseOf do not throw
NRE is no UriParser was registred for the URI scheme
svn path=/trunk/mcs/; revision=132265
Sebastien Pouliot [Tue, 21 Apr 2009 14:48:53 +0000 (14:48 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* DefaultUriParser.cs: Add special case for schema
* Uri.cs: Make sure we can use a default parser if none was
registred for the URI schema.
* UriParser.cs: Handle "*" as a special schema for "anything"
[Fix bug #496783]
svn path=/trunk/mcs/; revision=132264
Sebastien Pouliot [Tue, 21 Apr 2009 14:42:11 +0000 (14:42 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: allow System.ServiceModel access to mscorlib
internals (e.g. non-generic System.Collections.*)
svn path=/trunk/mcs/; revision=132263
Sebastien Pouliot [Tue, 21 Apr 2009 14:09:37 +0000 (14:09 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Remove extra attributes for 2.1. Open up the
internals to System.ServiceModel, e.g. to call the ctor of
System.Xml.XmlDictionaryReaderQuotas
svn path=/trunk/mcs/; revision=132261
Jb Evain [Tue, 21 Apr 2009 13:47:10 +0000 (13:47 -0000)]
2009-04-21 Jb Evain <jbevain@novell.com>
* Mono.Cecil.Cil/SymbolStoreHelper.cs: look for the assembly in the GAC
as well if it's not local.
svn path=/trunk/mcs/; revision=132257
Atsushi Eno [Tue, 21 Apr 2009 12:59:56 +0000 (12:59 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* PeerNode.cs : remove extra field.
* PeerCustomResolverSettings.cs : added Clone().
* PeerCustomResolverBindingElement.cs :
implement full custom resolver.
svn path=/trunk/mcs/; revision=132255
Atsushi Eno [Tue, 21 Apr 2009 12:05:07 +0000 (12:05 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* PeerDuplexChannel.cs, PeerChannelListener.cs,
PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
PeerChannelFactory.cs : ongoing p2p channel implementation.
svn path=/trunk/mcs/; revision=132250
Atsushi Eno [Tue, 21 Apr 2009 12:03:36 +0000 (12:03 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* ClientRuntimeChannel.cs : setup IChannel instance at construction
time, so that it can GetProperty<T>() immediately after
ChannelFactory.CreateChannel().
Implement some properties.
svn path=/trunk/mcs/; revision=132249
Atsushi Eno [Tue, 21 Apr 2009 12:01:26 +0000 (12:01 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* PeerNode.cs : update API to the latest .NET amd implement some.
svn path=/trunk/mcs/; revision=132248
Sebastien Pouliot [Tue, 21 Apr 2009 12:00:01 +0000 (12:00 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* System_test.dll.sources: Add EndPointTest.cs
svn path=/trunk/mcs/; revision=132247
Sebastien Pouliot [Tue, 21 Apr 2009 11:59:15 +0000 (11:59 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* EndPointTest.cs: New
svn path=/trunk/mcs/; revision=132246
Atsushi Eno [Tue, 21 Apr 2009 11:59:06 +0000 (11:59 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* PeerTransportBindingElementTest.cs : test PeerNode property too.
svn path=/trunk/mcs/; revision=132245
Sebastien Pouliot [Tue, 21 Apr 2009 11:58:26 +0000 (11:58 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* EndPoint.cs: Throw NotImplementedException instead of
NotSupportedException
* IPEndPoint.cs: Fix some validations.
svn path=/trunk/mcs/; revision=132244
Atsushi Eno [Tue, 21 Apr 2009 11:58:12 +0000 (11:58 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* NetPeerTcpBindingTest.cs : fix build.
svn path=/trunk/mcs/; revision=132243
Sebastien Pouliot [Tue, 21 Apr 2009 11:56:09 +0000 (11:56 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* UriTest2.cs: More constructor test cases
svn path=/trunk/mcs/; revision=132242
Sebastien Pouliot [Tue, 21 Apr 2009 11:54:56 +0000 (11:54 -0000)]
2009-04-21 Sebastien Pouliot <sebastien@ximian.com>
* Uri.cs: Fix some issues found with Moonlight (see new unit
tests)
svn path=/trunk/mcs/; revision=132239
Atsushi Eno [Tue, 21 Apr 2009 11:37:19 +0000 (11:37 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* PeerResolver.cs, PeerResolverImpl.cs :
update API to the latest .NET.
* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.
svn path=/trunk/mcs/; revision=132237
Atsushi Eno [Tue, 21 Apr 2009 11:29:22 +0000 (11:29 -0000)]
2009-04-21 Atsushi Enomoto <atsushi@ximian.com>
* BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,
ChannelFactoryBase.cs, WindowsStreamSecurityBindingElement.cs :
implement GetProperty<T>(). Return documented objects or null.
svn path=/trunk/mcs/; revision=132235
Miguel de Icaza [Tue, 21 Apr 2009 05:03:04 +0000 (05:03 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* corlib.dll.sources: Add System.IO.IsolatedStorage/
MoonIsolatedStorage.cs to the build
2009-02-07 Zoltan Varga <vargaz@gmail.com>
* Makefile: Add Test/resources/Fergie.GED to EXTRA_DIST.
2009-01-30 Atsushi Enomoto <atsushi@ximian.com>
svn path=/trunk/mcs/; revision=132223
Gonzalo Paniagua Javier [Tue, 21 Apr 2009 04:48:42 +0000 (04:48 -0000)]
2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Socket.cs: End* methods can only be called once per IAsyncResult.
Bug #466031 fixed.
svn path=/trunk/mcs/; revision=132221
Gonzalo Paniagua Javier [Tue, 21 Apr 2009 04:24:42 +0000 (04:24 -0000)]
2009-04-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConnection.cs:
* HttpWebRequest.cs: provide more information on why the connection
could not be established.
svn path=/trunk/mcs/; revision=132220
Zoltan Varga [Mon, 20 Apr 2009 22:40:11 +0000 (22:40 -0000)]
2009-04-20 Zoltan Varga <vargaz@gmail.com>
* virtual-sync.cs: Remove this, there is already a test for this in
synchronized.cs.
svn path=/trunk/mono/; revision=132213
Rodrigo Kumpera [Mon, 20 Apr 2009 22:24:44 +0000 (22:24 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* mini.c (mini_method_verify): Fail fulltrust code if the exception
is for method or field access.
svn path=/trunk/mono/; revision=132212
Rodrigo Kumpera [Mon, 20 Apr 2009 20:25:55 +0000 (20:25 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* valid_nested_eh_in_try_of_try_filter_block.il: Regression
test for #495656.
svn path=/trunk/mono/; revision=132208
Rodrigo Kumpera [Mon, 20 Apr 2009 20:25:39 +0000 (20:25 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (verify_clause_relationship): Only mask as an error if the exception clause
is nested in the filter block.
* verify.c (verify_clause_relationship): The disjoint check must verify if the exception
block is not fully nested.
Fixes #495656.
svn path=/trunk/mono/; revision=132207
Miguel de Icaza [Mon, 20 Apr 2009 19:35:58 +0000 (19:35 -0000)]
Fix man page
svn path=/trunk/mono/; revision=132205
Carlos Alberto Cortez [Mon, 20 Apr 2009 18:20:47 +0000 (18:20 -0000)]
2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* StatusStrip.cs: Use the same icon as .net when the mouse is over the
size grip.
Fixes #492828.
svn path=/trunk/mcs/; revision=132195
Carlos Alberto Cortez [Mon, 20 Apr 2009 16:24:32 +0000 (16:24 -0000)]
2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When calculating the height of the ComboListBox,
specially for the 2.0 profile, use MaxDropDownItems if the
DropDownHeight property hasn't been set, and use the later if it has
been set. This way we support both properties.
Fixes #493308.
svn path=/trunk/mcs/; revision=132188
Rodrigo Kumpera [Mon, 20 Apr 2009 16:04:59 +0000 (16:04 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* valid_initobj_this.cs: Regression test for #496175.
svn path=/trunk/mono/; revision=132187
Rodrigo Kumpera [Mon, 20 Apr 2009 16:02:38 +0000 (16:02 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (verify_type_compatibility_full): Compare MonoClass and
not MonoType to check for equality of valuetypes as the generic type
definition allows for two different encodings: the generic type definition
class or a generic instance over the GTD arguments.
Fixes #496175.
svn path=/trunk/mono/; revision=132185
Rodrigo Kumpera [Mon, 20 Apr 2009 16:01:56 +0000 (16:01 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (dump_stack_value): Fix compilation with extra debug turned on.
* verify.c (do_initobj): Improve error message.
svn path=/trunk/mono/; revision=132184
Zoltan Varga [Mon, 20 Apr 2009 15:51:09 +0000 (15:51 -0000)]
2009-04-20 Zoltan Varga <vargaz@gmail.com>
* mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
a Value to stdout.
* mini-llvm.c (mono_llvm_emit_method): Use it.
svn path=/trunk/mono/; revision=132183
Rodrigo Kumpera [Mon, 20 Apr 2009 14:33:59 +0000 (14:33 -0000)]
2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Enable pe verification as the issue with #496453
is that the authenticode data directory have a different unspecified
format. Ignore it for now.
* pedump.c: Run the metadata verifier together with the IL verifier.
Fixes ##496453.
svn path=/trunk/mono/; revision=132170
Zoltan Varga [Mon, 20 Apr 2009 13:59:16 +0000 (13:59 -0000)]
2009-04-20 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
(mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
on volatile values.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
synchronized methods.
* mini.c (mini_method_compile): Disable LLVM for dynamic methods.
svn path=/trunk/mono/; revision=132169
Rolf Bjarne Kvinge [Mon, 20 Apr 2009 12:57:02 +0000 (12:57 -0000)]
2009-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
UnhandledException event mechanism in System.Windows.Application instead
of crashing the application.
svn path=/trunk/mcs/; revision=132166
Rolf Bjarne Kvinge [Mon, 20 Apr 2009 12:48:24 +0000 (12:48 -0000)]
2009-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* metadata-verify.c: Temporarily disable pe verification due to #496453.
svn path=/trunk/mono/; revision=132159
Atsushi Eno [Mon, 20 Apr 2009 12:16:39 +0000 (12:16 -0000)]
ongoing PeerTransportBindingElement implementation.
svn path=/trunk/mcs/; revision=132146
Atsushi Eno [Mon, 20 Apr 2009 08:37:45 +0000 (08:37 -0000)]
2009-04-20 Atsushi Enomoto <atsushi@ximian.com>
* ScriptCompilerInfo.cs, MSXslScriptManager.cs :
Cache compiled msxsl:script.
Close bug #495918. Patch by Tor Lillqvist.
svn path=/trunk/mcs/; revision=132118
Miguel de Icaza [Mon, 20 Apr 2009 06:19:04 +0000 (06:19 -0000)]
2009-04-20 Miguel de Icaza <miguel@novell.com>
* Enum.cs (MonoEnumInfo): Compare bytes, shorts, ints and longs as
unsigned values as specified and to fix 371559, from the bug:
So the actual difference is that MSFT's Enum.GetValues
orders the members as unsigned even when the underlying
type is int. See the following. Perhaps that's what's
being implied by "binary values" in that Enum.GetValues
MSDN quote above.
svn path=/trunk/mcs/; revision=132113
Ankit Jain [Mon, 20 Apr 2009 04:07:22 +0000 (04:07 -0000)]
In ilasm/codegen:
Fix bug #494221
* MethodDef.cs (BeginLocalsScope): New.
(EndLocalsScope): New.
(AddLocals):
(GetNamedLocal): Support scoping for .locals
In ilasm/parser:
Fix bug #494221.
* ILParser.jay (scope_block_begin): Mark begin .locals scope.
(scope_block): Mark end .locals scope.
svn path=/trunk/mcs/; revision=132111
Miguel de Icaza [Mon, 20 Apr 2009 03:57:44 +0000 (03:57 -0000)]
2009-04-19 Miguel de Icaza <miguel@novell.com>
* Process.cs: Do not crash if GetProcesses_internal returns null
This happens on operating systems where we have not implemented
svn path=/trunk/mcs/; revision=132110
Zoltan Varga [Mon, 20 Apr 2009 02:05:16 +0000 (02:05 -0000)]
2009-04-20 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Enable ABCREM when running with LLVM.
* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
OP_LOADI8_MEM.
svn path=/trunk/mono/; revision=132106
Zoltan Varga [Mon, 20 Apr 2009 01:35:50 +0000 (01:35 -0000)]
2009-04-20 Zoltan Varga <vargaz@gmail.com>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
allowing some options to be set dynamically.
svn path=/trunk/mono/; revision=132105
Zoltan Varga [Sun, 19 Apr 2009 21:36:17 +0000 (21:36 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
unconditional branch.
* mini.h (MonoTrampolineType): Add new trampoline type
'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
compiled code.
* mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
function.
* mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
creation function.
* mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
is enabled. Instead, use the llvm vcall trampoline.
svn path=/trunk/mono/; revision=132104
Jonathan Pryor [Sun, 19 Apr 2009 19:00:10 +0000 (19:00 -0000)]
* Mono.Documentation/webdoc.cs: Change -o semantics to be a directory
prefix, e.g. `mdoc export-html-webdoc -o cache.new foo.tree` will
output files into `cache.new/foo` instead of directly into
`cache.new`. This makes it easier to specify more than one
.tree/.zip file on the command line.
svn path=/trunk/mcs/; revision=132103
Jonathan Pryor [Sun, 19 Apr 2009 18:35:56 +0000 (18:35 -0000)]
* Mono.Options/Options.cs: GetLineEnd() shouldn't skip the start
character, as it may contain '\n' (thus preventing the following text
from being properly indented).
* Test/Mono.Options/OptionSetTest.cs: Add test to check \n\n
Option.Description handling.
svn path=/trunk/mcs/; revision=132102
Rodrigo Kumpera [Sun, 19 Apr 2009 18:27:50 +0000 (18:27 -0000)]
2009-04-17 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (can_access_type): Check visibility against
the element type for pointers and arrays.
Fixes #496150.
svn path=/trunk/mono/; revision=132101
Rodrigo Kumpera [Sun, 19 Apr 2009 18:27:37 +0000 (18:27 -0000)]
2009-04-17 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (can_access_type): Check visibility against
the element type for pointers and arrays.
Fixes #496150.
svn path=/trunk/mono/; revision=132100
Rodrigo Kumpera [Sun, 19 Apr 2009 18:26:16 +0000 (18:26 -0000)]
2009-04-17 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Fix cli and table verification to use information
from the MonoImage. A lot of duplicated code got killed.
svn path=/trunk/mono/; revision=132099
Rodrigo Kumpera [Sun, 19 Apr 2009 18:25:23 +0000 (18:25 -0000)]
2009-04-17 Rodrigo Kumpera <rkumpera@novell.com>
This patch starts to integrate the metadata verifier with the runtime code.
This patch causes major regression in functionality for the metadata verifier
as cli and table verification are disabled since they require to be ported to
use MonoImage information.
* image.c (do_mono_image_load): Split the code in this function
into mono_image_load_pe_data and mono_image_load_cli_data.
Add care_about_pecoff parameter to not load pecoff data.
Call into the metadata verifier for pecoff and cli verification.
* image.c (mono_image_open_raw): New function that doesn't perform
any parsing of the image contents.
The reason for the 3 new functions is to give pedump better control
into the interaction with the verifier.
* metadata-internals.h: Add new functions from image.c as part of the
internal mono API.
* metadata-verify.c: Split mono_image_verify into mono_verifier_verify_pe_data,
mono_verifier_verify_cli_data and mono_verifier_verify_table_data. Prepare
to make those functions work together with the runtime.
* verify.c: Add mono_verifier_is_enabled_for_image function that returns
true if the image needs to be verified.
* verify-internals.h: Export new functions from metadata-verify.c and verify.c.
* pedump.c: Use new metadata verifier API.
svn path=/trunk/mono/; revision=132098
Zoltan Varga [Sun, 19 Apr 2009 18:21:34 +0000 (18:21 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.
* mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.
* mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
functions.
svn path=/trunk/mono/; revision=132097
Zoltan Varga [Sun, 19 Apr 2009 18:21:25 +0000 (18:21 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.
svn path=/trunk/mono/; revision=132096
Zoltan Varga [Sun, 19 Apr 2009 17:48:23 +0000 (17:48 -0000)]
Revert "In metadata/"
This reverts commit
e2a22d86069b7fa0e63c426303e2822ea201714c.
svn path=/trunk/mono/; revision=132095
Zoltan Varga [Sun, 19 Apr 2009 12:05:28 +0000 (12:05 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini-ia64.c (mono_arch_lowering_pass): Null out the sregs of the
OP_IA64_CSET opcode.
svn path=/trunk/mono/; revision=132093
Zoltan Varga [Sun, 19 Apr 2009 10:55:41 +0000 (10:55 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini.c: Fix a warning.
svn path=/trunk/mono/; revision=132092
Zoltan Varga [Sun, 19 Apr 2009 10:40:40 +0000 (10:40 -0000)]
Add more debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132091
Zoltan Varga [Sat, 18 Apr 2009 23:35:42 +0000 (23:35 -0000)]
Add more debug code to diagnose the buildbot failure.
svn path=/trunk/mono/; revision=132082
Zoltan Varga [Sat, 18 Apr 2009 22:21:55 +0000 (22:21 -0000)]
In metadata/
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_install_vtable_trampoline): Make this receive a
trampoline creation function instead of trampoline, allowing the JIT
to use a different trampoline for each vtable.
In mini/
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_create_vtable_trampoline): Make this receive a
vtable argument, not yet used.
svn path=/trunk/mono/; revision=132081
Zoltan Varga [Sat, 18 Apr 2009 22:17:12 +0000 (22:17 -0000)]
Add some more debug code.
svn path=/trunk/mono/; revision=132080
Zoltan Varga [Sat, 18 Apr 2009 22:13:07 +0000 (22:13 -0000)]
2009-04-19 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Convert arguments of SWITCH and
THROW to the appropriate llvm type.
svn path=/trunk/mono/; revision=132079
Zoltan Varga [Sat, 18 Apr 2009 20:59:35 +0000 (20:59 -0000)]
Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132078
Mark Probst [Sat, 18 Apr 2009 14:25:21 +0000 (14:25 -0000)]
Don't reset thread abort exception state when raising an exception.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* object.c (mono_raise_exception): Don't reset the thread abort
exception state here.
svn path=/trunk/mono/; revision=132076
Jonathan Pryor [Sat, 18 Apr 2009 03:31:21 +0000 (03:31 -0000)]
* Mono.Options/Options.cs: Viktor Lundgren reported that
Option.Description text of `"aaa." . "a" x 64` (that is, "aaa."
followed by 64 "a"s) would cause GetLines() to go into an infinite
loop and (eventually) die from an OutOfMemoryException. Oops.
Fix this, simplify the logic, and turn GetLines() into an
IEnumerable<string>.
* Test/Mono.Options/OptionSetTest.cs: Add additional line breaking
tests. Remove [Category("NotWorking")], as they work for me.
svn path=/trunk/mcs/; revision=132074
Zoltan Varga [Sat, 18 Apr 2009 02:10:34 +0000 (02:10 -0000)]
Add some debug code to help diagnose a buildbot failure.
svn path=/trunk/mono/; revision=132073
Zoltan Varga [Sat, 18 Apr 2009 01:22:41 +0000 (01:22 -0000)]
2009-04-18 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_method_compile): Add statistics for methods JITted
with/without LLVM.
svn path=/trunk/mono/; revision=132072
Mark Probst [Fri, 17 Apr 2009 23:32:33 +0000 (23:32 -0000)]
2009-04-18 Mark Probst <mark.probst@gmail.com>
* NumberFormatter.cs: Keep the current thread's number formatter
as a ThreadStatic member.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* Thread.cs: Don't keep the current number formatter here
because it's shared between app domains.
svn path=/trunk/mcs/; revision=132067
Mark Probst [Fri, 17 Apr 2009 23:30:57 +0000 (23:30 -0000)]
2009-04-18 Mark Probst <mark.probst@gmail.com>
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
created in the other app domain so as not to pollute our own.
svn path=/trunk/mcs/; revision=132066
Miguel de Icaza [Fri, 17 Apr 2009 23:20:07 +0000 (23:20 -0000)]
2009-04-17 Miguel de Icaza <miguel@novell.com>
* complete.cs: Include namespace resolution in simple names as
well as global types and types in the using scope in the
resolution.
* namespace.cs: Supporting infrastrcture to provide completions
based on the current using scope.
svn path=/trunk/mcs/; revision=132065
Mark Probst [Fri, 17 Apr 2009 23:01:23 +0000 (23:01 -0000)]
Proper app domain separation regarding thread abort exception state.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* icall-def.h: New icall for getting the thread abort exception
state for a thread.
* object.c, thread.c, object-internals.h: A thread's abort
exception state is now a GC handle. To get the object it stands
for, we must move it into the current app domain, if it's
different than the one where it originated from.
* appdomain.c: Bump corlib version.
* domain.c, domain-internals.h: New function for setting the
domain and migrate the thread abort exception or not.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* appdomain-thread-abort.cs: New tests for thread aborts across
app domains.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=132064
Mark Probst [Fri, 17 Apr 2009 23:01:02 +0000 (23:01 -0000)]
Proper app domain separation regarding thread abort exception state.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* Thread.cs: Make the abort exception state a GC handle, to
properly separate AppDomains. Add internal method for getting the
state object.
* ThreadAbortException.cs: Get the abort exception state via the
method in Thread.
2009-04-18 Mark Probst <mark.probst@gmail.com>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132063
Zoltan Varga [Fri, 17 Apr 2009 21:55:23 +0000 (21:55 -0000)]
2009-04-17 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c: Fix the computation of ins_sreg_counts for ia64
OP_IA64_CMP_<cond>_IMM opcodes.
svn path=/trunk/mono/; revision=132058
Zoltan Varga [Fri, 17 Apr 2009 21:55:10 +0000 (21:55 -0000)]
2009-04-17 Zoltan Varga <vargaz@gmail.com>
* tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Fix AOT
support.
svn path=/trunk/mono/; revision=132057