mono.git
13 years agoUpdate a comment.
Zoltan Varga [Wed, 8 Dec 2010 11:37:07 +0000 (12:37 +0100)]
Update a comment.

13 years ago[sgen] Have an allocated block list for fixed-heap M&S, too.
Mark Probst [Wed, 8 Dec 2010 09:49:13 +0000 (10:49 +0100)]
[sgen] Have an allocated block list for fixed-heap M&S, too.

It turns out we iterate over all allocated blocks often enough that
the way we did it for fixed-heap Mark&Sweep (iterating over all blocks
and jumping over the non-allocated ones) slows us down considerably.
So, use the same allocated block list as "regular" Mark&Sweep, which
also unifies the code a bit.

13 years ago[sgen] Don't increase degraded_mode in alloc_degraded().
Mark Probst [Wed, 8 Dec 2010 08:39:41 +0000 (09:39 +0100)]
[sgen] Don't increase degraded_mode in alloc_degraded().

Mature allocation uses the degraded allocation machinery to allocate
objects in the major space.  Modifying degraded_mode in those cases
will actually put us into degraded mode which slows us down immensely.

13 years agoTidy up the assembly loading log messages a bit.
Zoltan Varga [Wed, 8 Dec 2010 00:40:16 +0000 (01:40 +0100)]
Tidy up the assembly loading log messages a bit.

13 years agoClean up the appdomain at the end of the remoting4 test.
Zoltan Varga [Wed, 8 Dec 2010 00:17:54 +0000 (01:17 +0100)]
Clean up the appdomain at the end of the remoting4 test.

13 years agoPut back actual save of module target
Marek Safar [Tue, 7 Dec 2010 22:59:54 +0000 (22:59 +0000)]
Put back actual save of module target

13 years agoRevert ordering of compiler tests
Marek Safar [Tue, 7 Dec 2010 22:58:06 +0000 (22:58 +0000)]
Revert ordering of compiler tests

13 years agoCheck file extension manually
Marek Safar [Tue, 7 Dec 2010 22:20:23 +0000 (22:20 +0000)]
Check file extension manually

13 years agoSymbol writer has to use 4.0 methods in static mode
Marek Safar [Tue, 7 Dec 2010 17:53:54 +0000 (17:53 +0000)]
Symbol writer has to use 4.0 methods in static mode

13 years agoDelete end local endpoint when stopping the server
Gonzalo Paniagua Javier [Tue, 7 Dec 2010 22:04:13 +0000 (17:04 -0500)]
Delete end local endpoint when stopping the server

Fixes bug #647204.

13 years agoLog images still loaded during shutdown.
Zoltan Varga [Tue, 7 Dec 2010 21:41:51 +0000 (22:41 +0100)]
Log images still loaded during shutdown.

13 years agoFix some small memory leaks.
Zoltan Varga [Tue, 7 Dec 2010 20:13:14 +0000 (21:13 +0100)]
Fix some small memory leaks.

13 years agoFix memberref method signature verification.
Rodrigo Kumpera [Tue, 7 Dec 2010 18:07:49 +0000 (16:07 -0200)]
Fix memberref method signature verification.

* metadata-verify.c (mono_verifier_verify_memberref_method_signature):
Memberref method signatures allow sentinels.

13 years agoCorrectly check for ptr compatibility.
Rodrigo Kumpera [Tue, 7 Dec 2010 17:54:18 +0000 (15:54 -0200)]
Correctly check for ptr compatibility.

* verify.c (mono_delegate_type_equal): Properly check
if candidate is a pointer type.

Fixes #657746

13 years agoSet a default element class for failed enums.
Rodrigo Kumpera [Tue, 7 Dec 2010 17:32:21 +0000 (15:32 -0200)]
Set a default element class for failed enums.

* class.c (mono_class_create_from_typedef): Set failed enums
to extends int32 as the whole runtime can't handle this been
null.

Fixes #657745

