mono.git
14 years agoNew tests.
Marek Safar [Tue, 1 Dec 2009 14:08:12 +0000 (14:08 -0000)]
New tests.

svn path=/trunk/mcs/; revision=147228

14 years ago2009-12-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Dec 2009 14:05:18 +0000 (14:05 -0000)]
2009-12-01  Marek Safar  <marek.safar@gmail.com>

 argument.cs, assign.cs, expression.cs, cs-parser.jay: Named
 arguments by ref.

svn path=/trunk/mcs/; revision=147227

14 years ago2009-12-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 14:02:23 +0000 (14:02 -0000)]
2009-12-01  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfig_2_1.cs: Add mapping for SHA256 since it's used
internally in corlib (e.g. HMAC256)
* KeySizes.cs, RandomNumberGenerator.cs, RNGCryptoServiceProvider.cs:
Remove [ComVisible] attribute from NET_2_1 build.

svn path=/trunk/mcs/; revision=147225

14 years ago2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Dec 2009 13:42:52 +0000 (13:42 -0000)]
2009-12-01 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-trampolines.c: Check for mono_method_get_vtable_slot failures.

svn path=/trunk/mono/; revision=147220

14 years ago2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Dec 2009 13:42:44 +0000 (13:42 -0000)]
2009-12-01  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_setup_vtable_general): Check for mono_method_get_vtable_slot
failures.

* class.c (mono_method_get_vtable_slot): Don't assert if the computed method slot
is -1 but its class is broken.

Fixes #558522.

svn path=/trunk/mono/; revision=147219

14 years ago2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Dec 2009 13:42:35 +0000 (13:42 -0000)]
2009-12-01  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c: Introduce mono_metadata_get_param_attrs_checked which checks
for parameter overflow.

* metadata.c (mono_metadata_parse_method_signature_full): Use checked version
of mono_metadata_get_param_attrs.

* metadata-internals.h: Add mono_metadata_get_param_attrs_checked to the internal
API.

* loader.c (mono_method_signature): Use checked version of mono_metadata_get_param_attrs.

svn path=/trunk/mono/; revision=147218

14 years agoUse normal documentation structure
Marek Safar [Tue, 1 Dec 2009 13:41:26 +0000 (13:41 -0000)]
Use normal documentation structure

svn path=/trunk/mcs/; revision=147217

14 years agoMono.CSharp relocation
Marek Safar [Tue, 1 Dec 2009 13:34:12 +0000 (13:34 -0000)]
Mono.CSharp relocation

svn path=/trunk/mcs/; revision=147216

14 years ago2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Dec 2009 12:30:03 +0000 (12:30 -0000)]
2009-12-01  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_setup_fields): Check for fields with broken types.

Fixes #558741.

svn path=/trunk/mono/; revision=147214

14 years ago2009-12-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 1 Dec 2009 11:37:18 +0000 (11:37 -0000)]
2009-12-01  Marek Habersack  <mhabersack@novell.com>

* Cache.cs: ExpireItems dequeues the next item when a disabled
item is found before continuing to look for items to expire. Fixes
bug #559470. Patch from Adriaan van Kekem <avkekem@hotmail.com>,
thanks.

svn path=/trunk/mcs/; revision=147213

14 years ago2009-12-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 1 Dec 2009 08:44:10 +0000 (08:44 -0000)]
2009-12-01  Marek Safar  <marek.safar@gmail.com>

A fix for bug #360455
* class.cs: Never report a unused warning for generic events to
workaround wrong expression type.

svn path=/trunk/mcs/; revision=147189

14 years agoMove docs.
Marek Safar [Tue, 1 Dec 2009 08:37:54 +0000 (08:37 -0000)]
Move docs.

svn path=/trunk/mcs/; revision=147188

14 years ago2009-12-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Dec 2009 07:11:53 +0000 (07:11 -0000)]
2009-12-01  Atsushi Enomoto  <atsushi@ximian.com>

* Atom10ItemFormatter.cs, Atom10FeedFormatter.cs :
  write extensions. Patch by Tom Philpot.

