mono.git
13 years agoMove wapi shutdown to mono_cleanup () as TlsGetValue()/TlsSetValue() is used
Zoltan Varga [Sat, 7 Aug 2010 02:25:15 +0000 (04:25 +0200)]
Move wapi shutdown to mono_cleanup () as TlsGetValue()/TlsSetValue() is used
during shutdown.

13 years agoDisable all profiler events after profiler shutdown.
Zoltan Varga [Sat, 7 Aug 2010 02:24:41 +0000 (04:24 +0200)]
Disable all profiler events after profiler shutdown.

* profiler.c (mono_profiler_shutdown): Disable all profiler events.

13 years agoMerge branch 'parallel-mark'
Mark Probst [Sat, 7 Aug 2010 19:07:06 +0000 (21:07 +0200)]
Merge branch 'parallel-mark'

13 years ago[sgen] Separate mark function for parallel vs non-parallel mark&sweep.
Mark Probst [Fri, 6 Aug 2010 19:28:42 +0000 (21:28 +0200)]
[sgen] Separate mark function for parallel vs non-parallel mark&sweep.

Revive the old serial mark function for serial Mark&Sweep
because it's simpler and faster.

13 years ago[sgen] Make parallel vs non-parallel mark&sweep selectable.
Mark Probst [Fri, 6 Aug 2010 13:45:34 +0000 (15:45 +0200)]
[sgen] Make parallel vs non-parallel mark&sweep selectable.

Make the parallel Mark&Sweep collector selectable with the "major"
option of the "MONO_GC_PARAMS" variable as "marksweep-par".  The
serial Mark&Sweep collector remains the default as "marksweep".

13 years ago[sgen] One internal allocator per worker thread, to get rid of locking.
Mark Probst [Mon, 26 Jul 2010 11:34:19 +0000 (13:34 +0200)]
[sgen] One internal allocator per worker thread, to get rid of locking.

Previously we used one internal allocator.  That was not a problem as
long as SGen was single-threaded.  With parallel mark, however, we
needed a lock for the internal allocator to make it work.  This patch
makes each worker thread use its own internal allocator instead, so we
don't have to lock anymore.

One problem introduced by this approach is that the allocator from
which a gray queue section was allocated is not known at the point where
the section is freed, because it might have been sent off to a different
worker thread.  To solve this we have a "delayed" free function, which
determines the correct internal allocator from the internal allocator
block (which is aligned).  The section is then added to a delayed free
queue of that allocator which is processed at some point by that
allocator's worker thread.

Note that the section cannot be freed by the thread that calls the
delayed free function because that would result in the possibility of
the "ABA" problem occuring.

13 years ago[sgen] Heavy statistics for the shared buffer.
Mark Probst [Sun, 25 Jul 2010 02:04:17 +0000 (04:04 +0200)]
[sgen] Heavy statistics for the shared buffer.

13 years ago[sgen] Parallel mark.
Mark Probst [Sat, 7 Aug 2010 13:58:35 +0000 (15:58 +0200)]
[sgen] Parallel mark.

Make the mark phase of the Mark&Sweep collector parallel.
At GC initialization we start a number of worker threads (as much
as the machine has cores) between which the objects in the gray
queue are distributed for marking.

13 years ago[sgen] Fix SGEN_ATOMIC_ADD.
Mark Probst [Sun, 25 Jul 2010 02:02:47 +0000 (04:02 +0200)]
[sgen] Fix SGEN_ATOMIC_ADD.

13 years agoMerge branch 'master' of github.com:mono/mono
Miguel de Icaza [Sat, 7 Aug 2010 16:57:27 +0000 (12:57 -0400)]
Merge branch 'master' of github.com:mono/mono

13 years agoDo not mandate that pkg-config is installed, it is only used for the comparative...
Miguel de Icaza [Sat, 7 Aug 2010 16:57:18 +0000 (12:57 -0400)]
Do not mandate that pkg-config is installed, it is only used for the comparative test suite

13 years agoImplement SafeRegistryHandle.ReleaseHandle and update call sites.
Carlos Alberto Cortez [Sat, 7 Aug 2010 01:44:30 +0000 (03:44 +0200)]
Implement SafeRegistryHandle.ReleaseHandle and update call sites.

