mono.git
13 years agoRemove extra CWL.
Atsushi Eno [Thu, 25 Nov 2010 03:26:50 +0000 (12:26 +0900)]
Remove extra CWL.

13 years agoAdd refresh XamlObjectWriter implementation.
Atsushi Eno [Thu, 25 Nov 2010 03:24:35 +0000 (12:24 +0900)]
Add refresh XamlObjectWriter implementation.

This writer can process a lot more xaml inputs. It is now unified to
XamlXmlWriter, sharing some internals (already existed in XamlXmlWriter.cs).

Had to disable a few minor tests that used to pass for invalid inputs.

13 years agoMore changes for XamlObjectWriter unification.
Atsushi Eno [Thu, 25 Nov 2010 03:24:06 +0000 (12:24 +0900)]
More changes for XamlObjectWriter unification.

13 years agoEliminate XamlObjectWriter-dependent test lines.
Atsushi Eno [Thu, 25 Nov 2010 03:23:33 +0000 (12:23 +0900)]
Eliminate XamlObjectWriter-dependent test lines.

13 years agoParseNameList() failed to parse nested generic type names.
Atsushi Eno [Thu, 25 Nov 2010 02:29:35 +0000 (11:29 +0900)]
ParseNameList() failed to parse nested generic type names.

13 years agoRecover from broken for statement
Marek Safar [Wed, 24 Nov 2010 20:25:34 +0000 (20:25 +0000)]
Recover from broken for statement

13 years agoInflate imported type arguments types with type definition type arguments
Marek Safar [Wed, 24 Nov 2010 17:02:24 +0000 (17:02 +0000)]
Inflate imported type arguments types with type definition type arguments

13 years agoPort mcs/tests to cecil-light
Jb Evain [Wed, 24 Nov 2010 17:32:49 +0000 (18:32 +0100)]
Port mcs/tests to cecil-light

13 years agoAdd a fast path in EnumerablePartitioner for strip partitioning
Jérémie Laval [Wed, 24 Nov 2010 17:21:17 +0000 (17:21 +0000)]
Add a fast path in EnumerablePartitioner for strip partitioning

13 years ago[PLinq] Remove layer of unneeded indirections in OrderingEnumerator
Jérémie Laval [Wed, 24 Nov 2010 17:20:27 +0000 (17:20 +0000)]
[PLinq] Remove layer of unneeded indirections in OrderingEnumerator

13 years ago[PLinq] Fix the mess out of SelectMany node and speed it up (avoid Tuples creation)
Jérémie Laval [Wed, 24 Nov 2010 17:18:14 +0000 (17:18 +0000)]
[PLinq] Fix the mess out of SelectMany node and speed it up (avoid Tuples creation)

13 years ago[PLinq] Improve Where query node speed by avoiding creation of dozen of Tuples everyt...
Jérémie Laval [Wed, 24 Nov 2010 17:11:15 +0000 (17:11 +0000)]
[PLinq] Improve Where query node speed by avoiding creation of dozen of Tuples everytime and instead use static struct

13 years agoFix broken free call.
Rodrigo Kumpera [Wed, 24 Nov 2010 17:06:27 +0000 (15:06 -0200)]
Fix broken free call.

* class.c (mono_class_setup_interfaces): Don't free
MonoClass::interfaces on failure since this is now
allocated from a mempool.

Fixes #655749

13 years ago[Linker] fix the moonlight tuning wrt debug symbols
Jb Evain [Wed, 24 Nov 2010 16:13:40 +0000 (17:13 +0100)]
[Linker] fix the moonlight tuning wrt debug symbols

13 years ago[Linker] properly read symbols
Jb Evain [Wed, 24 Nov 2010 15:27:44 +0000 (16:27 +0100)]
[Linker] properly read symbols

13 years agoMerge branch 'master' of github.com:mono/mono
Atsushi Eno [Wed, 24 Nov 2010 15:16:30 +0000 (00:16 +0900)]
Merge branch 'master' of github.com:mono/mono