svn path=/trunk/mcs/; revision=147183

14 years ago2009-12-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Dec 2009 06:37:20 +0000 (06:37 -0000)]
2009-12-01  Atsushi Enomoto  <atsushi@ximian.com>

* SilverlightClientConfigLoader.cs : I made an extraneous change.

svn path=/trunk/mcs/; revision=147181

14 years ago2009-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 1 Dec 2009 06:35:39 +0000 (06:35 -0000)]
2009-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* FileTest.cs: New test for File.Copy throwing an exception if src and
dest are the same.

svn path=/trunk/mcs/; revision=147180

14 years ago2009-12-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Dec 2009 06:33:53 +0000 (06:33 -0000)]
2009-12-01  Atsushi Enomoto  <atsushi@ximian.com>

* ClientCredentials.cs : more SL3 changes.

* ClientBase.cs, ChannelFactory_1.cs, ChannelFactory.cs :
  more SL3 changes.

svn path=/trunk/mcs/; revision=147179

14 years ago2009-12-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Dec 2009 06:30:24 +0000 (06:30 -0000)]
2009-12-01  Atsushi Enomoto  <atsushi@ximian.com>

* SilverlightClientConfigLoader.cs : do not enter infinite loop at
  empty <binding> element.

svn path=/trunk/mcs/; revision=147178

14 years ago2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 02:07:06 +0000 (02:07 -0000)]
2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>

* CookieCollection.cs: Seal inner CookieCollectionPathComparer
* IPAddress.cs: Avoid multiple casts in Equals
* SocketAddress.cs: Avoid multiple casts in Equals
[Found using Gendarme]

svn path=/trunk/mcs/; revision=147163

14 years ago2009-11-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 1 Dec 2009 01:41:38 +0000 (01:41 -0000)]
2009-11-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* io.cs: In CopyFile check if the destination already exists before
trying to open it, and if it is the same as the source, report an error,
just as .net does. We do the check here to take advantage of the IOMAP
capability.
Fixes #510230.

svn path=/trunk/mono/; revision=147160

14 years ago2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 01:38:11 +0000 (01:38 -0000)]
2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove [StringFreezing] and [DefaultDependency]
from NET_2_1 builds

svn path=/trunk/mcs/; revision=147158

14 years ago2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 01:27:53 +0000 (01:27 -0000)]
2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>

* Uri.cs: Hide protected EscapeString and Unescape for SL2/3
* UriTypeConverter.cs: Seal type for SL2/3

svn path=/trunk/mcs/; revision=147156

14 years ago2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 01:21:04 +0000 (01:21 -0000)]
2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>

* TypeConverterAttribute.cs: Add missing [ComVisible] for SL2/3 builds

svn path=/trunk/mcs/; revision=147154

14 years ago2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Dec 2009 01:14:35 +0000 (01:14 -0000)]
2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>

* Debug_2_1.cs: Change type to sealed to match SL2/3

svn path=/trunk/mcs/; revision=147153

14 years agoNew test.
Marek Safar [Mon, 30 Nov 2009 19:37:17 +0000 (19:37 -0000)]
New test.

svn path=/trunk/mcs/; revision=147118

14 years ago2009-11-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 30 Nov 2009 19:36:52 +0000 (19:36 -0000)]
2009-11-30  Marek Safar  <marek.safar@gmail.com>

A fix for bug #558305
* decl.cs, class.cs: Check partial method definitions using correct
flag.

svn path=/trunk/mcs/; revision=147117

14 years ago2009-11-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 30 Nov 2009 17:18:34 +0000 (17:18 -0000)]
2009-11-30  Marek Safar  <marek.safar@gmail.com>

* argument.cs: Don't cache rarely used dynamic flag.

svn path=/trunk/mcs/; revision=147110

14 years agosvn path=/trunk/mcs/; revision=147108
Andrés G. Aragoneses [Mon, 30 Nov 2009 16:38:03 +0000 (16:38 -0000)]
svn path=/trunk/mcs/; revision=147108

