mono.git
13 years agoAdd a g_hash_iter symbols to the eglib remapper.
Zoltan Varga [Sun, 24 Oct 2010 17:29:20 +0000 (19:29 +0200)]
Add a g_hash_iter symbols to the eglib remapper.

13 years agoAdd missing v3 language version
Marek Safar [Sat, 23 Oct 2010 16:06:40 +0000 (17:06 +0100)]
Add missing v3 language version

13 years agoNew test.
Marek Safar [Sat, 23 Oct 2010 09:19:06 +0000 (10:19 +0100)]
New test.

13 years agoExtract the default profiler into its own file.
Zoltan Varga [Sat, 23 Oct 2010 21:41:56 +0000 (23:41 +0200)]
Extract the default profiler into its own file.

13 years agoUse int 3 as G_BREAKPOINT on x86-64 too. Hopefully fixes #648838.
Zoltan Varga [Sat, 23 Oct 2010 18:38:12 +0000 (20:38 +0200)]
Use int 3 as G_BREAKPOINT on x86-64 too. Hopefully fixes #648838.

13 years agoFix another regression in the Array.Sort () methods, allow keys and items to be of...
Zoltan Varga [Sat, 23 Oct 2010 14:47:30 +0000 (16:47 +0200)]
Fix another regression in the Array.Sort () methods, allow keys and items to be of different length. Fixes #648828.

13 years agoImplement memory barriers for amd64/x86. Fixes #648831.
Zoltan Varga [Sat, 23 Oct 2010 14:29:48 +0000 (16:29 +0200)]
Implement memory barriers for amd64/x86. Fixes #648831.

13 years ago[SDB] Add BeginConnect/EndConnect to VirtualMachineManager
Michael Hutchinson [Sat, 23 Oct 2010 08:06:29 +0000 (04:06 -0400)]
[SDB] Add BeginConnect/EndConnect to VirtualMachineManager

Launch and Listen methods had async version but Connect did not.

13 years agoMonoType::GetGenericArguments don't need to mono_class_init.
Rodrigo Kumpera [Fri, 22 Oct 2010 21:18:01 +0000 (19:18 -0200)]
MonoType::GetGenericArguments don't need to mono_class_init.

* icall.c (ves_icall_MonoType_GetGenericArguments): Don't
mono_class_init here since it's not needed.

Fixes #648725

13 years agoChecks the constructor declaring type.
Rodrigo Kumpera [Fri, 22 Oct 2010 19:57:00 +0000 (17:57 -0200)]
Checks the constructor declaring type.

* TypeBuilder.cs (GetConstructor): Check if the ctor
declaring type is the right one and the same as type.

* TypeBuilderTest.cs: Add regression test.

Fixes #648391

13 years agoCorrectly encode fields with GTD types.
Rodrigo Kumpera [Fri, 22 Oct 2010 19:05:25 +0000 (17:05 -0200)]
Correctly encode fields with GTD types.

* reflection.c (mono_image_get_generic_field_token): If
the field type is a GTD, ensure its generic_container is
properly initialized.

Fixes #648616

13 years agoUse faster MemberKind when checking for a nested type
Marek Safar [Fri, 22 Oct 2010 18:29:50 +0000 (19:29 +0100)]
Use faster MemberKind when checking for a nested type

13 years agoInclude parent type parameters when inflating nested type parameter constraint of...
Marek Safar [Fri, 22 Oct 2010 15:06:24 +0000 (16:06 +0100)]
Include parent type parameters when inflating nested type parameter constraint of type parameter type

13 years agoMove nested declaration looup to TypeContainer
Marek Safar [Fri, 22 Oct 2010 10:16:54 +0000 (11:16 +0100)]
Move nested declaration looup to TypeContainer

13 years agoAdd dynamic conversion to coalescing operator
Marek Safar [Thu, 21 Oct 2010 16:30:32 +0000 (17:30 +0100)]
Add dynamic conversion to coalescing operator