13 years ago[Linker] fix custom AssemblyResolver
Jb Evain [Wed, 24 Nov 2010 15:15:20 +0000 (16:15 +0100)]
[Linker]  fix custom AssemblyResolver

13 years agoParse() and ToString() array type name correctly.
Atsushi Eno [Wed, 24 Nov 2010 15:15:10 +0000 (00:15 +0900)]
Parse() and ToString() array type name correctly.

13 years ago[Linker] refactorize how symbols are loaded
Jb Evain [Wed, 24 Nov 2010 14:28:44 +0000 (15:28 +0100)]
[Linker] refactorize how symbols are loaded

13 years agoAdd overloads to IAssemblyResolver.Resolve which take a ReaderParameters for better...
Jb Evain [Wed, 24 Nov 2010 14:21:39 +0000 (15:21 +0100)]
Add overloads to IAssemblyResolver.Resolve which take a ReaderParameters for better control

13 years ago[Sockets] Support Remote/LocalEndPoint for AF_UNIX
Gonzalo Paniagua Javier [Wed, 24 Nov 2010 05:47:51 +0000 (00:47 -0500)]
[Sockets] Support Remote/LocalEndPoint for AF_UNIX

We were not handling correctly the AF_UNIX family when getting the
socket name or the peer name.

Fixes bug #655637.

13 years ago[Moon] Speed up the moonlight build by stripping it down to the bare basics
Andreia Gaita [Wed, 24 Nov 2010 04:13:22 +0000 (04:13 +0000)]
[Moon] Speed up the moonlight build by stripping it down to the bare basics

13 years agoMake some changes to the stack overflow handling code so it works to some degree...
Zoltan Varga [Wed, 24 Nov 2010 03:50:22 +0000 (04:50 +0100)]
Make some changes to the stack overflow handling code so it works to some degree even if the kernel doesn't give us the fault address.

13 years agoDisable a test which exposes mcs bug #646744.
Zoltan Varga [Wed, 24 Nov 2010 03:49:42 +0000 (04:49 +0100)]
Disable a test which exposes mcs bug #646744.

13 years agoHandle another case of binding to first arg of static method.
Rodrigo Kumpera [Tue, 23 Nov 2010 20:52:13 +0000 (18:52 -0200)]
Handle another case of binding to first arg of static method.

* Delegate.cs (CreateDelegate): Fix visibility and make
sure that we fail to bind to first argument of static
arguments to overloads that don't pass it.

* DelegateTest.cs: Add tests for the previous change.

Fixes #655439

13 years agoFix corlib testsuite crash.
Rodrigo Kumpera [Tue, 23 Nov 2010 20:51:22 +0000 (18:51 -0200)]
Fix corlib testsuite crash.

* icall.c (ves_icall_Type_MakeGenericType): We can inflate
into the gtd and the verifier function is not able to handle
it.

13 years agoFix typo.
Rodrigo Kumpera [Tue, 23 Nov 2010 18:45:43 +0000 (16:45 -0200)]
Fix typo.

13 years agoFix some array overflow bugs
Rodrigo Kumpera [Tue, 23 Nov 2010 18:23:54 +0000 (16:23 -0200)]
Fix some array overflow bugs

13 years agoRemove typeof comparisons
Marek Safar [Tue, 23 Nov 2010 17:34:27 +0000 (17:34 +0000)]
Remove typeof comparisons

13 years agoRemove typeof usage from DefaultCharSet
Marek Safar [Mon, 22 Nov 2010 19:25:47 +0000 (19:25 +0000)]
Remove typeof usage from DefaultCharSet

13 years agoCheck generic instantions for constraint violations.
Rodrigo Kumpera [Tue, 23 Nov 2010 14:18:35 +0000 (12:18 -0200)]
Check generic instantions for constraint violations.

* class.c (mono_class_init): Check instantiations of generic
instances.

* icall.c (ves_icall_Type_MakeGenericType): Ditto.

* verify.c: Add mono_verifier_class_is_valid_generic_instantiation
to the internal API so generic instances can be checked.

Fixes #654136

13 years agoRemove the processing of the Cecil docs
Jb Evain [Tue, 23 Nov 2010 14:02:23 +0000 (15:02 +0100)]
Remove the processing of the Cecil docs