14 years agoForward port r147102
Andrés G. Aragoneses [Mon, 30 Nov 2009 16:36:03 +0000 (16:36 -0000)]
Forward port r147102

svn path=/trunk/mcs/; revision=147106

14 years ago * monotouch_System.Xml.dll.sources: Add System.Xml/NamespaceHandling.cs
Jonathan Pryor [Mon, 30 Nov 2009 16:33:22 +0000 (16:33 -0000)]
* monotouch_System.Xml.dll.sources: Add System.Xml/NamespaceHandling.cs
  to the MonoTouch build (fixed build break).

svn path=/trunk/mcs/; revision=147105

14 years ago2009-11-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 30 Nov 2009 16:27:04 +0000 (16:27 -0000)]
2009-11-30  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_lowering_pass): Fix an assert which is hit when
the instruction following an OP_FCOMPARE is optimized away.

svn path=/trunk/mono/; revision=147101

14 years ago2009-11-30 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 30 Nov 2009 12:35:20 +0000 (12:35 -0000)]
2009-11-30  Marek Habersack  <mhabersack@novell.com>

* WebControl.cs: HasAttributes made available as internal for 1.1
Avoid calling the Attributes getter many times in
CopyBaseAttributes.
If TrackViewState is called and attributes state bag already
exists, mark all items in the latter as dirty.

* CheckBox.cs, Button.cs, ImageButton.cs, LinkButton.cs: do not
create the Attributes collection if not necessary.

svn path=/trunk/mcs/; revision=147094

14 years ago2009-11-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 30 Nov 2009 02:08:54 +0000 (02:08 -0000)]
2009-11-30  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (arch_emit_autoreg): Extract the auto-registration code from
emit_autoreg () into this arch-specific function.

svn path=/trunk/mono/; revision=147085

14 years ago2009-11-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 30 Nov 2009 02:00:41 +0000 (02:00 -0000)]
2009-11-30  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_exception_debug_info): Don't emit the length of the
code, it is no longer needed.

* aot-runtime.c (decode_exception_debug_info): Don't read the code length.

* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=147084

14 years ago2009-11-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 30 Nov 2009 02:00:34 +0000 (02:00 -0000)]
2009-11-30  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (mono_aot_find_jit_info): Compute the length of the method
using the sorted_code_offsets array, instead of reading it from the
exception debug info.
(load_method): Call mono_aot_find_jit_info instead of
decode_exception_debug_info ().

* aot-compiler.c (emit_exception_debug_info): Emit whenever the method was
LLVM compiled as a flag.

svn path=/trunk/mono/; revision=147083

14 years ago2009-11-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 29 Nov 2009 15:18:16 +0000 (15:18 -0000)]
2009-11-29  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (resume_thread): Fix a warning.

svn path=/trunk/mono/; revision=147075

14 years ago2009-11-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 28 Nov 2009 23:11:38 +0000 (23:11 -0000)]
2009-11-29  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Add an option to set the number of static rgctx trampolines
generated.

svn path=/trunk/mono/; revision=147063

14 years ago2009-11-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 28 Nov 2009 19:05:19 +0000 (19:05 -0000)]
2009-11-28  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (ensure_generic_class_runtime_vtable): Split this function in 2
so we can avoid calling ensure_runtime_vtable multiple times for the GTD during
its TypeBuilder::CreateType ().

* reflection.c (ensure_generic_class_runtime_vtable): Avoid initializing interfaces
if not needed.

* reflection.c: Every time we change the interface array, set interfaces_packed to NULL
to make setup_interface_offsets happy.

* reflection.c (remove_instantiations_of_and_ensure_contents): Fix instances again as corlib
compilation now works.

svn path=/trunk/mono/; revision=147062

14 years ago2009-11-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 28 Nov 2009 17:30:45 +0000 (17:30 -0000)]
2009-11-28  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (create_exceptions): New helper function extracted from
mono_runtime_init () to precreate objects used during exception handling.
(mono_runtime_init): Call it.
(mono_domain_create_appdomain_internal): Ditto. Fixes #555264.

