mono.git
14 years ago2009-12-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Dec 2009 21:33:17 +0000 (21:33 -0000)]
2009-12-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_add_seq_point): New helper function.
(mono_save_seq_point_info): New function to save sequence point info, extracted
from mini_method_compile ().

* mini-<ARCH>.c: Call mono_add_seq_point to remember sequence points.

* mini.h (MonoSeqPointInfo): New structure containing information about
the sequence points of a JITted method.
(MonoBasicBlock): Add 'seq_points' and 'last_seq_point' fields. Remove unused
'bucket' field.

* mini.c debugger-agent.c aot-compiler.c aot-runtime.c: Change the way sequence
point information is stored, use a MonoSeqPointInfo structure instead of a
GPtrArray. For each seq point, compute a list of successor seq points.

* debugger-agent.c: Use the successor list to implement step-over more
efficiently: instead of single stepping until a different line/IL offset is
reached, place breakpoints into all successor seq points.

* mini.h: Bump AOT file format version.

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

14 years agoIn :
Zoltan Varga [Mon, 21 Dec 2009 18:44:43 +0000 (18:44 -0000)]
In :

2009-12-21  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Add an LLVM_CFLAGS automake variable.

In mono/mini:

2009-12-21  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (AM_CFLAGS): Include LLVM_CFLAGS.

* mini-llvm.c: Avoid defining the __STDC_... macros if already defined.

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

14 years ago2009-12-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 21 Dec 2009 17:12:57 +0000 (17:12 -0000)]
2009-12-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnectionGroup.cs:
* ServicePoint.cs: implemented CloseConnectionGroup().

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

14 years ago2009-12-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Dec 2009 17:11:28 +0000 (17:11 -0000)]
2009-12-21  Zoltan Varga  <vargaz@gmail.com>

* exceptions-ppc.c (mono_ppc_set_func_into_sigctx): Fix the cross-compiler
build.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Dec 2009 17:11:19 +0000 (17:11 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
alloca as g_malloc is not signal safe.

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

14 years ago2009-12-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 21 Dec 2009 14:27:20 +0000 (14:27 -0000)]
2009-12-21  Marek Habersack  <mhabersack@novell.com>

* Int32.cs: treat terminating null as whitespace

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

14 years ago2009-12-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 21 Dec 2009 06:10:47 +0000 (06:10 -0000)]
2009-12-21  Atsushi Enomoto  <atsushi@ximian.com>

* MessageFault.cs : support EnvelopeVersion.None as well, as almost
  the same as SOAP12.

* MessageFaultTest.cs : add CreateFault test with MessageVersion.None.

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

14 years agoIn System:
Zoltan Varga [Sat, 19 Dec 2009 21:21:27 +0000 (21:21 -0000)]
In System:

2009-12-19  Zoltan Varga  <vargaz@gmail.com>

* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
"" and a non-zero startIndex correctly. Fixes #566106.

In Test/System:

2009-12-19  Zoltan Varga  <vargaz@gmail.com>

* StringTest.cs: Add tests for IndexOf ("", startIndex, count).

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

14 years ago2009-12-19 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Sat, 19 Dec 2009 20:11:17 +0000 (20:11 -0000)]
2009-12-19  Michael Barker  <mike@middlesoft.co.uk>

* Added stripped xml to avoid licensing issues.

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

14 years agoIn mono/metadata:
Rolf Bjarne Kvinge [Fri, 18 Dec 2009 22:13:48 +0000 (22:13 -0000)]
In mono/metadata:
2009-12-18  Dimitar Dobrev  <dpldobrev@yahoo.com>

* culture-info-tables.h: regenerated it to include the Georgian culture.

In tools/locale-builder:
2009-12-18  Dimitar Dobrev  <dpldobrev@yahoo.com>

