mono.git
15 years agoNew tests
Marek Safar [Wed, 18 Feb 2009 16:17:25 +0000 (16:17 -0000)]
New tests

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

15 years ago2009-02-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 18 Feb 2009 16:17:00 +0000 (16:17 -0000)]
2009-02-18  Marek Safar  <marek.safar@gmail.com>

A fix for bug #476400
* statemetn.cs, expression.cs: Removed wrong Dispose optimization.

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

15 years ago2009-02-18 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 18 Feb 2009 16:14:26 +0000 (16:14 -0000)]
2009-02-18  Jb Evain  <jbevain@novell.com>

* SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
method, even if already obsolete.

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

15 years ago2009-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 18 Feb 2009 15:59:32 +0000 (15:59 -0000)]
2009-02-18  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (create_custom_attr): Get rid of alloca.

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

15 years ago2009-02-18 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 18 Feb 2009 15:28:34 +0000 (15:28 -0000)]
2009-02-18  Bill Holmes  <billholmes54@gmail.com>

* cominterop.c (cominterop_get_managed_wrapper_adjusted) :
  Adding exception handling for all CCW calls.

Code is contributed under MIT/X11 license.

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

15 years ago2009-02-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 18 Feb 2009 11:32:41 +0000 (11:32 -0000)]
2009-02-18  Marek Safar  <marek.safar@gmail.com>

A fix for bug #476811
* generics.cs: Fixed null-literal check.

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

15 years ago2009-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 18 Feb 2009 10:27:38 +0000 (10:27 -0000)]
2009-02-18  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_local_regalloc): Remove a ! from if (!dest_sreg1)
as it is incorrect.

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

15 years ago2009-02-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 18 Feb 2009 10:26:11 +0000 (10:26 -0000)]
2009-02-18  Marek Habersack  <mhabersack@novell.com>

* UrlPattern.cs: TrySubstitute now gets the collection of default
values and uses it to replace url segments instead of failing when
the passed values collection is missing a segment.

* RouteCollection.cs: check if name is null or empty, not just
null in GetVirtualPath

* Route.cs: url.TrySubstitute should be passed the defaults
collection when called from GetVirtualPath

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

15 years ago2009-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 18 Feb 2009 09:32:23 +0000 (09:32 -0000)]
2009-02-18  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_init): Remove the unused reflection mutex.

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

15 years ago2009-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 18 Feb 2009 08:12:36 +0000 (08:12 -0000)]
2009-02-18  Atsushi Enomoto  <atsushi@ximian.com>

        * Message.cs : do not forget to flush.
        * HttpRequestChannel.cs : give more exact error info.

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

15 years ago2009-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 18 Feb 2009 07:22:44 +0000 (07:22 -0000)]
2009-02-18  Atsushi Enomoto  <atsushi@ximian.com>

        * Message.cs, MessageBufferImpl.cs, XmlReaderBodyWriter.cs :
          make buffered copy in ML2 really buffered.

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

15 years ago * Test/DocTest-v1.cs: Add test for #471379.
Jonathan Pryor [Wed, 18 Feb 2009 04:30:54 +0000 (04:30 -0000)]
* Test/DocTest-v1.cs: Add test for #471379.
* Mono.Documentation/exceptions.cs, Mono.Documentation/monodocer.cs:
  Use the new Mono.Cecil .Resolve() methods instead of (erroneously)
  duplicating their functionality with the .GetDefinition() methods.
  ExceptionLookup.this[IMemberReference] checks for multi-dimensional
  arrays, as MD arrays are "special" (Cecil can't resolve them, as
  they're internal to the runtime with no specific associated IL).
  Fixes #471379.

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

15 years ago2009-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 18 Feb 2009 02:11:27 +0000 (02:11 -0000)]
2009-02-18  Atsushi Enomoto  <atsushi@ximian.com>

* Uri.cs : file URI for Windows path should also try '\' instead of
  '/' as a host/path separator.

* UriTest.cs : added test for windows local path with '\' (used in
  ooxml relax ng test case).

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

15 years ago2009-02-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 18 Feb 2009 00:35:48 +0000 (00:35 -0000)]
2009-02-17 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been signaled.
Fixes bug #354090 and bug #476138.

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