svn path=/trunk/mono/; revision=147057

14 years ago2009-11-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 28 Nov 2009 15:42:18 +0000 (15:42 -0000)]
2009-11-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* WinSerialStream.cs: Make CommStat a struct instead of a class to
make properly work ClearCommError.
Fixes the remaining bits of #348751.

svn path=/trunk/mcs/; revision=147053

14 years ago2009-11-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 27 Nov 2009 23:23:19 +0000 (23:23 -0000)]
2009-11-28  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c aot-runtime.c: Get rid of a few global symbols, move their
contents to MonoAotFileInfo.

svn path=/trunk/mono/; revision=147052

14 years ago2009-11-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 27 Nov 2009 22:26:54 +0000 (22:26 -0000)]
2009-11-27  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c aot-runtime.c: Reorganize the AOT file format once again.
Put all binary data into a giant blob, similarly to the way .net assemblies
store binary data. Emit offset tables in a compact form to reduce their size.

* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=147051

14 years agoFix bug #547753.
Ankit Jain [Fri, 27 Nov 2009 22:12:52 +0000 (22:12 -0000)]
Fix bug #547753.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #547753.
* BatchingImplBase.cs (DumpBucket*): New. Useful for debugging.
* Project.cs (Batch): New. Contains the perBatchItems and the
commonItems for the batch.
Use a stack of batches, instead of directly setting the current
batch items.
(PushBatch): New.
(PopBatch): New.
(SetBatchedItems): Make this private.
(GlobalProperties.set): Re-evaluating the project is not required
for this.
* TargetBatchingImpl.cs: Use the new Push/PopBatch instead of directly
setting the batches.
* TaskBatchingImpl.cs: Likewise. Refactor slightly to PopBatch in
finally block.
* Target.cs (Build): Reset the current batch to nil before evaluating
and building this target.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TaskBatchingTest.cs: Add new tests for batching.

svn path=/trunk/mcs/; revision=147050

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Fri, 27 Nov 2009 22:11:06 +0000 (22:11 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* Project.cs (TryGetEvaluatedItemByNameBatched): Item could be
available in either perBatchItemsByName or commonItemsByName
or the evaluatedItemsByName collection. Allows the use of
items which are not batched, but are consumed in case of batching.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

* TaskBatchingTest.cs: Add new tests for batching, use on unbatched
items in a batching scenario.

svn path=/trunk/mcs/; revision=147049

14 years ago2009-11-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 27 Nov 2009 18:35:45 +0000 (18:35 -0000)]
2009-11-27  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (remove_instantiations_of_and_ensure_contents): Temp hack to fix corlib
compilation until the proper one is found.

svn path=/trunk/mono/; revision=147048

14 years agoUse global alias for Resize
Marek Safar [Fri, 27 Nov 2009 16:03:48 +0000 (16:03 -0000)]
Use global alias for Resize

svn path=/trunk/mcs/; revision=147043

14 years agoFix a warning.
Zoltan Varga [Fri, 27 Nov 2009 15:24:43 +0000 (15:24 -0000)]
Fix a warning.

svn path=/trunk/mono/; revision=147040

14 years ago2009-11-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 27 Nov 2009 15:09:45 +0000 (15:09 -0000)]
2009-11-27  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_setup_vtable_general): Cache the result of
get_virtual_methods () since it can be slow because of the metadata
optimization.

svn path=/trunk/mono/; revision=147037

14 years ago2009-11-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 27 Nov 2009 14:41:02 +0000 (14:41 -0000)]
2009-11-27  Zoltan Varga  <vargaz@gmail.com>

* metadata-internals.h (_MonoImage): Change 'method_cache' to a GHashTable
from a MonoValueHashTable for now, since the later is based on an earlier
version of hpj's internal probing code and seems to have serious collision
issues.

* loader.c (mono_get_method_full): Update after the change above.