13 years agoAdd IKVM.Reflection support
Marek Safar [Tue, 7 Dec 2010 16:43:23 +0000 (16:43 +0000)]
Add IKVM.Reflection support

13 years agoTest update
Marek Safar [Tue, 7 Dec 2010 16:42:34 +0000 (16:42 +0000)]
Test update

13 years agoSort the files manually to always get same order
Marek Safar [Tue, 7 Dec 2010 16:37:51 +0000 (16:37 +0000)]
Sort the files manually to always get same order

13 years agoNew test
Marek Safar [Tue, 7 Dec 2010 16:34:03 +0000 (16:34 +0000)]
New test

13 years agoExtract reflection specific assembly builder
Marek Safar [Mon, 6 Dec 2010 17:30:35 +0000 (17:30 +0000)]
Extract reflection specific assembly builder

13 years agoRe-use existing code path
Marek Safar [Mon, 6 Dec 2010 16:03:06 +0000 (16:03 +0000)]
Re-use existing code path

13 years agoHonor skip visibility in more places.
Rodrigo Kumpera [Tue, 7 Dec 2010 17:00:20 +0000 (15:00 -0200)]
Honor skip visibility in more places.

* verify.c (do_newobj): Honor skip visibility request.

* verify.c (do_load_function_ptr): Ditto.

Fixes #657694

13 years agoDo separate checking of field and method memberref.
Rodrigo Kumpera [Tue, 7 Dec 2010 15:28:53 +0000 (13:28 -0200)]
Do separate checking of field and method memberref.

* loader.c: Use new split functions.

* metadata-verify.c (parse_custom_mods): Make sure encoded
type tokens are not zero.

* metadata-verify.c (parse_generic_inst): Ditto.

* metadata-verify.c (parse_type): Ditto.

* metadata-verify.c (mono_verifier_verify_memberref_signature):
Replace this function with a pair that does field or method
verification.

Fixes #656914

13 years agoMerge branch 'master' of github.com:mono/mono into masterwork
vvaradhan [Tue, 7 Dec 2010 15:13:28 +0000 (20:43 +0530)]
Merge branch 'master' of github.com:mono/mono into masterwork

13 years ago2010-12-07 Veerapuram Varadhan <vvaradhan@novell.com>
vvaradhan [Tue, 7 Dec 2010 15:09:47 +0000 (20:39 +0530)]
2010-12-07  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #456234 - Patch by amc1999@gmail.com
* OdbcDataReader.cs (GetValue): Handle SQL_NO_TOTAL sanely and
use corresponding Decoder.GetChars instead of Encoding.GetString.

13 years agoFix bug in BlockingCollection<T>.TryTake Add corresponding unit test
Guillaume Pouillet [Tue, 7 Dec 2010 09:30:12 +0000 (10:30 +0100)]
Fix bug in BlockingCollection<T>.TryTake Add corresponding unit test

13 years agoImplemented XData support in XamlObjectWriter.
Atsushi Eno [Tue, 7 Dec 2010 09:09:56 +0000 (18:09 +0900)]
Implemented XData support in XamlObjectWriter.

13 years agoImplement XData support in XamlXmlReader.
Atsushi Eno [Tue, 7 Dec 2010 08:08:49 +0000 (17:08 +0900)]
Implement XData support in XamlXmlReader.

13 years agoXData support in XamlXmlWriter.
Atsushi Eno [Tue, 7 Dec 2010 07:46:53 +0000 (16:46 +0900)]
XData support in XamlXmlWriter.

13 years agoImplemented XData object reader support. Add missing test files.
Atsushi Eno [Tue, 7 Dec 2010 07:23:53 +0000 (16:23 +0900)]
Implemented XData object reader support. Add missing test files.

13 years agoAdd another couple of IXmlSerializable tests.
Atsushi Eno [Tue, 7 Dec 2010 06:32:58 +0000 (15:32 +0900)]
Add another couple of IXmlSerializable tests.

13 years agoFix Process.HasExited regression
Gonzalo Paniagua Javier [Tue, 7 Dec 2010 00:54:21 +0000 (19:54 -0500)]
Fix Process.HasExited regression