13 years agoUnbreak the world
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 18:20:38 +0000 (14:20 -0400)]
Unbreak the world

13 years agoRemove 'web' directory
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:53:17 +0000 (12:53 -0400)]
Remove 'web' directory

13 years agoSniff, sniff
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:52:19 +0000 (12:52 -0400)]
Sniff, sniff

Remove the old (really) stuff to generate the website from makefiles.

13 years agoUpdate mappings after latest changes to Mono.Posix
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:48:39 +0000 (12:48 -0400)]
Update mappings after latest changes to Mono.Posix

New mappings created for the epoll code.

13 years agoEmit GenericEqualityComparer<T> instances for each EqualityComparer<T> instance in...
Zoltan Varga [Fri, 22 Oct 2010 15:56:26 +0000 (17:56 +0200)]
Emit GenericEqualityComparer<T> instances for each EqualityComparer<T> instance in AOT, the former is created dynamically by the latter.

13 years agoUse locale_charset() from iconv which will use nl_langinfo (CODESET) anyways but...
Zoltan Varga [Fri, 22 Oct 2010 15:25:30 +0000 (17:25 +0200)]
Use locale_charset() from iconv which will use nl_langinfo (CODESET) anyways but it will
do canonicalization so we will get the correct charset name, because nl_langinfo (CODESET)
can return different things on different systems. This at least fixes OpenBSD.

13 years agoUse test-and-test-and-set pattern in LazyInitializer::EnsureInitialized
Jérémie Laval [Fri, 22 Oct 2010 14:15:18 +0000 (15:15 +0100)]
Use test-and-test-and-set pattern in LazyInitializer::EnsureInitialized

13 years agoFix a dodgy ReaderWriterLockSlim unit test
Jérémie Laval [Fri, 22 Oct 2010 14:14:48 +0000 (15:14 +0100)]
Fix a dodgy ReaderWriterLockSlim unit test

13 years agoWe can use ImportAllEndpoints().
Atsushi Eno [Fri, 22 Oct 2010 10:07:46 +0000 (19:07 +0900)]
We can use ImportAllEndpoints().

13 years agoIt should not have to import all schema elements, but those only used by contracts.
Atsushi Eno [Fri, 22 Oct 2010 10:06:20 +0000 (19:06 +0900)]
It should not have to import all schema elements, but those only used by contracts.

13 years agoSmall refactoring on enumerating message schema element contents.
Atsushi Eno [Fri, 22 Oct 2010 08:58:16 +0000 (17:58 +0900)]
Small refactoring on enumerating message schema element contents.

13 years agoFix test compilation with older glibs.
Zoltan Varga [Fri, 22 Oct 2010 07:28:20 +0000 (09:28 +0200)]
Fix test compilation with older glibs.

13 years agoDon't put KnownTypeAttributes on enums.
Atsushi Eno [Fri, 22 Oct 2010 07:23:24 +0000 (16:23 +0900)]
Don't put KnownTypeAttributes on enums.

13 years agoMake generated type names unique.
Atsushi Eno [Fri, 22 Oct 2010 06:49:51 +0000 (15:49 +0900)]
Make generated type names unique.

13 years agoUpdate
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:24:47 +0000 (00:24 -0400)]
Update

13 years agoUpdate zlib to version 1.2.5
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:13:41 +0000 (00:13 -0400)]
Update zlib to version 1.2.5

13 years agoRemove arbitrary 1024 limit in GetProcesses
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:00:33 +0000 (00:00 -0400)]
Remove arbitrary 1024 limit in GetProcesses

Reallocate the array of PIDs if EnumProcesses used all of it and try
again.

13 years agoImplement GHashTable iterators.
Zoltan Varga [Fri, 22 Oct 2010 00:59:48 +0000 (02:59 +0200)]
Implement GHashTable iterators.

13 years agoFromBinary does not need ToLocalTime
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 20:00:56 +0000 (16:00 -0400)]
FromBinary does not need ToLocalTime

When converting to DateTime from a long, we don't need ToLocalTime().
Setting the kind to Local is enough.
Patch from Mig.