svn path=/trunk/mono/; revision=147035

14 years ago2009-11-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 27 Nov 2009 11:56:19 +0000 (11:56 -0000)]
2009-11-27  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Use jay global stacks (saves over 3MB for corlib).

svn path=/trunk/mcs/; revision=147029

14 years ago2009-11-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 27 Nov 2009 11:54:42 +0000 (11:54 -0000)]
2009-11-27  Marek Safar  <marek.safar@gmail.com>

* skeleton.cs: Add global state stacks.

svn path=/trunk/mcs/; revision=147028

14 years ago2009-11-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 27 Nov 2009 10:19:56 +0000 (10:19 -0000)]
2009-11-27  Marek Safar  <marek.safar@gmail.com>

* ecore.cs (SimpleName): Removed no longer needed in_transit as
Resolve is now non-reentrant (saves ~0.6MB for corlib).

svn path=/trunk/mcs/; revision=147025

14 years agoFix 64bit
Marek Safar [Fri, 27 Nov 2009 10:12:48 +0000 (10:12 -0000)]
Fix 64bit

svn path=/trunk/mcs/; revision=147024

14 years ago2009-11-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 27 Nov 2009 03:14:15 +0000 (03:14 -0000)]
2009-11-27  Atsushi Enomoto  <atsushi@ximian.com>

* NamespaceHandling.cs, XmlWriterSettings.cs, XmlTextWriter2.cs:
  implement NamespaceHandling support for Moonlight.

* System.Xml.dll.sources : added NamespaceHandling which is kept
  internal in 2.0 (to simplify its support in XmlTextWriter).

svn path=/trunk/mcs/; revision=147022

14 years ago2009-11-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 27 Nov 2009 02:30:37 +0000 (02:30 -0000)]
2009-11-27  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_globals_table): Use temp_prefix instead of .L in a few
places.

svn path=/trunk/mono/; revision=147020

14 years ago2009-11-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 27 Nov 2009 02:00:27 +0000 (02:00 -0000)]
2009-11-27  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeWriter.cs : avoid prefix NRE on WriteStartAttribute().

svn path=/trunk/mcs/; revision=147019

14 years ago2009-11-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 23:49:12 +0000 (23:49 -0000)]
2009-11-27  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_globals_table): Emit a hash table for the globals, to
avoid linear searches at runtime.

* aot-runtime.c (find_symbol): Update this to use the hash.

* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=147016

14 years agoFix the previous commit.
Zoltan Varga [Thu, 26 Nov 2009 21:01:33 +0000 (21:01 -0000)]
Fix the previous commit.