15 years ago2009-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 23:49:51 +0000 (23:49 -0000)]
2009-02-18  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_boolean): Add null checks to the new
native->managed marshalling code. Fixes #476247.

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

15 years ago* System.Windows.Forms/ToolBarButton.cs: Event for Enabled property
Andrés G. Aragoneses [Tue, 17 Feb 2009 23:15:15 +0000 (23:15 -0000)]
* System.Windows.Forms/ToolBarButton.cs: Event for Enabled property
  (needed to fix UIA #474197).

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 21:23:06 +0000 (21:23 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_get_vtable_entry): Move the addition of
static rgctx invoke wrappers for vtable methods here, this simplifies
a lot of code and causes fewer rgctx wrappers to be created.

* marshal.c (mono_marshal_get_static_rgctx_invoke): Change the
name of the statistics to begin with an uppercase.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 19:53:58 +0000 (19:53 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_class): Only add rgctx invoke wrappers
for cctors if needed.

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

15 years ago * Mono.Documentation/monodocer.cs: Check that the cref attribute is
Jonathan Pryor [Tue, 17 Feb 2009 19:05:53 +0000 (19:05 -0000)]
* Mono.Documentation/monodocer.cs: Check that the cref attribute is
  non-null before trying to use it when importing slashdoc sources.
  Fixes #475852.
* Test/DocTest-v1.cs: Add an <exception/> doc comment with an invalid
  attribute value for testing.

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

15 years ago2009-02-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 17 Feb 2009 18:54:57 +0000 (18:54 -0000)]
2009-02-17 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Revert previous change as it breaks the build.

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

15 years ago * Mono.Documentation/mdoc.cs: Set Environment.ExitCode=1 if an
Jonathan Pryor [Tue, 17 Feb 2009 18:37:21 +0000 (18:37 -0000)]
* Mono.Documentation/mdoc.cs: Set Environment.ExitCode=1 if an
  exception occurs, so that calling code can determine that an error
  occurred w/o resorting to parsing stderr.

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

15 years ago2009-02-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 17 Feb 2009 18:06:40 +0000 (18:06 -0000)]
2009-02-17  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs,
expression.cs, ecore.cs, rootcontext.cs, eval.cs, class.cs: More
messing with static variables.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 17:00:58 +0000 (17:00 -0000)]
In .:
2009-02-17 Rodrigo Kumpera  <rkumpera@novell.com>

* unverifiable_array_element_type_compatiblity.il: Regression test
for #474271.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 16:58:47 +0000 (16:58 -0000)]
In .:
* verify.c: Properly handle SZARRAY element type.

Fixes #474271.

2009-02-17 Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years agooops, moving from wrong directory
Sebastien Pouliot [Tue, 17 Feb 2009 16:37:43 +0000 (16:37 -0000)]
oops, moving from wrong directory

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

15 years agoSL2 [SecurityCritical] data
Sebastien Pouliot [Tue, 17 Feb 2009 16:31:12 +0000 (16:31 -0000)]
SL2 [SecurityCritical] data

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

15 years agoIn overrides:
Sebastien Pouliot [Tue, 17 Feb 2009 16:18:53 +0000 (16:18 -0000)]
In overrides:
2008-02-17  Sebastien Pouliot  <sebastien@ximian.com>

* here goes the manual overrides files
In .:
2008-02-17  Sebastien Pouliot  <sebastien@ximian.com>

* detect-sc.cs: Tool to detect methods that *likely* needs a
[SecurityCritical] attribute to execute under the CoreCLR
* detect-ssc.cs: Tool to detect methods that *likely* needs a
[SecuritySafeCritical] attribute to execute under the CoreCLR
* find-sc.cs: Tool to extract types and methods decorated with
[SecurityCritical] in Silverlight platform code.
* merge.cs: Tool to merge the different data files into files (one
per assembly) usable by the tuner.
* PlatformCode.cs: Helpers for tools.
* CecilRocks.cs: Extension methods helpers for tools.
* Makefile: Build file. Normally only the merging should be done.
Other options needs "supervision" ;-) and store their data into
SVN to allow tracking/auditing all changes. Note: this is not (yet)
part of the main build.
* README: Documentation about the files.

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