When we have a pseudo handle, we can at least check whether the process
is alive or not, instead of always returning FALSE.

Fixes bug #650979.

13 years agoEnsure we save and restore the gstate
Geoff Norton [Mon, 6 Dec 2010 19:40:08 +0000 (14:40 -0500)]
Ensure we save and restore the gstate

13 years agoFix a few SRE memory leaks.
Zoltan Varga [Mon, 6 Dec 2010 18:50:27 +0000 (19:50 +0100)]
Fix a few SRE memory leaks.

13 years agoWorkaround bug in AcquireWriterLock
Gonzalo Paniagua Javier [Mon, 6 Dec 2010 18:18:33 +0000 (13:18 -0500)]
Workaround bug in AcquireWriterLock

AcquireWriteLock should be the same as UpgradeToWriterLock when the
thread is already a reader.

Fixes bug #656850.

13 years agoRemove some #ifdef HAVE_SGEN_GC deps, centralize others to gc-internal.h.
Zoltan Varga [Mon, 6 Dec 2010 16:58:37 +0000 (17:58 +0100)]
Remove some #ifdef HAVE_SGEN_GC deps, centralize others to gc-internal.h.

13 years ago[System.Xml] Enable existing API under 4.0 profile too
Jérémie Laval [Mon, 6 Dec 2010 16:06:33 +0000 (16:06 +0000)]
[System.Xml] Enable existing API under 4.0 profile too

13 years agoRefactor assemblies loading into a base class
Marek Safar [Mon, 6 Dec 2010 15:38:04 +0000 (15:38 +0000)]
Refactor assemblies loading into a base class

13 years agoMove more fields to RootContext
Marek Safar [Mon, 6 Dec 2010 14:08:53 +0000 (14:08 +0000)]
Move more fields to RootContext

13 years agoRemoved obsolete files
Marek Safar [Mon, 6 Dec 2010 12:59:36 +0000 (12:59 +0000)]
Removed obsolete files

13 years agoUse type definition for generic type forwarders
Marek Safar [Mon, 6 Dec 2010 12:53:50 +0000 (12:53 +0000)]
Use type definition for generic type forwarders

13 years agoDon't close same type twice when base call closes this declaration
Marek Safar [Mon, 6 Dec 2010 12:39:46 +0000 (12:39 +0000)]
Don't close same type twice when base call closes this declaration

13 years ago[mono.options] Ensure that IEnumerators are disposed.
Jonathan Pryor [Mon, 6 Dec 2010 13:08:40 +0000 (08:08 -0500)]
[mono.options] Ensure that IEnumerators are disposed.

It's possible that the IEnumerable<string> that
OptionSet.ArgumentEnumerator is enumerating may be generated via
'yield return', in which case any method `finally` blocks are moved
into the IDisposable.Dispose() method.

To ensure proper resource cleanup, we need to make sure that Dispose()
is called on the IEnumerator<string>s.

13 years agoAdd missing xml file.
Atsushi Eno [Mon, 6 Dec 2010 12:52:59 +0000 (21:52 +0900)]
Add missing xml file.

13 years agoFinally got XData tests that make sense. Implemented IsXData.
Atsushi Eno [Mon, 6 Dec 2010 12:52:06 +0000 (21:52 +0900)]
Finally got XData tests that make sense. Implemented IsXData.

13 years agoEnable another test.
Atsushi Eno [Mon, 6 Dec 2010 11:36:24 +0000 (20:36 +0900)]
Enable another test.

13 years agoUse Version type instead of string value
Marek Safar [Mon, 6 Dec 2010 10:58:35 +0000 (10:58 +0000)]
Use Version type instead of string value

13 years agoUse decimal optional parameter value decoded by System.Reflection
Marek Safar [Mon, 6 Dec 2010 10:57:41 +0000 (10:57 +0000)]
Use decimal optional parameter value decoded by System.Reflection

