Mark Probst [Tue, 24 Mar 2009 20:33:21 +0000 (20:33 -0000)]
ATOMIC_CAS with 3 sregs.
2009-03-24 Mark Probst <mark.probst@gmail.com>
* mini-ops.h: New ternary ATOMIC_CAS ops replace the old
ATOMIC_CAS_IMM ops.
* method-to-ir.c: Handle more cases for
Interlocked.CompareExchange.
* cpu-x86.md, mini-x86.c, mini-x86.h, cpu-amd64.md,
* mini-amd64.c,
mini-amd64.h, cpu-ppc.md, cpu-ppc64.md, mini-ppc.c, mini-ppc.h:
ATOMIC_CAS implementations for x86, AMD64, PPC and PPC64.
2009-03-24 Mark Probst <mark.probst@gmail.com>
* interlocked-3.cs: New CompareExchange test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130153
Marek Safar [Tue, 24 Mar 2009 16:11:04 +0000 (16:11 -0000)]
2009-03-24 Marek Safar <marek.safar@gmail.com>
* ecore.cs, expression.cs: Use queried type for MethodGroupExpr
DeclaringType.
svn path=/trunk/mcs/; revision=130138
Zoltan Varga [Tue, 24 Mar 2009 14:16:23 +0000 (14:16 -0000)]
2009-03-24 Zoltan Varga <vargaz@gmail.com>
* thread6.cs: Add back a sleep to avoid a race.
svn path=/trunk/mono/; revision=130126
Marek Habersack [Tue, 24 Mar 2009 08:48:23 +0000 (08:48 -0000)]
Revert r130049
svn path=/trunk/mcs/; revision=130110
Marek Habersack [Tue, 24 Mar 2009 08:48:06 +0000 (08:48 -0000)]
Revert "Forgotten ChangeLog entry"
svn path=/trunk/mcs/; revision=130109
Atsushi Eno [Tue, 24 Mar 2009 07:50:24 +0000 (07:50 -0000)]
2009-03-24 Atsushi Enomoto <atsushi@ximian.com>
* SerializationMap.cs, XmlFormatterDeserializer.cs:
empty collection deserialization resulted in extra
consumption of the next xml node.
svn path=/trunk/mcs/; revision=130108
Zoltan Varga [Mon, 23 Mar 2009 22:01:14 +0000 (22:01 -0000)]
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (libmonoutils_la_SOURCES): Fix make dist.
svn path=/trunk/mono/; revision=130095
Zoltan Varga [Mon, 23 Mar 2009 21:58:58 +0000 (21:58 -0000)]
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* PageCompiler.cs: Fix the build.
svn path=/trunk/mcs/; revision=130093
Marek Habersack [Mon, 23 Mar 2009 19:58:36 +0000 (19:58 -0000)]
2009-03-23 Marek Habersack <mhabersack@novell.com>
* TemplateBuildProvider.cs: add values of the CodeFile and Src
page/master/control directives to the list of file dependencies.
Extract language also for master/page, not only for controls.
* PageCompiler.cs: CreateConstructors now triggers master page
build, if the current page is using one. Fixes bug #487857
svn path=/trunk/mcs/; revision=130082
Veerapuram Varadhan [Mon, 23 Mar 2009 19:33:59 +0000 (19:33 -0000)]
Properly handle TDS 8 BigInt type
Proper handling of TDS 8 BigInt type
svn path=/trunk/mcs/; revision=130081
Gonzalo Paniagua Javier [Mon, 23 Mar 2009 17:36:28 +0000 (17:36 -0000)]
Patch from Matthew Metnestsky
svn path=/trunk/mcs/; revision=130076
Marek Safar [Mon, 23 Mar 2009 16:16:57 +0000 (16:16 -0000)]
New test.
svn path=/trunk/mcs/; revision=130075
Marek Safar [Mon, 23 Mar 2009 16:16:45 +0000 (16:16 -0000)]
2009-03-23 Marek Safar <marek.safar@gmail.com>
* attribute.cs: Consider all members for error reporting when
checking named arguments.
svn path=/trunk/mcs/; revision=130074
Marek Safar [Mon, 23 Mar 2009 15:29:56 +0000 (15:29 -0000)]
Removed obsolete test
svn path=/trunk/mcs/; revision=130066
Marek Safar [Mon, 23 Mar 2009 15:05:00 +0000 (15:05 -0000)]
New test.
svn path=/trunk/mcs/; revision=130061
Marek Safar [Mon, 23 Mar 2009 15:04:42 +0000 (15:04 -0000)]
2009-03-23 Marek Safar <marek.safar@gmail.com>
A fix for bug #487625
* namespace.cs: Use a warning for all predefined type conflicts.
svn path=/trunk/mcs/; revision=130060
Zoltan Varga [Mon, 23 Mar 2009 14:39:12 +0000 (14:39 -0000)]
In metadata/
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_delegate_to_ftnptr): For delegates wrapping pinvoke
methods, return the native function address itself. Fixes
#487758.
In tests/
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* pinvoke-2.2.cs libtest.c: Add a test for #487758.
svn path=/trunk/mono/; revision=130057
Jonathan Pryor [Mon, 23 Mar 2009 14:34:17 +0000 (14:34 -0000)]
* UnixDriveInfo.cs: UnixDriveInfo.AvailableFreeSpace needs to return
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
platforms (Solaris) bsize is the preferred block I/O size, while
f_frsize is the *actual* filesystem block size. Thus, to get proper
disk under Solaris, we need to s/f_bsize/f_frsize/g.
svn path=/trunk/mcs/; revision=130055
Zoltan Varga [Mon, 23 Mar 2009 14:16:26 +0000 (14:16 -0000)]
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (decode_method_ref): Fix a warning.
* unwind.c (mono_unwind_frame): Ditto.
svn path=/trunk/mono/; revision=130054
Marek Habersack [Mon, 23 Mar 2009 12:57:17 +0000 (12:57 -0000)]
Forgotten ChangeLog entry
svn path=/trunk/mcs/; revision=130050
Marek Habersack [Mon, 23 Mar 2009 12:57:04 +0000 (12:57 -0000)]
2009-03-23 Marek Habersack <mhabersack@novell.com>
* ConsoleTest.cs: added a bunch of tests for the standard input,
output and error stream properties.
2009-03-23 Marek Habersack <mhabersack@novell.com>
* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
constructors
2009-03-23 Marek Habersack <mhabersack@novell.com>
* Console.cs: OpenStandard{Input,Output,Error} no longer use
FileStream on 2.0+. The reason is that SafeFileHandle used in the
stream doesn't allow handles with values <= 0, and on Unix stdin
is 0 which would break the Console class. Instead of FileStream,
introduced a simple internal specialized stream which is used in
this scenario.
2009-03-23 Marek Habersack <mhabersack@novell.com>
* FileStream.cs: implemented full support for SafeFileHandle in
2.0. The obsolete constructors taking an IntPtr now wrap it in a
SafeFileHandle.
2009-03-23 Marek Habersack <mhabersack@novell.com>
* SafeHandle.cs: added an internal property, OwnsHandle, used by
FileStream.
svn path=/trunk/mcs/; revision=130049
Marek Safar [Mon, 23 Mar 2009 12:43:54 +0000 (12:43 -0000)]
2009-03-23 Marek Safar <marek.safar@gmail.com>
A fix for bug #485706
* statement.cs: Explicitly type catch type argument to pass verifier
check.
svn path=/trunk/mcs/; revision=130048
Marek Safar [Mon, 23 Mar 2009 12:42:57 +0000 (12:42 -0000)]
New test.
svn path=/trunk/mcs/; revision=130047
Zoltan Varga [Mon, 23 Mar 2009 11:20:30 +0000 (11:20 -0000)]
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* StringTest.cs (LastIndexOfStringComparison): Add a test for #486234.
svn path=/trunk/mcs/; revision=130038
Zoltan Varga [Mon, 23 Mar 2009 11:20:08 +0000 (11:20 -0000)]
2009-03-23 Zoltan Varga <vargaz@gmail.com>
* String.cs (LastIndexOf): Handle empty strings correctly. Fixes #486234.
svn path=/trunk/mcs/; revision=130037
Massimiliano Mantione [Mon, 23 Mar 2009 09:46:24 +0000 (09:46 -0000)]
Updated the profiler documentation.
svn path=/trunk/mono/; revision=130030
Massimiliano Mantione [Mon, 23 Mar 2009 09:46:21 +0000 (09:46 -0000)]
mono-profiler-logging.c: Removed useless "gc-signal" option (the newer "heap=<SIGNAL>" format of the "heap" option does the same thing).
svn path=/trunk/mono/; revision=130029
Gonzalo Paniagua Javier [Mon, 23 Mar 2009 04:39:10 +0000 (04:39 -0000)]
2009-03-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* console-io.c: some of the values for control characters might not be
present.
svn path=/trunk/mono/; revision=130024
Zoltan Varga [Sun, 22 Mar 2009 18:34:24 +0000 (18:34 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
(mono_compile_assembly): Enable the binary writer for full-aot as well.
* image-writer.c (do_reloc): Add support for the JUMP24 relocation,
fix the handling of large values in the ALU_PC_G0_NC relocation.
svn path=/trunk/mono/; revision=130003
Marek Habersack [Sun, 22 Mar 2009 18:27:08 +0000 (18:27 -0000)]
2009-03-22 Marek Habersack <mhabersack@novell.com>
* FileStream.cs: implemented the SafeFileHandle property.
svn path=/trunk/mcs/; revision=130002
Miguel de Icaza [Sun, 22 Mar 2009 17:24:44 +0000 (17:24 -0000)]
2009-03-22 Miguel de Icaza <miguel@novell.com>
* driver.cs (Main): Use Environment.Exit to quit quickly and
prevent the compiler from doing the usual wait for helper thread
to terminate.
This is to prevent a slowdown that was reported by Gonzalo on
ASP.NET
svn path=/trunk/mcs/; revision=129990
Zoltan Varga [Sun, 22 Mar 2009 17:10:06 +0000 (17:10 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* local-propagation.c method-to-ir.c local-propagation.c: Fix warnings.
svn path=/trunk/mono/; revision=129989
Zoltan Varga [Sun, 22 Mar 2009 16:06:05 +0000 (16:06 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* gc_wrapper.h: Disable thread local allocation for ARM too because of
incomplete support in libgc.
svn path=/trunk/mono/; revision=129988
Mark Probst [Sun, 22 Mar 2009 15:56:03 +0000 (15:56 -0000)]
Spilling for ternary ops.
2009-03-22 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c (mono_spill_global_vars): Support for ternary
ops.
svn path=/trunk/mono/; revision=129987
Mark Probst [Sun, 22 Mar 2009 15:54:56 +0000 (15:54 -0000)]
Small ternary ops fixes.
2009-03-22 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c: MINI_OP3 needs a comma.
* method-to-ir.c, mini.h, mini.c: Remove
mono_init_op_sreg_counts ().
svn path=/trunk/mono/; revision=129986
Zoltan Varga [Sun, 22 Mar 2009 15:12:03 +0000 (15:12 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_output_basic_block): Fix aot support in
OP_JMP.
svn path=/trunk/mono/; revision=129985
Jonathan Pryor [Sun, 22 Mar 2009 03:48:16 +0000 (03:48 -0000)]
* Mono.Documentation/monodocs2html.cs: Perform the timestamp check for
the top-level and namespace-level index files.
svn path=/trunk/mcs/; revision=129970
Zoltan Varga [Sun, 22 Mar 2009 03:16:23 +0000 (03:16 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* mini-ops.h: Fix arguments of the MEMINDEX opcodes.
svn path=/trunk/mono/; revision=129969
Zoltan Varga [Sun, 22 Mar 2009 03:02:29 +0000 (03:02 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_build_imt_thunk): Disable the !fail_tramp
assertion.
* mini-ops.h: Fix arguments of the MEMINDEX opcodes.
svn path=/trunk/mono/; revision=129968
Zoltan Varga [Sun, 22 Mar 2009 02:32:24 +0000 (02:32 -0000)]
2009-03-22 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_build_imt_thunk): Simplify the fail handling
code somewhat.
svn path=/trunk/mono/; revision=129967
Daniel Nauck [Sat, 21 Mar 2009 23:27:45 +0000 (23:27 -0000)]
2009-03-22 Daniel Nauck <dna@mono-project.de>
* GenerateResource.cs: Set BasePath property of
ResXResourceReader class.
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-March/031459.html
svn path=/trunk/mcs/; revision=129966
Sebastien Pouliot [Sat, 21 Mar 2009 14:41:46 +0000 (14:41 -0000)]
2009-03-21 Sebastien Pouliot <sebastien@ximian.com>
* exception.c|h: Add helpers to create [Field|Method]AccessException
* icall.c: Add required coreclr check calls for field reflection.
Move the existing (method) check logic into security-core-clr.c
* security-core-clr.c: Add functions to check if the access of a
field or method is allowed when reflecting under coreclr. This is
mostly done using a stack walk to find the "real" caller: i.e. the
code that is calling the reflection
svn path=/trunk/mono/; revision=129959
Mark Probst [Sat, 21 Mar 2009 08:04:35 +0000 (08:04 -0000)]
Ternary IR ops in mini.
2009-03-21 Mark Probst <mark.probst@gmail.com>
* cfold.c, cprop.c, decompose.c, genmdesc.c, helpers.c, ir-emit.h,
liveness.c, local-propagation.c, method-to-ir.c, mini-codegen.c,
mini.c, mini.h, simd-intrinsics.c, ssa.c: Support for ternary IR
operations.
svn path=/trunk/mono/; revision=129944
Jonathan Pryor [Sat, 21 Mar 2009 04:04:11 +0000 (04:04 -0000)]
* Mono.Documentation/monodocer.cs: Be nice to make,
mdoc-export-html, and other apps that use file timetamps: if the
file contents haven't changed after the update, don't replace the
"original" file. This preserves file timestamps, thus allowing
other apps to behave nicely (e.g. mdoc-export-html won't update all
documentation after running mdoc-update, as the files won't change
unless something has *actually* changed).
svn path=/trunk/mcs/; revision=129940
Jonathan Pryor [Sat, 21 Mar 2009 02:54:43 +0000 (02:54 -0000)]
* mdoc-export-html.1: Document --force-update parameter.
svn path=/trunk/mono/; revision=129937
Jonathan Pryor [Sat, 21 Mar 2009 02:49:24 +0000 (02:49 -0000)]
* Mono.Documentation/monodocs2html.cs: Do as make(1) does: if the
target file already exists and is newer than the source file, don't
regenerate it. (Greatly speeds things up if only a few .xml files
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=129936
Marek Habersack [Sat, 21 Mar 2009 02:12:29 +0000 (02:12 -0000)]
2009-03-21 Marek Habersack <mhabersack@novell.com>
* HttpSessionState.cs: implemented the CookieMode property.
svn path=/trunk/mcs/; revision=129934
Marek Habersack [Sat, 21 Mar 2009 02:06:03 +0000 (02:06 -0000)]
2009-03-21 Marek Habersack <mhabersack@novell.com>
* HttpResponse.cs: added two missing 3.0+ properties -
SubStatusCode and TrySkipIisCustomErrors.
svn path=/trunk/mcs/; revision=129933
Marek Habersack [Fri, 20 Mar 2009 22:52:33 +0000 (22:52 -0000)]
Fix the build
svn path=/trunk/mono/; revision=129930
Zoltan Varga [Fri, 20 Mar 2009 21:38:56 +0000 (21:38 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* mono/os: Remove this now empty directory.
* mono/Makefile.am (SUBDIRS): Remove 'os'.
svn path=/trunk/mono/; revision=129929
Zoltan Varga [Fri, 20 Mar 2009 21:37:08 +0000 (21:37 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* os/gc-internal.h: Move this to 'utils'.
svn path=/trunk/mono/; revision=129928
Zoltan Varga [Fri, 20 Mar 2009 21:31:14 +0000 (21:31 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
inside finally clauses correctly. Fixes #485721.
* mini.c (mono_find_spvar_for_region): This needs to handle try regions
after the change above.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=129927
Zoltan Varga [Fri, 20 Mar 2009 21:04:50 +0000 (21:04 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py: Update for the latest python API on the archer branch.
svn path=/trunk/mono/; revision=129926
Zoltan Varga [Fri, 20 Mar 2009 21:04:00 +0000 (21:04 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* thread6.cs: Use a monitor to avoid sleeping which doesn't work on slow
machines.
svn path=/trunk/mono/; revision=129925
Jonathan Pryor [Fri, 20 Mar 2009 16:32:43 +0000 (16:32 -0000)]
* x-struct-str.c: It's possible for struct members to be NULL, so make
sure we don't pass NULL to strlen(3).
svn path=/trunk/mono/; revision=129882
Sebastien Pouliot [Fri, 20 Mar 2009 16:24:39 +0000 (16:24 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* class.c: Simplification to coreclr checks for overrides that
makes it easier to set breakpoints.
svn path=/trunk/mono/; revision=129880
Zoltan Varga [Fri, 20 Mar 2009 15:53:35 +0000 (15:53 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
inside finally clauses correctly. Fixes #485721.
* mini.c (mono_find_spvar_for_region): This needs to handle try regions
after the change above.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=129877
Sebastien Pouliot [Fri, 20 Mar 2009 14:02:16 +0000 (14:02 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization
works correctly, i.e. throw the right exception, with Moonlight.
svn path=/trunk/mcs/; revision=129872
Sebastien Pouliot [Fri, 20 Mar 2009 13:48:57 +0000 (13:48 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a
TargetInvocationException (required for Moonlight 2).
svn path=/trunk/mcs/; revision=129871
Sebastien Pouliot [Fri, 20 Mar 2009 13:10:43 +0000 (13:10 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c|h: (mono_security_core_clr_class_level,
mono_security_core_clr_method_level): Avoid potential
MonoCustomAttrInfo allocation for transparent assemblies (e.g.
user/application code) and make it easier to set breakpoints
svn path=/trunk/mono/; revision=129866
Daniel Morgan [Fri, 20 Mar 2009 11:11:57 +0000 (11:11 -0000)]
2009-03-20 Daniel Morgan <monodanmorg@yahoo.com>
* OracleCommand.cs: fix suggested by Thracx <SpamMonkey01+Mono@gmail.com>
where the parameter was always item zero for an out parameter.
svn path=/trunk/mcs/; revision=129864
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:11 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Reject cli header tables that mono don't handle.
svn path=/trunk/mono/; revision=129835
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:03 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* cli-header-tests.md: More tests for the cli header.
svn path=/trunk/mono/; revision=129834
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:01 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* pedump.c: Fix CLI header dumping.
svn path=/trunk/mono/; revision=129833
Rodrigo Kumpera [Thu, 19 Mar 2009 22:31:53 +0000 (22:31 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: More CLI header verification.
svn path=/trunk/mono/; revision=129832
Rodrigo Kumpera [Thu, 19 Mar 2009 22:31:46 +0000 (22:31 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* gen-md-tests.c: Add cli-header variable to make tests
more readable.
svn path=/trunk/mono/; revision=129831
Zoltan Varga [Thu, 19 Mar 2009 21:18:52 +0000 (21:18 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.
* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
into cfg->used_int_regs, it is not needed with the dwarf unwinder.
(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.
svn path=/trunk/mono/; revision=129826
Zoltan Varga [Thu, 19 Mar 2009 21:08:18 +0000 (21:08 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
the stack_alloc_size < (1 << 16) assertion in emit_prolog ().
svn path=/trunk/mono/; revision=129824
Jonathan Pryor [Thu, 19 Mar 2009 21:00:27 +0000 (21:00 -0000)]
* src/DbLinq/Data/Linq/Database/Implementation/TransactionalCommand.cs,
src/DbLinq.Firebird/FirebirdDataContext.cs,
src/DbLinq.Ingres/IngresDataContext.cs,
src/DbLinq.MySql/MysqlDataContext.cs,
src/DbLinq.Oracle/OracleDataContext.cs,
src/DbLinq.PostgreSql/PgsqlDataContext.cs,
src/DbLinq.Sqlite/Schema/DataCommand.cs,
src/DbLinq.Sqlite/SqliteDataContext.cs,
src/DbLinq.SqlServer/SqlServerDataContext.cs,
src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
they aren't exported from System.Data.Linq.dll.
svn path=/trunk/mcs/; revision=129823
Ivan Zlatev [Thu, 19 Mar 2009 18:59:57 +0000 (18:59 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: If IsHandleCreated and the very first row is added
to the grid in a non-databound scenario - select the first cell.2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewTest.cs: Add tests to verify that the current cell changes
if IsHandleCreated and the first row is added in a non-databound scenario.
[Fixes bug #486881]
svn path=/trunk/mcs/; revision=129815
Marek Safar [Thu, 19 Mar 2009 18:44:28 +0000 (18:44 -0000)]
2009-03-19 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Load build-in types directly instead of accessing
an internal field.
svn path=/trunk/mcs/; revision=129812
Sebastien Pouliot [Thu, 19 Mar 2009 18:38:42 +0000 (18:38 -0000)]
2009-03-19 Sebastien Pouliot <sebastien@ximian.com>
* method-to-ir.c: Allow CoreCLR to throw FieldAccessException.
Simplify logic for ensure_method_is_allowed_to_call_method.
Handle wrappers on callers.
svn path=/trunk/mono/; revision=129810
Ivan Zlatev [Thu, 19 Mar 2009 18:10:03 +0000 (18:10 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
DataGridView. They do not belong to a DataGridView.
* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
Row/CellTemplates being always null.
[Fixes bug #486645]
svn path=/trunk/mcs/; revision=129806
Ivan Zlatev [Thu, 19 Mar 2009 18:09:59 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
Set indices and associate with DataGridView only after the item is
add to the internal list.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129805
Ivan Zlatev [Thu, 19 Mar 2009 18:09:54 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
FullRowTemplate already contains all the cells.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129804
Ivan Zlatev [Thu, 19 Mar 2009 18:09:38 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
to perform Pre and Post removal actions to allow the current cell to be
moved and all events fired properly before the column is removed.
svn path=/trunk/mcs/; revision=129803
Zoltan Varga [Thu, 19 Mar 2009 17:58:09 +0000 (17:58 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (fullaotcheck): Don't run the generics tests, some of
them don't run yet.
svn path=/trunk/mono/; revision=129802
Zoltan Varga [Thu, 19 Mar 2009 17:57:04 +0000 (17:57 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* basic-simd.cs: Fix the names of some test methods.
svn path=/trunk/mono/; revision=129801
Zoltan Varga [Thu, 19 Mar 2009 17:42:53 +0000 (17:42 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* locales.c (get_current_locale_name): Use g_malloc instead of malloc.
svn path=/trunk/mono/; revision=129798
Marek Habersack [Thu, 19 Mar 2009 13:44:14 +0000 (13:44 -0000)]
2009-03-19 Marek Habersack <mhabersack@novell.com>
* ScriptManager.cs: WriteCallbackPanel is called from
UpdatePanel.RenderChildren and should not output anything for
panels registered as the ones to refresh. If such a panel calls
this method, its output is stored in a dictionary to be used later
in RenderFormCallback.
RenderFormCallback first renders all the form controls. In that
process UpdatePanel instances, if any, may call
WriteCallbackPanel. After that, if there are panels registered for
refresh, another loop over the list is made this time checking
whether any panels left their output in WriteCallbackPanel. If a
panel hasn't done it it is rendered. And last, another check is
done to see if the loop described above caused any panels to leave
output in WriteCallbackPanel. If yes, the output is written to the
text writer.
svn path=/trunk/mcs/; revision=129774
Sebastien Pouliot [Thu, 19 Mar 2009 12:05:13 +0000 (12:05 -0000)]
2009-03-19 Sebastien Pouliot <sebastien@ximian.com>
* SecurityManager.cs: Remove VerificationException (not used from
the runtime anymore) and add FieldAccessException (which is now,
or soon will be, required/used by the runtime).
svn path=/trunk/mcs/; revision=129771
Atsushi Eno [Thu, 19 Mar 2009 08:12:07 +0000 (08:12 -0000)]
2009-03-19 Atsushi Enomoto <atsushi@ximian.com>
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
to infer type from xml qname, consider DataContractAttribute
names.
svn path=/trunk/mcs/; revision=129764
Ankit Jain [Thu, 19 Mar 2009 01:09:56 +0000 (01:09 -0000)]
Fix bugs #323833 and #484384.
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.
svn path=/trunk/mcs/; revision=129760
Ankit Jain [Thu, 19 Mar 2009 00:58:12 +0000 (00:58 -0000)]
Fix bug #484773.
* Main.cs (Execute): Check whether the project file exists or not.
* Parameters.cs (ParseArguments): Handle absolute paths too.
svn path=/trunk/mcs/; revision=129759
Ivan Zlatev [Thu, 19 Mar 2009 00:26:30 +0000 (00:26 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
Post removal action to allow the current cell to be moved and all events fired
properly before the row is removed.
svn path=/trunk/mcs/; revision=129757
Ivan Zlatev [Wed, 18 Mar 2009 23:19:50 +0000 (23:19 -0000)]
2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
[Fixes bug #486640]
svn path=/trunk/mcs/; revision=129747
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:28 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* cli-header-tests.md: New file with cli header tests.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=129743
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:26 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial verification of the CLI header.
svn path=/trunk/mono/; revision=129742
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:19 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_resources_table): Fix verification of zero
sized resource section and id entries count.
svn path=/trunk/mono/; revision=129741
Geoff Norton [Wed, 18 Mar 2009 19:29:33 +0000 (19:29 -0000)]
2009-03-18 Geoff Norton <gnorton@novell.com>
* mini.c: Only chain sigfpe if it wasn't generated in mangaed code.
svn path=/trunk/mono/; revision=129736
Marek Safar [Wed, 18 Mar 2009 17:38:06 +0000 (17:38 -0000)]
Update.
svn path=/trunk/mcs/; revision=129721
Marek Safar [Wed, 18 Mar 2009 17:36:46 +0000 (17:36 -0000)]
2009-03-18 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Always use unbox.any when available.
svn path=/trunk/mcs/; revision=129719
Marek Safar [Wed, 18 Mar 2009 17:17:58 +0000 (17:17 -0000)]
New tests.
svn path=/trunk/mcs/; revision=129715
Marek Safar [Wed, 18 Mar 2009 17:17:43 +0000 (17:17 -0000)]
2009-03-18 Marek Safar <marek.safar@gmail.com>
* class.cs: Always set TypeAttributes.BeforeFieldInit conditionally.
svn path=/trunk/mcs/; revision=129714
Jonathan Pobst [Wed, 18 Mar 2009 14:46:47 +0000 (14:46 -0000)]
2009-03-18 Jonathan Pobst <monkey@jpobst.com>
* XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
placement of popup windows on OSX.
svn path=/trunk/mcs/; revision=129699
Zoltan Varga [Wed, 18 Mar 2009 14:15:57 +0000 (14:15 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs: Add more tests for user types.
svn path=/trunk/mcs/; revision=129693
Zoltan Varga [Wed, 18 Mar 2009 14:15:30 +0000 (14:15 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
the base method which now throws an exception.
svn path=/trunk/mcs/; revision=129692
Zoltan Varga [Wed, 18 Mar 2009 14:14:44 +0000 (14:14 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
consistent with MS.NET. Move the real implementation to MonoType.
svn path=/trunk/mcs/; revision=129691
Zoltan Varga [Wed, 18 Mar 2009 14:08:04 +0000 (14:08 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* icall.c: Handle user types in many Type icalls. Fixes #486303.
svn path=/trunk/mono/; revision=129689
Zoltan Varga [Wed, 18 Mar 2009 13:24:02 +0000 (13:24 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.c (token_handler): Fix a crash caused by the last change.
svn path=/trunk/mono/; revision=129688