mono.git
15 years agoreduce one level of indentation
Jb Evain [Thu, 22 Jan 2009 15:07:25 +0000 (15:07 -0000)]
reduce one level of indentation

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

15 years ago2009-01-22 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 22 Jan 2009 15:05:35 +0000 (15:05 -0000)]
2009-01-22  Jb Evain  <jbevain@novell.com>

* Enumerable.cs (SequenceEqual): make sure we dispose enumerators.

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

15 years agopassing those
Jb Evain [Thu, 22 Jan 2009 14:57:54 +0000 (14:57 -0000)]
passing those

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

15 years ago2009-01-22 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 22 Jan 2009 14:56:14 +0000 (14:56 -0000)]
2009-01-22  Jb Evain  <jbevain@novell.com>

* Enumerable.cs: optimize Last for lists.

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

15 years agoset svn:eol-style to native and converted several files to unix line ending
Marek Habersack [Thu, 22 Jan 2009 14:52:09 +0000 (14:52 -0000)]
set svn:eol-style to native and converted several files to unix line ending

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

15 years agoadd a missing NotWorking
Jb Evain [Thu, 22 Jan 2009 14:50:00 +0000 (14:50 -0000)]
add a missing NotWorking

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

15 years agoadd tests
Jb Evain [Thu, 22 Jan 2009 14:45:18 +0000 (14:45 -0000)]
add tests

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

15 years agoreformat
Jb Evain [Thu, 22 Jan 2009 14:44:19 +0000 (14:44 -0000)]
reformat

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

15 years ago2009-01-22 Alan McGovern <amcgovern@novell.com>
Alan McGovern [Thu, 22 Jan 2009 14:42:10 +0000 (14:42 -0000)]
2009-01-22  Alan McGovern  <amcgovern@novell.com>

        * KnownTypeCollection.cs : The byte overload doesn't exist in
        Silverlight, so cast the byte to an int instead.

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

15 years ago2009-01-22 Alan McGovern <amcgovern@novell.com>
Alan McGovern [Thu, 22 Jan 2009 14:41:30 +0000 (14:41 -0000)]
2009-01-22  Alan McGovern  <amcgovern@novell.com>

        * MessageHeaders.cs : List<T>.RemoveAll(Predicate<T>) doesn't
        * exist in Silverlight.
        Rewrite to avoid usage of it.

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

15 years ago2009-01-22 Alan McGovern <amcgovern@novell.com>
Alan McGovern [Thu, 22 Jan 2009 14:40:43 +0000 (14:40 -0000)]
2009-01-22  Alan McGovern  <amcgovern@novell.com>

        * BasicHttpBinding.cs: In silverlight ReaderQuota is immutable and always
        has a default value of ReaderQuota.Max. Therefore no need to call CopyTo.

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