13 years agoExtract reflection specific code from extended builder
Marek Safar [Fri, 3 Dec 2010 18:59:00 +0000 (18:59 +0000)]
Extract reflection specific code from extended builder

13 years agoMove assembly security declaration to extened builder
Marek Safar [Fri, 3 Dec 2010 18:36:32 +0000 (18:36 +0000)]
Move assembly security declaration to extened builder

13 years agoDon't call module symbol writer methods when we are not using it
Marek Safar [Fri, 3 Dec 2010 16:01:00 +0000 (16:01 +0000)]
Don't call module symbol writer methods when we are not using it

13 years agoAdd missing files.
Atsushi Eno [Mon, 6 Dec 2010 11:17:48 +0000 (20:17 +0900)]
Add missing files.

13 years agoImplemented Reference resolution in XamlObjectWriter.
Atsushi Eno [Mon, 6 Dec 2010 11:16:41 +0000 (20:16 +0900)]
Implemented Reference resolution in XamlObjectWriter.

13 years agoEnsure we properly translate the CTM for NSView's when dealing with flipped views
Geoff Norton [Sun, 5 Dec 2010 19:21:06 +0000 (14:21 -0500)]
Ensure we properly translate the CTM for NSView's when dealing with flipped views

Patch from James Clancey <james.clancey@gmail.com>

13 years agoMake sgen-protocol.c into its own module.
Zoltan Varga [Sun, 5 Dec 2010 16:53:03 +0000 (17:53 +0100)]
Make sgen-protocol.c into its own module.

13 years agoCall mini_parse_debug_options () earlier.
Zoltan Varga [Sun, 5 Dec 2010 16:18:42 +0000 (17:18 +0100)]
Call mini_parse_debug_options () earlier.

13 years agoAdd more logging to the soft debugger code.
Zoltan Varga [Sun, 5 Dec 2010 11:17:49 +0000 (12:17 +0100)]
Add more logging to the soft debugger code.

13 years agoFix a debug log message in the soft debugger.
Zoltan Varga [Sun, 5 Dec 2010 09:42:57 +0000 (10:42 +0100)]
Fix a debug log message in the soft debugger.

13 years agoHandle closed sockets in the callbacks
Gonzalo Paniagua Javier [Sun, 5 Dec 2010 04:27:47 +0000 (23:27 -0500)]
Handle closed sockets in the callbacks

Accept returns a Socket in AcceptSocket even when the listener is closed.
Handle ObjectDisposedException for the other callbacks.

Fixes bug #657593.

13 years ago[mdoc] Response file cleanup.
Jonathan Pryor [Sun, 5 Dec 2010 04:08:11 +0000 (23:08 -0500)]
[mdoc] Response file cleanup.

Use Mono.Options.ResponseFileSource instead of implementing response
file parsing manually.

13 years agoAdd part3 of the Google GCI 2010 contributions
Miguel de Icaza [Sat, 4 Dec 2010 23:01:42 +0000 (18:01 -0500)]
Add part3 of the Google GCI 2010 contributions

13 years agoFix for #656021.
Joe Dluzen [Sat, 4 Dec 2010 07:05:53 +0000 (02:05 -0500)]
Fix for #656021.

13 years agoRemove a dead variable.
Zoltan Varga [Sat, 4 Dec 2010 11:15:15 +0000 (12:15 +0100)]
Remove a dead variable.

13 years agoSet MONO_PATH while running the profiler tests.
Zoltan Varga [Sat, 4 Dec 2010 09:53:58 +0000 (10:53 +0100)]
Set MONO_PATH while running the profiler tests.

13 years agoDisable a test which breaks under AOT.
Zoltan Varga [Sat, 4 Dec 2010 09:19:40 +0000 (10:19 +0100)]
Disable a test which breaks under AOT.

13 years agoFix a warning.
Zoltan Varga [Sat, 4 Dec 2010 08:36:35 +0000 (09:36 +0100)]
Fix a warning.