svn path=/trunk/mono/; revision=147013

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 20:53:34 +0000 (20:53 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* mono-ehash.c (mono_g_hash_table_find): Add this for eglib too.

svn path=/trunk/mono/; revision=147011

14 years agoRevert "2009-11-26 Zoltan Varga <vargaz@gmail.com>"
Zoltan Varga [Thu, 26 Nov 2009 20:45:21 +0000 (20:45 -0000)]
Revert "2009-11-26  Zoltan Varga  <vargaz@gmail.com>"

This reverts commit 31215acbb9b24b58c938755143795dd49556a69e.

Revert this pending further testing.

svn path=/trunk/mono/; revision=147010

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 20:39:46 +0000 (20:39 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_register_opcode_emulation): Make this a no-op when the JIT
is disabled.

svn path=/trunk/mono/; revision=147009

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 20:39:39 +0000 (20:39 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_klass_info): Save whenever the class has a generic
container.

* aot-runtime.c (decode_cached_class_info): Set the is_generic_container field
too.

svn path=/trunk/mono/; revision=147008

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 20:39:32 +0000 (20:39 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* class-internals.h (MonoCachedClassInfo): Add 'is_generic_container' field.

svn path=/trunk/mono/; revision=147007

14 years agoNew test.
Marek Safar [Thu, 26 Nov 2009 17:53:37 +0000 (17:53 -0000)]
New test.

svn path=/trunk/mcs/; revision=147005

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 17:44:49 +0000 (17:44 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

A fix for bug #545081
* decl.cs: Check private nested types of nested types recursively.

svn path=/trunk/mcs/; revision=147003

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 16:13:27 +0000 (16:13 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* Updated to r35702.

svn path=/trunk/mcs/; revision=147001

14 years agoNew test.
Marek Safar [Thu, 26 Nov 2009 15:32:06 +0000 (15:32 -0000)]
New test.

svn path=/trunk/mcs/; revision=146997

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 15:31:47 +0000 (15:31 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

A fix for bug #558305
* location.cs: Ignore self referencing #line directive

svn path=/trunk/mcs/; revision=146996

14 years ago2009-11-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 26 Nov 2009 15:20:50 +0000 (15:20 -0000)]
2009-11-26  Sebastien Pouliot  <sebastien@ximian.com>

* Random.cs: Fix case where the diff between min and max
is very large in Next(int,int). Fix bug #558593

svn path=/trunk/mcs/; revision=146993

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 15:11:47 +0000 (15:11 -0000)]
2009-11-26  Marek Safar <marek.safar@gmail.com>

* CollectionDebuggerView.cs: Removed limit restriction.

svn path=/trunk/mcs/; revision=146992

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 15:11:22 +0000 (15:11 -0000)]
2009-11-26  Marek Safar <marek.safar@gmail.com>

* CollectionDebuggerView.cs: Removed limit restriction.

svn path=/trunk/mcs/; revision=146991

14 years agoNew test.
Marek Safar [Thu, 26 Nov 2009 14:46:48 +0000 (14:46 -0000)]
New test.

svn path=/trunk/mcs/; revision=146988

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 14:46:19 +0000 (14:46 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

A fix for bug #558292
* class.cs: Allow single unsafe fixed buffer fields.

svn path=/trunk/mcs/; revision=146987

14 years agoMore tests, update
Marek Safar [Thu, 26 Nov 2009 14:30:41 +0000 (14:30 -0000)]
More tests, update

svn path=/trunk/mcs/; revision=146986

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 14:30:18 +0000 (14:30 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* expression: Optimize few more zero-based operations.

svn path=/trunk/mcs/; revision=146985

14 years ago2009-11-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 26 Nov 2009 14:01:05 +0000 (14:01 -0000)]
2009-11-26  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (get_field_on_inst_generic_type): Try to fallback using the field from
the GTD instead of the DGC instead of crashing.

* reflection.c (ensure_generic_class_runtime_vtable): Only reinflate stuff that is
required. Inflate fields if needed.

* reflection.c (remove_instantiations_of): Ensure generic instances are properly
finished. Renamed.

svn path=/trunk/mono/; revision=146984

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 13:01:23 +0000 (13:01 -0000)]
2009-11-26  Marek Safar <marek.safar@gmail.com>

* LinkedList.cs: Allocate less.

svn path=/trunk/mcs/; revision=146981

14 years ago2009-11-26 Stephane Delcroix <stephane@delcroix.org>
Stephane Delcroix [Thu, 26 Nov 2009 12:54:45 +0000 (12:54 -0000)]
2009-11-26  Stephane Delcroix  <stephane@delcroix.org>

* Uri.cs (ParseNoExceptions): don't try to find a scheme if the uri is a
UnixFileName or WindowsUNC.

svn path=/trunk/mcs/; revision=146980

14 years agoThis shouldn't go in
Marek Safar [Thu, 26 Nov 2009 12:33:27 +0000 (12:33 -0000)]
This shouldn't go in

svn path=/trunk/mcs/; revision=146978

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 12:28:57 +0000 (12:28 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Add a 'stats' option to print out
the distribution of got slot types.

svn path=/trunk/mono/; revision=146977

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 12:11:35 +0000 (12:11 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* Makefile: Don't build csharplib.

svn path=/trunk/mcs/; revision=146976

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 12:09:26 +0000 (12:09 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* Makefile: Add Mono.CSharp.

svn path=/trunk/mcs/; revision=146975

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 12:05:28 +0000 (12:05 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MonoDebugOptions): Add 'explicit_null_checks' option.

* method-to-ir.c: Add support for generating explicit null checks.

svn path=/trunk/mono/; revision=146974

14 years agounused using
Marek Safar [Thu, 26 Nov 2009 11:56:40 +0000 (11:56 -0000)]
unused using

svn path=/trunk/mcs/; revision=146973

14 years agoUpdated.
Marek Safar [Thu, 26 Nov 2009 11:27:55 +0000 (11:27 -0000)]
Updated.

svn path=/trunk/mcs/; revision=146972

14 years ago2009-11-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 26 Nov 2009 10:52:52 +0000 (10:52 -0000)]
2009-11-26  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (check_interface_method_override): Check for NULL signatures and fail
the type.

* debug-helpers.c (mono_signature_get_desc): Return a fixed string for NULL signatures.

Fixes #553428.

svn path=/trunk/mono/; revision=146970

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 10:45:21 +0000 (10:45 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs, cs-parser.jay: Simplify literal parsing, also
avoids boxing of literal values.

svn path=/trunk/mcs/; revision=146969

14 years agoforget to save
Marek Safar [Thu, 26 Nov 2009 09:18:56 +0000 (09:18 -0000)]
forget to save

svn path=/trunk/mcs/; revision=146967

14 years ago2009-11-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 26 Nov 2009 09:13:45 +0000 (09:13 -0000)]
2009-11-26  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs, argument.cs, eval.cs, linq.cs, decl.cs,
expression.cs, ecore.cs, location.cs, cs-parser.jay, attribute.cs,
codegen.cs: LocatedToken redesing to avoid excessive allocation and
boxing (saves ~7MB for corlib).

svn path=/trunk/mcs/; revision=146966

14 years ago2009-11-26 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 26 Nov 2009 08:26:10 +0000 (08:26 -0000)]
2009-11-26  Astushi Enomoto  <atsushi@ximian.com>

* net_2_1_raw_System.ServiceModel.dll.sources : fix file name case,
  which was not caught on windows.

svn path=/trunk/mcs/; revision=146965

14 years ago * Makefile: When copying mdoc-net.exe into ./mdoc-net, rename it to
Jonathan Pryor [Thu, 26 Nov 2009 03:24:03 +0000 (03:24 -0000)]
* Makefile: When copying mdoc-net.exe into ./mdoc-net, rename it to
  mdoc.exe so that .NET users continue to use the name 'mdoc'.  This
  will make documentation easier, etc.

svn path=/trunk/mcs/; revision=146962

14 years ago2009-11-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 26 Nov 2009 01:45:10 +0000 (01:45 -0000)]
2009-11-26  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_get_virtual_methods): Call decode_row_col to obtain
the MONO_METHOD_FLAGS column instead of decoding the whole row.

svn path=/trunk/mono/; revision=146961

14 years ago2009-11-25 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Nov 2009 22:56:54 +0000 (22:56 -0000)]
2009-11-25  Astushi Enomoto  <atsushi@ximian.com>