15 years agoimport the BackLinq tests
Jb Evain [Thu, 22 Jan 2009 14:31:43 +0000 (14:31 -0000)]
import the BackLinq tests

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Jan 2009 13:40:32 +0000 (13:40 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlXapResolver.cs : new in 2.1.
* XmlReaderSettings.cs : use above.

* net_2_1_raw_System.Xml.dll.sources: added XmlXapResolver.cs.

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Jan 2009 12:21:47 +0000 (12:21 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* SilverlightClientConfigLoader.cs : in Silverlight, there is
  "ServiceReference.ClientConfig" which is used to resolve service
  endpoint configuration. It is to consume that file.
* ChannelFactory.cs : use above in SL.
* ClientBase.cs : rename some misleading param names.

* net_2_1_raw_System.ServiceModel.dll.sources :
  added SilverlightClientConfigLoader.cs.

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

15 years agonew BuildManager change logs
Marek Habersack [Thu, 22 Jan 2009 11:45:04 +0000 (11:45 -0000)]
new BuildManager change logs

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

15 years agoNo longer sets the BuildManager.suppressAutoRestart field, as it was removed. Moved...
Marek Habersack [Thu, 22 Jan 2009 11:44:41 +0000 (11:44 -0000)]
No longer sets the BuildManager.suppressAutoRestart field, as it was removed. Moved setting of BuildManager.suppressDebugMessages to the Run () method

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

15 years agoBumped the number of compilation cycles to 10000 from the default 16 so that the...
Marek Habersack [Thu, 22 Jan 2009 11:44:16 +0000 (11:44 -0000)]
Bumped the number of compilation cycles to 10000 from the default 16 so that the tests appdomain isn't restarted - it can break tests

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

15 years agoAdded two conditionally compiled methods (when DEVEL is defined) to write messages...
Marek Habersack [Thu, 22 Jan 2009 11:43:57 +0000 (11:43 -0000)]
Added two conditionally compiled methods (when DEVEL is defined) to write messages to a file in a synchronous manner

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

15 years agoRemoved unused variables
Marek Habersack [Thu, 22 Jan 2009 11:43:35 +0000 (11:43 -0000)]
Removed unused variables

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

15 years agoRemoved the suppressAutoRestart variable
Marek Habersack [Thu, 22 Jan 2009 11:42:48 +0000 (11:42 -0000)]
Removed the suppressAutoRestart variable

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

15 years agoAdded the DEVEL compile define, used for conditional compilation of some development...
Marek Habersack [Thu, 22 Jan 2009 11:42:37 +0000 (11:42 -0000)]
Added the DEVEL compile define, used for conditional compilation of some development code

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

15 years agoAssemblyBuilder.Units property is no longer used
Marek Habersack [Thu, 22 Jan 2009 11:42:22 +0000 (11:42 -0000)]
AssemblyBuilder.Units property is no longer used

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

15 years agoSystem.Web now depends on System.Core - added System.Web to the net_2_0_dirs variable
Marek Habersack [Thu, 22 Jan 2009 11:41:59 +0000 (11:41 -0000)]
System.Web now depends on System.Core - added System.Web to the net_2_0_dirs variable

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

15 years agoRemoved debugging code
Marek Habersack [Thu, 22 Jan 2009 11:41:33 +0000 (11:41 -0000)]
Removed debugging code

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

15 years ago2009-01-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 22 Jan 2009 11:40:22 +0000 (11:40 -0000)]
2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * Makefile (net_2_0_dirs): added System.Web - it now depends on
        System.Core, so it needs to be recompiled one more time after
        System.Core is done.

2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * System.Web.dll.sources: added
        System.Web.Compilation/BuildManagerCacheItem.cs,
        System.Web.Compilation/BuildManagerDirectoryBuilder.cs,
        System.Web.Compilation/BuildProviderGroup.cs

        * Makefile (SYSTEMCORE_DEP): added. Defines SYSTEMCORE_DEP on the
        mcs command line when System.Core is present.
        Added the DEVEL define, which defines DEVEL on the mcs command
        line. This is used to conditionally compile development helper code in
        System.Web.Util.FileUtils (and possibly other stuff later on)

2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
        attribute.

        * BuildProvider.cs: added new internal virtual method,
        ExtractDependencies() whose purpose is to extract virtual path
        dependencies without compiling the code, if possible.

        * TemplateBuildProvider.cs: implemented the new
        ExtractDependencies () method which uses regular expressions to
        extract file dependencies from the source without having to
        compile the file.

        * CompilationException.cs: added a new public property, Results,
        which returns the compilation results.

        * BuildProviderGroup.cs: added. A simple class descending from
        List <BuildProvider> which is used to hold a compilation batch -
        that is a collection of BuildProvider instances.

        * BuildManagerDirectoryBuilder.cs: new class which takes care of
        generating compilation batches for the requested virtual path. A
        set of batches is generated from files found in the same virtual
        directory as the requested virtual path and all of the
        dependencies of those files. All files are grouped in batches
        within which no file depends upon its siblings. An attempt is made
        to sort the batches from the "least dependent" to the "most
        dependent" batches - i.e. the batches which do not depend on other
        batches go to the top.
        Code generating the batches now correctly detects dependency loops
        and throws an exception when one is encountered.
        Batches are represented as instances of a new class -
        BuildProviderGroup.

        * BuildManagerCacheItem.cs: added. Contains all the compilation
        result information needed by BuildManager. See below.

        * BuildManager.cs: complete batch building rewrite:
         - only one build lock is held instead of a set of compilation
           tickets. Only one thread can compile anything at one given
           time.
         - retrieving types from the build cache now uses a slim rw lock,
           so that readers aren't blocked while compilation is in
           progress. Writer lock is acquired only when adding a newly
           compiled type to the build cache and when removing it after its
           dependencies made it invalid.
         - assembly references for each compilation are now collected
           dynamically as the source is being compiled, this removed a lot
           of complexity in dealing with assembles containing conflicting
           types. As a consequence right now there may exist several
           loaded assemblies containing the same type, but only the latest
           of them will be used in new compiles.
         - the thread compiling code can recurse into the Build method
           which causes the recursively referenced code to be compiled
           into a separate, uniquely named, assembly. This deals with all
           recursion loops and dependency problems.
         - automatic app domain restart after a certain number of compiles
           is enabled now.
         - improved compilation error handling. If a compilation error
           occurs, the code attempts to recompile the assembly up to 3
           times, each time removing from the batch the files/virtual
           paths which failed parsing/compilation. If the attempts failed,
           another one is made to compile only the virtual path requested
           by the calling code. Only should that fail a compilation
           exception is thrown. All the compilation errors are written to
           stdout if the application is in the debug mode.
         - changed assembly naming. It now generates assembly names based
           on whether the compilation is recursive and whether the batch
           being compiled contains more than one code unit or
           not.
         - compilation results are now stored in the cache as instances of
           the new BuildManagerCacheItem class, which contains all the
           information required by BuildManager to return types,
           assemblies, dependencies etc.
         - GetReferencedAssemblies now correctly returns only the
           assemblies defined in the .config files.
         - GetVirtualPathDependencies does not need to compile code
           anymore in order to extract virtual path dependencies. New code
           in BuildProvider.ExtractDependencies () takes care of that.
         - a BuildManagerDirectoryBuilder class instance is used to
           generate compilation batches.

        * AssemblyBuilder.cs: added support for keeping track of which
        code unit was generated by which BuildProvider andr which
        BuildProvider produced a given source file. Both changes serve the
        purpose of dealing with compilation errors in BuildManager.

        * ApplicationFileBuildProvider.cs: added missing
        BuildProviderAppliesTo attribute

2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * FileUtils.cs: added two conditionally compiled methods (they
        require DEVEL to be defined) which output lines to a log file.

2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * WebTest.cs: Run () sets the internal field
        BuildManager.suppressDebugModeMessages to true.

2009-01-22  Marek Habersack  <mhabersack@novell.com>

        * Web.mono.config: added numRecompilesBeforeAppRestart attribute
        to the compilation element, set to 100000, to avoid appdomain
        restarts during tests.

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Jan 2009 05:16:03 +0000 (05:16 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelFactory.cs : some code comment.
* ClientBase.cs : remove some todos.
* ClientRuntimeChannel.cs : hack some session properties.

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Jan 2009 05:14:07 +0000 (05:14 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* DataContractSerializerMessageContractImporter.cs :
  for such an element that does not contain schema type but has a
  type reference, use ImportSchemaType().

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Jan 2009 04:55:40 +0000 (04:55 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaImporter.cs : hack ImportSchemaType().

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

15 years ago2009-01-21 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 22 Jan 2009 04:27:43 +0000 (04:27 -0000)]
2009-01-21  Geoff Norton  <gnorton@novell.com>

        * WebClient_2_1.cs: Make the ManualResetEvent local to the callback
        because a WebClient can be reused causing a wait-handle race here
        allowing a delegate to get collected causing a crash.

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

15 years ago2009-01-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 22 Jan 2009 00:22:53 +0000 (00:22 -0000)]
2009-01-22  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): When using xdebug, disable freeing of domains.

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

15 years ago2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Jan 2009 23:20:17 +0000 (23:20 -0000)]
2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>

