mono.git
13 years agoAvoid exceptions in gdb when encountering unknown struct types.
Zoltan Varga [Mon, 9 Aug 2010 21:44:49 +0000 (23:44 +0200)]
Avoid exceptions in gdb when encountering unknown struct types.

13 years agoGenerate xdebug info for monitor enter/exit trampolines.
Zoltan Varga [Mon, 9 Aug 2010 21:37:27 +0000 (23:37 +0200)]
Generate xdebug info for monitor enter/exit trampolines.

13 years agoRemove the few remaining compile time GC dependencies.
Zoltan Varga [Mon, 9 Aug 2010 21:22:10 +0000 (23:22 +0200)]
Remove the few remaining compile time GC dependencies.

13 years agoAdd sgen-workers.c to sgen_sources
Andrew Jorgensen [Mon, 9 Aug 2010 20:30:37 +0000 (14:30 -0600)]
Add sgen-workers.c to sgen_sources

* Makefile.am: Add sgen-workers.c to sgen_sources

13 years ago[sgen] Sleep a little while busy-waiting for the gray queue distribution.
Mark Probst [Mon, 9 Aug 2010 20:07:47 +0000 (22:07 +0200)]
[sgen] Sleep a little while busy-waiting for the gray queue distribution.

In the parallel collector, the main GC thread needs to distribute all
remaining entries in the gray queue to the worker threads.  Since the
distribution pool is limited in size we need to wait on it, which at
this point is only possible with busy-waiting.  Since we don't want to
use up CPU resources and hog the cache lines we wait 2ms between
distribution attempts.

13 years agoAvoid registering roots inside the MonoDomain structure when using Boehm, since
Zoltan Varga [Mon, 9 Aug 2010 19:55:25 +0000 (21:55 +0200)]
Avoid registering roots inside the MonoDomain structure when using Boehm, since
it is GC_MALLOC-ed, and Boehm doesn't like that.

13 years agoFix #560060 - Embedded "app.config" is not read when used inside a bundle.
Laurent Etiemble [Mon, 9 Aug 2010 19:21:33 +0000 (21:21 +0200)]
Fix #560060 - Embedded "app.config" is not read when used inside a bundle.

* mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs: Add new internal call to retrieve embedded application config. First
check if an embedded configuration exists before looking up on the
filesystem.

* mono/metadata/icall-def.h: Add entry for retrieving embedded application
configuration.

* mono/metadata/icall.c: Add function to retrieve embedded application
configuration if one has been registered with the runtime.

13 years agoFix a typo.
Zoltan Varga [Mon, 9 Aug 2010 18:20:29 +0000 (20:20 +0200)]
Fix a typo.

13 years agoIgnore mono_use_llvm when JITting in a runtime compiled without LLVM support.
Zoltan Varga [Mon, 9 Aug 2010 18:05:34 +0000 (20:05 +0200)]
Ignore mono_use_llvm when JITting in a runtime compiled without LLVM support.

13 years agoUpdate the comments for mono_use_llvm.
Zoltan Varga [Mon, 9 Aug 2010 17:58:54 +0000 (19:58 +0200)]
Update the comments for mono_use_llvm.

13 years agoCall BeginErrorReadLine()/BeginOutputReadLine() in a Process test so it runs on windo...
Zoltan Varga [Mon, 9 Aug 2010 17:42:51 +0000 (19:42 +0200)]
Call BeginErrorReadLine()/BeginOutputReadLine() in a Process test so it runs on windows too.

13 years agoBump version to 2.7.1
Andrew Jorgensen [Mon, 9 Aug 2010 17:30:19 +0000 (11:30 -0600)]
Bump version to 2.7.1

13 years agoAdd System.ServiceModel.Discovery to .spec
Andrew Jorgensen [Mon, 9 Aug 2010 17:29:07 +0000 (11:29 -0600)]
Add System.ServiceModel.Discovery to .spec

* mono-core.spec.in: Add System.ServiceModel.Discovery

13 years agoProper tracking of ICMP requests and responses.
Gonzalo Paniagua Javier [Mon, 9 Aug 2010 17:18:26 +0000 (13:18 -0400)]
Proper tracking of ICMP requests and responses.

