mono.git
16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 29 May 2008 03:34:17 +0000 (03:34 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c: Fix negative index check for array alocation.

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 29 May 2008 02:34:03 +0000 (02:34 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* DelegateTest.cs (CreateDelegate1_Method_Private_Instance): Added test
for bug #372406. It tries to create a delegate to a private instance
method of other type.

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 29 May 2008 02:29:05 +0000 (02:29 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c, marshal.c: Delegate wrappers should skip visibility.
This check is performed by the verifier for IL created delegates
and by Delegate::CreateDelegate for programatically created ones.
Fixes #372406.

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

16 years agoRevert r104184 - changing the default profile to net_2_0 is not enough.
Marek Habersack [Wed, 28 May 2008 23:43:02 +0000 (23:43 -0000)]
Revert r104184 - changing the default profile to net_2_0 is not enough.
There is no way to build libraries for the 1.x profiles outside the main build
once that change is applied (i.e. make PROFILE=net_1_0 or make PROFILE=net_1_1
don't work, as class/lib/ doesn't contain the net_1_0 or net_1_1 directories).
That makes testing changes to the 1.1 profile more tedious than it should be.

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

16 years agounbreak the 1.x build
Marek Habersack [Wed, 28 May 2008 23:06:15 +0000 (23:06 -0000)]
unbreak the 1.x build

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

16 years ago2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Wed, 28 May 2008 22:14:48 +0000 (22:14 -0000)]
2008-05-28 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* CookieContainer.cs: apply slightly modified patch from rulatir@wp.pl
that fixes bug #356537.

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

16 years ago2008-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 21:33:46 +0000 (21:33 -0000)]
2008-05-28  Marek Habersack  <mhabersack@novell.com>

* ResourceReader.cs: use structs instead of classes for the
internal ResourceInfo and ResourceCacheItem data items. Patch from
Andreas Nahr <ClassDevelopment@A-SoftTech.com>, thanks!

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

16 years ago2008-05-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 21:23:54 +0000 (21:23 -0000)]
2008-05-22  Marek Habersack  <mhabersack@novell.com>

        * WebConfigurationHost.cs: changed CreateDeprecatedConfigContext
        to return a new HttpContext object. This is part of a fix for bug
        #325128. Patch contributed by James Fitzsimons <james.fitzsimons@gmail.com>,
        thanks!

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

16 years ago2008-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 21:22:57 +0000 (21:22 -0000)]
2008-05-28  Marek Habersack  <mhabersack@novell.com>

        * Configuration.cs: set the ConfigContext when getting
        and instance of a section. Fix for bug #325128.

        * ConfigurationSection.cs: added an internal property -
        ConfigContext used to supply the HttpContext to the Create
        method of SectionHandler when called from GetRuntimeObject.
        Fix for bug #325128.

        * InternalConfiguationHost.cs: changed CreateDeprecatedConfigContext
        to return null rather than throwing a NotImplementedException.
        Fix for bug #325128.

        * All patches above contributed by James Fitzsimons <james.fitzsimons@gmail.com>,
          thanks!

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

16 years ago2008-05-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 21:07:04 +0000 (21:07 -0000)]
2008-05-18  Marek Habersack  <mhabersack@novell.com>

* HierarchicalDataBoundControl.cs: Modified GetData method to check if
DataSource implements IHierarchicalEnumerable and if so constructs and
returns a new instance of ReadOnlyDataSourceView. This provides functional
compatibility with the Microsoft.NET framework. Fixes bug
#395209. Patch contributed by James Fitzsimons
<james.fitzsimons@gmail.com>, thanks!

2008-05-18  Marek Habersack  <mhabersack@novell.com>

* HierarchicalDataBoundControlTest.cs: Added
TestIHierarchicalEnumerableDataSource to test change made to
GetData method to make functionally compatibile with Microsoft.NET
framework. Patch contributed by James Fitzsimons
<james.fitzsimons@gmail.com>, thanks!

2008-05-28  Marek Habersack  <mhabersack@novell.com>

* ReadOnlyDataSourceView.cs: added. Patch contributed by James
Fitzsimons <james.fitzsimons@gmail.com>, thanks!

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

