mono.git
13 years ago[Fix] Handle the portName argument/property properly.
Robert Jordan [Sat, 7 Aug 2010 18:15:37 +0000 (02:15 +0800)]
[Fix] Handle the portName argument/property properly.

Some of IpcServerChannel's ctors did not keep track of the original
IPC port name correctly. This led to a non-functional GetUrlsForUri
method.

13 years agoFix infinite loop in .ctor. Use simpler way to check IPv4 availability.
Atsushi Eno [Wed, 11 Aug 2010 14:40:50 +0000 (23:40 +0900)]
Fix infinite loop in .ctor. Use simpler way to check IPv4 availability.

13 years agoFix pinvoked function name and marshaling of MIB stats.
Atsushi Eno [Wed, 11 Aug 2010 14:24:06 +0000 (23:24 +0900)]
Fix pinvoked function name and marshaling of MIB stats.

13 years agoflush ongoing hack. add UDP transport. Headers on configuration sources.
Atsushi Eno [Wed, 11 Aug 2010 09:40:49 +0000 (18:40 +0900)]
flush ongoing hack. add UDP transport. Headers on configuration sources.

13 years ago[hygiene] simplify the code dealing with internal collections
Jb Evain [Wed, 11 Aug 2010 09:23:35 +0000 (11:23 +0200)]
[hygiene] simplify the code dealing with internal collections

Initialize the objets with the provided source at construction time
like SL does, and thus avoid dealing with two different sources.

13 years agofix the System.Json build
Jb Evain [Wed, 11 Aug 2010 08:42:00 +0000 (10:42 +0200)]
fix the System.Json build

13 years agofix the net_2_1 build
Jb Evain [Wed, 11 Aug 2010 08:41:33 +0000 (10:41 +0200)]
fix the net_2_1 build

13 years agorevert 21dd2b0200d091c43fce as it breaks the monotouch build
Jb Evain [Wed, 11 Aug 2010 08:40:55 +0000 (10:40 +0200)]
revert 21dd2b0200d091c43fce as it breaks the monotouch build

13 years agoongoing endpoint implementation.
Atsushi Eno [Wed, 11 Aug 2010 08:23:07 +0000 (17:23 +0900)]
ongoing endpoint implementation.

13 years agoNew threadpool exception test
Gonzalo Paniagua Javier [Wed, 11 Aug 2010 00:17:15 +0000 (20:17 -0400)]
New threadpool exception test

Add new test for a threadpool thread that is in a domain
that will be unloaded.

13 years agoAppDomainUnloadedException ignored.
Gonzalo Paniagua Javier [Tue, 10 Aug 2010 23:35:31 +0000 (19:35 -0400)]
AppDomainUnloadedException ignored.

AppDomainUnloadedException is also ignored when thrown in a threadpool
thread.

13 years ago[asp.net] HttpContext.RewritePath makes sure the passed path is in canonical form.
Marek Habersack [Tue, 10 Aug 2010 23:15:09 +0000 (01:15 +0200)]
[asp.net] HttpContext.RewritePath makes sure the passed path is in canonical form.

When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.

13 years ago[runtime] Fix for bug #624914. Runtime has to remap System.Config 2.0 to 4.0
Marek Habersack [Tue, 10 Aug 2010 21:41:35 +0000 (23:41 +0200)]
[runtime] Fix for bug #624914. Runtime has to remap System.Config 2.0 to 4.0

The bug was caused by the runtime loading two copies of System.Configuration -
one for the 4.0 profile (loaded by xsp4 itself) and another for the 2.0 profile
(loaded as a reference for BlogEngine.Core.dll) and for that reason, the static
class System.Configuration.ConfigurationManager was instantiated twice in the
BlogEngine application's AppDomain which, in effect, led to the exception since
the configuration system wasn't reset from the default one to the system.web-specific
one. The commit makes runtime remap System.Configuration 2.0 to 4.0.

Thanks to Zoltan Varga for catching the issue.

13 years agoRemove some debug stuff.
Zoltan Varga [Tue, 10 Aug 2010 21:47:08 +0000 (23:47 +0200)]
Remove some debug stuff.

13 years ago[asp.net] Fix for bug #629990 In-Proc session state must remove cache prefix from...
Marek Habersack [Tue, 10 Aug 2010 19:56:21 +0000 (21:56 +0200)]
[asp.net] Fix for bug #629990 In-Proc session state must remove cache prefix from item key

When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.

13 years ago[llvm] Do a zero extension for bool/char too when loading a volatile variable.
Zoltan Varga [Tue, 10 Aug 2010 18:52:47 +0000 (20:52 +0200)]
[llvm] Do a zero extension for bool/char too when loading a volatile variable.

13 years agoAdded new ABI mode to mono-api-info tool, wrapped in a mono-abi-info script.
Andrés G. Aragoneses [Tue, 10 Aug 2010 18:12:50 +0000 (20:12 +0200)]
Added new ABI mode to mono-api-info tool, wrapped in a mono-abi-info script.

2010-08-05  Andrés G. Aragoneses  <andres@lindenlab.com>