13 years agoMore linker fixes for moonlight
Jb Evain [Tue, 23 Nov 2010 11:14:23 +0000 (12:14 +0100)]
More linker fixes for moonlight

13 years agoFix ReaderWriterLockSlim Exit methods in SupportsRecursion mode and add corresponding...
Jérémie Laval [Tue, 23 Nov 2010 10:59:07 +0000 (10:59 +0000)]
Fix ReaderWriterLockSlim Exit methods in SupportsRecursion mode and add corresponding unit tests

13 years agoRemove dead code
Jb Evain [Tue, 23 Nov 2010 10:17:06 +0000 (11:17 +0100)]
Remove dead code

13 years agoFix sweeping of nested types
Jb Evain [Tue, 23 Nov 2010 10:12:44 +0000 (11:12 +0100)]
Fix sweeping of nested types

13 years agoFix corlib type lookup
Jb Evain [Tue, 23 Nov 2010 10:11:20 +0000 (11:11 +0100)]
Fix corlib type lookup

13 years agoDisable a PS3 test, fix up the argument processing in the Test Driver.
Zoltan Varga [Tue, 23 Nov 2010 00:20:56 +0000 (01:20 +0100)]
Disable a PS3 test, fix up the argument processing in the Test Driver.

13 years agoMerge branch 'cecil-light'
Jb Evain [Mon, 22 Nov 2010 23:37:13 +0000 (00:37 +0100)]
Merge branch 'cecil-light'

13 years agoFacilitate the merge
Jb Evain [Mon, 22 Nov 2010 23:28:22 +0000 (00:28 +0100)]
Facilitate the merge

13 years agoRemove IVT from System.ServiceModel on MonoDroid, MonoTouch profiles.
Jonathan Pryor [Mon, 22 Nov 2010 22:30:15 +0000 (17:30 -0500)]
Remove IVT from System.ServiceModel on MonoDroid, MonoTouch profiles.

This is ~identical to commit a3ba2ab7a091b96c9e8917aab9bd9ad042a5d639,
just applied to the MonoDroid and MonoTouch profiles.

Furthermore, without this patch the MonoDroid & MonoTouch profiles fail to
build, as current versions of mcs (nicely) attempt to verify that the output
assembly name matches the IVT of a referenced assembly, which isn't possible
when System.Xml.dll has an IVT entry for System.ServiceModel.Web.dll which
differs from System.ServiceModel.dll's IVT entry for
System.ServiceModel.Web.dll.

13 years agoRemove IVT from System.ServiceModel on Moonlight profile
Sebastien Pouliot [Mon, 22 Nov 2010 19:54:56 +0000 (14:54 -0500)]
Remove IVT from System.ServiceModel on Moonlight profile

* AssemblyInfo.cs: Remove IVT from System.ServiceModel on Moonlight
profile since SL use a different public key and it is not required
for the limited build provided by SL.

13 years agoImprove fallback SpinWait to include the initial logic of SpinWait
Jérémie Laval [Mon, 22 Nov 2010 13:48:38 +0000 (13:48 +0000)]
Improve fallback SpinWait to include the initial logic of SpinWait

13 years agoPlug SplitOrderedList inside TemplateControl.
Jérémie Laval [Fri, 12 Nov 2010 15:50:07 +0000 (15:50 +0000)]
Plug SplitOrderedList inside TemplateControl.

13 years agoDefine more correctly
Jérémie Laval [Fri, 12 Nov 2010 15:49:31 +0000 (15:49 +0000)]
Define more correctly

13 years agoAdd a default implementation of SpinWait when SplitOrderedList is built with Sys...
Jérémie Laval [Fri, 12 Nov 2010 15:46:55 +0000 (15:46 +0000)]
Add a default implementation of SpinWait when SplitOrderedList is built with Sys.Web 2.0 and add it to the build

13 years agoFix a memory leak.
Zoltan Varga [Mon, 22 Nov 2010 17:48:16 +0000 (18:48 +0100)]
Fix a memory leak.