* XElement.cs : oops, experimental code remained and caused test
  failure.

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

15 years agoChangelogs for test changes
Marek Habersack [Wed, 21 Jan 2009 22:48:43 +0000 (22:48 -0000)]
Changelogs for test changes

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

15 years agoDisabled tests failing because of nunit 2.4 issue
Marek Habersack [Wed, 21 Jan 2009 22:48:32 +0000 (22:48 -0000)]
Disabled tests failing because of nunit 2.4 issue

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

15 years ago* TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
Mike Gorse [Wed, 21 Jan 2009 22:19:33 +0000 (22:19 -0000)]
* TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
  use them.
  Added UIAValueParamChangedEvent.

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

15 years ago2009-01-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 21 Jan 2009 22:04:35 +0000 (22:04 -0000)]
2009-01-21  Mark Probst  <mark.probst@gmail.com>

* mini-ppc.c (mono_arch_delegate_invoke_impl): Return function
descriptors.

* mini-trampolines.c (mono_delegate_trampoline): Remove the PPC64
special case and handle mono_arch_delegate_invoke_impl() returning
function descriptors.

* tramp-ppc.c (mono_arch_create_trampoline_code): Delegate
trampolines return function descriptors, too.

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

15 years ago2209-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 21 Jan 2009 21:20:53 +0000 (21:20 -0000)]
2209-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
of trying to set as top node the highest parent of the previous top
node. Moving to the bottom of the TreeView after a call to CollapseAll
is exactly what .net does. This should avoid some nasty issue when
CollapseAll is called and we don't need the vertical scroll bar.

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