* Ping.cs: generates a random ICMP Identifier field per Echo to help
match up pings and their responses. Now has valid TTL and timeouts apply to
the correct pings.  Also fixed bugs were received Sequence and
Identifier would be corrupt for values >255, and fixed corruption of
the Data field.
Patch by Michael Walsh that fixes bug #627330.

13 years agoUpdate README
Miguel de Icaza [Mon, 9 Aug 2010 16:36:31 +0000 (12:36 -0400)]
Update README

13 years agoAvoid printing the output of /bin/ls in a Process test.
Zoltan Varga [Mon, 9 Aug 2010 16:29:01 +0000 (18:29 +0200)]
Avoid printing the output of /bin/ls in a Process test.

13 years agoRemove some hash code tests which can fail.
Zoltan Varga [Mon, 9 Aug 2010 16:22:18 +0000 (18:22 +0200)]
Remove some hash code tests which can fail.

13 years agoIgnore a few more files.
Gonzalo Paniagua Javier [Mon, 9 Aug 2010 16:14:05 +0000 (12:14 -0400)]
Ignore a few more files.

13 years agoAdd dummy implementation of g_module functions for NACL.
Elijah Taylor [Mon, 9 Aug 2010 15:50:14 +0000 (17:50 +0200)]
Add dummy implementation of g_module functions for NACL.

13 years agoAdd a test for running the regression tests in a full-aot+static environment.
Elijah Taylor [Mon, 9 Aug 2010 15:49:20 +0000 (17:49 +0200)]
Add a test for running the regression tests in a full-aot+static environment.

13 years agoDon't use mmap/munmap under NACL.
Elijah Taylor [Mon, 9 Aug 2010 15:44:08 +0000 (17:44 +0200)]
Don't use mmap/munmap under NACL.

13 years agoUse 32 as the min alignment when running under NACL.
Elijah Taylor [Mon, 9 Aug 2010 15:43:41 +0000 (17:43 +0200)]
Use 32 as the min alignment when running under NACL.

13 years agoAdd support to the x86 backend for generating code compatible with Google
Elijah Taylor [Mon, 9 Aug 2010 15:41:51 +0000 (17:41 +0200)]
Add support to the x86 backend for generating code compatible with Google
Native Client codegen requirements.

13 years agoAdd hooks to the codegen macros to support NACL codegen.
Elijah Taylor [Mon, 9 Aug 2010 15:40:18 +0000 (17:40 +0200)]
Add hooks to the codegen macros to support NACL codegen.

13 years agoAdd configure support for Google Native Client (NACL).
Elijah Taylor [Mon, 9 Aug 2010 15:39:50 +0000 (17:39 +0200)]
Add configure support for Google Native Client (NACL).

13 years agoDisable the elimination of MONO_INST_FAULT in ABCREM, LLVM can move the non-faulting...
Zoltan Varga [Mon, 9 Aug 2010 14:06:37 +0000 (16:06 +0200)]
Disable the elimination of MONO_INST_FAULT in ABCREM, LLVM can move the non-faulting loads to before the faulting loads which they depend on.

13 years ago[asp.net] Fix for bug #628683. Do not ignore whitespace between <%: %> blocks
Marek Habersack [Mon, 9 Aug 2010 14:03:41 +0000 (16:03 +0200)]
[asp.net] Fix for bug #628683. Do not ignore whitespace between <%: %> blocks

13 years agoFix typo
Jb Evain [Mon, 9 Aug 2010 13:45:53 +0000 (15:45 +0200)]
Fix typo

13 years agooops, they should not write wrapper element twice.
Atsushi Eno [Mon, 9 Aug 2010 12:43:08 +0000 (21:43 +0900)]
oops, they should not write wrapper element twice.

13 years ago[asp.net] Fix for bug #618481. AsyncPostBackTrigger.OnEvent must call Owner.Update...
Marek Habersack [Mon, 9 Aug 2010 12:30:29 +0000 (14:30 +0200)]
[asp.net] Fix for bug #618481. AsyncPostBackTrigger.OnEvent must call Owner.Update only for conditionally updated panels

If the owner UpdatePanel has its UpdateMode set to Always, do not call Update () as it will cause an InvalidOperationException
to be thrown.