13 years agoDon't multiply fixed buffer size (it's done by runtime). Fixes #654058
Marek Safar [Mon, 22 Nov 2010 17:37:12 +0000 (17:37 +0000)]
Don't multiply fixed buffer size (it's done by runtime). Fixes #654058

13 years agoRemoved SetCharSet
Marek Safar [Mon, 22 Nov 2010 16:50:33 +0000 (16:50 +0000)]
Removed SetCharSet

13 years agoEmit fixed buffers using standard api only
Marek Safar [Mon, 22 Nov 2010 16:49:47 +0000 (16:49 +0000)]
Emit fixed buffers using standard api only

13 years agoFix retrieving of StructLayoutAttribute.Pack
Marek Safar [Mon, 22 Nov 2010 16:37:36 +0000 (16:37 +0000)]
Fix retrieving of StructLayoutAttribute.Pack

13 years agogroup all fixed buffer tests
Marek Safar [Mon, 22 Nov 2010 15:18:12 +0000 (15:18 +0000)]
group all fixed buffer tests

13 years agoTweak async modifier constant value
Marek Safar [Mon, 22 Nov 2010 12:07:56 +0000 (12:07 +0000)]
Tweak async modifier constant value

13 years agoAdded 'async' as a recognized method modifier.
Alexander Corrado [Thu, 18 Nov 2010 20:20:17 +0000 (12:20 -0800)]
Added 'async' as a recognized method modifier.

13 years agoUse a custom-wrapper for Aggregate operation invocation
Jérémie Laval [Fri, 19 Nov 2010 12:17:11 +0000 (12:17 +0000)]
Use a custom-wrapper for Aggregate operation invocation

13 years agoRemove AreTasksFinished in Scheduler and directly use a non volatile version of IsCom...
Jérémie Laval [Fri, 19 Nov 2010 12:16:42 +0000 (12:16 +0000)]
Remove AreTasksFinished in Scheduler and directly use a non volatile version of IsCompleted

13 years agoIncrease the deepSleepTime of ThreadWorker
Jérémie Laval [Fri, 19 Nov 2010 12:15:58 +0000 (12:15 +0000)]
Increase the deepSleepTime of ThreadWorker

13 years agoComment out no longer used code
Marek Safar [Mon, 22 Nov 2010 11:36:46 +0000 (11:36 +0000)]
Comment out no longer used code

13 years agoUpdated mcs tests failures
Marek Safar [Mon, 22 Nov 2010 11:28:51 +0000 (11:28 +0000)]
Updated mcs tests failures

13 years agoAdd comment details to DefineUnmanagedResource
Marek Safar [Mon, 22 Nov 2010 11:00:58 +0000 (11:00 +0000)]
Add comment details to DefineUnmanagedResource

13 years agoDefine embeded resources using standard API
Marek Safar [Mon, 22 Nov 2010 09:51:57 +0000 (09:51 +0000)]
Define embeded resources using standard API

13 years agoMove entry point handling to AssemblyDefinition
Marek Safar [Sun, 21 Nov 2010 19:46:04 +0000 (19:46 +0000)]
Move entry point handling to AssemblyDefinition

13 years agoMake generated assembly attributes container name unique
Marek Safar [Sun, 21 Nov 2010 18:54:23 +0000 (18:54 +0000)]
Make generated assembly attributes container name unique

13 years agoDon't sign netmodules.
Marek Safar [Sun, 21 Nov 2010 17:34:51 +0000 (17:34 +0000)]
Don't sign netmodules.

13 years agoPut back private key handling
Marek Safar [Sun, 21 Nov 2010 17:23:46 +0000 (17:23 +0000)]
Put back private key handling

13 years agoImprove handling of netmodules. Fixes #504085
Marek Safar [Sun, 21 Nov 2010 10:48:36 +0000 (10:48 +0000)]
Improve handling of netmodules. Fixes #504085

13 years agoAdd AssemblySpec to handle all assembly attributes in same way.
Marek Safar [Fri, 19 Nov 2010 16:21:47 +0000 (16:21 +0000)]
Add AssemblySpec to handle all assembly attributes in same way.