15 years ago2009-01-21 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 21 Jan 2009 19:38:51 +0000 (19:38 -0000)]
2009-01-21  Jb Evain  <jbevain@novell.com>

* System.Net/WebClient_2_1.cs: use the length of the stream
instead of the ContentLength that is different for gzipped stream.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 19:32:20 +0000 (19:32 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (handle_alloc): Avoid generic instances in the
out_of_line optimization.

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

15 years agoFix the 1.1 build.
Zoltan Varga [Wed, 21 Jan 2009 18:07:19 +0000 (18:07 -0000)]
Fix the 1.1 build.

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

15 years ago2009-01-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 21 Jan 2009 17:51:39 +0000 (17:51 -0000)]
2009-01-21 Rodrigo Kumpera  <rkumpera@novell.com>

* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
a plain store.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 17:37:14 +0000 (17:37 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.

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

15 years ago2009-01-21 Mario Carrion <mcarrion@novell.com>
Mario Carrion [Wed, 21 Jan 2009 17:27:19 +0000 (17:27 -0000)]
2009-01-21  Mario Carrion <mcarrion@novell.com>

        * Form.cs: UIA Support: Internal events added:
        UIAWindowStateChanged and UIATopMostChanged.

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

15 years ago2009-01-21 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 21 Jan 2009 16:48:06 +0000 (16:48 -0000)]
2009-01-21  Martin Baulig  <martin@ximian.com>

* mini.h
(MonoCompile): Added `disable_deadce_vars' to disable removing
unused variables.

* mini.c
(mini_method_compile): Set `cfg->disable_deadce_vars' when running
inside the debugger.