* langs/ka.xml: added a file with the settings of the neutral
Georgian culture
* locales/ka-GE.xml: added a file with the settings of the
specific Georgian culture
* supp/ka-GE.xml: added a file with the date and time formats
of the Georgian culture
* lcids.xml: added entries for the neutral and specific
Georgian culture
* Makefile.am: included supp/ka-GE.xml in the build and dist the new
we're not downloading from primates.ximian.com.

[Fixes bug 564910].

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

14 years ago * src/**/*: Sync with DbLinq r1294. This is DbLinq 0.19. Fixes
Jonathan Pryor [Fri, 18 Dec 2009 20:53:32 +0000 (20:53 -0000)]
* src/**/*: Sync with DbLinq r1294.  This is DbLinq 0.19.  Fixes
  DataContext.Transaction.

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 17:53:29 +0000 (17:53 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* MoonlightChannelBaseExtension.cs : do not remove base EventArgs.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Dec 2009 17:21:59 +0000 (17:21 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* tramp-x86.c (mono_arch_patch_callsite): Fix the call to
VALGRIND_DISCARD_TRANSLATIONS.

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

14 years agoIn .:
Zoltan Varga [Fri, 18 Dec 2009 17:16:37 +0000 (17:16 -0000)]
In .:

* configure.in: Remove the check for valgrind/memcheck.h, we include the file
in our sources now.

In mono/utils:

* valgrind.h memcheck.h: New files containing the BSD licensed valgrind
headers so we can use the valgrind user requests even if mono is compiled on
a system where they are not installed.

In mono/metadata:

* sgen-gc.c: Include mono/utils/memcheck.h.

In mono/mini:

* *.c: Include mono/utils/memcheck.h, and remove #ifdef HAVE_VALGRIND_MEMCHECK_H
checks, they are no longer needed.

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 15:42:32 +0000 (15:42 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceContractGenerator.cs :
  EventArgs are not nested classes.
  Result property of EventArgs is not IAsyncResult. It should be
  pulled from EndXxx() method, not from BeginXxx().

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 15:40:33 +0000 (15:40 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* ClientBase.cs : remove extra CWLs.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Dec 2009 15:35:55 +0000 (15:35 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
instead of the current domain, since the two might not match if this is called
from the debugger.

* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
domain which created this assembly.

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 14:10:16 +0000 (14:10 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* how-client-proxy-is-created.txt : brief summary of code generation
  behavior (it is rather about ServiceContractGenerator, but would
  rather fit here).

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 14:08:29 +0000 (14:08 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* Driver.cs, MoonlightChannelBaseExtension.cs, CommandLineOptions.cs:
  Added event-based async generator support (/tcv:35).
  Some refactoring on async method generation.
  Removed IExtensibleDataObject usage in moonlight proxy.
  Added notes on MT profile + sync impossibility (so far).

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 13:46:42 +0000 (13:46 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceContractGenerator.cs :
  add support for EventBasedAsynchronousMethods (3.5 SP1 / 2.1).

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 13:46:27 +0000 (13:46 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* AllEnums.cs :
  added ServiceContractGenerationOptions.EventBasedAsynchronousMethods.

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

14 years ago2009-12-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 18 Dec 2009 13:44:13 +0000 (13:44 -0000)]
2009-12-18  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceMetadataExtension.cs : added a couple of FIXME comments.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Dec 2009 13:02:01 +0000 (13:02 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* exceptions-ppc.c (mono_ppc_set_func_into_sigctx): New helper function to set
a function into a sigctx which can handle function pointers.

* mini-ppc.c: Implement soft debugger support on ppc64.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Dec 2009 12:15:28 +0000 (12:15 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* debug-helpers.c (dis_one): Avoid a glib assert on empty strings.

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

14 years ago2009-12-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Dec 2009 12:15:21 +0000 (12:15 -0000)]
2009-12-18  Zoltan Varga  <vargaz@gmail.com>

* mini-ppc.c: Implement soft debugger support.

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

14 years ago2009-12-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Dec 2009 11:07:34 +0000 (11:07 -0000)]
2009-12-18  Marek Habersack  <mhabersack@novell.com>

* ObjectStateFormatter.cs: ObjectFormatter.WriteObject checks
whether candidate converter can convert from string now. Fixes bug
#565547

2009-12-18  Marek Habersack  <mhabersack@novell.com>

* System.Web_test.dll.sources: added
mainsoft/NunitWeb/NunitWeb/Tests/Author.cs
mainsoft/NunitWeb/NunitWeb/Tests/AuthorConverter.cs
mainsoft/NunitWeb/NunitWeb/Tests/Book.cs
mainsoft/NunitWeb/NunitWeb/Tests/BookType.cs

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/StateFormatter_CorrectConverter.aspx
Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx
Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx.cs

2009-12-18  Marek Habersack  <mhabersack@novell.com>

* ObjectStateFormatterTest.cs: added.

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

14 years ago2009-12-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Dec 2009 09:45:35 +0000 (09:45 -0000)]
2009-12-18  Marek Habersack  <mhabersack@novell.com>

* Makefile (EXTRA_DISTFILES): include test resources in
dist. Fixes bug #564987

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

14 years ago2009-12-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 17 Dec 2009 22:57:41 +0000 (22:57 -0000)]
2009-12-17 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClassTest.cs: Test for some corner cases of
GetMethod that must work under compiler context.

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

14 years ago2009-12-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 17 Dec 2009 22:57:23 +0000 (22:57 -0000)]
2009-12-17 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs (GetMethods): When the GTD is not a typebuilder,
calling GetMethods on it will return everything we need so no need to
do the crazy loop.
The returned methods might contains some that are not from a generic type
so we need to guard against this as well.

* MonoGenericClass.cs (GetMethodsInternal): Guard against methods that don't
belong to a GTD as well.

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

14 years agoPreserve history
Miguel de Icaza [Thu, 17 Dec 2009 22:03:53 +0000 (22:03 -0000)]
Preserve history

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

14 years agoCopy
Miguel de Icaza [Thu, 17 Dec 2009 22:02:40 +0000 (22:02 -0000)]
Copy

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

14 years agoRemove file
Miguel de Icaza [Thu, 17 Dec 2009 22:02:10 +0000 (22:02 -0000)]
Remove file

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

14 years ago2009-12-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Dec 2009 16:50:56 +0000 (16:50 -0000)]
2009-12-17  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c: Handle OP_LADD_OVF_UN. Place all alloca's into the entry bb.

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

14 years agoIn System:
Sebastien Pouliot [Thu, 17 Dec 2009 15:30:28 +0000 (15:30 -0000)]
In System:
2009-12-17  Sebastien Pouliot  <sebastien@ximian.com>

* String.cs: Fix #565602 right-padding empty strings.

In Test/System:
2009-12-17  Sebastien Pouliot  <sebastien@ximian.com>

* StringTest.cs: Add test case for right padding an empty string

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

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

* field.cs: Extracted from class.cs

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

14 years ago2009-12-17 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 17 Dec 2009 13:55:00 +0000 (13:55 -0000)]
2009-12-17  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Managed implementation of the specialized generic
        store write barrier.

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

14 years agoBuild System.Core early enough in 2.1
Marek Safar [Thu, 17 Dec 2009 12:41:05 +0000 (12:41 -0000)]
Build System.Core early enough in 2.1

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

14 years ago2009-12-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 17 Dec 2009 12:35:15 +0000 (12:35 -0000)]
2009-12-17  Marek Habersack  <mhabersack@novell.com>

* mini.c (mono_get_runtime_build_info): include Mono version in
the returned value.

* driver.c (mono_main): VERSION is now included in the string
returned from mono_get_runtime_build_info()

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

14 years ago2009-12-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 17 Dec 2009 12:10:47 +0000 (12:10 -0000)]
2009-12-17 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Add tests for #564379.

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

14 years ago2009-12-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 17 Dec 2009 12:06:42 +0000 (12:06 -0000)]
2009-12-17  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
A private virtual newslot method is used to implement an interface method without exposing
it to users. When querying for public instance methods, such method would hide a public one
on a parent type.