15 years ago2009-02-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 17 Feb 2009 15:43:24 +0000 (15:43 -0000)]
2009-02-17  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs,
expression.cs, ecore.cs, rootcontext.cs: More messing with static
variables.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 14:15:35 +0000 (14:15 -0000)]
In .:
2009-02-17 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_image_create_method_token): Correctly encode
MethodDef MemberRefParent token.

Fixes #472845.

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

15 years ago2009-02-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 17 Feb 2009 12:03:49 +0000 (12:03 -0000)]
2009-02-17  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, convert.cs, flowanalysis.cs, driver.cs: More
messing with static variables.

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

15 years ago2009-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 17 Feb 2009 11:32:03 +0000 (11:32 -0000)]
2009-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XsdDatatypeProvider.cs : workaround .NET/Mono Regex bug that
  does not handle \p{Latin-1Supplement} to work with OOXML grammar.

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

15 years ago2009-02-17 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 17 Feb 2009 08:03:06 +0000 (08:03 -0000)]
2009-02-17  Mark Probst  <mark.probst@gmail.com>

* mini-ppc.c: Fix build on Darwin.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 07:45:32 +0000 (07:45 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_close): Delete the critical section before
freeing the memory holding it.

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

15 years agoreverting this patch until it works with bug 354090 and 476138
Gonzalo Paniagua Javier [Tue, 17 Feb 2009 07:30:29 +0000 (07:30 -0000)]
reverting this patch until it works with bug 354090 and 476138

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

15 years agoRevert r127101, subsections need to be aligned.
Zoltan Varga [Tue, 17 Feb 2009 07:27:02 +0000 (07:27 -0000)]
Revert r127101, subsections need to be aligned.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 06:48:23 +0000 (06:48 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* image-writer.c: Don't align subsections to 8 in the binary writer.

* dwarfwriter.c (emit_line_number_info_begin): This now works with the
binary writer too.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 06:19:52 +0000 (06:19 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Use 2 as the DWARF
version instead of 3 as valgrind doesn't like version 3.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 06:06:17 +0000 (06:06 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MONO_AOT_FILE_VERSION): Bump this.

* aot-compiler.c (mono_aot_method_hash): New function to return a hash
usable for hashing methods.
(emit_extra_methods): Use the new hash to avoid putting every method in the
same hash bucket.

* aot-runtime.c (find_extra_method_in_amodule): Use the new hash.

* aot-runtime.c (can_method_ref_match_method): New function to quickly check
whenever a method ref could match a method.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 06:01:45 +0000 (06:01 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_image): Revert the previous change, it causes an AOT
test to fail.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 04:35:08 +0000 (04:35 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (find_extra_method_in_amodule): Add a cache for decoded
methods refs.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 03:34:35 +0000 (03:34 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_image): Pass our basedir to mono_assembly_load.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 17 Feb 2009 03:29:10 +0000 (03:29 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_exception_debug_info): Bump the maximum size of
the encoding buffer.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 02:10:47 +0000 (02:10 -0000)]
In .:
2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

* valid_rethrow_doesnt_fallthrough: New regression test for
#476257.

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 02:10:30 +0000 (02:10 -0000)]
In .:
* verify.c (mono_method_verify): rethrow opcode doesn not fall through.
Fixes #476257.

2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years agoIn .:
Rodrigo Kumpera [Tue, 17 Feb 2009 01:54:15 +0000 (01:54 -0000)]
In .:
* pedump.c (main): Call mono_marshal_init so pedump
doesn't crash.

2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years ago2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 17 Feb 2009 00:57:15 +0000 (00:57 -0000)]
2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TextBox.cs: When handling WndProc with autocomplete activated,
event if the new text is not causing any change in the look up
algorithm, save it as we normally do when numbers and letters.
Fixes #469967.

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

15 years ago2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 17 Feb 2009 00:53:48 +0000 (00:53 -0000)]
2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
Invalidate the proper bounds in the TreeView, not only resetting the
width.
Fixes #475542.

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