* net_2_1_raw_System.ServiceModel.dll.sources, Dummy_2_1.cs:
  reflected a couple of SL3 updates.

* EndpointAddress10.cs : added it to the 2.1 build for SL3 API.

* MessageHeaders.cs
  SecurityBindingElement.cs
  LocalClientSecuritySettings.cs
  TransportSecurityBindingElement.cs
  FaultConverter.cs : They are now part of SL3 API.

* ClientCredentials.cs : it is part of SL3 API, so adjusted for it.

svn path=/trunk/mcs/; revision=146952

14 years ago* TargetBatchingImpl.cs (BuildTargetNeeded): Expand metadata
Ankit Jain [Wed, 25 Nov 2009 21:22:53 +0000 (21:22 -0000)]
* TargetBatchingImpl.cs (BuildTargetNeeded): Expand metadata
refs also, for Inputs and Outputs.

svn path=/trunk/mcs/; revision=146948

14 years ago* xbuild/Microsoft.Common.targets (PostBuildEvent): If
Ankit Jain [Wed, 25 Nov 2009 21:12:20 +0000 (21:12 -0000)]
* xbuild/Microsoft.Common.targets (PostBuildEvent): If
$(RunPostBuildEvent) is empty, treat it as OnBuildSuccess.
Simplify condition.