Fixes #564379.

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

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

* Makefile: Compile itself using bootstrap System.Core.

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

14 years agoBuild using bootstrap compiler
Marek Safar [Thu, 17 Dec 2009 10:32:39 +0000 (10:32 -0000)]
Build using bootstrap compiler

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

14 years ago2009-12-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Dec 2009 09:31:46 +0000 (09:31 -0000)]
2009-12-17  Zoltan Varga  <vargaz@gmail.com>

* libtest.c pinvoke2.cs: Add a test for calling pinvoke methods using calli.

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

14 years ago2009-12-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Dec 2009 09:31:39 +0000 (09:31 -0000)]
2009-12-17  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
signatures. Fixes #565143.

* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.

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

14 years ago2009-12-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Dec 2009 09:31:32 +0000 (09:31 -0000)]
2009-12-17  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (resolve_object): Fix the encoding of unmanaged calling
conventions.

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

14 years ago2009-12-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Dec 2009 08:46:34 +0000 (08:46 -0000)]
2009-12-17  Marek Safar  <marek.safar@gmail.com>

* common/basic.make: Use bootstrap compiler only for compilation.

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

14 years ago2009-12-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Dec 2009 05:55:50 +0000 (05:55 -0000)]
2009-12-17  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestContext.cs : for DestinationUnreachable message, this
  channel returns 400 in .NET.

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