Fixes bug #648252.

13 years agoFix building the logging profiler.
Zoltan Varga [Thu, 21 Oct 2010 19:56:31 +0000 (21:56 +0200)]
Fix building the logging profiler.

13 years agoDocument server option to --debugger-agent
Miguel de Icaza [Thu, 21 Oct 2010 18:09:49 +0000 (14:09 -0400)]
Document server option to --debugger-agent

13 years agoFix an assert in the LLVM backend if a long value was passed to 'localloc'.
Zoltan Varga [Thu, 21 Oct 2010 17:01:02 +0000 (19:01 +0200)]
Fix an assert in the LLVM backend if a long value was passed to 'localloc'.

13 years agoFix the assembly/class caching problems in the threadpool code too.
Zoltan Varga [Thu, 21 Oct 2010 16:49:52 +0000 (18:49 +0200)]
Fix the assembly/class caching problems in the threadpool code too.

13 years agoUpdate issues list
Marek Safar [Thu, 21 Oct 2010 15:07:05 +0000 (16:07 +0100)]
Update issues list

13 years agoImplement closest override return type matching
Marek Safar [Thu, 21 Oct 2010 15:01:19 +0000 (16:01 +0100)]
Implement closest override return type matching

13 years agoForget to re-add this test file
Marek Safar [Wed, 20 Oct 2010 15:32:32 +0000 (16:32 +0100)]
Forget to re-add this test file

13 years agoAdd an assert to mono_class_from_name_cached () to make sure it is only called for...
Zoltan Varga [Thu, 21 Oct 2010 14:37:48 +0000 (16:37 +0200)]
Add an assert to mono_class_from_name_cached () to make sure it is only called for mscorlib.

13 years agoAvoid caching stuff in socket-io.c in static variables, since the socket assembly...
Zoltan Varga [Thu, 21 Oct 2010 14:15:14 +0000 (16:15 +0200)]
Avoid caching stuff in socket-io.c in static variables, since the socket assembly can be unloaded, cache them in MonoDomain instead.

13 years agoOnEndXxx() methods should not try to let void return to a local variable.
Atsushi Eno [Thu, 21 Oct 2010 11:53:00 +0000 (20:53 +0900)]
OnEndXxx() methods should not try to let void return to a local variable.

13 years agoSince event arg type name can be EventArgs1, do not match by type name. Check rather...
Atsushi Eno [Thu, 21 Oct 2010 11:27:48 +0000 (20:27 +0900)]
Since event arg type name can be EventArgs1, do not match by type name. Check rather base type instead.

13 years agoVoid event should not have Result of type void.
Atsushi Eno [Thu, 21 Oct 2010 10:44:20 +0000 (19:44 +0900)]
Void event should not have Result of type void.

13 years agoMake generated type names unique.
Atsushi Eno [Thu, 21 Oct 2010 10:06:56 +0000 (19:06 +0900)]
Make generated type names unique.

13 years agoAsync end operation needs cast.
Atsushi Eno [Thu, 21 Oct 2010 09:28:02 +0000 (18:28 +0900)]
Async end operation needs cast.

13 years agoRemove ExtensionData from moonlight proxy.
Atsushi Eno [Thu, 21 Oct 2010 07:54:19 +0000 (16:54 +0900)]
Remove ExtensionData from moonlight proxy.

13 years agoReplace EnumProcesses with OpenProcess
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:42:38 +0000 (02:42 -0400)]
Replace EnumProcesses with OpenProcess

namedmutex_prewait was (partially) listing the running processes and
then searching through them. Now we use OpenProcess to verify the owner
of the mutex is still alive.

Fixes bug #648133 (note that you need MONO_ENABLE_SHM for this to work)

13 years agoNo need to use a GArray in EnumProcesses
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:17:12 +0000 (02:17 -0400)]
No need to use a GArray in EnumProcesses

Use the provided array instead of creating a new one and then copying
it to the result.