* Microsoft.Win32.SafeHandles/SafeRegistryHandle.cs: Implement
ReleaseHandle by pinvoking RegCloseKey if we are on windows, and
nothing otherwise.

* Microsoft.Win32/Win32RegistryApi.cs:
* Microsoft.Win32/RegistryKey.cs: Don't call SafeHandle.Close
from our public api, and do it instead un the windows layer, as
we only support it there for now.

13 years agoAvoid loading AOT images compiled against Boehm in an SGEN runtime, and vice versa...
Zoltan Varga [Sat, 7 Aug 2010 01:40:04 +0000 (03:40 +0200)]
Avoid loading AOT images compiled against Boehm in an SGEN runtime, and vice versa. Use 'amodule' instead of 'aot_module' in more places.

13 years agoimplement FindCriteria serialization (deserialization is not yet).
Atsushi Eno [Sat, 7 Aug 2010 00:23:59 +0000 (09:23 +0900)]
implement FindCriteria serialization (deserialization is not yet).

13 years agoFinish implementation of OP_IMUL_OVF_UN.
Mark Mason [Tue, 3 Aug 2010 19:02:34 +0000 (12:02 -0700)]
Finish implementation of OP_IMUL_OVF_UN.

This and earlier changes contributed under MIT/X11 license.

13 years agoAdd missing memindex opcodes. Implement IMT thunks for MIPS
Mark Mason [Tue, 3 Aug 2010 09:24:01 +0000 (02:24 -0700)]
Add missing memindex opcodes. Implement IMT thunks for MIPS

13 years agoImplement this as first argument to function calls.
Mark Mason [Tue, 3 Aug 2010 07:17:21 +0000 (00:17 -0700)]
Implement this as first argument to function calls.

13 years agoInitial IMT for MIPS. Fix the first arg to trampoline functions
Mark Mason [Mon, 2 Aug 2010 22:13:10 +0000 (15:13 -0700)]
Initial IMT for MIPS. Fix the first arg to trampoline functions

13 years agoAdd IMT for MIPS. Fix MIPS branch opcodes. Fix *_OVF expansions. Cleanups to trampoli...
Mark Mason [Thu, 29 Jul 2010 20:24:23 +0000 (13:24 -0700)]
Add IMT for MIPS. Fix MIPS branch opcodes. Fix *_OVF expansions. Cleanups to trampoline handling.

13 years ago[asp.net,4.0] Added support for setting default base types for various kinds of resou...
Marek Habersack [Fri, 6 Aug 2010 20:19:05 +0000 (22:19 +0200)]
[asp.net,4.0] Added support for setting default base types for various kinds of resources.

ASP.NET 4.0 allows one to set base types for Pages, User Controls, Application and PageParserFilter
from the pre-application start method(s). This commit implements support for this mechanism.

* ApplicationFileParser.cs: added override of DefaultBaseType property which checks whether
  PageParser.DefaultApplicationBaseType is set and, if yes, uses it to set application base type
  if there's no custom Global.asax
* PageParser.cs: implemented the EnableLongStringsAsResources, DefaultPageBaseType, DefaultApplicationBaseType,
  DefaultPageParserFilterType and DefaultUserControlBaseType properties.
* TemplateParser.cs: if PageParser.DefaultPageParserFilterType is set, use it as the default type to create instance
  of the page parser filter
* Added tests for the new properties.
* Added support in standalone runner for setting custom application domain data on domain creation, just before
  the test is ran.

13 years ago[asp.net] Made TemplateParser.CompileIntoType internal
Marek Habersack [Fri, 6 Aug 2010 14:48:20 +0000 (16:48 +0200)]
[asp.net] Made TemplateParser.CompileIntoType internal

This method was present only in 1.0 and 1.1 profiles. It's made internal because
we use it throughout our code.

13 years agoReenable LLVM+AOT again, the latest LLVM branch code works fine.
Zoltan Varga [Fri, 6 Aug 2010 20:12:59 +0000 (22:12 +0200)]
Reenable LLVM+AOT again, the latest LLVM branch code works fine.