14 years agoremove obsolete file
Gonzalo Paniagua Javier [Wed, 16 Dec 2009 23:16:59 +0000 (23:16 -0000)]
remove obsolete file

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

14 years ago2009-12-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Dec 2009 22:21:12 +0000 (22:21 -0000)]
2009-12-16  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (arch_emit_autoreg): Align code to 4 in the ppc case.

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

14 years ago2009-12-16 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 16 Dec 2009 22:17:36 +0000 (22:17 -0000)]
2009-12-16  Miguel de Icaza  <miguel@novell.com>

* repl.cs: Avoid crash, fixes 554898

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

14 years agoFix crasher
Miguel de Icaza [Wed, 16 Dec 2009 22:00:27 +0000 (22:00 -0000)]
Fix crasher

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

14 years ago2009-12-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 16 Dec 2009 21:42:53 +0000 (21:42 -0000)]
2009-12-16 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: when finishing uncompressing a buffer, we might need
more than one call to deflate with Z_FINISH since the uncompressed
data can take more space than the allocated buffer.

Fixes the IPY+Chiron test case.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 21:26:25 +0000 (21:26 -0000)]
2009-12-16  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_type_get_object): Guard against NULL generic param owner.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 21:26:15 +0000 (21:26 -0000)]
2009-12-16  Rodrigo Kumpera  <rkumpera@novell.com>

* class-internals.h (MonoDynamicGenericClass): Kill property and event related fields
as they are no longer used.

 * metadata.c (free_generic_class_dependents): Remove reference to previous fields

* reflection.c (mono_reflection_generic_class_initialize): Ditto.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 19:46:01 +0000 (19:46 -0000)]
2009-12-16 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Add tests for #565127.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 19:45:39 +0000 (19:45 -0000)]
2009-12-16 Rodrigo Kumpera  <rkumpera@novell.com>

* FieldOnTypeBuilderInst.cs: Add more CompilerContext hacks.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 19:41:24 +0000 (19:41 -0000)]
2009-12-16  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
if the owner class has not been finished before returning reflection_info.

Fixes #565127.

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

14 years ago2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 16 Dec 2009 16:44:29 +0000 (16:44 -0000)]
2009-12-16 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
making max stack 10x smaller.

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