13 years agoReally fix the ia64 build.
Zoltan Varga [Sat, 4 Dec 2010 08:35:26 +0000 (09:35 +0100)]
Really fix the ia64 build.

13 years agoFix ia64 build.
Zoltan Varga [Sat, 4 Dec 2010 08:24:15 +0000 (09:24 +0100)]
Fix ia64 build.

13 years agoHopefully fix the ia64 libgc build.
Zoltan Varga [Sat, 4 Dec 2010 08:18:57 +0000 (09:18 +0100)]
Hopefully fix the ia64 libgc build.

13 years agoFix make check in profiler/.
Zoltan Varga [Sat, 4 Dec 2010 07:41:25 +0000 (08:41 +0100)]
Fix make check in profiler/.

13 years agoFix dynamic type string validation.
Rodrigo Kumpera [Fri, 3 Dec 2010 21:43:21 +0000 (19:43 -0200)]
Fix dynamic type string validation.

* verify.c (do_ldstr): We encode string tokens in a weird
way in dynamic modules.

13 years agoHandle one more case we cmods can appear in odd places.
Rodrigo Kumpera [Fri, 3 Dec 2010 20:43:18 +0000 (18:43 -0200)]
Handle one more case we cmods can appear in odd places.

13 years agoMerge branch 'master' of github.com:mono/mono
Rodrigo Kumpera [Fri, 3 Dec 2010 20:17:43 +0000 (18:17 -0200)]
Merge branch 'master' of github.com:mono/mono

13 years ago[Moon] include cecil when building mono for moon
Andreia Gaita [Fri, 3 Dec 2010 17:31:58 +0000 (17:31 +0000)]
[Moon] include cecil when building mono for moon

13 years agoRemove unused lmf->ebp field on ia64.
Zoltan Varga [Fri, 3 Dec 2010 17:59:14 +0000 (18:59 +0100)]
Remove unused lmf->ebp field on ia64.

13 years agoFix validation of cmods in some odd places.
Rodrigo Kumpera [Fri, 3 Dec 2010 17:24:24 +0000 (15:24 -0200)]
Fix validation of cmods in some odd places.

* metadata-verify.c (parse_generic_inst): A ginst
param can have a cmod.

* metadata-verify.c (parse_param): We can have a cmod
after the byref.

* metadata-verify.c (parse_property_signature): A property
signature can have a cmod on the parameters.

Fixes the verifier for #656787

13 years agoFixicate some unit test
Jérémie Laval [Fri, 3 Dec 2010 16:58:44 +0000 (16:58 +0000)]
Fixicate some unit test

13 years ago[Task scheduler] Change waiting layout/wakeup point and use adaptative deep sleeping
Jérémie Laval [Fri, 3 Dec 2010 16:51:06 +0000 (16:51 +0000)]
[Task scheduler] Change waiting layout/wakeup point and use adaptative deep sleeping

13 years ago[Task Scheduler] Revisit Task waiting in Scheduler using ManualResetEventSlim
Jérémie Laval [Thu, 2 Dec 2010 18:13:49 +0000 (18:13 +0000)]
[Task Scheduler] Revisit Task waiting in Scheduler using ManualResetEventSlim

13 years ago[Task Scheduler] Track re-entrant call to WorkerMethod from normal ThreadWorker and...
Jérémie Laval [Thu, 2 Dec 2010 18:12:51 +0000 (18:12 +0000)]
[Task Scheduler] Track re-entrant call to WorkerMethod from normal ThreadWorker and make them use their deque

13 years agoRemove unused nunit.key file.
Zoltan Varga [Fri, 3 Dec 2010 14:00:50 +0000 (15:00 +0100)]
Remove unused nunit.key file.

13 years agoAdd a 'check' target to mcs/tests.
Zoltan Varga [Fri, 3 Dec 2010 13:32:11 +0000 (14:32 +0100)]
Add a 'check' target to mcs/tests.

13 years agoMerge branch 'concurrent-sweep'
Mark Probst [Fri, 3 Dec 2010 12:51:38 +0000 (13:51 +0100)]
Merge branch 'concurrent-sweep'