13 years agoFix building with latest LLVM head.
Zoltan Varga [Fri, 6 Aug 2010 16:11:08 +0000 (18:11 +0200)]
Fix building with latest LLVM head.

13 years agoAvoid a crash when using attributes and only partial method definition exists.
Marek Safar [Fri, 6 Aug 2010 18:24:37 +0000 (19:24 +0100)]
Avoid a crash when using attributes and only partial method definition exists.

13 years agoImplement dynamic dispatch for element initializers.
Marek Safar [Fri, 6 Aug 2010 17:32:15 +0000 (18:32 +0100)]
Implement dynamic dispatch for element initializers.

13 years agoAdd more sanity checks for dynamic attributes.
Marek Safar [Fri, 6 Aug 2010 16:14:14 +0000 (17:14 +0100)]
Add more sanity checks for dynamic attributes.

13 years agoRestrict allowed modifiers for struct members.
Marek Safar [Fri, 6 Aug 2010 13:00:14 +0000 (14:00 +0100)]
Restrict allowed modifiers for struct members.

13 years agoDelegateTest.ClosedOverNullReferenceInstanceMethod: remove NotWorking attribute
Jb Evain [Fri, 6 Aug 2010 16:24:40 +0000 (18:24 +0200)]
DelegateTest.ClosedOverNullReferenceInstanceMethod: remove NotWorking attribute

13 years ago[fix] #475962: delegates to instance methods closed over null
Jb Evain [Fri, 6 Aug 2010 16:23:49 +0000 (18:23 +0200)]
[fix] #475962: delegates to instance methods closed over null

* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe4aecf5507a81846a66de.

13 years agoRemove System.Configuration.ConfigurationErrorsExceptions from startup.
Jonathan Pryor [Fri, 6 Aug 2010 15:47:40 +0000 (11:47 -0400)]
Remove System.Configuration.ConfigurationErrorsExceptions from startup.

If an app uses e.g. System.Diagnostics.Trace (and the Trace methods are
actually invoked, e.g. by building with -d:TRACE and using Trace.WriteLine()),
at least one System.Configuration.ConfigurationErrorsException was being
generated as part of startup (one from parsing machine.config, and an optional
second exception from parsing AppName.exe.config).

The exception was caught, so it didn't break anything, but it was still
undesirable.

The cause of the exception is as follows: The <system.diagnostics/>
configuration section is processed by DiagnosticsConfigurationHandler, which
is an IConfigurationSectionHandler implementation.  In .NET 2.0, configuration
file processing was moved to use System.Configuration.ConfigurationSection
implementations, which would delegate to IConfigurationSectionHandlers if/when
specified.