14 years ago2009-12-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Dec 2009 12:48:01 +0000 (12:48 -0000)]
2009-12-16  Zoltan Varga  <vargaz@gmail.com>

* MethodBuilderTest.cs: Add a test for #565117.

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

14 years ago2009-12-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Dec 2009 12:42:01 +0000 (12:42 -0000)]
2009-12-16  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
param doesn't have custom attributes. Fixes #565117.

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

14 years ago2009-12-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Dec 2009 12:32:01 +0000 (12:32 -0000)]
2009-12-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): Comment out an assert which could be hit.

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

14 years ago2009-12-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Dec 2009 12:13:34 +0000 (12:13 -0000)]
2009-12-16  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_bounded_array_class_get): Make these classes PUBLIC. Fixes
#565120.

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

14 years ago2009-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 16 Dec 2009 08:47:32 +0000 (08:47 -0000)]
2009-12-16  Atsushi Enomoto  <atsushi@ximian.com>

* BinaryMessageEncoder.cs : added workaround for strange stream
  consumption error raised by HttpTransport + Binary encoder example.
* BinaryMessageEncodingBindingElement.cs:
  only SOAP 1.2 is allowed for this encoder.

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

14 years agooops
Gonzalo Paniagua Javier [Tue, 15 Dec 2009 23:28:20 +0000 (23:28 -0000)]
oops

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

14 years agoremove duplicate check for autoreg
Gonzalo Paniagua Javier [Tue, 15 Dec 2009 23:27:47 +0000 (23:27 -0000)]
remove duplicate check for autoreg

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

14 years agoBuild the real System.Core to a temp directory and then move it, or
Jonathan Pobst [Tue, 15 Dec 2009 20:04:35 +0000 (20:04 -0000)]
Build the real System.Core to a temp directory and then move it, or
else it tries to write on top of the one gmcs is using.

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

14 years agoForgot to flag this as using the installed mono to build.
Jonathan Pobst [Tue, 15 Dec 2009 19:50:22 +0000 (19:50 -0000)]
Forgot to flag this as using the installed mono to build.

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

14 years ago2009-12-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 15 Dec 2009 19:04:35 +0000 (19:04 -0000)]
2009-12-15 Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mini_emit_memcpy): Assert if size is too big.

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

14 years ago2009-12-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 15 Dec 2009 19:04:23 +0000 (19:04 -0000)]
2009-12-15  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_setup_fields): Fail valuetypes that are bigger than 1Mb.

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

14 years ago2009-12-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 15 Dec 2009 19:04:11 +0000 (19:04 -0000)]
2009-12-15 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
bigger than MONO_ARCH_MAX_FRAME_SIZE.

* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.

* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.

* mini-amd64.c / mini-amd64.h: Same fixes as of above.

* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
the compilation.

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

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

* pedump.c: Add partial-md mode that doesn't perform full metadata verification. It does the
same amount done by a core-clr enabled runtime.

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

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

* System.Web.Extensions_test.dll.sources: added
System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs

2009-12-15  Marek Habersack  <mhabersack@novell.com>

* NextPreviousPagerField.cs: HandleEvent doesn't call
DataPager.SetPageProperties with negative start index. Also, if
_totalRowCount is <= 0, new start index is not calculated using
it. Fixes bug #545417

* ListViewPagedDataSource.cs: when server paging is on, data items
are counted from index 0 instead of from the value stored in
StartRowIndex. Fixes bug #545417

* ListView.cs: CreateChildControls doesn't create empty data item
if called with fake data.
When a view reports it can page data, ListViewPagedDataSource
passed to item creation methods has AllowServerPaging set to
true. Fixes bug #545417
When CreateChildControls is called with fake data,
ListViewPagedDataSource has its TotalRowCount property set to the
actual total row count, not zero. Fixes bug #545417

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