13 years agoFix typo
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:14:31 +0000 (02:14 -0400)]
Fix typo

element_size is not a boolean.

13 years agoAdd some WCF types in moonlight_raw System.Xml.Serialization.dll.
Atsushi Eno [Thu, 21 Oct 2010 06:32:39 +0000 (15:32 +0900)]
Add some WCF types in moonlight_raw System.Xml.Serialization.dll.

13 years agoAdd #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy.
Atsushi Eno [Thu, 21 Oct 2010 06:30:23 +0000 (15:30 +0900)]
Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy.

13 years agoFix the collision handling code
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 04:08:54 +0000 (00:08 -0400)]
Fix the collision handling code

After the fix for bug #605092, inserting timers with an equal due time
was failing because searching in the list was also using a reference
comparison. Now, when adding a new timer, we search using just the due
time.
Fixes bug #648130.

13 years ago[asp.net] ObjectStateFormatter.{De}serialize methods taking stream use a magic value...
Marek Habersack [Wed, 20 Oct 2010 23:21:53 +0000 (01:21 +0200)]
[asp.net] ObjectStateFormatter.{De}serialize methods taking stream use a magic value to mark the stream.

13 years agoREADME.tests was deleted in d9c8bdf
Andrew Jorgensen [Wed, 20 Oct 2010 15:55:18 +0000 (09:55 -0600)]
README.tests was deleted in d9c8bdf

13 years agoClean up test files
Marek Safar [Wed, 20 Oct 2010 15:21:22 +0000 (16:21 +0100)]
Clean up test files

13 years ago[601801] Fixes for parsing nant documentation
Marek Safar [Wed, 20 Oct 2010 15:00:14 +0000 (16:00 +0100)]
[601801] Fixes for parsing nant documentation

Gleb Golubitsky <rush.william@gmail.com>

13 years agoCheck for name conflicts between parent members and child block variables
Marek Safar [Wed, 20 Oct 2010 14:40:36 +0000 (15:40 +0100)]
Check for name conflicts between parent members and child block variables

13 years ago[647845] Don't skip parent types when looking for simple name
Marek Safar [Wed, 20 Oct 2010 10:30:26 +0000 (11:30 +0100)]
[647845] Don't skip parent types when looking for simple name

13 years ago[asp.net,wcf] WCF proxies are generated using a slightly different mode of operation.
Marek Habersack [Wed, 20 Oct 2010 14:06:26 +0000 (16:06 +0200)]
[asp.net,wcf] WCF proxies are generated using a slightly different mode of operation.

WCF proxies don't include full namespace of the contract.

13 years ago[Fix] Ensure correct stack pointer initialization on !POSIX
Tak [Wed, 20 Oct 2010 09:37:40 +0000 (11:37 +0200)]
[Fix] Ensure correct stack pointer initialization on !POSIX

* metadata/threads.c: Ensure correct stack pointer initialization on !POSIX.
This fixes some random crashes with embedded, release-optimized binaries on windows.

License: MIT/X11

13 years ago[wcf] make /js and /jsdebug dispatchers work.
Marek Habersack [Wed, 20 Oct 2010 00:02:27 +0000 (02:02 +0200)]
[wcf] make /js and /jsdebug dispatchers work.

There were several issues here:

- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
  ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
  This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
  dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
  when it should first try to find one whose URL matches the current request exactly.

13 years agoForgot #if NET_4_0.
Atsushi Eno [Wed, 20 Oct 2010 10:23:02 +0000 (19:23 +0900)]
Forgot #if NET_4_0.

13 years agoAdd ExtendedProtectionPolicy members. Required by .config files by .NET svcutil.
Atsushi Eno [Wed, 20 Oct 2010 09:06:02 +0000 (18:06 +0900)]
Add ExtendedProtectionPolicy members. Required by .config files by .NET svcutil.

13 years agoExtendedProtection Configuration types are also used in WCF 4.0.
Atsushi Eno [Wed, 20 Oct 2010 08:24:51 +0000 (17:24 +0900)]
ExtendedProtection Configuration types are also used in WCF 4.0.