13 years agoAdd missing file
Marek Safar [Fri, 19 Nov 2010 16:12:09 +0000 (16:12 +0000)]
Add missing file

13 years agoAllocate memory for generic instances from the mempool of the image set they belong...
Zoltan Varga [Mon, 22 Nov 2010 04:50:27 +0000 (05:50 +0100)]
Allocate memory for generic instances from the mempool of the image set they belong to. Use this to simplify the freeing of these instances.

13 years agoFix g_hash_table_remove_all ().
Zoltan Varga [Mon, 22 Nov 2010 04:50:10 +0000 (05:50 +0100)]
Fix g_hash_table_remove_all ().

13 years agoHandle cattr with arrays of System.Type.
Rodrigo Kumpera [Mon, 22 Nov 2010 03:04:14 +0000 (01:04 -0200)]
Handle cattr with arrays of System.Type.

* metadata-verify.c (is_valid_fixed_param): Handle arrays
of types. They can be encoded as 0x1B or 0x50.

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

Fixes #655159

13 years agointernalize private cecil
Jb Evain [Sun, 21 Nov 2010 21:38:10 +0000 (22:38 +0100)]
internalize private cecil

13 years agoFix makefile
Jb Evain [Sun, 21 Nov 2010 21:29:28 +0000 (22:29 +0100)]
Fix makefile

13 years agoPreserve mono-cil-strip feature by embedding the old Cecil
Jb Evain [Sun, 21 Nov 2010 21:16:10 +0000 (22:16 +0100)]
Preserve mono-cil-strip feature by embedding the old Cecil

13 years ago[File.ReadLines] Dispose the StreamReader in the right place.
Gonzalo Paniagua Javier [Sun, 21 Nov 2010 20:12:45 +0000 (15:12 -0500)]
[File.ReadLines] Dispose the StreamReader in the right place.

The StreamReader was being disposed immediately after the call to
ReadLines() causing the enumerator to fails.

Fixes bug #649464.

13 years agoFree the JIT tls data for the main thread.
Zoltan Varga [Sun, 21 Nov 2010 19:24:05 +0000 (20:24 +0100)]
Free the JIT tls data for the main thread.

13 years agoAllocate generic param constraint data from the image mempool.
Zoltan Varga [Sun, 21 Nov 2010 19:15:03 +0000 (20:15 +0100)]
Allocate generic param constraint data from the image mempool.

13 years agoUnref all handles on shutdown so their memory is freed.
Zoltan Varga [Sun, 21 Nov 2010 18:06:45 +0000 (19:06 +0100)]
Unref all handles on shutdown so their memory is freed.

13 years agoupdate cecil to upstream
Jb Evain [Sun, 21 Nov 2010 12:39:57 +0000 (13:39 +0100)]
update cecil to upstream

13 years agoFix some small memory leaks.
Zoltan Varga [Sun, 21 Nov 2010 05:49:48 +0000 (06:49 +0100)]
Fix some small memory leaks.

13 years agoRemove the AOT log files on 'clean'.
Zoltan Varga [Sun, 21 Nov 2010 04:32:15 +0000 (05:32 +0100)]
Remove the AOT log files on 'clean'.

13 years agoLink the iomap profiler against eglib. Fixes #627889.
Zoltan Varga [Sun, 21 Nov 2010 04:26:55 +0000 (05:26 +0100)]
Link the iomap profiler against eglib. Fixes #627889.

13 years agoFix a warning.
Zoltan Varga [Sun, 21 Nov 2010 00:48:43 +0000 (01:48 +0100)]
Fix a warning.

13 years ago[HttpListener] Reduce the code inside lock {}
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:48:01 +0000 (16:48 -0500)]
[HttpListener] Reduce the code inside lock {}

Avoid nesting locks when they are not needed.

13 years ago[HttpListener] Use RWL instead of lock()
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:46:07 +0000 (16:46 -0500)]
[HttpListener] Use RWL instead of lock()

Most of the time we just want to read the prefixes instead of
adding/removing one.