14 years agoBuild System.Core in our bootstrap phase.
Jonathan Pobst [Tue, 15 Dec 2009 15:41:26 +0000 (15:41 -0000)]
Build System.Core in our bootstrap phase.

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

14 years agoNew tests.
Marek Safar [Tue, 15 Dec 2009 14:32:45 +0000 (14:32 -0000)]
New tests.

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

14 years agoUpdated after UT fixes
Marek Safar [Tue, 15 Dec 2009 14:30:21 +0000 (14:30 -0000)]
Updated after UT fixes

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

14 years agoAdd more logging
Marek Safar [Tue, 15 Dec 2009 13:04:22 +0000 (13:04 -0000)]
Add more logging

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

14 years ago2009-12-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 15 Dec 2009 12:20:51 +0000 (12:20 -0000)]
2009-12-15  Marek Habersack  <mhabersack@novell.com>

* appdomain.c (mono_make_shadow_copy): make sure access mode of
the target files is reset to writable by owner and readable by
everyone else to prevent problems when updating shadow copies of
files whose source is read-only. Fixes bug #556884

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

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

* attribute.cs (GetFixedBuffer): Work on field definition only.

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

14 years agoFixes build with obsolete runtime
Marek Safar [Tue, 15 Dec 2009 11:18:14 +0000 (11:18 -0000)]
Fixes build with obsolete runtime

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

14 years agoUpdated
Marek Safar [Tue, 15 Dec 2009 10:47:53 +0000 (10:47 -0000)]
Updated

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

14 years ago2009-12-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 15 Dec 2009 10:43:48 +0000 (10:43 -0000)]
2009-12-15  Marek Safar  <marek.safar@gmail.com>

* *.cs: Clean up NET_4_0 conditional where possible.

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

14 years ago2009-12-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 15 Dec 2009 10:42:13 +0000 (10:42 -0000)]
2009-12-15  Marek Safar  <marek.safar@gmail.com>

* Makefile: Add System.Core to 2.1 bootstrap.

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

14 years agoAdd net_2_1 bootstrap
Marek Safar [Tue, 15 Dec 2009 10:41:22 +0000 (10:41 -0000)]
Add net_2_1 bootstrap

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

14 years ago2009-12-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 15 Dec 2009 09:43:47 +0000 (09:43 -0000)]
2009-12-15  Marek Safar  <marek.safar@gmail.com>

* Array.cs: Optimize sort operations on all primitive types.

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

14 years agoNew test.
Marek Safar [Tue, 15 Dec 2009 09:39:25 +0000 (09:39 -0000)]
New test.

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

14 years agoError message formating.
Marek Safar [Tue, 15 Dec 2009 09:39:13 +0000 (09:39 -0000)]
Error message formating.

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

14 years ago2009-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 15 Dec 2009 07:40:28 +0000 (07:40 -0000)]
2009-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Control.cs: When changing the cursor and updating it, do update the
cursor immediately even if there's a child control under the current
cursor position - this is exactly what .net does.
Fixes #555780.

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

14 years ago2009-12-15 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 14 Dec 2009 23:52:55 +0000 (23:52 -0000)]
2009-12-15  Mark Probst  <mark.probst@gmail.com>

        * class.c (mono_generic_class_get_class): Allocate the generic
        class via malloc again, so that it can be freed when any one of
        the images of its constituent types is closed.

        * metadata.c: When closing an image, don't free generic insts and
        generic classes right away, but put them into a list for later
        freeing.

        * image.c, metadata-internals.h: Store the free list and in the
        second pass of closing an image, free it.

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

14 years ago2009-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 14 Dec 2009 22:56:17 +0000 (22:56 -0000)]
2009-12-14 Rodrigo Kumpera  <rkumpera@novell.com>

Type.cs (IsCompilerContext): The default implementation now checks if the
type's assembly is under compiler context or not.

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

* MonoGenericClass.cs: Remove IsByRef hack.

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