13 years agoMore work on ambiguous named arguments
Marek Safar [Wed, 20 Oct 2010 08:09:22 +0000 (09:09 +0100)]
More work on ambiguous named arguments

13 years agoMore optional parameter VB compatibility fixes
Marek Safar [Tue, 19 Oct 2010 12:33:54 +0000 (13:33 +0100)]
More optional parameter VB compatibility fixes

13 years agoAdd System.Security.Authentication.ExtendedProtection stubs, referenced by WCF 4.0.
Atsushi Eno [Wed, 20 Oct 2010 07:26:07 +0000 (16:26 +0900)]
Add System.Security.Authentication.ExtendedProtection stubs, referenced by WCF 4.0.

13 years agoAble to read MS serialized nullable<primitive>
Gonzalo Paniagua Javier [Wed, 20 Oct 2010 04:56:45 +0000 (00:56 -0400)]
Able to read MS serialized nullable<primitive>

Handle boxed primitive types for nullable fields.
Fixes bug #646556.

13 years agoImplement better explicit override checks.
Rodrigo Kumpera [Tue, 19 Oct 2010 18:31:08 +0000 (16:31 -0200)]
Implement better explicit override checks.

* metadata-verify.c: Add mono_verifier_verify_methodimpl_row.

* metadata.c (mono_class_get_overrides_full): Call in the
verifier.

* verify.c: Add mono_verifier_is_signature_compatible that
does propery signature variance checking.

13 years agoMerge branch 'master' of github.com:mono/mono
Rodrigo Kumpera [Wed, 20 Oct 2010 03:39:48 +0000 (01:39 -0200)]
Merge branch 'master' of github.com:mono/mono

13 years agoProper recursive vtable checking.
Rodrigo Kumpera [Wed, 20 Oct 2010 03:25:27 +0000 (01:25 -0200)]
Proper recursive vtable checking.

* class.c: Pass around a list of currently been built vtables
to really avoid going into loop.

* reflection.c: Adjust to extra arguments.

* object.c: Ditto.

13 years agoAvoid trying to read the gc name in the AOT runtime from older AOT images. Fixes...
Zoltan Varga [Wed, 20 Oct 2010 03:09:14 +0000 (05:09 +0200)]
Avoid trying to read the gc name in the AOT runtime from older AOT images. Fixes #647918.

13 years agoTemporarily disable iface check o generic instances
Rodrigo Kumpera [Tue, 19 Oct 2010 18:38:19 +0000 (16:38 -0200)]
Temporarily disable iface check o generic instances

13 years agoRemove the duplicate assembly name->string code from two places, uses mono_stringify_...
Zoltan Varga [Tue, 19 Oct 2010 13:06:39 +0000 (15:06 +0200)]
Remove the duplicate assembly name->string code from two places, uses mono_stringify_assembly_name ().

13 years agoAdd regression test for #640780
Rodrigo Kumpera [Tue, 19 Oct 2010 13:46:43 +0000 (11:46 -0200)]
Add regression test for #640780

13 years agoDon't assign vtable slots to static iface methods.
Rodrigo Kumpera [Tue, 19 Oct 2010 13:36:39 +0000 (11:36 -0200)]
Don't assign vtable slots to static iface methods.

* reflection.c (ensure_runtime_vtable): When recalculating
method slots, ignore static methods.

Fixes #640780

13 years agoRemove dead code from BigInteger since it confuse some people
Sebastien Pouliot [Mon, 18 Oct 2010 20:37:52 +0000 (16:37 -0400)]
Remove dead code from BigInteger since it confuse some people

* corlib/Mono.Math/BigInteger.cs:
* Mono.Security/Mono.Math/BigInteger.cs:
Remove Montgomery internal inner class since it's buggy, has not
been used for years and confuse some people (seeing ghosts of
CVE-2007-5197)