13 years ago[sgen] Make concurrent sweep user-selectable.
Mark Probst [Fri, 3 Dec 2010 09:29:03 +0000 (10:29 +0100)]
[sgen] Make concurrent sweep user-selectable.

It's off by default for now.

13 years ago[sgen] Compute allowance when sweeping is finished.
Mark Probst [Thu, 2 Dec 2010 13:05:57 +0000 (14:05 +0100)]
[sgen] Compute allowance when sweeping is finished.

Before sweeping hasn't finished we don't know how many major blocks
are in use, so we delay computing the minor collection allowance until
sweeping is done.  In the mean time we use the minimum allowance.

13 years ago[sgen] Concurrent sweep.
Mark Probst [Wed, 1 Dec 2010 13:22:08 +0000 (14:22 +0100)]
[sgen] Concurrent sweep.

13 years agoDelay initialization of missing methods needed by symbol writer
Marek Safar [Fri, 3 Dec 2010 12:30:44 +0000 (12:30 +0000)]
Delay initialization of missing methods needed by symbol writer

13 years agoApply implicit parameter attributes using standard path to avoid any duplicates
Marek Safar [Fri, 3 Dec 2010 12:04:32 +0000 (12:04 +0000)]
Apply implicit parameter attributes using standard path to avoid any duplicates

13 years ago[Task] Slight tweak of WaitAny unit test
Jérémie Laval [Fri, 3 Dec 2010 12:05:40 +0000 (12:05 +0000)]
[Task] Slight tweak of WaitAny unit test

13 years ago[Task] Add an extra check in Task.WaitAny to make sure the index returned is valid
Jérémie Laval [Fri, 3 Dec 2010 12:05:00 +0000 (12:05 +0000)]
[Task] Add an extra check in Task.WaitAny to make sure the index returned is valid

13 years ago[Task] Dumb bugfix when checking timeout in Task.WaitAny
Jérémie Laval [Fri, 3 Dec 2010 12:04:16 +0000 (12:04 +0000)]
[Task] Dumb bugfix when checking timeout in Task.WaitAny

13 years agoFix another AOT crash if a signature cannot be loaded.
Zoltan Varga [Fri, 3 Dec 2010 11:18:49 +0000 (12:18 +0100)]
Fix another AOT crash if a signature cannot be loaded.

13 years agoParse custom modifiers in mono_type_create_from_typespec ().
Zoltan Varga [Fri, 3 Dec 2010 10:26:14 +0000 (11:26 +0100)]
Parse custom modifiers in mono_type_create_from_typespec ().

13 years agoDon't throw an obsolete exception
Marek Safar [Fri, 3 Dec 2010 10:11:29 +0000 (10:11 +0000)]
Don't throw an obsolete exception

13 years agoMore symbol writer clean-up
Marek Safar [Fri, 3 Dec 2010 09:49:19 +0000 (09:49 +0000)]
More symbol writer clean-up

13 years agoTest files update
Marek Safar [Fri, 3 Dec 2010 09:41:06 +0000 (09:41 +0000)]
Test files update

13 years agoRevert a warning fix as it breaks the windows build.
Zoltan Varga [Fri, 3 Dec 2010 10:07:19 +0000 (11:07 +0100)]
Revert a warning fix as it breaks the windows build.

13 years agoFix a crash in the AOT compiler if a method cannot be loaded.
Zoltan Varga [Fri, 3 Dec 2010 09:32:23 +0000 (10:32 +0100)]
Fix a crash in the AOT compiler if a method cannot be loaded.

13 years agoname resolver could also be name provider.
Atsushi Eno [Fri, 3 Dec 2010 09:24:38 +0000 (18:24 +0900)]
name resolver could also be name provider.

13 years agoSplit internal base class into new file.
Atsushi Eno [Fri, 3 Dec 2010 09:24:16 +0000 (18:24 +0900)]
Split internal base class into new file.