13 years ago[Timer] Use a WaitHandle instead of Wait/Pulse
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:40:03 +0000 (16:40 -0500)]
[Timer] Use a WaitHandle instead of Wait/Pulse

Notifications of changes were sent using Monitor.Pulse() while the
scheduler thread was in a Monitor.Wait(). The way we handle
Monitor.Wait() internally involves creating an manual-reset event and
waiting on it each time Monitor.Wait() is called.

With this change, one 1 event is created for the lifetime of the
appdomain. These seems to help avoiding contention when there are a lot
of timers in play.

13 years agoRemove experimental from the name
Miguel de Icaza [Sat, 20 Nov 2010 18:09:16 +0000 (13:09 -0500)]
Remove experimental from the name

13 years agoFix a potential NRE when using bitmap contexts
Geoff Norton [Sat, 20 Nov 2010 04:33:13 +0000 (23:33 -0500)]
Fix a potential NRE when using bitmap contexts

13 years agoIncrease maximum size of ppc prolog. Fixes #654460.
Zoltan Varga [Sat, 20 Nov 2010 02:13:04 +0000 (03:13 +0100)]
Increase maximum size of ppc prolog. Fixes #654460.

13 years agoAdd support for the processorArchitecture field in assembly names. Fixes #655096.
Zoltan Varga [Sat, 20 Nov 2010 02:08:32 +0000 (03:08 +0100)]
Add support for the processorArchitecture field in assembly names. Fixes #655096.

13 years ago[sgen] Implement evacuation for parallel mark.
Mark Probst [Fri, 19 Nov 2010 21:53:50 +0000 (22:53 +0100)]
[sgen] Implement evacuation for parallel mark.

13 years agoParse RequestPathInvalidCharacters properly. Fixes urls with commas in them.
Jackson Harper [Fri, 19 Nov 2010 20:37:16 +0000 (15:37 -0500)]
Parse RequestPathInvalidCharacters properly. Fixes urls with commas in them.

This fixes bug #654476. https://bugzilla.novell.com/show_bug.cgi?id=654476

These values are stored as a comma separated list, not just a list
of chars. So we need to parse out all the values, ignoring whitespace.

13 years agoWeb service help fix
Gonzalo Paniagua Javier [Fri, 19 Nov 2010 17:46:48 +0000 (12:46 -0500)]
Web service help fix

Generate the wsdl document with UTF8 encoding.

13 years agoFix the build.
Gonzalo Paniagua Javier [Fri, 19 Nov 2010 17:36:04 +0000 (12:36 -0500)]
Fix the build.

13 years agoFix the previous arm EH change.
Zoltan Varga [Fri, 19 Nov 2010 16:19:04 +0000 (17:19 +0100)]
Fix the previous arm EH change.

13 years agoRemove mentions of Logging and Heap Shot profilers from man page
Miguel de Icaza [Fri, 19 Nov 2010 16:09:28 +0000 (11:09 -0500)]
Remove mentions of Logging and Heap Shot profilers from man page

13 years agoLoad dependent assemblies of an aot image from the assembly's basedir. Fixes #654850.
Zoltan Varga [Fri, 19 Nov 2010 16:07:43 +0000 (17:07 +0100)]
Load dependent assemblies of an aot image from the assembly's basedir. Fixes #654850.

13 years agoImplement XamlType.CanAssignTo(). Remove extra writer state members.
Atsushi Eno [Fri, 19 Nov 2010 12:24:36 +0000 (21:24 +0900)]
Implement XamlType.CanAssignTo(). Remove extra writer state members.

13 years agoCall OnWriteStratObject() after pushing current state.
Atsushi Eno [Fri, 19 Nov 2010 07:21:26 +0000 (16:21 +0900)]
Call OnWriteStratObject() after pushing current state.

13 years agoFix TypeValueSerializer and ValueSerializerContext to work fine with XamlObjectWriter.
Atsushi Eno [Fri, 19 Nov 2010 06:05:49 +0000 (15:05 +0900)]
Fix TypeValueSerializer and ValueSerializerContext to work fine with XamlObjectWriter.