13 years agoAvoid crashes in the assembly name->string code if aname->name is NULL.
Zoltan Varga [Tue, 19 Oct 2010 12:55:20 +0000 (14:55 +0200)]
Avoid crashes in the assembly name->string code if aname->name is NULL.

13 years agoDon't disconnect an unconnected socket. Fixes #606809.
Tak [Tue, 19 Oct 2010 09:06:10 +0000 (11:06 +0200)]
Don't disconnect an unconnected socket. Fixes #606809.

* Mono.Debugger.Soft/VirtualMachineManager.cs: Don't disconnect an unconnected socket. Fixes #606809.

This patch is licensed MIT/X11.

13 years agoAdd complicated dictionary state and support dictionary in XamlObjectReader.
Atsushi Eno [Tue, 19 Oct 2010 12:38:38 +0000 (21:38 +0900)]
Add complicated dictionary state and support dictionary in XamlObjectReader.

13 years ago[Fix] Turn off exception callback filtering on WoW64.
Zoltan Varga [Tue, 19 Oct 2010 12:34:32 +0000 (14:34 +0200)]
[Fix] Turn off exception callback filtering on WoW64.

* mini/exceptions-x86.c: Turn off exception callback filtering on WoW64. This allows managed exceptions to actually work when using 32bit mono on 64bit Windows.

License: MIT/X11

13 years ago[Fix] Ensure that exceptions are propagated when embedding
Tak [Tue, 19 Oct 2010 09:58:36 +0000 (11:58 +0200)]
[Fix] Ensure that exceptions are propagated when embedding

* metadata/object.c:
* mini/mini.c:
Ensure that exceptions get propagated back to the caller
when mono is being embedded.
License: MIT/X11

13 years agoMake XamlType.GetMember() and XamlType.GetAllMembers() consistent. Return Items for...
Atsushi Eno [Tue, 19 Oct 2010 11:08:51 +0000 (20:08 +0900)]
Make XamlType.GetMember() and XamlType.GetAllMembers() consistent. Return Items for Dictionary.

13 years agoAdd Dictionary reader test and made some fixes towards it.
Atsushi Eno [Tue, 19 Oct 2010 09:39:02 +0000 (18:39 +0900)]
Add Dictionary reader test and made some fixes towards it.

13 years agoRestore altered arguments when overload resolution ends up in dynamic dispatch
Marek Safar [Tue, 19 Oct 2010 08:29:45 +0000 (09:29 +0100)]
Restore altered arguments when overload resolution ends up in dynamic dispatch

13 years agoPass modifier when used with named argument
Marek Safar [Mon, 18 Oct 2010 17:12:44 +0000 (18:12 +0100)]
Pass modifier when used with named argument

13 years agoArray takes ArrayExtension shape and thus won't reach here, so remove NIE.
Atsushi Eno [Tue, 19 Oct 2010 08:20:53 +0000 (17:20 +0900)]
Array takes ArrayExtension shape and thus won't reach here, so remove NIE.

13 years agoImplement FactoryMethod and Arguments support in XamlObjectWriter.
Atsushi Eno [Tue, 19 Oct 2010 08:15:13 +0000 (17:15 +0900)]
Implement FactoryMethod and Arguments support in XamlObjectWriter.

13 years agoHandle x:* attributes and look for standard directives in XamlXmlReader. Factory...
Atsushi Eno [Tue, 19 Oct 2010 07:36:55 +0000 (16:36 +0900)]
Handle x:* attributes and look for standard directives in XamlXmlReader. Factory method got working.

13 years agoHandle cyclic interface definitions.
Rodrigo Kumpera [Mon, 18 Oct 2010 23:11:11 +0000 (21:11 -0200)]
Handle cyclic interface definitions.

* class.c (collect_implemented_interfaces_aux): Fail if
any of the collected interfaces is broken.

* class.c (mono_class_init): Don't bother initing if the
class is broken. Don't assert on cycles, fail the type
instead.

Fixes #568025