However, before ConfigurationSection.GetRuntimeObject() calls into
DiagnosticsConfigurationHandler, it would indirectly call
ConfigurationElement.DeserializeElement() to process the e.g.
<system.diagnostics/> element, which would throw as ConfigurationElement was
hitting "unrecognized" XML elements (as ConfigurationElement doesn't know about
DiagnosticsConfigurationHandler-specific XML).  This would result in a
ConfigurationErrorsException, which would be caught in GetRuntimeObject(),
then DiagnosticsConfigurationHandler.Create() would be invoked (doing the
"actual" <system.diagnostics/> parsing, allowing Trace to work, etc.

The fix taken here is to avoid calling
ConfigurationElement.DeserializeElement() if there's an
IConfigurationSectionHandler present, as it doesn't make sense to parse the
same section with two different handlers.

13 years ago[sgen] Initialize interruption lock.
Mark Probst [Fri, 6 Aug 2010 15:42:50 +0000 (17:42 +0200)]
[sgen] Initialize interruption lock.

13 years ago[Perf] avoid an exception when reading a non existent app configuration
Jb Evain [Thu, 5 Aug 2010 14:49:45 +0000 (16:49 +0200)]
[Perf] avoid an exception when reading a non existent app configuration

Make implementors of IInternalConfigurationHost.OpenStreamForRead return null instead of throwing an exception when there's no usable configuration file and deal with null at the call site.

13 years agosupport Uri in WriteValue().
Atsushi Eno [Fri, 6 Aug 2010 12:59:27 +0000 (21:59 +0900)]
support Uri in WriteValue().

13 years agoMore fixes for equality comparison between G<object> and G<dynamic>.
Marek Safar [Fri, 6 Aug 2010 11:43:24 +0000 (12:43 +0100)]
More fixes for equality comparison between G<object> and G<dynamic>.

13 years agoRemoved duplicate variant conversion.
Marek Safar [Thu, 5 Aug 2010 14:36:10 +0000 (15:36 +0100)]
Removed duplicate variant conversion.

13 years agoTest that we can call GetMethodBody on a method defined in a dynamic module.
Jb Evain [Fri, 6 Aug 2010 11:06:23 +0000 (13:06 +0200)]
Test that we can call GetMethodBody on a method defined in a dynamic module.

13 years agomono_method_body_get_object: implement support for methods defined in dynamic modules...
Jb Evain [Fri, 6 Aug 2010 11:05:28 +0000 (13:05 +0200)]
mono_method_body_get_object: implement support for methods defined in dynamic modules. Fixes #628660.

13 years agoImplement DiscoveryMessageSequence* types serialization.
Atsushi Eno [Fri, 6 Aug 2010 10:47:22 +0000 (19:47 +0900)]
Implement DiscoveryMessageSequence* types serialization.

13 years agofix exception type and make nunit tests pass.
Atsushi Eno [Fri, 6 Aug 2010 10:45:56 +0000 (19:45 +0900)]
fix exception type and make nunit tests pass.

13 years agoFor IXmlSerializable types it should first try static GetSchema() for QName. WS-DD...
Atsushi Eno [Fri, 6 Aug 2010 10:43:20 +0000 (19:43 +0900)]
For IXmlSerializable types it should first try static GetSchema() for QName. WS-DD uses it.

13 years agoKnownTypes should return the actual types.
Atsushi Eno [Fri, 6 Aug 2010 10:41:35 +0000 (19:41 +0900)]
KnownTypes should return the actual types.

13 years agoongoing sys.sm.discovery work.
Atsushi Eno [Fri, 6 Aug 2010 05:17:47 +0000 (14:17 +0900)]
ongoing sys.sm.discovery work.

13 years agoName the LLVM argument variables arg_<real arg name>.
Zoltan Varga [Thu, 5 Aug 2010 23:31:49 +0000 (01:31 +0200)]
Name the LLVM argument variables arg_<real arg name>.

13 years ago[asp.net,4.0] Added support for declarative per-user control output cache provider...
Marek Habersack [Thu, 5 Aug 2010 23:18:47 +0000 (01:18 +0200)]
[asp.net,4.0] Added support for declarative per-user control output cache provider selection

This adds support for the ProviderName attribute of the OutputCache directive in user controls.
Also implemented missing support for SqlDependency attribute.

* TemplateControlCompiler.cs: StaticPartialCachingControl instantiation now uses the constructor overloads
  which accept sqlDependency (2.0+) and providerName (4.0+)
* UserControlCompiler.cs: added code to output PartialCachingAttribute which accepts sqlDependency (2.0+) and
  ProviderName (4.0+) arguments
* PartialCachingAttribute.cs added the 4.0 ProviderName property
* StaticPartialCachingControl.cs: implemented two missing constructors (one 2.0 and the other 4.0)
  Added a missing BuildCachedControl overload which accepts providerName (4.0)
* TemplateParser.cs: factored out OutputCache attribute processing to a separate internal virtual method.
* UserControlParser.cs: added support for the ProviderName attribute of the OutputCache directive.

13 years ago[asp.net,4.0] added ability to store cached user controls in specified output cache...
Marek Habersack [Thu, 5 Aug 2010 19:01:25 +0000 (21:01 +0200)]
[asp.net,4.0] added ability to store cached user controls in specified output cache provider

This commit implements the ability to programmatically set the name of the output cache provider
to hold cached control data.

* OutputCache.cs: added DefaultProvider internal property to return whatever default provider is
  configured.
  Added GetProvider() method to return instance of a named provider
* BasePartialCachingControl.cs: cache key and cached data are store in instance fields.
  Added 4.0 internal property ProviderName which names the output cache provider to use for storage.
  Removed OnInit from 4.0 profile, replaced with an override of Control's InitRecursive. Control is
  created only when cached data is not found in the provider.
* Control.cs: made InitRecursive virtual for the benefit of BasePartialCachingControl above.
* ControlCachePolicy.cs: added 4.0 property ProviderName

13 years agoFix the placement of the .rodata section, it should come after the .text
Zoltan Varga [Thu, 5 Aug 2010 23:12:01 +0000 (01:12 +0200)]
Fix the placement of the .rodata section, it should come after the .text
section.

13 years agoSilently ignore ThreadAbortException in the tpool.
Gonzalo Paniagua Javier [Thu, 5 Aug 2010 18:17:31 +0000 (14:17 -0400)]
Silently ignore ThreadAbortException in the tpool.

* threadpool.c: ignore ThreadAbortException when it is unhandled in a
threadpool thread.

13 years agoDon't display the exception when unloading.
Gonzalo Paniagua Javier [Thu, 5 Aug 2010 18:16:25 +0000 (14:16 -0400)]
Don't display the exception when unloading.

* HttpRuntime.cs: don't display the abort exception received by the
thread unloading the domain.

13 years agoSynchronize WSQ create, destroy and clean up.
Gonzalo Paniagua Javier [Thu, 5 Aug 2010 17:58:50 +0000 (13:58 -0400)]
Synchronize WSQ create, destroy and clean up.

* threadpool.c: the calls to wsq_create, wsq_destroy and wsq_cleanup
are inside a lock now to avoid race conditions upon shut down. Fixes
bug #625359.

13 years ago-1 == NO_KEY and check return value of TlsSetValue
Gonzalo Paniagua Javier [Thu, 5 Aug 2010 17:54:56 +0000 (13:54 -0400)]
-1 == NO_KEY and check return value of TlsSetValue

* mono-wsq.c: replaced -1 with a #define. Check the return value of
TlsSetValue when creating a new queue.

13 years agoTlsGetValue/TlsSetValue match winapi closely.
Gonzalo Paniagua Javier [Wed, 4 Aug 2010 16:25:55 +0000 (12:25 -0400)]
TlsGetValue/TlsSetValue match winapi closely.

* wthreads.c: upper bound is checked, SetLastError is called from
TlsGetValue() as documented.

13 years ago* mono/tests/appdomain-unload.cs (Main): Pass along arguments to TestDriver.
Raja R Harinath [Thu, 5 Aug 2010 18:12:11 +0000 (23:42 +0530)]
* mono/tests/appdomain-unload.cs (Main): Pass along arguments to TestDriver.

13 years agoDisable system aot when LLVM is enabled for now.
Zoltan Varga [Thu, 5 Aug 2010 15:07:07 +0000 (17:07 +0200)]
Disable system aot when LLVM is enabled for now.

13 years agoFix the box+brtrue optimization for LLVM, add a box+brfalse case too.
Zoltan Varga [Thu, 5 Aug 2010 15:02:36 +0000 (17:02 +0200)]
Fix the box+brtrue optimization for LLVM, add a box+brfalse case too.

13 years agoAdd more files to ignore list
Marek Safar [Thu, 5 Aug 2010 14:20:58 +0000 (15:20 +0100)]
Add more files to ignore list

13 years agoResolve ambiguity between optional and params parameter. Fixes #582360, #625353
Marek Safar [Thu, 5 Aug 2010 14:17:15 +0000 (15:17 +0100)]
Resolve ambiguity between optional and params parameter. Fixes #582360, #625353

13 years agoRevert "EncoderFallback support in UTF8Encoding. Fixed bug #565129."
Marek Habersack [Thu, 5 Aug 2010 13:32:58 +0000 (15:32 +0200)]
Revert "EncoderFallback support in UTF8Encoding. Fixed bug #565129."

This reverts commit d961246014394a19ce813de43f9719ae63af4842 because it breaks 2 tests in
System.Web on 2.0 and 4 on 4.0 profile.

13 years ago[asp.net] use auto-generated backing fields for all properties
Marek Habersack [Thu, 5 Aug 2010 13:24:49 +0000 (15:24 +0200)]
[asp.net] use auto-generated backing fields for all properties

13 years ago[asp.net] implemented several missing properties in BoundPropertyEntr
Marek Habersack [Thu, 5 Aug 2010 13:19:37 +0000 (15:19 +0200)]
[asp.net] implemented several missing properties in BoundPropertyEntr

* BoundPropertyEntry.cs: implemented the ControlID, ControlType, ExpressionBuilder, FieldName,
  FormatString, ParsedExpressionData, ReadOnlyProperty and TwoWayBound properties (2.0+)

13 years ago[xbuild] Handle multi-line output from tool.
Ankit Jain [Thu, 5 Aug 2010 12:02:19 +0000 (17:32 +0530)]
[xbuild] Handle multi-line output from tool.

Output received from the process can be multiline, split and process
it.

13 years ago[xbuild] Fix #628525. Fix incremental rebuild.
Ankit Jain [Thu, 5 Aug 2010 11:53:56 +0000 (17:23 +0530)]
[xbuild] Fix #628525. Fix incremental rebuild.

When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.

13 years agoupdate {tests,errors}/known-issues-?mcs
Raja R Harinath [Thu, 5 Aug 2010 11:42:34 +0000 (17:12 +0530)]
update {tests,errors}/known-issues-?mcs

13 years ago[Documentation] Document SGen environment variables.
Mark Probst [Thu, 5 Aug 2010 09:17:20 +0000 (11:17 +0200)]
[Documentation] Document SGen environment variables.

Document the MONO_GC_PARAMS variable in the man page and the "major"
option of this variable in the error message.

13 years agoDisable box+brtrue optimization for LLVM for now.
Zoltan Varga [Wed, 4 Aug 2010 23:24:58 +0000 (01:24 +0200)]
Disable box+brtrue optimization for LLVM for now.

13 years ago[dist] Only run the commit-to-changelog script if there's a repository.
Mark Probst [Wed, 4 Aug 2010 22:13:06 +0000 (00:13 +0200)]
[dist] Only run the commit-to-changelog script if there's a repository.

Since "make dist" should also work from a tarball we must only call
the commit-to-changelog script if there's a git repository present.
If we're already in a disted tree, the script has already run.

13 years ago[scripts] commit-to-changelog fails if git is too old
Mark Probst [Wed, 4 Aug 2010 21:56:13 +0000 (23:56 +0200)]
[scripts] commit-to-changelog fails if git is too old

We need a git that supports the %B format specifier, which seems to be
1.7.2.  Fail if it's not supported.

13 years ago[scripts] commit-to-changelog fails if git fails
Mark Probst [Wed, 4 Aug 2010 21:40:47 +0000 (23:40 +0200)]
[scripts] commit-to-changelog fails if git fails

The commit-to-changelog script now fails if git fails for whatever
reason.  The most important reasons would be that git isn't installed,
and that the script is called without a repository.

13 years agoAdd test for using generic arguments from other methods.
Rodrigo Kumpera [Wed, 4 Aug 2010 21:39:20 +0000 (18:39 -0300)]
Add test for using generic arguments from other methods.

* MethodBuilderTest.cs: Add test for generic arguments
used are parameter of a method builder.

13 years agoHandle arguments with generic parameters from other methods.
Rodrigo Kumpera [Wed, 4 Aug 2010 21:26:25 +0000 (18:26 -0300)]
Handle arguments with generic parameters from other methods.

* reflection.c (reflection_methodbuilder_to_mono_method):
Handle the case where a method parameter is defined using
a generic argument of another method. The resulting signature
must use the generic arguments of the method it belongs and
not from others.
This fixes one issue found while testing IronRuby 1.1.

13 years agoDon't call commit-to-changelog until after mcs is dist'd
Andrew Jorgensen [Wed, 4 Aug 2010 21:07:52 +0000 (15:07 -0600)]
Don't call commit-to-changelog until after mcs is dist'd

13 years agoFix "make dist" for the .po files
Andrew Jorgensen [Wed, 4 Aug 2010 20:39:27 +0000 (14:39 -0600)]
Fix "make dist" for the .po files

* POTFILES.in: mcs lives under mono now, so the ../ gets dropped

13 years agoFix tarball build (sgen-major-*-object.h)
Andrew Jorgensen [Wed, 4 Aug 2010 19:56:13 +0000 (13:56 -0600)]
Fix tarball build (sgen-major-*-object.h)

* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-major-*-object.h

13 years ago[asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods
Marek Habersack [Wed, 4 Aug 2010 19:47:08 +0000 (21:47 +0200)]
[asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods

* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
  be defined in web.config on any level.

13 years agoMerge branch 'improve_signature_parsing_error_messages'
Rodrigo Kumpera [Wed, 4 Aug 2010 19:31:59 +0000 (16:31 -0300)]
Merge branch 'improve_signature_parsing_error_messages'

13 years agoImprove error message for signature load failure.
Rodrigo Kumpera [Wed, 4 Aug 2010 19:30:45 +0000 (16:30 -0300)]
Improve error message for signature load failure.

* loader.c (mono_method_signature): Print type and
method name in case of signature parsing error.

13 years agoImprove error reporting of bad signatures.
Rodrigo Kumpera [Wed, 4 Aug 2010 19:25:20 +0000 (16:25 -0300)]
Improve error reporting of bad signatures.

* metadata-verify.c (mono_method_signature_checked): Change
signature to take a MonoError* instead of a GList** to make
it easier to the runtime to get error messages out of the
metadata verifier.

* verify-internals.h: Change signature.

* loader.c (mono_method_signature_checked): Pass the current
MonoError to mono_method_signature_checked to get better
error messages.

13 years agoChange type of a given parameter.
Rodrigo Kumpera [Wed, 4 Aug 2010 18:53:28 +0000 (15:53 -0300)]
Change type of a given parameter.

* metadata-verify.c (init_verify_context): Change parameter
from GList** to gboolean so it can be used with functions that
don't receive a GList** argument.

13 years agoFix dist (sgen-protocol.h)
Andrew Jorgensen [Wed, 4 Aug 2010 18:47:32 +0000 (12:47 -0600)]
Fix dist (sgen-protocol.h)

* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-protocol.h

13 years ago[asp.net, 4.0] Added support for RepeatLayout lists to the list controls.
Marek Habersack [Wed, 4 Aug 2010 18:18:47 +0000 (20:18 +0200)]
[asp.net, 4.0] Added support for RepeatLayout lists to the list controls.

13 years ago[Documentation] Embed rationale for change in the source code
Miguel de Icaza [Wed, 4 Aug 2010 18:17:25 +0000 (14:17 -0400)]
[Documentation] Embed rationale for change in the source code

13 years agoFix a crash on appdomain unload stress.
Rodrigo Kumpera [Wed, 4 Aug 2010 17:55:35 +0000 (14:55 -0300)]
Fix a crash on appdomain unload stress.

* mini-exceptions.c (mono_install_handler_block_guard): Guard against a
null MonoJitTlsData. This can happens if the thread receives the
interrupt signal before the JIT has time to initialize its
TLS data for the given thread.

13 years agoRename ThreadLocal unit tests to reflect API name change (was ThreadLazy).
Jérémie Laval [Wed, 4 Aug 2010 17:25:55 +0000 (19:25 +0200)]
Rename ThreadLocal unit tests to reflect API name change (was ThreadLazy).

13 years agoInclude set accessor in ThreadLocal's Value property. Catch possible exception in...
Jérémie Laval [Wed, 4 Aug 2010 17:21:30 +0000 (19:21 +0200)]
Include set accessor in ThreadLocal's Value property. Catch possible exception in the initialization function and re-throw it accordingly. Track circular calling of Value property. Add corresponding unit-tests.

13 years agoMerge branch 'aspnet4'
Marek Habersack [Wed, 4 Aug 2010 16:56:08 +0000 (18:56 +0200)]
Merge branch 'aspnet4'

* aspnet4:
  [asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo

13 years ago[asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo
Marek Habersack [Wed, 4 Aug 2010 07:09:06 +0000 (09:09 +0200)]
[asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo

Also added auto-generated tests for the new layouts and updated the test generator to account
for the new layouts in 4.0.

13 years ago[xbuild] Ignore missing imports when parsing solution file.
Ankit Jain [Wed, 4 Aug 2010 16:24:11 +0000 (21:54 +0530)]
[xbuild] Ignore missing imports when parsing solution file.

When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.

13 years agoAmbiguous enumerator pattern means that we can still try to apply
Marek Safar [Wed, 4 Aug 2010 14:42:33 +0000 (15:42 +0100)]
Ambiguous enumerator pattern means that we can still try to apply
interface matching rules. Fixes #620154

13 years agoUse TypeSpecComparer.Default comparer for dynamic ref/out arguments.
Marek Safar [Wed, 4 Aug 2010 11:56:29 +0000 (12:56 +0100)]
Use TypeSpecComparer.Default comparer for dynamic ref/out arguments.

13 years agoMake sure configuration is not null before using it.
Marek Habersack [Wed, 4 Aug 2010 14:08:05 +0000 (16:08 +0200)]
Make sure configuration is not null before using it.

13 years agomono_custom_attrs_from_param: return null if the method defining the parameter can...
Jb Evain [Wed, 4 Aug 2010 13:44:42 +0000 (15:44 +0200)]
mono_custom_attrs_from_param: return null if the method defining the parameter can not be found in the MethodDef table to avoid false positives

13 years agomono_method_get_index: return zero for constructed array methods as they don't exist...
Jb Evain [Wed, 4 Aug 2010 13:43:10 +0000 (15:43 +0200)]
mono_method_get_index: return zero for constructed array methods as they don't exist in the MethodDef table

13 years agoAdd test ensuring that parameters of constructed array methods define no custom attribute
Jb Evain [Wed, 4 Aug 2010 13:41:38 +0000 (15:41 +0200)]
Add test ensuring that parameters of constructed array methods define no custom attribute

13 years agoMerge branch 'master' of github.com:mono/mono
Marek Safar [Wed, 4 Aug 2010 11:30:43 +0000 (12:30 +0100)]
Merge branch 'master' of github.com:mono/mono

13 years agoAdd special compiler define RUN_ONDOTNET. Fixes #624942
Marek Safar [Wed, 4 Aug 2010 11:27:21 +0000 (12:27 +0100)]
Add special compiler define RUN_ONDOTNET. Fixes #624942

13 years ago[xbuild] Override global properties before project Load.
Ankit Jain [Wed, 4 Aug 2010 11:08:56 +0000 (16:38 +0530)]
[xbuild] Override global properties before project Load.

MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.

 <Import Project="$(SolutionDir)\foo.targets"/>

$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.

    * Microsoft.Build.BuildEngine/Engine.cs:
    Apply global properties before the project load.

    * Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.

13 years agoimplement missing configuration members in Sys.SM.Web.
atsushieno [Wed, 4 Aug 2010 10:21:03 +0000 (19:21 +0900)]
implement missing configuration members in Sys.SM.Web.

13 years agoimplemented some Sys.SM.Discovery types.
atsushieno [Wed, 4 Aug 2010 09:52:09 +0000 (18:52 +0900)]
implemented some Sys.SM.Discovery types.

13 years agoAdd escaping for legacy keyword.
Marek Safar [Wed, 4 Aug 2010 09:28:18 +0000 (10:28 +0100)]
Add escaping for legacy keyword.

13 years agoMember names cannot be the same as their enclosing type. Fixes #627296
Marek Safar [Tue, 3 Aug 2010 21:35:55 +0000 (22:35 +0100)]
Member names cannot be the same as their enclosing type. Fixes #627296

13 years agoDynamicConversion: properly order the arguments to Binder.Convert
Jb Evain [Wed, 4 Aug 2010 07:17:19 +0000 (09:17 +0200)]
DynamicConversion: properly order the arguments to Binder.Convert