* TypeBuilder.cs (GetConstructor/GetMethod): Fail with a NRE if method/ctor
is null.

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

* TypeTest.cs: Fix test that checked for old and wrong behavior of mono.

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

14 years ago2009-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 14 Dec 2009 22:56:00 +0000 (22:56 -0000)]
2009-12-14 Rodrigo Kumpera  <rkumpera@novell.com>

support.cs (DynamicType): Assembly property returns the assembly builder.
This is required due to how compiler context works in corlib.

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

14 years ago2009-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 14 Dec 2009 22:54:41 +0000 (22:54 -0000)]
2009-12-14  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_generic_class_get_object): Assert if this is ever called.

* reflection.c (mono_reflection_register_with_runtime): Only register dynamic
types in type_hash.

* reflection.c (resolve_object): Call ensure_complete_type on the inflated field.

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

14 years ago2009-12-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 14 Dec 2009 22:54:32 +0000 (22:54 -0000)]
2009-12-14  Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_reflection_type_get_handle): Properly fail in case of a broken
user type.

* reflection.c (mono_reflection_register_with_runtime): Throws in case a bad user type
is used.

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

14 years agoi2009-12-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 14 Dec 2009 21:12:14 +0000 (21:12 -0000)]
i2009-12-14  Miguel de Icaza  <miguel@novell.com>

* verify.c (mono_method_verify): The Unused opcodes produce an
InvalidProgramException on .NET

2009-12-14  Miguel de Icaza  <miguel@novell.com>

* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
raise an invalid program exception.

For other opcodes that we might not handle use a g_warning and
raise the exception.   Beats termination.

Fixes #561724

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

14 years ago2009-12-14 Sebastien Pouliot <sebastien at ximian.com>
Sebastien Pouliot [Mon, 14 Dec 2009 20:46:31 +0000 (20:46 -0000)]
2009-12-14  Sebastien Pouliot  <sebastien at ximian.com>

* Mono.Cecil/BaseAssemblyResolver.cs: Update to .net fx 4 beta2
version number and reduce code duplication.

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

14 years ago2009-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 14 Dec 2009 20:10:04 +0000 (20:10 -0000)]
2009-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* SectionInformation.cs: ConfigSource should never be null, but empty.
Also, the Type property should throw an argument exception if the
new value is null or empty.
Fixes #458185.

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

14 years ago2009-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 14 Dec 2009 19:52:06 +0000 (19:52 -0000)]
2009-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* loader.c (mono_method_get_header): Move assert after the verifier
has been called on the method header.

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

14 years ago2009-12-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 14 Dec 2009 14:14:53 +0000 (14:14 -0000)]
2009-12-14  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: RemoveFailedAssemblies ignores warnings to
avoid throwing exceptions when the requested virtual path
compilation produces warnings and no errors. Fixes bug #561723

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

14 years ago2009-12-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 14 Dec 2009 13:57:03 +0000 (13:57 -0000)]
2009-12-14  Marek Safar  <marek.safar@gmail.com>

A fix for bug #564376
* assign.cs (LocalTemporary): Removed no longer needed special
by-ref handling.

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

14 years ago2009-12-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 14 Dec 2009 13:50:41 +0000 (13:50 -0000)]
2009-12-14  Marek Habersack  <mhabersack@novell.com>

* AssemblyInfo.cs: 4.0 assembly must have a different version than 2.0

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

14 years ago2009-12-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 14 Dec 2009 13:05:01 +0000 (13:05 -0000)]
2009-12-14  Marek Habersack  <mhabersack@novell.com>

* AspParser.cs: PlainText should calculate the boundaries of
text using character offset, not line offset. Fixes bug #562286
InternalLineOffset and Internal properties need not exist.

* AspGenerator.cs: AspParser inner parser constructor takes 5
parameters now - accepts character offset of the current outer
parser's position.

2009-12-14  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NestedParserFileText.aspx

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