* mcs/tools/corcompare/mono-api-info.cs: Implemented new mode to show ABI.
* mcs/tools/corcompare/Makefile: added mono-abi-info autofoo.
* scripts/.gitignore: added mono-abi-info.
* scripts/Makefile.am: added mono-abi-info autofoo.

13 years agoFix nullref.
Gonzalo Paniagua Javier [Tue, 10 Aug 2010 15:59:21 +0000 (11:59 -0400)]
Fix nullref.

* XslFunctions.cs: avoid nullref in simple transformation.
Fixes bug #629714.

13 years agoimplement MessageEncodingBindingElement.GetProperty<T>().
Atsushi Eno [Tue, 10 Aug 2010 16:38:43 +0000 (01:38 +0900)]
implement MessageEncodingBindingElement.GetProperty<T>().

13 years agoFixed parsing of content-type parameters.
Gonzalo Paniagua Javier [Tue, 10 Aug 2010 15:35:37 +0000 (11:35 -0400)]
Fixed parsing of content-type parameters.

* ContentType.cs: correctly parse values inside double-quotes.
Fixes bug #625026.

13 years ago[629383] Inflate generic type of default expression
Marek Safar [Tue, 10 Aug 2010 14:18:31 +0000 (15:18 +0100)]
[629383] Inflate generic type of default expression

13 years ago[629390] Avoid crash on the sole type expressions used for extension methods
Marek Safar [Tue, 10 Aug 2010 12:25:27 +0000 (13:25 +0100)]
[629390] Avoid crash on the sole type expressions used for extension methods

13 years agoCosmetic corcompare fix.
Atsushi Eno [Tue, 10 Aug 2010 12:04:48 +0000 (21:04 +0900)]
Cosmetic corcompare fix.

13 years agoMerge branch 'master' of github.com:mono/mono
Atsushi Eno [Tue, 10 Aug 2010 11:23:15 +0000 (20:23 +0900)]
Merge branch 'master' of github.com:mono/mono

13 years agoEncoderFallback support in UTF8Encoding. Fixed bug #565129 and regression in d961246.
Atsushi Eno [Tue, 10 Aug 2010 11:20:16 +0000 (20:20 +0900)]
EncoderFallback support in UTF8Encoding. Fixed bug #565129 and regression in d961246.

Patch mostly by JB Evain.

13 years agoAlso check for generic arguments of dynamic arrays
Marek Safar [Tue, 10 Aug 2010 11:20:30 +0000 (12:20 +0100)]
Also check for generic arguments of dynamic arrays

13 years ago[629742] Iterators can be of dynamic type
Marek Safar [Tue, 10 Aug 2010 11:19:52 +0000 (12:19 +0100)]
[629742] Iterators can be of dynamic type

13 years agoAdd Mono code contracts skeletons.
Marek Safar [Tue, 10 Aug 2010 08:44:02 +0000 (09:44 +0100)]
Add Mono code contracts skeletons.

13 years agoMigrate more code to public API for 4.0
Marek Safar [Tue, 10 Aug 2010 08:16:39 +0000 (09:16 +0100)]
Migrate more code to public API for 4.0

13 years ago[Documentation] Explain nursery size a bit in man page.
Mark Probst [Tue, 10 Aug 2010 02:20:23 +0000 (04:20 +0200)]
[Documentation] Explain nursery size a bit in man page.

13 years ago[fix] #626034: Properly handle Form.Dispose to not close other visible forms.
Carlos Alberto Cortez [Mon, 9 Aug 2010 21:00:51 +0000 (23:00 +0200)]
[fix] #626034: Properly handle Form.Dispose to not close other visible forms.

* Application.cs: At the end of the message loop in RunLoop
don't break the loop if the Form handle has been destroyed already -
which means that we *need* to wait for WM_QUIT and handle it
properly instead, so it doesn't end up affecting other forms.

13 years agoAvoid an #ifndef HAVE_SGEN_GC inside MonoDomain, so the layout remains the same
Zoltan Varga [Mon, 9 Aug 2010 22:45:42 +0000 (00:45 +0200)]
Avoid an #ifndef HAVE_SGEN_GC inside MonoDomain, so the layout remains the same
for all GCs.

13 years agoTurn off the monitor enter/exit trampolines under SGEN using a runtime check instead...
Zoltan Varga [Mon, 9 Aug 2010 22:38:51 +0000 (00:38 +0200)]
Turn off the monitor enter/exit trampolines under SGEN using a runtime check instead of a compile time one.

13 years agoEmit boxed versions of primitive types in xdebug.
Zoltan Varga [Mon, 9 Aug 2010 22:01:06 +0000 (00:01 +0200)]
Emit boxed versions of primitive types in xdebug.

13 years ago[sgen] Fix OBS warning.
Mark Probst [Mon, 9 Aug 2010 22:21:50 +0000 (00:21 +0200)]
[sgen] Fix OBS warning.

Add a dummy return to workers_thread_func() to make OBS happy.

13 years agoFix the boundary in UploadFile().
Gonzalo Paniagua Javier [Mon, 9 Aug 2010 21:58:48 +0000 (17:58 -0400)]
Fix the boundary in UploadFile().

* WebClient.cs: the last delimiter has 2 hyphens appended to the boundary to signal it is indeed the last one.
Fixes bug #554817.

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.