13 years ago[asp.net] AsyncPostBackTrigger.HasTriggered must use FindTargetControl ()
Marek Habersack [Mon, 9 Aug 2010 12:08:27 +0000 (14:08 +0200)]
[asp.net] AsyncPostBackTrigger.HasTriggered must use FindTargetControl ()

When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.

13 years ago[asp.net,bugfix] Fix for bug #620456. AsyncPostBackTrigger must look for target contr...
Marek Habersack [Mon, 9 Aug 2010 09:39:09 +0000 (11:39 +0200)]
[asp.net,bugfix] Fix for bug #620456. AsyncPostBackTrigger must look for target control in naming containers

AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.

13 years agofinished Discovery serialization stuff.
atsushieno [Mon, 9 Aug 2010 12:00:26 +0000 (21:00 +0900)]
finished Discovery serialization stuff.

13 years agoongoing Sys.SM.Discovery serialization implementation.
atsushieno [Mon, 9 Aug 2010 08:46:12 +0000 (17:46 +0900)]
ongoing Sys.SM.Discovery serialization implementation.

13 years agoParse list type, and parse QName without prefix, as expected.
atsushieno [Mon, 9 Aug 2010 08:43:40 +0000 (17:43 +0900)]
Parse list type, and parse QName without prefix, as expected.

13 years agoUse faulting load for loading the vtable in CEE_LDELEMA.
Zoltan Varga [Sun, 8 Aug 2010 22:48:58 +0000 (00:48 +0200)]
Use faulting load for loading the vtable in CEE_LDELEMA.

13 years ago[fix] #620618: Make sure the header in ListView is always on top.
Carlos Alberto Cortez [Sun, 8 Aug 2010 11:39:27 +0000 (13:39 +0200)]
[fix] #620618: Make sure the header in ListView is always on top.

* ListView.cs: When using Details view re-populate our implicit
control collection to our header control is always on top. We
could try to just use BringToFront but since these controls are
implicit, we are not gracefully handling them.

13 years agoNew test for ListView.Dispose firing extra Layout events.
Carlos Alberto Cortez [Sat, 7 Aug 2010 11:36:03 +0000 (13:36 +0200)]
New test for ListView.Dispose firing extra Layout events.

* ListViewTest.cs: New test to make sure Dispose is not
generating extra Layout events.

13 years ago[fix] #622318: ListView.Dispose should not call dispose on its implicit scrollbars.
Carlos Alberto Cortez [Sat, 7 Aug 2010 11:29:11 +0000 (13:29 +0200)]
[fix] #622318: ListView.Dispose should not call dispose on its implicit scrollbars.

* ListView.cs: Don't call Dispose for our implicit scrollbars,
as the default Control.Dispose impl is already disposing all the
implicit controls. This was generating extra Layout
events when disposing.

13 years ago[sgen] Fixed heap for Mark&Sweep.
Mark Probst [Sun, 8 Aug 2010 13:02:58 +0000 (15:02 +0200)]
[sgen] Fixed heap for Mark&Sweep.

This is a new variant of Mark&Sweep which uses a pre-allocated
fixed-size heap instead of a dynamically grown, segmented one.  The
main advantage of this heap organization is that it takes only one
pointer comparison to determine whether an object is on the small
object heap or in the LOS, instead of inspecting the object's size,
which requires three loads.  Since that determination is required for
every marked object, speeding it up can improve performance
significantly.

13 years ago[sgen] Fix sgen-grep-binprot.
Mark Probst [Sun, 8 Aug 2010 13:14:26 +0000 (15:14 +0200)]
[sgen] Fix sgen-grep-binprot.

The refactoring that occurred with addition of parallel mark left
sgen-grep-binprot in an uncompilable state.  Fix.

13 years ago[sgen] Fixes.
Mark Probst [Sun, 8 Aug 2010 00:25:22 +0000 (02:25 +0200)]
[sgen] Fixes.

The parallel mark merge was missing a header and included an erroneous
call to workers_init().

13 years agoFix Math.Log (2, 1). Fixes #626944.
Zoltan Varga [Sat, 7 Aug 2010 20:22:44 +0000 (22:22 +0200)]
Fix Math.Log (2, 1). Fixes #626944.

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.