svn path=/trunk/mcs/; revision=146947

14 years ago + Giving up on getting mdoc to fully work under .NET; specifically,
Jonathan Pryor [Wed, 25 Nov 2009 19:52:28 +0000 (19:52 -0000)]
+ Giving up on getting mdoc to fully work under .NET; specifically,
  mdoc-export-html makes use of many Mono XSLT "extensions" (part of
  XSLT 2.0, apparently) which .NET doesn't support.  To run mdoc under
  .NET, use mdoc-net.exe, which is a "static" mdoc.exe, including the
  sources for BOTH monodoc.dll AND Mono's System.Xml.dll in the binary.
  Yes, this makes it huge.

* . (svn:ignore): Ignore generated files.
* Makefile: If the NET variable is present (e.g. 'make NET=1'),
  generate mdoc-net.exe instead of mdoc.exe, otherwise generate
  mdoc.exe (the default, with normal dependencies).  When NET is
  present, also create a 'mdoc-net' directory which contains
  mdoc-net.exe and all assembly dependencies (to make it easier to
  grab all the deps at once).
* mdoc-net.exe.sources: Added; sources to use for mdoc-net.exe.
* Mono.Documentation/monodocs2html.cs: Ensure that the "Index" XSLT
  variable is set before generating output.

svn path=/trunk/mcs/; revision=146942

14 years ago2009-11-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 25 Nov 2009 19:31:09 +0000 (19:31 -0000)]
2009-11-25  Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (field_from_memberref): Resolve the class first then the field
signature. Remove a lot of duplicated code and make sure we don't pass valid
values to mono_loader_set_error_field_load.

Fixes #553306.

svn path=/trunk/mono/; revision=146937

14 years ago2009-11-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 25 Nov 2009 19:30:57 +0000 (19:30 -0000)]
2009-11-25  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (inflate_generic_type): Change code to use new signature of
mono_error_set_bad_image.

Fixes #558124.

2009-11-25 Rodrigo Kumpera  <rkumpera@novell.com>

* mono-error-internals.h: Add mono_error_set_bad_image_name and change signature
of mono_error_set_bad_image to take a MonoImage instead of a const char *.

* mono-error.c: Same.

svn path=/trunk/mono/; revision=146936

14 years agoIn class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Ankit Jain [Wed, 25 Nov 2009 19:15:15 +0000 (19:15 -0000)]
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ManagedCompiler.cs (AddResponseFileCommands): *mcs doesn't
support /debug:pdbonly, so map it to /debug:full .

In tools/xbuild/tests:

* standalone/Project1/final-outputs.txt: Update.

svn path=/trunk/mcs/; revision=146934

14 years agoin System.Collections.Generic:
Jb Evain [Wed, 25 Nov 2009 17:30:16 +0000 (17:30 -0000)]
in System.Collections.Generic:
2009-11-25  Jb Evain  <jbevain@novell.com>

* Queue.cs (Enqueue): deal with the case where the tail
is off the array when deciding to enlarge the capacity.

in Test/System.Collections.Generic:
2009-11-25  Jb Evain  <jbevain@novell.com>

* QueueTest.cs: add test for a specific combination of
calls that make the queue crash when enqueuing an item.

svn path=/trunk/mcs/; revision=146925

14 years ago2009-11-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 25 Nov 2009 16:18:25 +0000 (16:18 -0000)]
2009-11-25  Sebastien Pouliot  <sebastien@ximian.com>

* verify.c (mono_method_verify): Don't free ctx.params items if
we aborted while inflating the ctx.locals. Complete previous fix

svn path=/trunk/mono/; revision=146919