15 years ago2009-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 23:56:23 +0000 (23:56 -0000)]
2009-02-17  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_check_inlining): Avoid calling
mono_method_get_header () on inflated methods as an optimization.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 16 Feb 2009 21:49:40 +0000 (21:49 -0000)]
In .:
2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (method_from_memberref): Properly fix #474271 and
don't break the runtime bad.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 21:46:47 +0000 (21:46 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* ssa.c (fold_ins): Fix another crash if the instruction following the
switch was optimized away.

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

15 years ago * Mono.Documentation/monodocer.cs: Support C#4 variant generics, e.g.
Jonathan Pryor [Mon, 16 Feb 2009 21:16:33 +0000 (21:16 -0000)]
* Mono.Documentation/monodocer.cs: Support C#4 variant generics, e.g.
  `delegate TRet Func<in TArg, out TRet>(TArg a)'.  Alas, this
  required making MemberFormatter explicitly stateful, so any thoughts
  of using instances w/o locking are now out the window...  (Not that
  threads are currently used, but they're planned to be used...)
  TODO: Add a test to Test/DocTest-v1.cs.  This wasn't done as the
  current gmcs support doesn't like intermixing variance with generic
  parameter attributes, and I don't want to introduce a new delegate
  type (and the ~6 new files that would imply) just for this feature.

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

15 years ago2009-02-16 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 16 Feb 2009 17:43:59 +0000 (17:43 -0000)]
2009-02-16  Mark Probst  <mark.probst@gmail.com>

Contributed under the terms of the MIT/X11 license by Steven
Munroe <munroesj@us.ibm.com>.

* mini-ppc.c, mini-ppc.h: Implement TLS for PPC64.

2009-02-16  Mark Probst  <mark.probst@gmail.com>

Contributed under the terms of the MIT/X11 license by Steven
Munroe <munroesj@us.ibm.com>.

* mono-compiler.h: MONO_THREAD_VAR_OFFSET for PPC(64).

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

15 years agorevert 127010 until Jeremie polishes and fixes the integration
Jb Evain [Mon, 16 Feb 2009 16:02:59 +0000 (16:02 -0000)]
revert 127010 until Jeremie polishes and fixes the integration

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

15 years agoNew test.
Marek Safar [Mon, 16 Feb 2009 15:34:52 +0000 (15:34 -0000)]
New test.

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

15 years ago2009-02-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 16 Feb 2009 15:33:01 +0000 (15:33 -0000)]
2009-02-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #475965
* generics.cs: Check generic parameter type after extracting from
Expression<T>.

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

15 years ago2009-02-16 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 16 Feb 2009 15:28:14 +0000 (15:28 -0000)]
2009-02-16  Jb Evain  <jbevain@novell.com>

* Regex.cs: on the NET_2_1 profile, always use the old engine for now.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 15:24:24 +0000 (15:24 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c method-to-ir.c mini-trampolines.c aot-runtime.c: Remove locking
around the mono_domain_alloc calls, it is now done by the functions
themselves.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 15:23:21 +0000 (15:23 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* domain.c (mono_domain_alloc): Add locking so the caller doesn't have to.
(mono_domain_alloc0): Ditto.

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

15 years ago2009-02-16 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 16 Feb 2009 15:04:36 +0000 (15:04 -0000)]
2009-02-16  Bill Holmes  <billholmes54@gmail.com>

* libmono.vcproj : Adding metadata/cominterop and
  mini/dwarfwriter to the project.

Code is contributed under MIT/X11 license.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 16 Feb 2009 14:44:32 +0000 (14:44 -0000)]
In .:
* loader.c (method_from_memberref): Don't abort if the array
method is not found. A regular loader failure is more informative
and correct.

Fixes #474271.

2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 14:32:46 +0000 (14:32 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Only add wrappers referenced by
the method if compiling with full AOT.
(mono_compile_assembly): Error out if --aot=full is specified on
a platform where it is not supported.

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

15 years agoNew tests.
Marek Safar [Mon, 16 Feb 2009 13:12:13 +0000 (13:12 -0000)]
New tests.

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

15 years agoNew tests.
Marek Safar [Mon, 16 Feb 2009 13:11:58 +0000 (13:11 -0000)]
New tests.

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

15 years ago2009-02-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 16 Feb 2009 13:11:43 +0000 (13:11 -0000)]
2009-02-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #475823
* convert.cs, expression.cs, literal.cs, ecore.cs, cfold.cs: Add
typed-null support.

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

15 years agoIn .:
Rodrigo Kumpera [Mon, 16 Feb 2009 13:07:45 +0000 (13:07 -0000)]
In .:
2009-02-16 Rodrigo Kumpera  <rkumpera@novell.com>

*loader.c: Guard MonoImage::method_cache/methodref_cache
using the image lock instead of the loader lock.

* metadata.h: Add comments about which fields are protected by
the image lock.

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

15 years ago* Initial commit of ParallelFx (corlib part only, no PLinq)
Jérémie Laval [Mon, 16 Feb 2009 10:50:43 +0000 (10:50 -0000)]
* Initial commit of ParallelFx (corlib part only, no PLinq)

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

15 years ago2009-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 16 Feb 2009 05:45:36 +0000 (05:45 -0000)]
2009-02-16  Atsushi Enomoto  <atsushi@ximian.com>

        * WebConnectionStream.cs : use request only after it is set.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 04:29:42 +0000 (04:29 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_trampolines): Emit generic class init trampolines
on ARM too.

* tramp-arm.c (mono_arch_create_generic_class_init_trampoline_full): Add
AOT support.

* aot-runtime.c (load_named_code): Handle
mono_arm_throw_exception_by_token.

* mini-arm.h: Add declaration of mono_arm_throw_exception_by_token.

* image-writer.c (asm_writer_emit_pointer_unaligned): Make this really
unaligned.

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

15 years agoFix the previous change.
Zoltan Varga [Mon, 16 Feb 2009 04:26:16 +0000 (04:26 -0000)]
Fix the previous change.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 04:22:17 +0000 (04:22 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_set_private_bin_path_from_config): Fix a warning.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 04:21:31 +0000 (04:21 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* generic-sharing.c (mono_method_construct_object_context): Remove the
wrapper_type == NONE assert, it is not needed.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 04:07:24 +0000 (04:07 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (fullaotcheck): Exit if a test fails.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 03:58:21 +0000 (03:58 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Use the ASM writer for full aot
on ARM.
(mono_compile_assembly): Handle the assembler failing.

* image-writer.c (asm_writer_emit_section_change): Handle ARM gas not
accepting subsections of .bss.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 03:28:44 +0000 (03:28 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* ssa.c (visit_inst): Fix a crash if the instruction following a switch
was optimized away.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 01:14:13 +0000 (01:14 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Remove some unused includes.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 01:12:08 +0000 (01:12 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (MonoAotCompile): Remove some unused fields which are
now in MonoImageWriter.

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

15 years ago2009-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 16 Feb 2009 01:04:25 +0000 (01:04 -0000)]
2009-02-16  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_get_vcall_slot): Handle yet another
code sequence which matches a non-virtual call. Fixes #472654.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 22:26:33 +0000 (22:26 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Use xdebug_lock ()/unlock () macros for locking in the
xdebug code.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 22:24:38 +0000 (22:24 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Make the xdebug code not depend on the AOT compiler,
use the image/dwarf writers directly.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 21:53:03 +0000 (21:53 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* image-writer.c (struct _MonoImageWriter): Remove the unused 'image'
field.

* aot-compiler.c (MonoAotCompile): Remove fields which are now in
MonoDwarfWriter.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 21:50:54 +0000 (21:50 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* image-writer.h: Fix some typos.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 21:50:36 +0000 (21:50 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* dwarfwriter.h dwarfwriter.c: New files.

* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 21:49:47 +0000 (21:49 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* dwarfwriter.h dwarfwriter.c: New files.

* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 20:36:54 +0000 (20:36 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (clear_cached_object): New helper function.
(mono_method_clear_object): New function to clear the cached reflection
objects for a dynamic method.

* object.c (mono_runtime_free_method): Call mono_method_clear_object ().
Partly fixes # 463323.

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

15 years ago2009-02-15 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Sun, 15 Feb 2009 20:31:46 +0000 (20:31 -0000)]
2009-02-15  Jonathan Chambers  <joncham@gmail.com>

* Microsoft.Build.Engine_test.dll.sources: Add BuildChooseTest.cs.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 18:11:20 +0000 (18:11 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_create_trampoline_code_full): Add a 'out_unwind_ops'
argument to return unwind info.

* tramp-arm.c (mono_arch_create_trampoline_code_full): Ditto.

* aot-compiler.c: Emit unwind info for trampolines in full-aot mode.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 02:56:25 +0000 (02:56 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (decode_method_ref): Add a case for
MONO_AOT_METHODREF_WRAPPER_NAME.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 02:48:39 +0000 (02:48 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add constants for the magic numbers used in encode_method_ref ()
for AOT.

* aot-compiler.c (encode_method_ref): Use the new constants.

* aot-runtime.c (decode_method_ref): Ditto.

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

15 years ago2009-02-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 15 Feb 2009 02:24:27 +0000 (02:24 -0000)]
2009-02-15  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): For generic icalls, queue the wrapper to
be compiled, not the icall itself.

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

15 years ago2009-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 14 Feb 2009 17:43:23 +0000 (17:43 -0000)]
2009-02-14  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (find_extra_method_in_amodule): Avoid decoding wrapper names
using decode_method_ref ().

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

15 years agoIn .:
Rodrigo Kumpera [Sat, 14 Feb 2009 15:59:30 +0000 (15:59 -0000)]
In .:
* class.c:
* loader.c:
* reflection.c: Remove all explicit uses of MonoImage::property_hash.

2009-02-14 Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years agoIn .:
Rodrigo Kumpera [Sat, 14 Feb 2009 15:26:40 +0000 (15:26 -0000)]
In .:
2009-02-14 Rodrigo Kumpera  <rkumpera@novell.com>

* image.c: Add mono_image_property_(lookup,insert,remove) functions that
take the image lock instead of the loader lock.

* metadata-internals.h: Export new functions.

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

15 years ago2009-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 14 Feb 2009 14:36:27 +0000 (14:36 -0000)]
2009-02-14  Zoltan Varga  <vargaz@gmail.com>

* Regex.cs: Add a MONO_NEW_RX variable to enable the new regex
engine.

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

15 years ago * System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
Jonathan Pryor [Sat, 14 Feb 2009 03:33:07 +0000 (03:33 -0000)]
* System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
  NotImplementedExceptions.  Revert the 2009-02-12 UniqueId.IsGuid
  "fix", as .NET says that new UniqueId(new Guid()).IsGuid==false
  (which makes no sense, as .ToString() on the same instance includes
  the "urn:uuid:" prefix, which is used by Guids...).
* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.

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

15 years ago2009-02-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 14 Feb 2009 00:09:36 +0000 (00:09 -0000)]
2009-02-14  Marek Safar  <marek.safar@gmail.com>

* modifiers.cs, decl.cs, ecore.cs, class.cs, flowanalysis.cs:
Simplified event field definition using backing field and not
field builder directly.

* expression.cs (EmitLdArg): Optimize fast paths.

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

15 years ago2009-02-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 14 Feb 2009 00:02:45 +0000 (00:02 -0000)]
2009-02-14  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes #475859.

* arrays.cs: Add a test.

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

15 years ago2009-02-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 13 Feb 2009 23:21:33 +0000 (23:21 -0000)]
2009-02-14  Marek Habersack  <mhabersack@novell.com>

* UrlPattern.cs: use the defaults collection when matching a path
and segments are missing.

* RouteCollection.cs: GetRouteData must use VirtualPathProvider
to check for virtual path existence.

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

15 years ago2009-02-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 13 Feb 2009 22:02:44 +0000 (22:02 -0000)]
2009-02-12  Miguel de Icaza  <miguel@novell.com>

* domain.c (app_config_parse): Remove another use of stat that is
not necessary as g_file_get_contents already does the presence
check.

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

15 years agoAdd test for solutions, project references, and project dependencies.
Jonathan Chambers [Fri, 13 Feb 2009 21:25:57 +0000 (21:25 -0000)]
Add test for solutions, project references, and project dependencies.

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

15 years ago * System.Xml/XmlDictionaryWriter.cs: Implement
Jonathan Pryor [Fri, 13 Feb 2009 20:55:12 +0000 (20:55 -0000)]
* System.Xml/XmlDictionaryWriter.cs: Implement
  WriteValue(IStreamProvider).
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test
  WriteValue(IStreamProvider).

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