16 years ago2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 28 May 2008 20:31:11 +0000 (20:31 -0000)]
2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ScrollBar.cs: Scrollbars should only react to left-clicks, not right
or middle ones.
Fixes part of #393908.

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

16 years ago2008-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 19:42:06 +0000 (19:42 -0000)]
2008-05-28  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: added support for #pragma checksum

2008-05-28  Marek Habersack  <mhabersack@novell.com>

* AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
for #pragma checksum

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 28 May 2008 18:02:46 +0000 (18:02 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* sockey-io.c (ves_icall_System_Net_Sockets_Socket_Select_internal):
Fix code to use mono_array_size_t instead of int.

Based on patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years agopassing those
Jb Evain [Wed, 28 May 2008 17:18:52 +0000 (17:18 -0000)]
passing those

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

16 years ago2008-05-28 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 28 May 2008 17:18:10 +0000 (17:18 -0000)]
2008-05-28  Jb Evain  <jbevain@novell.com>

* BinaryExpression.cs (Emit): rework compilation of
arithmetic and relational lifted binary expressions.

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

16 years agomake that explicit
Jb Evain [Wed, 28 May 2008 17:17:13 +0000 (17:17 -0000)]
make that explicit

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

16 years agoForget to include the path
Marek Safar [Wed, 28 May 2008 17:09:23 +0000 (17:09 -0000)]
Forget to include the path

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 28 May 2008 17:08:10 +0000 (17:08 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c: Added ves_icall_System_Array_GetLongLength and
ves_icall_System_Array_CreateInstanceImpl64. Both allow handling big
arrays.

* icall.h: Export both new functions.

Based on patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 28 May 2008 16:11:11 +0000 (16:11 -0000)]
2008-05-28  Martin Baulig  <martin@ximian.com>

The debugger now requires exactly r103463.

* mono-debug.h (MONO_DEBUGGER_VERSION): Bump to 71.
This version is not supported by the debugger, wait for 72.

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

16 years agolifted relational tests
Jb Evain [Wed, 28 May 2008 15:57:01 +0000 (15:57 -0000)]
lifted relational tests

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

16 years agolifted relational tests
Jb Evain [Wed, 28 May 2008 15:55:14 +0000 (15:55 -0000)]
lifted relational tests

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

16 years ago2008-05-28 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 28 May 2008 15:50:47 +0000 (15:50 -0000)]
2008-05-28  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDrowDown.cs: When using the Show () methods that have a
Control parameter, set the menu owner to that Control.
[Fixes bug #394345]

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

16 years agoRemoved some crazy hacking
Marek Safar [Wed, 28 May 2008 15:02:13 +0000 (15:02 -0000)]
Removed some crazy hacking

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

16 years ago2008-05-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 28 May 2008 14:57:11 +0000 (14:57 -0000)]
2008-05-28  Martin Baulig  <martin@ximian.com>

* Mono.Cecil.Mdb/MdbReader.cs: Reflect latest symbol
reader changes.

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

16 years ago2008-05-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 28 May 2008 14:45:58 +0000 (14:45 -0000)]
2008-05-28  Martin Baulig  <martin@ximian.com>

* MonoSymbolTable.cs
(MethodSourceEntry): Mark as Obsolete.
(SourceFileEntry.Methods): Likewise.

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

16 years ago2008-05-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 28 May 2008 14:42:34 +0000 (14:42 -0000)]
2008-05-28  Marek Safar  <marek.safar@gmail.com>

* Makefile (EXTRA_DISTFILES): More test files.

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

16 years agopassing those
Jb Evain [Wed, 28 May 2008 14:37:57 +0000 (14:37 -0000)]
passing those

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

16 years ago2008-05-28 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 28 May 2008 14:37:30 +0000 (14:37 -0000)]
2008-05-28  Jb Evain  <jbevain@novell.com>

* UnaryExpression.cs (Emit): implement support for compiling
lifted unary expressions.

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

16 years ago2008-05-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 28 May 2008 14:29:56 +0000 (14:29 -0000)]
2008-05-28  Martin Baulig  <martin@ximian.com>