13 years ago[asp.net] make sure the string we pass to DecryptAssemblyResource is a valid Base64...
Marek Habersack [Mon, 18 Oct 2010 21:15:31 +0000 (23:15 +0200)]
[asp.net] make sure the string we pass to DecryptAssemblyResource is a valid Base64 string

13 years agoDon't load app.config when we're processing app.config
Jonathan Pryor [Mon, 18 Oct 2010 20:56:34 +0000 (16:56 -0400)]
Don't load app.config when we're processing app.config

Fixes #605033.

'cause stack overflow is back, mkay?

  at System.Diagnostics.TraceImpl.InitOnce () <0x0005b>
  at System.Diagnostics.TraceImpl.get_IndentLevel () <0x0000b>
  at System.Diagnostics.TraceListenerCollection.InitializeListener (System.Diagnostics.TraceListener) <0x0000f>
  at System.Diagnostics.TraceListenerCollection.Add (System.Diagnostics.TraceListener) <0x00017>
  at System.Diagnostics.TraceListenerCollection..ctor (bool) <0x0007f>
  at System.Diagnostics.TraceListenerCollection..ctor () <0x00013>
  at System.Diagnostics.DiagnosticsConfigurationHandler.GetSharedListeners (System.Collections.IDictionary) <0x00083>
  at System.Diagnostics.DiagnosticsConfigurationHandler.Create (object,object,System.Xml.XmlNode) <0x003cf>
  at System.Configuration.ConfigurationSection.GetRuntimeObject () <0x0033d>
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (string) <0x00041>
  at System.Configuration.ConfigurationManager.GetSection (string) <0x00030>
  at System.Configuration.ConfigurationSettings.GetConfig (string) <0x0000f>
  at System.Diagnostics.DiagnosticsConfiguration.get_Settings () <0x00043>
  at System.Diagnostics.TraceImpl.InitOnce () <0x0005b>

Thus, when we're getting the <sharedListeners/> element, we shouldn't call
the TraceListenerCollection default constructor, as that will attempt to add
the DefaultTraceListener (which isn't needed anyway, as the
DefaultTraceListener is explicitly added by TraceImplSettings).

13 years ago[wcf] ServiceHost directive can span several lines.
Marek Habersack [Mon, 18 Oct 2010 19:31:40 +0000 (21:31 +0200)]
[wcf] ServiceHost directive can span several lines.

13 years agoConstructors signatures must be hasthis.
Rodrigo Kumpera [Mon, 18 Oct 2010 19:45:50 +0000 (17:45 -0200)]
Constructors signatures must be hasthis.

* verify.c (do_newobj): Check if the .ctor signature is
hasthis. Even thou this is not a string 335 requirement
our runtime asserts otherwise.

Fixes #568004

13 years agoMerge branch 'master' of github.com:mono/mono
Rodrigo Kumpera [Mon, 18 Oct 2010 19:50:19 +0000 (17:50 -0200)]
Merge branch 'master' of github.com:mono/mono

13 years ago[wcf] Don't close HTTP response prematurely.
Marek Habersack [Mon, 18 Oct 2010 18:53:17 +0000 (20:53 +0200)]
[wcf] Don't close HTTP response prematurely.

Service is invoked in the context of the System.Web pipeline and closing the response before the final
output stream flush causes the generated response not to ever reach the client. This patch makes sure
the System.Web pipeline takes care of all the response housekeeping.

13 years agoWhen creating the vtable of generic instances, check their arguments.
Rodrigo Kumpera [Mon, 18 Oct 2010 17:46:39 +0000 (15:46 -0200)]
When creating the vtable of generic instances, check their arguments.

* class.c (mono_class_setup_vtable): Check generic instances
using mono_class_check_vtable_constraints.

* class (mono_class_check_vtable_constraints): A generic
instance can't have a vtable if one of its generic arguments
has a broken vtable. Otherwise we'll have a realized type
that will go broken once one of its arguments gets initialized.

* object.c (mono_class_create_runtime_vtable): Check generic
instance arguments since creating the rumtime vtable doesn't
require resolving the metadata one.

Fixes #644915