* liveness.c (mono_analyze_liveness): Don't remove any unused
variables if `cfg->disable_deadce_vars' is set.

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

15 years ago2009-01-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 21 Jan 2009 16:42:22 +0000 (16:42 -0000)]
2009-01-21 Rodrigo Kumpera  <rkumpera@novell.com>

* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
deadlock.

* Makefile.am: Test added.

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

15 years ago2009-01-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 21 Jan 2009 16:42:13 +0000 (16:42 -0000)]
2009-01-21 Rodrigo Kumpera  <rkumpera@novell.com>

* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
which signals that the unloading has started but all appdomain services must
remain operational.

* appdomain.c (mono_domain_unload): The initial state for unloading now
is unloading_start and we switch to unloading after the managed call to
AppDomain::DomainUnload has finished.

The new unloading state has to be created because managed code in the
DomainUnload event can depend on things like the threadpool still working.
The domain must remain fully functional while the event executes.

This shown as an issue due to Process::WaitForExit, which waits for
async reads of stdout and stderr to complete. Since those are processed
in the threadpool the code deadlocks because the DomainUnload callback
waits for the async read finished event, which should have been set by a
threadpool job but has been discarded due to the domain been in unload
state.

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

15 years ago* Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs: Add
Sandy Armstrong [Wed, 21 Jan 2009 16:35:29 +0000 (16:35 -0000)]
* Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs: Add
  UIACheckChanged, UIARadioCheckChanged, UIAEnabledChanged, and
  UIATextChanged events.

* Managed.Windows.Forms/System.Windows.Forms/Form.cs: Add UIAMenuChanged
  event.

* Managed.Windows.Forms/System.Windows.Forms/Menu.cs:
* Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs: Note which
  internal APIs are being used by UIA.

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

15 years ago2009-01-21 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 21 Jan 2009 16:17:37 +0000 (16:17 -0000)]
2009-01-21  Chris Toshok  <toshok@ximian.com>

        * WebClient_2_1.cs: add 1 method back in, CancelAsync.

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

15 years agoControl enabled to support accessibility.
Neville Gao [Wed, 21 Jan 2009 15:35:41 +0000 (15:35 -0000)]
Control enabled to support accessibility.

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

15 years ago2009-01-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 21 Jan 2009 12:27:33 +0000 (12:27 -0000)]
2009-01-21  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, ecore.cs, iterator.cs: TypeLookupExpression clean
up.

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

15 years ago2009-01-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 21 Jan 2009 12:11:38 +0000 (12:11 -0000)]
2009-01-21  Mark Probst  <mark.probst@gmail.com>

* method-to-ir.c: Only apply exception constructor optimization if
the the method actually belongs to an exception class.  Fixes
#467456.

2009-01-21  Mark Probst  <mark.probst@gmail.com>

* bug-467456.cs: New test case.

* Makefile.am: Test added.

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

15 years ago2009-01-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Jan 2009 11:19:59 +0000 (11:19 -0000)]
2009-01-21  Atsushi Enomoto  <atsushi@ximian.com>

* DataContractSerializerMessageContractImporter.cs :
  some refactoring. Process all schemas, including those in WSDLs.

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

15 years ago2009-01-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 21 Jan 2009 10:47:36 +0000 (10:47 -0000)]
2009-01-21  Mark Probst  <mark.probst@gmail.com>

* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match.

2009-01-21  Mark Probst  <mark.probst@gmail.com>

* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
for unloading images whose MonoGenericInst's are still in use.

* Makefile.am: Test added.

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

15 years ago2009-01-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Jan 2009 10:29:34 +0000 (10:29 -0000)]
2009-01-21  Atsushi Enomoto  <atsushi@ximian.com>

* PrimitiveTesterTest.cs : disable failing test.

* DispatchRuntimeTest.cs : disable failing test.

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

15 years ago2009-01-21 Christian Hergert <christian.hergert@gmail.com>
Christian Hergert [Wed, 21 Jan 2009 08:37:40 +0000 (08:37 -0000)]
2009-01-21 Christian Hergert <christian.hergert@gmail.com>

* TdsComm.cs: optimize Append(byte[],int,byte) for adding data to
the buffer in the largest size of chunks possible.  also optimize
other Append overloads to use this rather than lots of Append(byte).

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

15 years agofix the 1.1 build
Gonzalo Paniagua Javier [Wed, 21 Jan 2009 07:50:20 +0000 (07:50 -0000)]
fix the 1.1 build

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

15 years agorevert the previous change.
Atsushi Eno [Wed, 21 Jan 2009 07:29:19 +0000 (07:29 -0000)]
revert the previous change.

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

15 years ago2009-01-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Jan 2009 07:21:21 +0000 (07:21 -0000)]
2009-01-21  Atsushi Enomoto  <atsushi@ximian.com>

* Driver.cs : handle relative file path.

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

15 years agomoved svcutil from olive.
Atsushi Eno [Wed, 21 Jan 2009 07:18:55 +0000 (07:18 -0000)]
moved svcutil from olive.

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

15 years ago2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 21 Jan 2009 04:38:56 +0000 (04:38 -0000)]
2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* TdsComm.cs: no need for the ManualResetEvent or the timeout instance
variables.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 04:31:56 +0000 (04:31 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_delegate_trampoline): Put back the previous
change inside a #ifdef __mono_ppc64__.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 03:19:40 +0000 (03:19 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Remove the previous limitation.

* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
on type variables in AOTed code.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 03:15:43 +0000 (03:15 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* mono-mmap.c: Applied patch from Koushik Dutta
(koush@koushikdutta.com). Rework the #ifdefs so Android could use the mmap
implementation.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 02:44:00 +0000 (02:44 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Skip generic methods having type
constraints on their generic parameters.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 02:24:45 +0000 (02:24 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Check for methods which cannot be
encoded inside RGCTX_FETCH patches as well.

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

15 years ago2009-01-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 21 Jan 2009 01:53:56 +0000 (01:53 -0000)]
2009-01-21  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_print_thread_dump): Fix the windows
build.

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

15 years ago2009-01-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Jan 2009 23:17:53 +0000 (23:17 -0000)]
2009-01-21  Mark Probst  <mark.probst@gmail.com>

* TypeBuilderTest.cs: Add test for fields in dynamic generic
classes.

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

15 years ago2009-01-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Jan 2009 23:16:31 +0000 (23:16 -0000)]
2009-01-21  Mark Probst  <mark.probst@gmail.com>

* reflection.c (resolve_object): For fields, inflate the class and
then get the field in the inflated class.

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

15 years ago2009-01-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Jan 2009 20:18:43 +0000 (20:18 -0000)]
2009-01-20  Mark Probst  <mark.probst@gmail.com>

* Exception.cs: Added a comment explaining the use of trace_ips.

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

15 years ago2009-01-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Jan 2009 20:15:29 +0000 (20:15 -0000)]
2009-01-20  Mark Probst  <mark.probst@gmail.com>

* method-to-ir.c: Force the vtable variable in shared generic code
for the case that they might show up on a stack trace where they
are needed.

* mini-exceptions.c: Save and use generic sharing info as well as
IP in stack traces to resolve shared generic instantiations.

2009-01-20  Mark Probst  <mark.probst@gmail.com>

* object-internals.h (struct _MonoException): Added a comment
explaining the new use of trace_ips.

2009-01-20  Mark Probst  <mark.probst@gmail.com>

* generic-stack-traces.2.cs: Generic sharing test for stack
traces.

* Makefile.am: Test added.

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

15 years ago2009-01-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 20 Jan 2009 18:55:05 +0000 (18:55 -0000)]
2009-01-20  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_delegate_trampoline): Revert the change which
added a mono_get_addr_from_ftnptr () as it breaks the ia64 build.

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

15 years ago2009-01-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Jan 2009 18:44:26 +0000 (18:44 -0000)]
2009-01-20  Mark Probst  <mark.probst@gmail.com>

        * method-to-ir.c: Do generic sharing for array constructors.

2009-01-20  Mark Probst  <mark.probst@gmail.com>

        * generic-sharing.c (inflate_other_data): Inflate array
        methods correctly.

        * loader.c, class-internals.h: Rename search_in_array_class() to
        mono_method_search_in_array_class() and make it non-static.

2009-01-20  Mark Probst  <mark.probst@gmail.com>

        * generic-system-arrays.2.cs: Generic sharing test case for
        arrays.

        * Makefile.am: Test added.

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

15 years ago2009-01-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Jan 2009 18:32:26 +0000 (18:32 -0000)]
2009-01-20  Marek Habersack  <mhabersack@novell.com>

* AssemblyInfo.cs: made internals visible to
System.Web.Extensions_test_net_2_0.dll

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

15 years ago2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Jan 2009 13:02:58 +0000 (13:02 -0000)]
2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>

* mini-exceptions.c (mono_print_thread_dump): Add information
about the thread state using wapi_current_thread_desc.

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

15 years ago2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Jan 2009 13:02:56 +0000 (13:02 -0000)]
2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>

* threads.c: Add wapi_current_thread_desc that produces
a string representation of the current thread state.

* threads.h: Export wapi_current_thread_desc.

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

15 years agoForgot to mention the contributor of this patch.
Rodrigo Kumpera [Tue, 20 Jan 2009 12:11:42 +0000 (12:11 -0000)]
Forgot to mention the contributor of this patch.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 11:37:44 +0000 (11:37 -0000)]
2009-01-20  Atsushi Enomoto <atsushi@ximian.com>

* Expression.cs : give up sortless iterator optimization.
  Fixed bug #443490.

* SelectNodesTests.cs : added test for bug #443490.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 10:46:06 +0000 (10:46 -0000)]
2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>

* XmlDocumentNavigator.cs : in some corner cases an attribute
  may have null OwnerElement. Fixed bug #458245.

* SelectNodesTests.cs : added test for bug #458245.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 10:35:44 +0000 (10:35 -0000)]
2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>

* XmlReaderBinarySupport.cs : do not hang in the middle of reading
  byte chunk at some node types. Fixed bug #464229.

* XmlReaderCommonTests.cs : added test for bug #464229.

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

15 years ago2009-01-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Jan 2009 10:04:10 +0000 (10:04 -0000)]
2009-01-20  Marek Habersack  <mhabersack@novell.com>

* Substitution.cs: added. Fixes bug #467460

2009-01-20  Marek Habersack  <mhabersack@novell.com>

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

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 07:32:52 +0000 (07:32 -0000)]
2009-01-20  Atsushi Enomoto <atsushi@ximian.com>

* XmlDefaultReader.cs : remove bogus overrides that blocks normal
  Read(). It was a design flaw in .NET.

* RelaxngReader.cs : fixed wrong text skip and ns/datatypeLibrary
  stack pop. Fixed bug #463267.

* RelaxngDatatypeProviderTests.cs : new test, based on bug #463267
  by Mark Junker.

* Commons.Xml.Relaxng_test.dll.sources : forgot to add
  RelaxngDatatypeProviderTests.cs.

* 463267.rng : new test file.

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

15 years ago2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Jan 2009 07:11:06 +0000 (07:11 -0000)]
2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeView.cs: When handling mouse up event, check whether
highlighted_node is null or not - usually it should be non-null
alwaays, since the mouse down handler sets it, but some externa
operations, such TreeNodeCollection.Clear, could set it to null.
Fixes #438650.

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

15 years ago2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 20 Jan 2009 06:38:05 +0000 (06:38 -0000)]
2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* IPAddressTest.cs: tests for bug #467472.

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

15 years ago2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 20 Jan 2009 06:31:18 +0000 (06:31 -0000)]
2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* IPAddress.cs: handle sign extension for the high byte when using the
byte[] ctor for an IPv4 address.
Fixes bug #467472.

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

15 years ago2009-01-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 20 Jan 2009 06:14:33 +0000 (06:14 -0000)]
2009-01-20  Zoltan Varga  <vargaz@gmail.com>

* test-runner.cs: Avoid closing a stream which is still being written to.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 05:27:35 +0000 (05:27 -0000)]
2009-01-20  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngGrammar.cs : fix confused use of datatype provider property.
  Fixed bug #463264. Based on the patch by Mark Junker.

* RelaxngDatatypeProviderTests.cs : new test, based on bug #463264
  by Mark Junker.

* 463264.rng : new test file.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 04:50:13 +0000 (04:50 -0000)]
2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>

* XElement.cs : iterate all attributes and see if there is
  applicable ns prefix for current element. Fixed bug #466423.

* XElementTest.cs : added test for bug #466423.

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

15 years ago2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Jan 2009 04:46:23 +0000 (04:46 -0000)]
2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>

* XDocument.cs : fix wrong indentation handling.

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

15 years ago2009-01-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Jan 2009 23:22:43 +0000 (23:22 -0000)]
2009-01-19  Zoltan Varga  <vargaz@gmail.com>

* metadata.c (inflated_signature_in_image): Call signature_in_image as well.
Hopefully fixes #458168.

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

15 years ago2009-01-19 Christian Hergert <christian.hergert@gmail.com>
Christian Hergert [Mon, 19 Jan 2009 23:00:30 +0000 (23:00 -0000)]
2009-01-19  Christian Hergert  <christian.hergert@gmail.com>

* object.c (mono_raise_exception): Remove call to InterlockedIncrement
as it is performed elsewhere.

Code is contributed under MIT/X11 license

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

15 years ago2009-01-19 Christian Hergert <christian.hergert@gmail.com>
Christian Hergert [Mon, 19 Jan 2009 22:35:35 +0000 (22:35 -0000)]
2009-01-19  Christian Hergert  <christian.hergert@gmail.com>

* QueueManager.cs: Implement requests queued performance counter.
* HttpRuntime.cs: Implement requests total counter.
* HttpApplication.cs: Implement requests total counter.

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

15 years ago2009-01-19 Christian Hergert <christian.hergert@gmail.com>
Christian Hergert [Mon, 19 Jan 2009 22:34:11 +0000 (22:34 -0000)]
2009-01-19  Christian Hergert  <christian.hergert@gmail.com>

* mono-perfcounters-def.h: Add counters for asp.net requests total and
requests queued.
* object.c (mono_raise_exception): Increment the exceptions total
counter when an exception is thrown.
* class-internals.h: Add a location for storing the total number of
asp.net requests served.
* mono-perfcounters.c: Implement update support for asp.net counters
from the class libraries. Implement read support for asp.net counters
and exceptions total counter.

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

15 years ago2009-01-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 19 Jan 2009 22:25:29 +0000 (22:25 -0000)]
2009-01-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Socket.cs: don't throw when there's no ipv6 configuration.

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

15 years ago2009-01-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Jan 2009 22:23:34 +0000 (22:23 -0000)]
2009-01-19  Zoltan Varga  <vargaz@gmail.com>

* Makefile (check): Add a standard check target.

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

15 years ago2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Jan 2009 19:48:03 +0000 (19:48 -0000)]
2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>

* basic-simd.cs: Tests for the new constructors.

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

15 years ago2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Jan 2009 19:47:56 +0000 (19:47 -0000)]
2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>

* mini-ops.h: Added OP_EXPAND_*

* cpu-x86.md: Same.

* mini-x86.c (mono_arch_output_basic_block): Same.

* simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for single element constructors.

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

15 years ago2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Jan 2009 19:47:54 +0000 (19:47 -0000)]
2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>

* x86/x86-codegen.h: Add x86_movd_xreg_membase.

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

15 years ago2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Jan 2009 19:47:35 +0000 (19:47 -0000)]
2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>

* Vector*.cs: Add ToString, single element constructors
and some helper constants.

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

15 years ago2009-01-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Jan 2009 16:21:09 +0000 (16:21 -0000)]
2009-01-19  Zoltan Varga  <vargaz@gmail.com>

* iltests.il.in: Add a test for #467385.

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

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

* loader.c (search_in_array_class): Call mono_class_setup_methods () before
accessing klass->methods. Fixes #467385.

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

15 years ago2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 19 Jan 2009 15:13:28 +0000 (15:13 -0000)]
2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>

* ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
item is disabled.

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