* MonoSymbolTable.cs
(LineNumberTable): New public class.
(MethodEntry.LocalTypeIndices): Removed.
(MethodEntry.GetLineNumberTable): New public method; replaces the
`LineNumbers' and `NumLineNumbers' fields.
(MethodEntry.GetLocals): New public method; replaces the `Locals'
and `NumLocals' fields.
(MethodEntry.GetCodeBlocks): New public method; replaces the
`CodeBlocks' and `NumCodeBlocks' fields.
(MethodEntry.GetScopeVariables): New public method; replaces the
`ScopeVariables' and `NumScopeVariables' fields.
(MethodEntry.GetRealName): New public method; replaces `RealName'.
(MethodEntry): Mark the old fields as obsolete.

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

16 years agolifted unary operators tests
Jb Evain [Wed, 28 May 2008 14:24:06 +0000 (14:24 -0000)]
lifted unary operators tests

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

16 years ago2008-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 28 May 2008 14:21:30 +0000 (14:21 -0000)]
2008-05-28  Zoltan Varga  <vargaz@gmail.com>

* Console.cs (.cctor): Make sdout synchronized in the console case too.
Fixes #395069.

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 28 May 2008 14:15:28 +0000 (14:15 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* object.h: Changed array related functions to use
mono_array_size_t instead of guint32. Forgot to commit this file.

Patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years agooh the joy of deleting code
Jb Evain [Wed, 28 May 2008 13:59:56 +0000 (13:59 -0000)]
oh the joy of deleting code

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

16 years agorefactoring
Jb Evain [Wed, 28 May 2008 13:47:52 +0000 (13:47 -0000)]
refactoring

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

16 years ago2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 28 May 2008 13:44:37 +0000 (13:44 -0000)]
2008-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* object.h: Don't use G_MAXINT32 or G_MAXUINT32 as old glibs
don't define it. Use the number literal instead.

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

16 years agorefactoring
Jb Evain [Wed, 28 May 2008 13:42:33 +0000 (13:42 -0000)]
refactoring

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

16 years ago=fix build - or at least make it go further
Sebastien Pouliot [Wed, 28 May 2008 12:41:57 +0000 (12:41 -0000)]
=fix build - or at least make it go further

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

16 years agorevert wrong renaming
Jb Evain [Wed, 28 May 2008 12:35:42 +0000 (12:35 -0000)]
revert wrong renaming

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

16 years agoremove unused ctor
Jb Evain [Wed, 28 May 2008 12:35:21 +0000 (12:35 -0000)]
remove unused ctor

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

16 years ago2008-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 28 May 2008 11:11:38 +0000 (11:11 -0000)]
2008-05-28  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.h mini-x86.c inssel-x86.brg cpu-x86.md: Add support for
CAS instrinsics. Optimize the implementation of the ATOMIC_EXCHANGE
opcodes.

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

16 years agoRemove all vmwcproj files from old Grasshopper version
Noam Lampert [Wed, 28 May 2008 09:28:24 +0000 (09:28 -0000)]
Remove all vmwcproj files from old Grasshopper version

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

16 years ago2008-05-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 28 May 2008 01:38:23 +0000 (01:38 -0000)]
2008-05-27  Marek Habersack  <mhabersack@novell.com>

* ResourceReader.cs: reimplement the way resources are read when
enumerator is used. The resource indexes and names are read in
ReadHeaders when ResourceReader is created and the resource values
are read and cached when the enumerator is created. This removed a
lot of unnecessary locking and made the whole process more
efficient and faster (a test application would acquire the locks
40000 times durng a 1.7s run, right now it acquires the lock 1
time).

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

16 years ago2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Wed, 28 May 2008 00:21:23 +0000 (00:21 -0000)]
2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
[Fixes bug #362756]

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

16 years ago2008-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 28 May 2008 00:19:20 +0000 (00:19 -0000)]
2008-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c: Changed array related functions to use
mono_array_size_t instead of guint32.

* icall.c (ves_icall_System_Array_GetLength): Check for length
overflow under MONO_BIG_ARRAYS.

Based on patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 27 May 2008 22:56:53 +0000 (22:56 -0000)]
2008-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c: Add 64bits bounds check for arrays under MONO_BIG_ARRAYS.

Based on patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 27 May 2008 22:39:24 +0000 (22:39 -0000)]
2008-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c, object.h: Changed array related functions to use
mono_array_size_t instead of guint32.

Patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 27 May 2008 22:20:59 +0000 (22:20 -0000)]
2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>

* GridItemCollection.cs: Refactor to support multiple items with the
same name.
[Fixes bug #394314]

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

16 years ago2008-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 27 May 2008 21:43:28 +0000 (21:43 -0000)]
2008-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* object.h: Introduced mono_array_size_t typedef. This must be used
in all places an array length is expected. This is 64bits wide if
MONO_BIG_ARRAYS is enabled.

Patch by Luis F. Ortiz.
Contributed under X11 license.
http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 27 May 2008 21:24:01 +0000 (21:24 -0000)]
2008-05-27  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: The 2.0 check for illegal cross thread calls in
Control.Handle were throwing an exception when we were getting
the Handle in order to invoke correctly.  Created a private
version that does not contain this check.
[Fixes bug #394531]

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 20:51:35 +0000 (20:51 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* mono-value-hash.c: Fix build on older glib versions.

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

16 years ago2008-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 27 May 2008 20:49:53 +0000 (20:49 -0000)]
2008-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* configure.in: Add configure option for big arrays.

  Patch by Luis F. Ortiz.
  Contributed under X11 license.
  http://lists.ximian.com/pipermail/mono-devel-list/2008-May/027995.html

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

16 years ago2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 27 May 2008 20:28:17 +0000 (20:28 -0000)]
2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs: Respect DefaultTabType.

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

16 years ago2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 27 May 2008 20:27:34 +0000 (20:27 -0000)]
2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>

* PropertiesTab.cs: If attributes is null, force Browsable.Yes.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 20:21:50 +0000 (20:21 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* security-manager.c class.c: Set the class exception info by calling
mono_class_set_failure ().

* class.c (mono_class_get_exception_data): New accessor function.
(mono_class_set_failure): Store exception_data in the property hash.

* class-internals.h (struct _MonoClass): Store 'exception_data' outside
the struct as a property.

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

16 years ago* SqlConnection.cs: Added support for '.' as alias for localhost.
Gert Driesen [Tue, 27 May 2008 20:13:00 +0000 (20:13 -0000)]
* SqlConnection.cs: Added support for '.' as alias for localhost.
Improve exception message when TCP/IP protocol is not enabled.

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

16 years agodisable the crasher for now
Jb Evain [Tue, 27 May 2008 19:47:37 +0000 (19:47 -0000)]
disable the crasher for now

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

16 years ago2008-05-27 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 27 May 2008 19:28:19 +0000 (19:28 -0000)]
2008-05-27  Jb Evain  <jbevain@novell.com>

* Enumerable.cs (Sum): don't throw if source is empty.
Fixes #394827.

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

16 years agoadd test for Sum on empty
Jb Evain [Tue, 27 May 2008 19:26:57 +0000 (19:26 -0000)]
add test for Sum on empty

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

16 years ago* executable.make ($(PROGRAM_config)): Depend on directory
Raja R Harinath [Tue, 27 May 2008 19:24:05 +0000 (19:24 -0000)]
* executable.make ($(PROGRAM_config)): Depend on directory
creation stamp.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 19:19:21 +0000 (19:19 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* rules.make (PROFILE): Make the 2.0 profile the default.

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

16 years ago2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 27 May 2008 18:54:28 +0000 (18:54 -0000)]
2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>

* ListView.cs: SPACE selects an item.
[Fixes bug #393023]

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

16 years ago2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 27 May 2008 18:51:58 +0000 (18:51 -0000)]
2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>

* ListView.cs: Reset the search string whenever the items are
modified.
  [Fixes bug #393020]

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 18:37:53 +0000 (18:37 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (libmonoutils_la_SOURCES): Add mono-value-hash.{h,c}.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 18:36:55 +0000 (18:36 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* loader.c (mono_get_method_full): Store the lookup result for method
tokens in method_cache, the others in methodref_cache to decrease the memory
usage of hash tables.

* image.c (mono_image_close): Destroy method_cache and methodref_cache.
(mono_image_init): method_cache is lazy inited now.

* metadata-internals.h (struct _MonoImage): Change method_cache to
a MonoValueHashTable, add a separate methodref_cache.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 18:33:20 +0000 (18:33 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* mono-value-hash.h mono-value-hash.c: New files.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 18:01:59 +0000 (18:01 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_inst_for_method): Add support for CAS instrinsics when
the 'value' to store is a constant.

* mini-ops.h: Add OP_ATOMIC_CAS_IMM opcodes.

* mini-amd64.c (mono_arch_output_basic_block): Optimize the the implementation
of ATOMIC_EXCHANGE opcodes, add support for the CAS opcodes.

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

16 years ago2008-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 27 May 2008 18:01:46 +0000 (18:01 -0000)]
2008-05-27  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_inst_for_method): Add support for CAS instrinsics when
the 'value' to store is a constant.

* mini-ops.h: Add OP_ATOMIC_CAS_IMM opcodes.

* mini-amd64.c (mono_arch_output_basic_block): Optimize the the implementation
of ATOMIC_EXCHANGE opcodes, add support for the CAS opcodes.

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

16 years agofix nullable boxing and unboxing
Jb Evain [Tue, 27 May 2008 14:08:24 +0000 (14:08 -0000)]
fix nullable boxing and unboxing

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

16 years agoadd tests for nullable boxing and unboxing
Jb Evain [Tue, 27 May 2008 14:07:52 +0000 (14:07 -0000)]
add tests for nullable boxing and unboxing

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

16 years agorefactoring
Jb Evain [Tue, 27 May 2008 13:40:52 +0000 (13:40 -0000)]
refactoring

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

16 years ago2008-05-27 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 27 May 2008 13:31:04 +0000 (13:31 -0000)]
2008-05-27  Jb Evain  <jbevain@novell.com>

* UnaryExpression.cs (EmitConvert): implement nullable to nullable
convert.

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

16 years agoadd test for nullable to nullable convert
Jb Evain [Tue, 27 May 2008 13:29:54 +0000 (13:29 -0000)]
add test for nullable to nullable convert

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

16 years agoFix arithemtic overflow in Double.ToString exposed by Bug #383531.
Eyal Alalouf [Tue, 27 May 2008 12:18:26 +0000 (12:18 -0000)]
Fix arithemtic overflow in Double.ToString exposed by Bug #383531.

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

16 years agoFix arithemtic overflow in Double.ToString exposed by Bug #383531.
Eyal Alalouf [Tue, 27 May 2008 12:18:26 +0000 (12:18 -0000)]
Fix arithemtic overflow in Double.ToString exposed by Bug #383531.

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

16 years ago2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 27 May 2008 06:47:12 +0000 (06:47 -0000)]
2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControl.cs: For the first added item PositionChanged is fired
_before_ ItemChanged, which leave us in a temporary invalid state - so
we need to set the selected index from ItemChanged handler *if* we
know that the first item has just been added *and* the items have been
actually added to the ListControl.
Fixes #369048.

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

16 years ago* Bitmap.cs: Changed argument names to match MS.
Gert Driesen [Mon, 26 May 2008 20:53:21 +0000 (20:53 -0000)]
* Bitmap.cs: Changed argument names to match MS.
* CharacterRange.cs: Changed argument names to match MS.
* Color.cs: Changed argument names to match MS.
* Font.cs: Changed argument names to match MS.
* FontFamily.cs: Changed argument names to match MS.
* Graphics.cs: Changed argument names to match MS.
* Image.cs: Changed argument names to match MS.
* Icon.cs: Changed argument names to match MS.
* IconConverter.cs: Changed argument names to match MS.
* ImageAnimator.cs: Changed argument names to match MS.
* ImageConverter.cs: Changed argument names to match MS.
* ImageFormatConverter.cs: Changed argument names to match MS.
* Point.cs: Changed argument names to match MS.
* PointF.cs: Changed argument names to match MS.
* Rectangle.cs: Changed argument names to match MS.
* RectangleF.cs: Changed argument names to match MS.
* Region.cs: Changed argument names to match MS.
* Size.cs: Changed argument names to match MS.
* SizeF.cs: Changed argument names to match MS.
* StringFormat.cs: Changed argument names to match MS.
* SystemFonts.cs: Changed argument names to match MS.
* TextureBrush.cs: Changed argument names to match MS.

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

16 years ago2008-05-21 Atsushi Enomoto <atsushi@ximian.com>
Stephane Delcroix [Mon, 26 May 2008 15:12:06 +0000 (15:12 -0000)]
2008-05-21  Atsushi Enomoto  <atsushi@ximian.com>

* System.dll.sources :
  added INotifyPropertyChanging stuff (new in 2.0 SP1).

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 14:41:42 +0000 (14:41 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* number-formatter.h: Make some tables static.

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 11:32:14 +0000 (11:32 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (libmonoutils_la_SOURCES): Add mono-property-hash.{h,c}.

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 10:18:52 +0000 (10:18 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* get.c: Use accessor functions for accessing method->generic_container.

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 10:17:59 +0000 (10:17 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* mini.c generic-sharing.c jit-icalls.c aot-compiler.c: Use accessor functions
for accessing method->generic_container.

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 10:16:14 +0000 (10:16 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_method_set_generic_container): New accessor function.
(mono_method_get_generic_container): Ditto.

* class-internals.h (struct _MonoMethod): Remove rarely used
'generic_container' field, store it in the property hash instead. Add
'is_generic' boolean field instead.

* image.c (mono_image_init): Initialize property_hash.
(mono_image_close): Destroy property_hash.

* metadata-internals.h (struct _MonoImage): Add 'property_hash' hash table to
hold rarely used fields of runtime structures belonging to this image.

* class.c loader.c verify.c icall.c reflection.c: Use the new accessor functions
to get/set method->generic_container.

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 10:09:23 +0000 (10:09 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* mono-property-hash.h mono-property-hash.c: New files.

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

16 years ago2008-05-26 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Mon, 26 May 2008 09:39:56 +0000 (09:39 -0000)]
2008-05-26  Stephane Delcroix  <sdelcroix@novell.com>

* TimezoneInfo.cs: nullity check in HasSameRules (). Fixes bnc #391011

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

16 years ago2008-05-26 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Mon, 26 May 2008 09:38:22 +0000 (09:38 -0000)]
2008-05-26  Stephane Delcroix  <sdelcroix@novell.com>

* Timezonetsnfo.cs: test for bnc #391011

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

16 years ago2008-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 26 May 2008 09:32:40 +0000 (09:32 -0000)]
2008-05-26  Zoltan Varga  <vargaz@gmail.com>

* loader.c (mono_get_method_from_token): Avoid loading the method header for
generic methods.

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

16 years agofix test
Jb Evain [Sun, 25 May 2008 23:12:11 +0000 (23:12 -0000)]
fix test

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

16 years agorevert big, unreviewed, broken changes from r104029/30/31
Sebastien Pouliot [Sun, 25 May 2008 23:11:32 +0000 (23:11 -0000)]
revert big, unreviewed, broken changes from r104029/30/31

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

16 years ago2008-05-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 25 May 2008 21:52:19 +0000 (21:52 -0000)]
2008-05-25  Sebastien Pouliot  <sebastien@ximian.com>

* XmlDecryptionTransform.cs,
* XmlDsigBase64Transform.cs,
* XmlDsigC14NTransform.cs,
* XmlDsigEnvelopedSignatureTransform.cs,
* XmlDsigExcC14NTransform.cs,
* XmlDsigXPathTransform.cs,
* XmlDsigXsltTransform.cs,
* XmlLicenseTransform.cs: Don't use lock(this). In fact remove locking
since the worse that can happen is two copies of the same data.
[Found using Gendarme]

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

16 years ago2008-05-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 25 May 2008 21:50:08 +0000 (21:50 -0000)]
2008-05-25  Sebastien Pouliot  <sebastien@ximian.com>

* XmlDsigBase64TransformTest.cs: Add test case for InputTypes
* XmlDsigExcC14NTransformTest.cs: Add test case for InputTypes

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

16 years ago* ColorMatrix.cs: Changed argument names to match MS. Changed spaces
Gert Driesen [Sun, 25 May 2008 17:05:43 +0000 (17:05 -0000)]
* ColorMatrix.cs: Changed argument names to match MS. Changed spaces
to tabs, and removed extra tabs.
* EncoderParameter.cs: Changed argument names to match MS. Changed
spaces to tabs, and removed extra tabs.
* ImageAttributes.cs: Changed argument names to match MS. Changed
spaces to tabs, and removed extra tabs.
* Metafile.cs: Changed argument names to match MS. Changes spaces to
tabs, and removed extra tabs. Fixed typo in MonoLimitation text.

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

16 years ago* GraphicsPath.cs: Changed argument names to match MS. Changed spaces
Gert Driesen [Sun, 25 May 2008 16:45:09 +0000 (16:45 -0000)]
* GraphicsPath.cs: Changed argument names to match MS. Changed spaces
to tabs, and removed extra tabs.
* HatchBrush.cs: Changed argument names to match MS.

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

16 years ago* Bitmap.cs: Changed argument names to match MS. Changed spaces to
Gert Driesen [Sun, 25 May 2008 16:41:48 +0000 (16:41 -0000)]
* Bitmap.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* CharacterRange.cs: Changed argument names to match MS.
* Color.cs: Changed argument names to match MS.
* Font.cs: Changed argument names to match MS. Code formatting.
* FontFamily.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* Graphics.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* Image.cs: Changed argument names to match MS. Changed spaces to tabs
and removed extra tabs. Code formatting.
* Icon.cs: Changed argument names to match MS. Changes spaces to tabs,
and removed extra tabs.
* IconConverter.cs: Changed argument names to match MS.
* ImageAnimator.cs: Code formatting. Changed argument names to match
MS.
* ImageConverter.cs: Changed argument names to match MS. Avoid double
cast in ConvertTo. Changed spaces to tabs, and removed extra tabs.
* ImageFormatConverter.cs: Changed argument names to match MS.
* Point.cs: Changed argument names to match MS.
* PointF.cs: Changed argument names to match MS.
* Rectangle.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* RectangleF.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* Region.cs: Changed argument names to match MS. Changed spaces to
tabs, and removed extra tabs.
* Size.cs: Changed argument names to match MS.
* SizeF.cs: Changed argument names to match MS.
* StringFormat.cs: Changed argument names to match MS. Changed spaces
to tabs, and removed extra tabs.
* SystemFonts.cs: Changed argument names to match MS. Code formatting.
* TextureBrush.cs: Changed argument names to match MS.

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

16 years ago2008-05-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 25 May 2008 14:22:18 +0000 (14:22 -0000)]
2008-05-25  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_inflate_generic_method_full): Don't increase
mono_stats.inflated_method_count for methods found in the cache.

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

16 years ago2008-05-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 25 May 2008 12:49:09 +0000 (12:49 -0000)]
2008-05-25  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_thread_request_interruption): Add a comment about
QueueUserAPC ().

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

16 years ago2008-05-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 25 May 2008 12:46:40 +0000 (12:46 -0000)]
2008-05-25  Zoltan Varga  <vargaz@gmail.com>

* thread-private.h (struct _WapiHandle_thread): Remove 'owner_pid' field. Reorder
fields so this struct (which is the biggest of the handle structs) takes less
space.

* threads.c (QueueUserAPC): Make this function signal safe by adding some
restrictions on its usage.

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

16 years ago* StringTest.cs: Added/improved tests for ToLower and ToUpper.
Gert Driesen [Sun, 25 May 2008 07:33:26 +0000 (07:33 -0000)]
* StringTest.cs: Added/improved tests for ToLower and ToUpper.

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

16 years ago * TabControl.cs: Only clicks with the left button should be
Carlos Alberto Cortez [Sun, 25 May 2008 02:16:37 +0000 (02:16 -0000)]
* TabControl.cs: Only clicks with the left button should be
handled.
Fixes #393908.

2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 25 May 2008 01:43:17 +0000 (01:43 -0000)]
2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ComboBox.cs:
* FIleDialog.cs:
* TextBox.cs: Expose an internal method in TextBox to restore the
original context menu, and call it from ComboBox to re-use it in the
combobox containing the file name in FileDialog.cs.
Fixes part of #393775.

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

16 years agoget Miguel's patch back in, without cloning the serialization info
Jb Evain [Sat, 24 May 2008 22:29:11 +0000 (22:29 -0000)]
get Miguel's patch back in, without cloning the serialization info

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